/* ============================================================================
   HDRI Studio — hdristudio.app
   "Precision instrument over a live world." Dark by default; one electric-blue
   action; sensor-cyan reserved for the instrument marks. Type is Apple system
   (SF Pro) paired with SF Mono for every label, spec and price.
   ========================================================================== */

/* ---- reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  color-scheme: light dark;

  /* ground */
  --bg:        #08090b;
  --bg-true:   #000000;
  --panel:     #0e0f12;
  --panel-2:   #131519;
  --panel-hi:  #191c21;

  /* ink */
  --ink:       #ffffff;
  --ink-dim:   rgba(255,255,255,.62);
  --ink-faint: rgba(255,255,255,.55);  /* small labels/specs — clears 4.5:1 on --bg */
  --ink-ghost: rgba(255,255,255,.26);  /* decorative marks only — never text */

  /* roles — accent hue matches the app icon's blue (#3b82f6) */
  --accent:      #3b82f6;   /* accent hue: links, focus ring, accent text (on dark) */
  --accent-btn:  #2563eb;   /* filled buttons/badges: deeper so white label clears 4.5:1 */
  --accent-btn-press: #1d4ed8;
  --accent-hi:   #5c9bff;
  --accent-dim:  rgba(59,130,246,.42);
  --guide:       #32d6c8;   /* instrument marks on the dark specimen: ticks, graticule, chip dot */
  --guide-dim:   rgba(50,214,200,.32);
  --guide-ink:   #32d6c8;   /* eyebrow/label TEXT — theme-aware, darkens on light */
  --success:     #34c759;

  /* surfaces — theme-aware fills so the light theme isn't white-on-white */
  --surface-1:    rgba(255,255,255,.03);
  --surface-1-hi: rgba(255,255,255,.07);
  --card-a:       rgba(255,255,255,.026);
  --card-b:       rgba(255,255,255,.005);
  --field-bg:     #050506;

  /* lines / structure */
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.17);
  --line-3:    rgba(255,255,255,.26);

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  /* metrics */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 44px);
  --radius: 16px;
  --radius-sm: 11px;
  --radius-btn: 13px;

  --shell: color-mix(in srgb, var(--panel) 72%, transparent);
}

