/* Same look as the DPI Slowdown program: dark ink background, violet as the main
   color, yellow for whatever is active, slanted shapes, condensed italic titles. */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #140F1C;        /* page background */
  --plum: #241A33;       /* fields, cards, buttons */
  --plum-hi: #322546;    /* hovered */
  --line: #40325C;       /* borders and rules */
  --violet: #6D3BFF;     /* main color */
  --violet-d: #4A26B8;
  --yellow: #FFD60A;     /* active right now */
  --yellow-d: #D6B000;
  --text: #F2EDFC;
  --muted: #AAA0C2;
  --dark: #1B1026;       /* text on yellow */
  --red: #D63742;
  --example: #FFFFFF;    /* the example colour in the demo: white, the program's starting colour */
  --fast: "Barlow Condensed", "Arial Narrow", sans-serif;
  --label: "Barlow", "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; scroll-padding-top: 5rem; }
/* The page scrolls as usual (wheel, keys, touch), but the scrollbar itself is not drawn. */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
a { color: var(--text); }
a:hover { color: var(--yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3 { margin: 0; }
h1 { font: italic 600 clamp(2.6rem, 6.5vw, 4.75rem)/0.98 var(--fast); letter-spacing: 0.005em; }
h2, h3 { font: 600 1.25rem/1.25 var(--label); }
p { margin: 0; max-width: 36rem; }
.muted { color: var(--muted); }

/* header and footer */
/* The menu stays at the top of the window while the page scrolls underneath it. */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding: 0.9rem 1.5rem; }
.name { font: italic 600 1.5rem/1 var(--fast); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.top nav a { text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--yellow); }
footer { padding: 0 0 3rem; color: var(--muted); }
footer .wrap > div { border-top: 1px solid var(--line); padding-top: 1.75rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-bottom: 1rem; }
footer a { color: var(--muted); }
footer p { max-width: none; font-size: 0.9375rem; }

/* the banner: violet normally, yellow while the demo pointer is slowed, like the program */
.banner { background: var(--violet); transition: background-color 0.12s; }
.banner-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 2.75rem; padding-bottom: 2.25rem; }
.banner-text { flex: 1 1 28rem; }
.banner-text p { margin-top: 1.1rem; font-size: 1.1875rem; max-width: 38rem; }
.banner.page h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
.gauge { display: flex; gap: 0.3rem; margin-top: 1.6rem; padding-left: 0.2rem; }
.gauge span { width: 0.6rem; height: 0.8rem; background: var(--violet-d); transform: skewX(-18deg); }
.gauge span.lit { background: var(--yellow); }
.banner.slow { background: var(--yellow); color: var(--dark); }
.banner.slow .gauge span { background: var(--yellow-d); }
.banner.slow .gauge span.lit { background: var(--dark); }

/* buttons: the slanted one is the thing to press, the rounded one is everything else */
.button { position: relative; z-index: 0; display: inline-block; border: 0; background: none; cursor: pointer; text-decoration: none; text-align: center;
  font: italic 600 1.45rem/1 var(--fast); color: var(--dark); padding: 0.8rem 2.2rem; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform: skewX(-15deg); }
