/* Clutterscope website. Tokens first: light on bare :root, dark via media query and data-theme. */
:root {
  --paper: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #e9edf4;
  --line: #d9e0eb;
  --ink: #0e1830;
  --ink-2: #2b3650;
  --muted: #56627a;
  --accent: #2f6fe0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 111, 224, 0.1);
  --instrument: #0e1830;
  --instrument-2: #16244a;
  --instrument-line: rgba(255, 255, 255, 0.1);
  --instrument-ink: #e9eef8;
  --instrument-muted: #93a3c2;
  --good: #1f8a52;
  --warn: #b86a00;
  --shadow: 0 1px 2px rgba(14, 24, 48, 0.06), 0 12px 32px -12px rgba(14, 24, 48, 0.22);
  --shot-light: block;
  --shot-dark: none;

  /* Data hues from the app icon's sunburst; used only for data. */
  --d-rose: #e8596b;
  --d-amber: #f0a032;
  --d-green: #4fb06f;
  --d-teal: #2fb4bd;
  --d-violet: #8667e6;
  --d-sky: #3e97ee;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1020;
    --surface: #111a2e;
    --surface-2: #16223a;
    --line: #24324d;
    --ink: #e7ecf6;
    --ink-2: #c3cde0;
    --muted: #93a1ba;
    --accent: #6ea2ff;
    --accent-ink: #081022;
    --accent-soft: rgba(110, 162, 255, 0.14);
    --instrument: #111a2e;
    --instrument-2: #172440;
    --instrument-line: rgba(255, 255, 255, 0.09);
    --good: #53c486;
    --warn: #f0b048;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --shot-light: none;
    --shot-dark: block;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0a1020;
  --surface: #111a2e;
  --surface-2: #16223a;
  --line: #24324d;
  --ink: #e7ecf6;
  --ink-2: #c3cde0;
  --muted: #93a1ba;
  --accent: #6ea2ff;
  --accent-ink: #081022;
  --accent-soft: rgba(110, 162, 255, 0.14);
  --instrument: #111a2e;
  --instrument-2: #172440;
  --instrument-line: rgba(255, 255, 255, 0.09);
  --good: #53c486;
  --warn: #f0b048;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --shot-light: none;
  --shot-dark: block;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); line-height: 1.1; font-weight: 750; letter-spacing: -0.025em; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.eyebrow {
  font: 500 var(--step--1)/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  font: 500 0.78em/1 var(--font-mono);
  padding: 0.2em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font: 600 var(--step-0)/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px var(--accent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-quiet { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-quiet:hover { border-color: var(--muted); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font: 750 1.125rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--ink); }
.site-header .btn { padding: 0.6rem 1rem; font-size: 0.9375rem; }
@media (max-width: 860px) { .site-nav { display: none; } .site-header .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; align-content: start; }
.hero-copy .lede { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-fineprint { font: 400 var(--step--1)/1.5 var(--font-mono); color: var(--muted); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-facts dt { font: 600 1.375rem/1.1 var(--font-mono); color: var(--ink); letter-spacing: -0.02em; }
.hero-facts dd { margin: 0.35rem 0 0; font-size: var(--step--1); color: var(--muted); line-height: 1.4; }

.instrument {
  position: relative;
  margin: 0; /* figure's default 40px side margin would squeeze the panel */
  background: radial-gradient(120% 90% at 70% 10%, var(--instrument-2), var(--instrument) 60%);
  border-radius: var(--radius-l);
  color: var(--instrument-ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.instrument-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--instrument-line);
  font: 500 var(--step--1)/1 var(--font-mono);
  color: var(--instrument-muted);
}
.instrument-bar .dots { display: inline-flex; gap: 6px; }
.instrument-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.instrument-bar .scope-path { color: var(--instrument-ink); }
.instrument-bar .scope-total { margin-left: auto; }
.sunburst-wrap { position: relative; aspect-ratio: 1 / 0.86; }
#sunburst { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.readout {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1.25rem; align-items: baseline;
  padding: 1rem 1.2rem 1.15rem;
  border-top: 1px solid var(--instrument-line);
  background: rgba(0, 0, 0, 0.14);
  min-height: 4.6rem;
}
.readout-path { font: 500 0.9375rem/1.35 var(--font-mono); color: var(--instrument-ink); overflow-wrap: anywhere; }
.readout-size { font: 600 1.25rem/1 var(--font-mono); color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.readout-note { grid-column: 1 / -1; font-size: var(--step--1); color: var(--instrument-muted); }
.readout-note b { color: var(--instrument-ink); font-weight: 600; }
.instrument-hint { position: absolute; left: 1.1rem; top: 3.6rem; font: 400 0.75rem/1.3 var(--font-mono); color: var(--instrument-muted); max-width: 14ch; pointer-events: none; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy .lede { max-width: 58ch; }
}
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: 1fr; }
  .instrument-hint { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.9rem; max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Screenshots in a window frame; the right theme's image shows. */
.shot { position: relative; border-radius: 14px; background: transparent; }
.shot img { width: 100%; height: auto; border-radius: 14px; filter: drop-shadow(0 18px 34px rgba(14, 24, 48, 0.2)); }
.shot .light { display: var(--shot-light); }
.shot .dark { display: var(--shot-dark); }

/* ---------- Eight views ---------- */
.views { display: grid; gap: 1.5rem; }
.view-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 4px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  width: fit-content; max-width: 100%;
}
.view-tabs button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.85rem; border-radius: 9px;
  font: 500 0.9375rem/1 var(--font-body); color: var(--ink-2);
}
.view-tabs button kbd { font-size: 0.7rem; border-bottom-width: 1px; background: transparent; }
.view-tabs button:hover { color: var(--ink); }
.view-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 24, 48, 0.12); }
.view-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.view-caption { display: grid; gap: 0.75rem; position: sticky; top: 96px; }
.view-caption h3 { font-size: var(--step-2); }
.view-caption .best { font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.75rem; }
.view-caption .best b { color: var(--ink-2); font-weight: 600; }
[role="tabpanel"][hidden] { display: none; }
@media (max-width: 860px) {
  .view-stage { grid-template-columns: 1fr; }
  .view-caption { position: static; }
}