/* ---- light theme -------------------------------------------------------- */
/* Grounds/ink/lines/surfaces flip; the accent hue darkens just enough to keep
   links & labels legible on white. --bg-true, --guide and --guide-dim stay dark
   because they only ever sit on the (always-dark) equirect specimen frames.
   Applies on OS light preference (unless a toggle forces dark) and on an
   explicit data-theme="light" toggle — dark stays the default :root above. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #f4f6f9;
    --panel:     #ffffff;
    --panel-2:   #eef1f5;
    --panel-hi:  #e7ebf0;

    --ink:       #0d1117;
    --ink-dim:   rgba(13,17,23,.66);
    --ink-faint: rgba(13,17,23,.64);
    --ink-ghost: rgba(13,17,23,.32);

    --accent:      #2563eb;
    --accent-dim:  rgba(37,99,235,.40);
    --guide-ink:   #0f766e;
    --success:     #12833a;

    --line:   rgba(13,17,23,.10);
    --line-2: rgba(13,17,23,.16);
    --line-3: rgba(13,17,23,.24);

    --surface-1:    rgba(13,17,23,.035);
    --surface-1-hi: rgba(13,17,23,.07);
    --card-a:       rgba(13,17,23,.028);
    --card-b:       rgba(13,17,23,.006);
    --field-bg:     #ffffff;
  }
}
:root[data-theme="light"] {
  --bg:        #f4f6f9;
  --panel:     #ffffff;
  --panel-2:   #eef1f5;
  --panel-hi:  #e7ebf0;

  --ink:       #0d1117;
  --ink-dim:   rgba(13,17,23,.66);
  --ink-faint: rgba(13,17,23,.64);
  --ink-ghost: rgba(13,17,23,.32);

  --accent:      #2563eb;
  --accent-dim:  rgba(37,99,235,.40);
  --guide-ink:   #0f766e;
  --success:     #12833a;

  --line:   rgba(13,17,23,.10);
  --line-2: rgba(13,17,23,.16);
  --line-3: rgba(13,17,23,.24);

  --surface-1:    rgba(13,17,23,.035);
  --surface-1-hi: rgba(13,17,23,.07);
  --card-a:       rgba(13,17,23,.028);
  --card-b:       rgba(13,17,23,.006);
  --field-bg:     #ffffff;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint vertical glow behind the page, top-centre — a "live world" behind chrome */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(59,130,246,.10), transparent 62%),
    radial-gradient(700px 700px at 88% 6%, rgba(50,214,200,.05), transparent 60%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:where(h1,h2,h3,h4) { line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; }

/* ---- a11y --------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent-btn); color: #fff; padding: 10px 16px;
  border-radius: 10px; font: 600 15px/1 var(--sans);
  transition: top .16s ease;
}
.skip-link:focus { top: 12px; }

/* ---- shared layout ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.rail { position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

.eyebrow {
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--guide-ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 16px; height: 1px; background: var(--guide-ink); opacity: .7;
}

.section-head { max-width: 720px; margin-bottom: clamp(22px, 3.5vw, 38px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.85rem); margin: 16px 0 0; }
.section-head p { color: var(--ink-dim); font-size: 1.06rem; margin-top: 14px; max-width: 60ch; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  --_bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 1rem/1 var(--sans);
  padding: 15px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--_bg);
  color: var(--ink);
  transition: transform .12s ease, background-color .16s ease, border-color .16s ease, opacity .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { --_bg: var(--accent-btn); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.14) inset; }
.btn-primary:hover { --_bg: var(--accent-btn-press); }
.btn-ghost { border-color: var(--line-2); background: var(--surface-1); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--surface-1-hi); }
.btn-sm { padding: 10px 15px; font-size: .92rem; border-radius: 10px; }

/* ---- top nav ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
/* theme-aware brand mark: light icon on light, dark icon on dark
   (tracks OS preference and an explicit data-theme toggle, matching the tokens) */
.brand .ico-light { display: inline-block; }
.brand .ico-dark  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .ico-light { display: none; }
  :root:not([data-theme="light"]) .brand .ico-dark  { display: inline-block; }
}
:root[data-theme="dark"] .brand .ico-light { display: none; }
:root[data-theme="dark"] .brand .ico-dark  { display: inline-block; }
.brand b { font-weight: 680; }
.brand span { color: var(--ink-faint); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 30px; }
.nav-links a { color: var(--ink-dim); font-size: .94rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn span.long { display: none; }
}
@media (max-width: 460px) {
  .nav-support { display: none; }  /* Support stays reachable from the footer */
}

/* ---- hero --------------------------------------------------------------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 44px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 5vw, 56px);
}
.hero-copy { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
  margin: 22px 0 0;
  letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .cyan { color: var(--guide-ink); }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  color: var(--ink-dim);
  max-width: 58ch;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero-note { margin-top: 16px; color: var(--ink-faint); font: 500 .86rem/1.5 var(--mono); letter-spacing: .01em; }
.hero-note b { color: var(--ink-dim); font-weight: 600; }

/* ---- specimen (the signature element) ----------------------------------- */
.specimen { position: relative; }
.specimen-frame {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-true);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
}
.specimen-frame img { width: 100%; height: 100%; object-fit: cover; }

/* seamless 360 auto-pan: two identical copies translated across the track */
.pano-track { display: flex; width: 200%; height: 100%; }
.pano-track img { width: 50%; height: 100%; object-fit: cover; }
.is-panning .pano-track { animation: pan 78s linear infinite; will-change: transform; }
@keyframes pan { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .is-panning .pano-track { animation: none; }
}

/* faint equirect graticule — lat/long map lines, only on the hero specimen */
.graticule {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background-image:
    linear-gradient(to right, var(--guide-dim) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(to bottom, var(--guide-dim) 1px, transparent 1px);
  background-size: 12.5% 100%, 100% 100%, 100% 25%;
  background-position: 0 0, 0 50%, 0 0;
  background-repeat: repeat-x, no-repeat, repeat-y;
}
.graticule::after { /* emphasise the horizon line */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(255,255,255,.28); transform: translateY(-.5px);
}

/* viewfinder corner ticks */
.ticks span {
  position: absolute; width: 15px; height: 15px; z-index: 3;
  border: 0 solid var(--guide); opacity: .92;
}
.ticks .tl { top: 11px; left: 11px; border-top-width: 1.5px; border-left-width: 1.5px; }
.ticks .tr { top: 11px; right: 11px; border-top-width: 1.5px; border-right-width: 1.5px; }
.ticks .bl { bottom: 11px; left: 11px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.ticks .br { bottom: 11px; right: 11px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.scene-chip {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4;
  font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding: 7px 12px; border-radius: 999px;
  background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 7px;
}
.scene-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--guide); }

.specimen-spec {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-faint);
}
.specimen-spec b { color: var(--ink-dim); font-weight: 600; }
.specimen-spec .dot { color: var(--guide-ink); opacity: .8; }