.button:hover { color: var(--dark); }
.button:hover::before { background: #FFE250; }
.button:active::before { background: var(--yellow-d); }
.button.dark, .banner.slow .button { color: var(--text); }
.button.dark::before, .banner.slow .button::before { background: var(--dark); }
.button.dark:hover::before, .banner.slow .button:hover::before { background: #2E1E42; }
.button.plain { font: 600 1rem/1.2 var(--body); color: var(--text); padding: 0.7rem 1.25rem; background: var(--plum); border: 1px solid var(--line); border-radius: 6px; }
.button.plain::before { content: none; }
.button.plain:hover { background: var(--plum-hi); border-color: var(--yellow); }
.actions { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0 0.5rem; }

/* rows: a short name on the left rail, the content to its right, a rule between rows */
.rail { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem 2rem; padding: 2.75rem 0; }
.row + .row .rail { border-top: 1px solid var(--line); }
.rail > h2 { padding-top: 0.1rem; }
.rail .after { margin-top: 1.5rem; }
.rail p + p { margin-top: 1rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* demo */
.range { position: relative; aspect-ratio: 5 / 2; background-color: var(--plum); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; touch-action: none;
  background-image: linear-gradient(rgba(64, 50, 92, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 50, 92, 0.55) 1px, transparent 1px); background-size: 2.5rem 2.5rem; }
.zone { position: absolute; width: 11rem; height: 11rem; margin: -5.5rem 0 0 -5.5rem; border-radius: 50%; border: 2px dashed var(--yellow); background: rgba(255, 214, 10, 0.08); }
.dot { position: absolute; width: 2.25rem; height: 2.25rem; margin: -1.125rem 0 0 -1.125rem; border-radius: 50%; background: var(--example); }
.pointer { position: absolute; width: 1.25rem; height: 1.25rem; margin: -0.625rem 0 0 -0.625rem; pointer-events: none; display: none; }
.pointer::before, .pointer::after { content: ""; position: absolute; background: var(--yellow); }
.pointer::before { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
.pointer::after { top: 50%; left: 0; height: 2px; width: 100%; margin-top: -1px; }
.hint { position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%); white-space: nowrap; font: 600 0.9375rem/1 var(--label);
  color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 0.55rem 0.9rem; pointer-events: none; }
.range:hover .hint { border-color: var(--yellow); }
.range.captured .hint { color: var(--muted); border-color: var(--line); }
.live { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; margin-top: 1.25rem; }
.live b { display: block; font: italic 600 1.9rem/1 var(--fast); }
.live span { font-size: 0.875rem; color: var(--muted); }
.caption { margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; max-width: none; }

/* cards */
.card { background: var(--plum); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; }
.card.yes { border-top: 3px solid var(--violet); }
.card.no { border-top: 3px solid var(--red); }
.card ul { margin: 0.9rem 0 0; padding-left: 1.2rem; }
.card li { margin-bottom: 0.4rem; }
.card dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.5rem; }
.card dt { color: var(--muted); }
.card dd { margin: 0; }
.card p { margin-top: 0.6rem; }
h3.after + p { margin-top: 0.4rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: italic 600 2.75rem/1 var(--fast); color: var(--yellow); margin-bottom: 0.6rem; }
.steps p { margin-top: 0.4rem; color: var(--muted); }

.included { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.included li { margin-bottom: 0.3rem; }
.agree { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.25rem; cursor: pointer; max-width: 40rem; }
.agree input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--yellow); flex: none; }
.plans { max-width: 44rem; }
.plans.single { grid-template-columns: 1fr; max-width: 21rem; }
.plan .amount { font: italic 600 3.5rem/1 var(--fast); margin: 0.6rem 0 0.2rem; }
.plan { display: flex; flex-direction: column; }
.plan .muted { margin-bottom: 1.5rem; }
.plan .button { display: block; width: calc(100% - 1rem); margin: auto 0.5rem 0; } /* buttons line up at the bottom of both cards */
.warn { min-height: 1.6em; margin-top: 0.75rem; color: var(--yellow); }

/* a text that is meant to be copied */
.copy { background: var(--plum); border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1.2rem; max-width: 44rem; margin-top: 0.5rem; user-select: all; }
.faq { display: grid; gap: 0.6rem; max-width: 46rem; }
.faq details { background: var(--plum); border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1.25rem; }
.faq details[open], .faq details:hover { border-color: var(--yellow); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 0.6rem; max-width: none; color: var(--muted); }

/* terms, privacy, refunds */
.legal { padding-top: 2.75rem; padding-bottom: 4rem; }
.legal h2 { margin-top: 2rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { max-width: 46rem; margin-top: 0.5rem; color: #D9D2EA; }
.legal ul { padding-left: 1.2rem; }

@media (max-width: 52rem) {
  .rail, .cols, .steps, .steps.four { grid-template-columns: 1fr; }
  .rail { padding: 2.25rem 0; gap: 1rem; }
  .banner-in { padding-top: 2rem; padding-bottom: 1.75rem; }
  .top { padding: 0.5rem 1rem 0.4rem; gap: 0.1rem 1rem; }
  .top nav { flex-wrap: nowrap; gap: 0.5rem; font-size: 0.8125rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; }
  html { scroll-padding-top: 5.5rem; }
  .range { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .banner { transition: none; } }