/* ---------- Tools ---------- */
.tool-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.tool-row + .tool-row { margin-top: clamp(3rem, 6vw, 5rem); }
.tool-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.tool-row.flip .tool-copy { order: 2; }
.tool-copy { display: grid; gap: 1rem; }
.tool-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.tool-copy li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.6rem; color: var(--ink-2); }
.tool-copy li::before { content: ""; width: 7px; height: 7px; margin-top: 0.62em; border-radius: 50%; background: var(--dot, var(--accent)); justify-self: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font: 500 0.78rem/1 var(--font-mono); padding: 0.4rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink-2); }
@media (max-width: 860px) {
  .tool-row, .tool-row.flip { grid-template-columns: 1fr; }
  .tool-row.flip .tool-copy { order: 0; }
}

.more-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.more-tools article { display: grid; gap: 0.75rem; align-content: start; }
.more-tools .shot img { border-radius: 10px; }
.more-tools p { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 960px) { .more-tools { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Walkthrough ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 6vw, 4.5rem); counter-reset: step; }
.step { display: grid; grid-template-columns: 3.5rem minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.step-num {
  counter-increment: step;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1rem/1 var(--font-mono);
  color: var(--accent); background: var(--accent-soft);
}
.step-num::before { content: counter(step); }
.step-copy { display: grid; gap: 0.75rem; padding-top: 0.35rem; }
.step-copy p { color: var(--ink-2); }
.step-copy .keys { font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; }
.installer img { border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .step { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .step .shot, .step .installer { grid-column: 1 / -1; }
}

/* ---------- Safety ---------- */
.safety { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.promises { display: grid; gap: 1.5rem; }
.promise { display: grid; gap: 0.35rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.promise p { color: var(--ink-2); }
.vault {
  background: var(--instrument); color: var(--instrument-ink);
  border-radius: var(--radius-m); padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow);
}
.vault header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 0.9rem; }
.vault header span { font: 500 var(--step--1)/1.3 var(--font-mono); color: var(--instrument-muted); }
.vault h3 { color: var(--instrument-ink); font-size: var(--step-0); }
.vault ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 1.5rem; font: 400 0.8125rem/1.9 var(--font-mono); color: var(--instrument-ink); }
.vault li { display: flex; gap: 0.55rem; align-items: baseline; min-width: 0; }
.vault li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 1px; background: var(--instrument-muted); transform: translateY(-0.15em); }
.vault li.wide { grid-column: 1 / -1; }
.vault footer { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--instrument-line); font-size: var(--step--1); color: var(--instrument-muted); }
@media (max-width: 960px) { .safety { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .vault ul { grid-template-columns: 1fr; } }

/* ---------- Specs ---------- */
.specs-wrap { overflow-x: auto; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.specs th, .specs td { text-align: left; padding: 0.9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 32%; font: 500 var(--step--1)/1.5 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-right: 1.5rem; }
.specs td { color: var(--ink); }
.specs td .muted { display: block; font-size: var(--step--1); }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.1rem 0; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--font-mono); color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Buy ---------- */
.buy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.buy-copy { display: grid; gap: 1.75rem; align-content: start; }
.buy-copy .section-head { margin-bottom: 0; }
.price { display: flex; align-items: flex-end; gap: 1rem; }
.price-amount { font: 700 clamp(3.25rem, 2.4rem + 3vw, 4.5rem)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }
.price-note { font: 400 var(--step--1)/1.35 var(--font-mono); color: var(--muted); padding-bottom: 0.35rem; }
.terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; max-width: 46ch; }
.terms li { position: relative; padding-left: 1.7rem; color: var(--ink-2); }
.terms li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.6rem; height: 0.32rem; border: solid var(--good); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.terms b { color: var(--ink); font-weight: 600; }