/* ---- spec band (SpecMatrix echo) ---------------------------------------- */
.specband { border-block: 1px solid var(--line); background: var(--surface-1); }
.specband .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-cell { padding: 30px 26px 30px 0; border-left: 1px solid var(--line); padding-left: 26px; }
.spec-cell:first-child { border-left: 0; padding-left: 0; }
.spec-cell .k { font: 600 11.5px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--guide-ink); }
.spec-cell .v { font-size: 1.42rem; font-weight: 680; margin-top: 12px; letter-spacing: -0.02em; }
.spec-cell .d { color: var(--ink-faint); font-size: .9rem; margin-top: 7px; }
@media (max-width: 760px) {
  .specband .wrap { grid-template-columns: 1fr 1fr; }
  .spec-cell { padding: 22px 18px; }
  .spec-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec-cell:nth-child(3), .spec-cell:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ---- generic section rhythm --------------------------------------------- */
.band { padding: clamp(44px, 6.5vw, 84px) 0; }
.band-line { border-top: 1px solid var(--line); }

/* ---- how it works (a true sequence → numbered) -------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.step {
  position: relative; padding: 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, var(--card-a), var(--card-b));
}
.step .num {
  font: 600 12px/1 var(--mono); letter-spacing: .1em; color: var(--guide-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.step .num::after { content: ""; width: 34px; height: 1px; background: var(--line-2); }
.step .glyph { margin: 20px 0 18px; color: var(--ink); }
.step .glyph svg { width: 34px; height: 34px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-dim); margin-top: 10px; font-size: .98rem; }
.step .tools { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tool-tag {
  font: 600 11px/1 var(--mono); letter-spacing: .05em; color: var(--ink-dim);
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-1);
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---- gallery ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 24px); }
.gallery .specimen-frame { box-shadow: 0 22px 60px -44px rgba(0,0,0,.9); }
.gallery figure { margin: 0; }
.gallery figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 13px;
}
.gallery figcaption .name { font-weight: 620; font-size: 1rem; }
.gallery figcaption .meta { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--ink-faint); text-transform: uppercase; }
.gallery .specimen-frame img { transition: transform 6s ease-out; }
.gallery .specimen-frame:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .gallery .specimen-frame:hover img { transform: none; } }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

.provenance {
  margin-top: 26px; text-align: center; color: var(--ink-faint);
  font: 500 .9rem/1.5 var(--mono); letter-spacing: .02em;
}
.provenance b { color: var(--ink-dim); font-weight: 600; }

/* ---- measured / honesty split ------------------------------------------- */
.measured-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.measured-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.measured-copy p { color: var(--ink-dim); margin-top: 18px; font-size: 1.05rem; max-width: 52ch; }
.measured-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.measured-copy li { display: flex; gap: 12px; color: var(--ink-dim); font-size: 1rem; align-items: flex-start; }
.measured-copy li svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 2px; }
.measured-copy li b { color: var(--ink); font-weight: 620; }

/* info-panel echo — a real measured readout */
.readout { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.readout-top { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.readout-top .t { font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--guide-ink); }
.readout-top .live { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px/1 var(--mono); color: var(--ink-faint); letter-spacing: .06em; }
.readout-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(52,199,89,.18); }
.readout-row { display: flex; justify-content: space-between; align-items: baseline; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.readout-row:last-child { border-bottom: 0; }
.readout-row .k { color: var(--ink-dim); font-size: .97rem; }
.readout-row .val { font: 680 1.28rem/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.readout-row .val small { color: var(--ink-faint); font-weight: 500; font-size: .8rem; margin-left: 6px; }
.readout-foot { padding: 14px 20px; color: var(--ink-faint); font-size: .82rem; background: var(--surface-1); }
@media (max-width: 820px) { .measured-grid { grid-template-columns: 1fr; } }

/* ---- pricing ------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
}
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(59,130,246,.10), rgba(59,130,246,.02)); }
.plan .badge {
  position: absolute; top: -11px; left: 26px;
  font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: var(--accent-btn); padding: 6px 11px; border-radius: 999px;
}
.plan .tier { font-weight: 660; font-size: 1.16rem; }
.plan .blurb { color: var(--ink-faint); font-size: .9rem; margin-top: 6px; min-height: 2.6em; }
.plan .price { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; }
.plan .price .amt { font: 700 2.15rem/1 var(--mono); letter-spacing: -0.02em; }
.plan .price .per { color: var(--ink-faint); font: 500 .86rem/1.2 var(--mono); }
.plan .price.free .amt { color: var(--success); }
.plan .sub2 { color: var(--ink-faint); font: 500 12px/1.4 var(--mono); margin-top: 8px; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; color: var(--ink-dim); font-size: .94rem; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--guide-ink); flex: none; margin-top: 3px; }
.plan .plan-spacer { flex: 1; }
.pricing-note {
  margin-top: 26px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-1); color: var(--ink-dim); font-size: .95rem; display: flex; gap: 13px; align-items: flex-start;
}
.pricing-note svg { width: 20px; height: 20px; color: var(--guide-ink); flex: none; margin-top: 2px; }
.pricing-note b { color: var(--ink); font-weight: 620; }
@media (max-width: 840px) { .plans { grid-template-columns: 1fr; } .plan .blurb, .plan .sub2 { min-height: 0; } }

/* ---- waitlist ----------------------------------------------------------- */
.waitlist { text-align: center; }
.waitlist-card {
  max-width: 660px; margin-inline: auto;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(59,130,246,.14), transparent 60%),
    var(--panel);
  padding: clamp(34px, 6vw, 56px) clamp(24px, 5vw, 48px);
}
.waitlist-card h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.waitlist-card > p { color: var(--ink-dim); margin-top: 14px; font-size: 1.05rem; }
.waitlist-form { display: flex; gap: 10px; margin: 28px auto 0; max-width: 460px; }
.waitlist-input {
  flex: 1; min-width: 0;
  background: var(--field-bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--radius-btn);
  padding: 15px 16px; font: 500 1rem var(--sans);
}
.waitlist-input::placeholder { color: var(--ink-faint); }
.waitlist-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.waitlist-note { margin-top: 16px; color: var(--ink-faint); font: 500 .84rem/1.5 var(--mono); letter-spacing: .01em; }
.waitlist-note.ok { color: var(--success); }
.waitlist-note.err { color: #ff6b61; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.appstore-soon {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint);
}
.appstore-soon svg { width: 15px; height: 15px; opacity: .8; }
@media (max-width: 520px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { justify-content: center; }
}

/* ---- footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer .brand { margin-bottom: 14px; }
.footer-tag { color: var(--ink-faint); font-size: .92rem; max-width: 34ch; }
.footer h3 { font: 600 11.5px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer a { color: var(--ink-dim); font-size: .94rem; }
.footer a:hover { color: var(--ink); }
.footer-base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--ink-faint); font: 500 12.5px/1.5 var(--mono); letter-spacing: .02em;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer .col-brand { grid-column: 1 / -1; } }

/* ---- scroll reveal (progressive: only hides when JS is present) --------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================================
   Document pages (privacy / terms / support)
   ========================================================================== */
.doc { max-width: 780px; margin-inline: auto; padding: clamp(40px, 7vw, 76px) var(--gutter) 90px; position: relative; z-index: 1; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); font: 500 .9rem var(--mono); letter-spacing: .04em; margin-bottom: 34px; }
.doc-back:hover { color: var(--ink); }
.doc-back svg { width: 15px; height: 15px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: -0.03em; }
.doc .date { color: var(--ink-faint); font: 500 .9rem var(--mono); letter-spacing: .03em; margin-top: 12px; margin-bottom: 8px; }
.doc h2 { font-size: 1.24rem; margin: 40px 0 10px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-dim); font-size: 1.02rem; line-height: 1.7; }
.doc p { margin: 0 0 15px; }
.doc ul { margin: 0 0 15px; padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-dim); }
.doc a:hover { text-decoration-color: var(--accent); }
.doc .lead { color: var(--ink); font-size: 1.1rem; }
.doc-links { margin-top: 26px; display: grid; gap: 11px; list-style: none; padding: 0; }