.checkout {
  display: grid; gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-l);
  background: var(--instrument); color: var(--instrument-ink);
  box-shadow: var(--shadow);
}
/* The licence key as a ticket stub: the one thing only this page has. */
.ticket {
  position: relative;
  border-radius: var(--radius-m);
  background: var(--instrument-2);
  border: 1px solid var(--instrument-line);
  padding: 1rem 1.2rem 1.1rem;
  display: grid; gap: 0.7rem;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: calc(2.8rem - 7px); width: 14px; height: 14px; border-radius: 50%;
  background: var(--instrument); border: 1px solid var(--instrument-line);
}
.ticket::before { left: -8px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -8px; clip-path: inset(0 50% 0 0); }
.ticket-head {
  display: flex; justify-content: space-between; gap: 1rem;
  font: 500 var(--step--1)/1.3 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--instrument-muted);
  padding-bottom: 0.75rem; border-bottom: 1px dashed var(--instrument-line);
}
.ticket-key {
  font-size: clamp(1rem, 0.7rem + 1.3vw, 1.4rem); font-weight: 600; letter-spacing: 0.06em;
  color: var(--instrument-muted); overflow-wrap: anywhere; user-select: all;
}
.ticket-key.issued { color: #ffffff; }
.ticket-foot { font-size: var(--step--1); color: var(--instrument-muted); }

.checkout-form { display: grid; gap: 0.6rem; }
.checkout-form label { font-size: 0.9375rem; font-weight: 600; }
.checkout input, .recover input {
  width: 100%; min-width: 0;
  font: 400 var(--step-0)/1.2 var(--font-body);
  padding: 0.8rem 1rem; border-radius: var(--radius-s);
}
.checkout input {
  color: var(--instrument-ink); background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.checkout input::placeholder { color: var(--instrument-muted); }
.checkout input:focus-visible, .recover input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.checkout-form .btn { justify-content: center; margin-top: 0.4rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.65; cursor: progress; transform: none; }
.form-error { font-size: 0.9375rem; color: #ffb3a8; }
.checkout .fineprint { font-size: var(--step--1); color: var(--instrument-muted); }
.checkout-done { display: grid; gap: 0.75rem; }
.done-title { font: 700 var(--step-1)/1.2 var(--font-display); color: #ffffff; }
.done-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.btn-ghost { color: var(--instrument-ink); border-color: rgba(255, 255, 255, 0.22); background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); }

.buy-side { display: grid; gap: 2rem; }
.recover {
  display: grid; gap: 0.9rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.recover h3 { font-size: var(--step-1); }
.recover p { color: var(--ink-2); margin-top: 0.25rem; }
.recover-row { display: flex; gap: 0.6rem; }
.recover input { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.recover .btn { flex: none; }
.recover-status { font-size: 0.9375rem; color: var(--muted); min-height: 1.4em; }
.recover-status.error { color: var(--warn); }
@media (max-width: 960px) { .buy { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .recover-row { flex-direction: column; }
  .recover .btn { justify-content: center; }
  .ticket-key { font-size: 0.95rem; letter-spacing: 0.02em; }
}

/* ---------- Download ---------- */
.download { text-align: left; }
.download-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.download-card img { width: 88px; height: 88px; }
.download-card h2 { font-size: var(--step-3); }
.download-card p { color: var(--ink-2); margin-top: 0.4rem; }
.download-card .meta { font: 400 var(--step--1)/1.5 var(--font-mono); color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 760px) { .download-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.site-footer a { color: var(--muted); }
