/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DepthGaze · Components
   All page styles. Always consume tokens via var(--*); never hardcode.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

html {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: var(--type-body-md);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

/* ─── Utility ─── */
.meta { font: var(--weight-medium) var(--type-meta-md)/1.2 var(--font-mono); letter-spacing: var(--track-meta); text-transform: uppercase; }
.meta-sm { font: var(--weight-medium) var(--type-meta-sm)/1.2 var(--font-mono); letter-spacing: var(--track-meta-lg); text-transform: uppercase; }
.amber { color: var(--color-brand-hi); }

/* Max-width includes the gutters so content is still 1320px wide on
   large screens — the padding carves the gutter out of the extra. */
.container { max-width: calc(1320px + 2 * var(--gutter-page)); margin: 0 auto; padding: 0 var(--gutter-page); }
@media (max-width: 1024px) { .container { padding: 0 var(--gutter-page-tablet); } }
@media (max-width: 600px)  { .container { padding: 0 var(--gutter-page-mobile); } }

/* Background grid (subtle) */
.bg-grid {
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.03) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
}

/* ─── CTA buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: var(--weight-semi) var(--type-body-md)/1 var(--font-sans);
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform var(--ease-standard) var(--duration-base), box-shadow var(--ease-standard) var(--duration-base);
}
.btn-primary { background: var(--color-brand); color: var(--color-brand-on); box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(216, 154, 46, 0.5); }
.btn-secondary { background: rgba(255, 255, 255, 0.06); border: var(--stroke-rule) solid var(--color-rule-dark-strong); color: var(--color-fg); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.10); }

.btn-sm { padding: var(--space-3) var(--space-5); font-size: var(--type-body-sm); }

/* ─── Header / nav ─── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(4, 18, 28, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: var(--stroke-hairline) solid var(--color-rule-dark);
}
.site-header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* top/bottom only — a `padding: X 0` shorthand here would zero out the
     .container horizontal gutter (same class specificity, later in file).
     That exact bug shipped once: flush-to-edge text on phones. */
  padding-top: var(--space-5); padding-bottom: var(--space-5);
}
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand-name { font: var(--weight-bold) 17px/1 var(--font-sans); letter-spacing: var(--track-tight); }

.site-nav {
  display: flex; gap: var(--space-9);
  font: var(--weight-medium) var(--type-body-sm)/1 var(--font-sans);
  color: var(--color-fg-muted);
  justify-self: center;
}
.site-nav a { text-decoration: none; transition: color var(--ease-standard) var(--duration-base); }
.site-nav a:hover { color: var(--color-fg); }

.header-cta { justify-self: end; }
/* Two-label pattern: full label on desktop, shorter on narrow viewports
   so the brand + CTA + hamburger all fit on a 360px phone width. */
.header-cta .cta-short { display: none; }
@media (max-width: 600px) {
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
}

/* Hamburger toggle — hidden on desktop, surfaced via media query below */
.site-nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: var(--space-3);
  cursor: pointer;
  color: var(--color-fg);
  border-radius: 6px;
  transition: background var(--ease-standard) var(--duration-base);
}
.site-nav-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.site-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--ease-standard) var(--duration-base),
              opacity var(--ease-standard) var(--duration-base);
}
/* Animate to a close (X) icon when nav is open */
.site-nav.is-open ~ .site-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open ~ .site-nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open ~ .site-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  /* Tablet portrait + phone: nav links hide by default, hamburger shows */
  .site-nav { display: none; }
  .site-nav-toggle { display: block; }
  /* Header re-flows: brand left, CTA + hamburger right */
  .site-header-inner { grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--space-3); }
  .site-nav { grid-column: 1 / -1; } /* span full width when shown */

  /* When toggled open: nav appears as a full-width vertical panel below the header */
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4) 0 var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-3);
  }
  .site-nav.is-open a {
    padding: var(--space-3) 0;
    font-size: var(--type-body-md);
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding-top: var(--space-15); padding-bottom: var(--space-13);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-10);
  align-items: center;
}
.hero-left { max-width: 520px; }
.hero-right { max-width: 440px; text-align: right; }

.hero-eyebrow { color: var(--color-fg-faint); margin-bottom: var(--space-6); }
.hero-h1 {
  font: var(--weight-regular) var(--type-display-hero)/var(--leading-display) var(--font-display);
  letter-spacing: var(--track-display);
  margin: 0;
  text-shadow: var(--shadow-text);
}
.hero-h1 em { font-style: italic; color: var(--color-brand-hi); }

/* Hero visual — the Liquid Eye, animated. All motion sits behind
   prefers-reduced-motion: no-preference; reduced-motion users get the
   original static eye. Transform origins are in viewBox units (the
   default transform-box for SVG children is view-box). */
.hero-eye {
  position: relative;
  width: 480px; height: 480px;
  filter: drop-shadow(var(--shadow-eye));
}
.hero-eye svg { width: 100%; height: 100%; overflow: visible; }
/* Travelling glints only exist as animation; hide when motion is off
   so they don't sit as odd static bright dashes on the arcs. */
.eye-ripple { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-eye { animation: eye-float 7s ease-in-out infinite; }
  .hero-eye svg { animation: eye-enter 900ms var(--ease-standard) both; }
  .eye-glow { transform-origin: 60px 60px; animation: eye-glow-pulse 5s ease-in-out infinite; }
  .eye-drift { animation: eye-scan 11s ease-in-out infinite; }
  .eye-pupil { transform-origin: 60px 60px; animation: eye-dilate 11s ease-in-out infinite; }
  .eye-lid-top { animation: eye-blink-top 9s ease-in-out infinite; }
  .eye-lid-bottom { animation: eye-blink-bottom 9s ease-in-out infinite; }
  .eye-ripple {
    display: block;
    stroke-dasharray: 14 86;
    animation: eye-ripple-run 7s linear infinite;
  }
  .eye-ripple-2 { animation-duration: 9s; animation-delay: -4s; }
}

@keyframes eye-enter {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes eye-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes eye-glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
/* Scan: look around with held pauses, like reading a stretch of water */
@keyframes eye-scan {
  0%, 14%   { transform: translate(0, 0); }
  22%, 34%  { transform: translate(-3.5px, 1px); }
  42%, 56%  { transform: translate(2.5px, -1.2px); }
  64%, 76%  { transform: translate(-1.5px, -0.6px); }
  86%, 100% { transform: translate(0, 0); }
}
@keyframes eye-dilate {
  0%, 18%, 100% { transform: scale(1); }
  30%, 44%      { transform: scale(1.16); }
  58%, 70%      { transform: scale(0.96); }
}
/* One quick blink per 9s cycle — lids sweep in and straight back out */
@keyframes eye-blink-top {
  0%, 90.5%, 94.5%, 100% { transform: translateY(0); }
  92.5%                  { transform: translateY(13px); }
}
@keyframes eye-blink-bottom {
  0%, 90.5%, 94.5%, 100% { transform: translateY(0); }
  92.5%                  { transform: translateY(-13px); }
}
@keyframes eye-ripple-run {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -100; }
}

.hero-lede {
  font: var(--weight-regular) var(--type-body-lg)/var(--leading-loose) var(--font-sans);
  color: var(--color-fg-muted);
  margin: 0 0 var(--space-7);
  text-shadow: var(--shadow-text-sm);
}
.hero-ctas { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; justify-content: flex-end; }

.hero-disclaimer {
  margin-top: var(--space-13);
  padding-top: var(--space-4);
  border-top: var(--stroke-hairline) solid var(--color-rule-dark);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--color-fg-faint);
  font: var(--weight-medium) var(--type-meta-md)/1.4 var(--font-mono);
  letter-spacing: var(--track-meta-lg); text-transform: uppercase;
  flex-wrap: wrap; gap: var(--space-3);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-9); text-align: left; }
  .hero-right { text-align: left; max-width: none; }
  .hero-ctas { justify-content: flex-start; }
  .hero-h1 { font-size: var(--type-display-1); }
  .hero-eye { width: 360px; height: 360px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero { padding-top: var(--space-9); padding-bottom: var(--space-12); }
  .hero-h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-eye { width: 260px; height: 260px; }
}

/* ─── Section heads ─── */
.section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); position: relative; }
.section + .section { border-top: var(--stroke-hairline) solid var(--color-rule-dark); }

.section-head { margin-bottom: var(--space-10); display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-9); flex-wrap: wrap; }
.section-eyebrow { color: var(--color-fg-faint); }
.section-eyebrow strong { color: var(--color-brand-hi); font-weight: var(--weight-medium); }
.section-h2 { font: var(--weight-regular) var(--type-display-2)/var(--leading-snug) var(--font-display); letter-spacing: var(--track-display); margin: var(--space-4) 0 0; max-width: 720px; }
.section-sub { font-size: var(--type-body-md); color: var(--color-fg-muted); max-width: 360px; text-align: right; line-height: var(--leading-loose); }

@media (max-width: 700px) {
  .section { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .section-h2 { font-size: var(--type-display-3); }
  .section-sub { text-align: left; max-width: 100%; }
}

/* ─── What it does (3 cards) ─── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
}
.card {
  background: rgba(244, 239, 230, 0.04);
  border: var(--stroke-hairline) solid var(--color-rule-dark);
  border-radius: var(--radius-card);
  padding: var(--space-7);
  transition: background var(--ease-standard) var(--duration-base), border-color var(--ease-standard) var(--duration-base);
}
.card:hover { background: rgba(244, 239, 230, 0.07); border-color: var(--color-rule-dark-strong); }
.card-num { display: block; color: var(--color-brand-hi); margin-bottom: var(--space-4); }
.card-title { font: var(--weight-regular) var(--type-display-4)/1.1 var(--font-display); letter-spacing: var(--track-display); margin: 0 0 var(--space-3); }
.card-body { font-size: var(--type-body-md); color: var(--color-fg-muted); margin: 0; line-height: var(--leading-loose); }

@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ─── How it works (3 steps) ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-9);
  position: relative;
}
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: var(--stroke-hairline) solid var(--color-brand-hi);
  color: var(--color-brand-hi);
  font: var(--weight-medium) var(--type-body-md)/1 var(--font-mono);
  margin-bottom: var(--space-5);
}
.step-title { font: var(--weight-semi) var(--type-body-lg)/1.2 var(--font-sans); margin: 0 0 var(--space-3); }
.step-body { font-size: var(--type-body-md); color: var(--color-fg-muted); line-height: var(--leading-loose); margin: 0; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: var(--space-7); } }

/* ─── Mode gallery ─── */
.mode-tabs {
  display: flex; flex-wrap: wrap; gap: var(--space-1);
  padding: var(--space-2);
  background: rgba(244, 239, 230, 0.04);
  border: var(--stroke-hairline) solid var(--color-rule-dark);
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: var(--space-8);
}
.mode-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--color-fg-muted);
  font: var(--weight-medium) var(--type-body-xs)/1 var(--font-sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background var(--ease-standard) var(--duration-base), color var(--ease-standard) var(--duration-base);
}
.mode-btn:hover { color: var(--color-fg); }
.mode-btn[aria-pressed="true"] { background: var(--color-brand); color: var(--color-brand-on); font-weight: var(--weight-semi); }
.mode-btn .num { font: var(--weight-medium) var(--type-meta-sm)/1 var(--font-mono); opacity: 0.6; }
.mode-btn[aria-pressed="true"] .num { opacity: 1; }

/* When the strip wraps to multiple rows (narrow viewports), a pill
   radius half the multi-row height curves the corners so deeply that
   the corner buttons sit outside the border. Use a panel radius and
   full width instead. */
@media (max-width: 700px) {
  .mode-tabs,
  .filter-chips {
    border-radius: var(--radius-panel);
    width: 100%;
    justify-content: center;
    gap: var(--space-2);
  }
}

/* Stage stacks above side panel at every breakpoint. Stage and panel are
   both centred to a comfortable reading width — a portrait image at full
   1300px container width would be 1700px+ tall and dominate the viewport.
   540px max keeps the stage hero-sized but not overwhelming. */
.mode-stage-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-9);
}
.mode-stage-wrap > .stage-figure,
.mode-stage-wrap > .mode-side {
  width: 100%;
  max-width: 540px;
}

.stage-figure { margin: 0; }

/* Phone-style frame around the capture: bezel + rounded screen, with a
   faint amber under-glow tying it to the brand. The captures are exactly
   3:4 (3000×4000, phone-held-vertical — landscape would rotate the baked
   in-app labels), so cover on a 3:4 img box means no crop in practice. */
.stage {
  position: relative;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(180deg, #0B2C44, #061826);
  border: var(--stroke-hairline) solid var(--color-rule-dark-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 90px rgba(216, 154, 46, 0.10);
}
.stage img {
  width: 100%;
  /* height:auto beats the img's height="1440" presentational hint —
     without it aspect-ratio is ignored and the image renders full-size. */
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 26px;
  background: #000;
  display: block;
  transition: opacity var(--ease-standard) var(--duration-base);
}
.stage-caption { text-align: center; color: var(--color-fg-faint); margin-top: var(--space-4); }
/* Brief fade during mode swap so the new image arrives gracefully
   instead of snapping in. .is-swapping is added then removed across
   two rAF frames in mode-gallery.js. */
.stage.is-swapping img { opacity: 0.55; }

.mode-side h3 { font: var(--weight-regular) var(--type-display-4)/1.05 var(--font-display); letter-spacing: -0.015em; margin: var(--space-3) 0 var(--space-4); }
.mode-side p  { font-size: var(--type-body-md); color: var(--color-fg-muted); margin: 0 0 var(--space-6); line-height: var(--leading-loose); }

.telem { border-top: var(--stroke-hairline) solid var(--color-rule-dark); margin-top: var(--space-2); }
.telem-row { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-4) 0; border-bottom: var(--stroke-hairline) solid var(--color-rule-dark); gap: var(--space-3); }
.telem-label { font: var(--weight-medium) var(--type-meta-sm)/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-fg-faint); }
.telem-val { font: var(--weight-medium) var(--type-body-xs)/1.3 var(--font-sans); color: var(--color-fg); text-align: right; }
.telem-val.brand { color: var(--color-brand-hi); }

.technique { margin-top: var(--space-6); padding: var(--space-4); background: rgba(244, 239, 230, 0.04); border: var(--stroke-hairline) solid var(--color-rule-dark); border-radius: var(--radius-card); }
.technique .meta-sm { color: var(--color-fg-faint); margin-bottom: var(--space-3); display: block; }
.technique-body { font-size: var(--type-body-sm); line-height: var(--leading-body); color: var(--color-fg-muted); }

.gallery-foot { margin-top: var(--space-7); padding-top: var(--space-5); border-top: var(--stroke-hairline) solid var(--color-rule-dark); display: flex; justify-content: space-between; align-items: center; font-size: var(--type-body-xs); color: var(--color-fg-faint); flex-wrap: wrap; gap: var(--space-3); }
.gallery-foot em { color: var(--color-brand-hi); font-style: normal; font-weight: var(--weight-medium); }

/* ─── Pro features (paper section) ─── */
.section-paper { background: var(--color-bg-paper); color: var(--color-fg-paper); }
.section-paper .section-eyebrow { color: var(--color-fg-muted-paper); }
.section-paper .section-eyebrow strong { color: var(--dg-amber-warm); }
.section-paper .section-sub { color: var(--color-fg-muted-paper); }
.section-paper .card { background: var(--color-bg-quiet); border-color: var(--color-rule-strong); }
.section-paper .card:hover { background: rgba(232, 223, 207, 0.7); }
.section-paper .card-num { color: var(--dg-amber-warm); }
.section-paper .card-body { color: var(--color-fg-muted-paper); }

.cards-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
}
@media (max-width: 1024px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cards-4 { grid-template-columns: 1fr; } }

/* ─── Audience (who it's for) ─── */
.audience {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
}
@media (max-width: 1024px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .audience { grid-template-columns: 1fr; } }
.audience-card { background: rgba(244, 239, 230, 0.03); border: var(--stroke-hairline) solid var(--color-rule-dark); border-radius: var(--radius-card); padding: var(--space-7); }
.audience-icon { width: 32px; height: 32px; margin-bottom: var(--space-4); color: var(--color-brand-hi); }
.audience-title { font: var(--weight-semi) var(--type-body-lg)/1.2 var(--font-sans); margin: 0 0 var(--space-3); }
.audience-body { font-size: var(--type-body-sm); color: var(--color-fg-muted); margin: 0; line-height: var(--leading-loose); }

/* ─── FAQ ─── */
.faq { max-width: 820px; }
.faq-item { border-bottom: var(--stroke-hairline) solid var(--color-rule-dark); }
.faq-item:first-of-type { border-top: var(--stroke-hairline) solid var(--color-rule-dark); }
.faq-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-6) 0;
  font: var(--weight-medium) var(--type-body-lg)/1.3 var(--font-sans);
  cursor: pointer;
  list-style: none;
  gap: var(--space-5);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font: var(--weight-regular) 28px/1 var(--font-display);
  color: var(--color-brand-hi);
  transition: transform var(--ease-standard) var(--duration-base);
  flex-shrink: 0;
}
details[open] .faq-summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 0 var(--space-6); color: var(--color-fg-muted); font-size: var(--type-body-md); line-height: var(--leading-loose); max-width: 680px; }

/* ─── Waitlist form ─── */
.waitlist {
  background: linear-gradient(180deg, rgba(216, 154, 46, 0.04), rgba(216, 154, 46, 0));
  border-top: var(--stroke-hairline) solid var(--color-rule-dark);
}
.waitlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
@media (max-width: 900px) { .waitlist-grid { grid-template-columns: 1fr; gap: var(--space-9); } }

.waitlist h2 { font: var(--weight-regular) var(--type-display-3)/var(--leading-snug) var(--font-display); letter-spacing: var(--track-display); margin: 0 0 var(--space-5); }
.waitlist h2 em { font-style: italic; color: var(--color-brand-hi); }
.waitlist p  { font-size: var(--type-body-md); color: var(--color-fg-muted); line-height: var(--leading-loose); margin: 0 0 var(--space-3); max-width: 480px; }

.form-row { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.form-row label { font: var(--weight-medium) var(--type-meta-sm)/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-fg-faint); }
.form-row input,
.form-row select {
  font: var(--weight-medium) var(--type-body-md)/1 var(--font-sans);
  background: rgba(244, 239, 230, 0.04);
  border: var(--stroke-hairline) solid var(--color-rule-dark-strong);
  border-radius: var(--radius-input);
  padding: var(--space-4); color: var(--color-fg);
  width: 100%;
  transition: border-color var(--ease-standard) var(--duration-base), background var(--ease-standard) var(--duration-base);
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-brand);
  background: rgba(244, 239, 230, 0.07);
}
/* .form-label — sibling of the segmented control, takes the place of
   the <label for=...> we'd use for an <input>/<select>. Same visual
   weight as label{}. */
.form-row .form-label {
  font: var(--weight-medium) var(--type-meta-sm)/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-fg-faint);
}

/* Platform pill segmented control. Three radio inputs + labels styled
   as a single rounded toolbar. Replaces the native <select> we used
   to have for platform choice — Chrome on Windows 11 ignores option
   styling so the open dropdown rendered white-on-white. Pills are
   fully website-controlled, work identically across browsers, and
   give visible-at-rest options (no extra click to see choices). */
.platform-pick {
  display: flex; gap: 0;
  padding: var(--space-1);
  background: rgba(244, 239, 230, 0.04);
  border: var(--stroke-hairline) solid var(--color-rule-dark-strong);
  border-radius: var(--radius-pill);
  width: fit-content;
}
/* Visually hide the radios but keep them keyboard-focusable. */
.platform-pick input[type="radio"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.platform-pick label {
  display: inline-flex; align-items: center;
  padding: var(--space-3) var(--space-5);
  font: var(--weight-medium) var(--type-body-sm)/1 var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--color-fg-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--ease-standard) var(--duration-base), color var(--ease-standard) var(--duration-base);
  user-select: none;
  -webkit-user-select: none;
}
.platform-pick label:hover { color: var(--color-fg); }
.platform-pick input[type="radio"]:checked + label {
  background: var(--color-brand);
  color: var(--color-brand-on);
  font-weight: var(--weight-semi);
}
.platform-pick input[type="radio"]:focus-visible + label {
  box-shadow: 0 0 0 2px var(--color-brand), 0 0 0 4px rgba(216, 154, 46, 0.3);
}
.form-row input:invalid:not(:placeholder-shown) { border-color: rgba(220, 80, 80, 0.7); }
.form-error { display: block; min-height: 1em; margin-top: var(--space-2); font-size: var(--type-body-xs); color: rgba(220, 130, 130, 0.95); }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 500px) { .form-cols { grid-template-columns: 1fr; } }
.form-submit { margin-top: var(--space-4); width: 100%; justify-content: center; }
.form-foot { margin-top: var(--space-4); font-size: var(--type-body-xs); color: var(--color-fg-faint); line-height: var(--leading-loose); }

/* ─── Footer ─── */
.site-footer {
  border-top: var(--stroke-hairline) solid var(--color-rule-dark);
  padding: var(--space-12) 0 var(--space-9);
  color: var(--color-fg-faint);
}
.site-footer-top { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: var(--space-9); margin-bottom: var(--space-9); }
.site-footer-cols { display: flex; gap: var(--space-12); flex-wrap: wrap; }
.site-footer-col h2 { font: var(--weight-medium) var(--type-meta-md)/1 var(--font-mono); letter-spacing: var(--track-meta); text-transform: uppercase; color: var(--color-fg-muted); margin: 0 0 var(--space-4); }
.site-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer-col a { color: var(--color-fg-muted); text-decoration: none; font-size: var(--type-body-sm); transition: color var(--ease-standard) var(--duration-base); }
.site-footer-col a:hover { color: var(--color-fg); }

.site-footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  padding-top: var(--space-7);
  border-top: var(--stroke-hairline) solid var(--color-rule-dark);
  font: var(--weight-medium) var(--type-meta-sm)/1.4 var(--font-mono);
  letter-spacing: var(--track-meta-lg); text-transform: uppercase;
}

/* ─── Standalone content pages (guide, terms, privacy) ─── */
.content-page { padding: var(--space-12) var(--gutter-page-mobile); max-width: 720px; margin: 0 auto; }
.content-page h1 { font: var(--weight-regular) var(--type-display-2)/var(--leading-snug) var(--font-display); letter-spacing: var(--track-display); margin: 0 0 var(--space-7); }
.content-page h2 { font: var(--weight-regular) var(--type-display-4)/1.2 var(--font-display); letter-spacing: -0.015em; margin: var(--space-9) 0 var(--space-4); }
.content-page h3 { font: var(--weight-semi) var(--type-body-lg)/1.3 var(--font-sans); margin: var(--space-7) 0 var(--space-3); }
.content-page p { font-size: var(--type-body-md); color: var(--color-fg-muted); line-height: var(--leading-loose); margin: 0 0 var(--space-4); }
.content-page ul, .content-page ol { color: var(--color-fg-muted); padding-left: var(--space-6); margin: 0 0 var(--space-5); line-height: var(--leading-loose); }
.content-page li { margin-bottom: var(--space-2); }
.content-page strong { color: var(--color-fg); font-weight: var(--weight-semi); }
.content-page a { color: var(--color-brand-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-page hr { border: 0; border-top: var(--stroke-hairline) solid var(--color-rule-dark); margin: var(--space-8) 0; }
.content-page .meta-info { color: var(--color-fg-faint); font-size: var(--type-body-sm); margin-bottom: var(--space-9); }

/* ─── Gallery page ─── */
.gallery-status { color: var(--color-fg-muted); font-size: var(--type-body-md); padding: var(--space-9) 0; text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-tile {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--radius-card);
  background: rgba(244, 239, 230, 0.04);
  /* content-visibility:auto skips paint/layout for off-screen tiles
     entirely. Massive main-thread cost reduction on the 75-tile grid.
     contain-intrinsic-size hints the height browsers should reserve
     before the tile renders, so scrollbar height stays accurate. The
     value is approximate (column width × 4/3 aspect) and works across
     the responsive 4/3/2/1-col breakpoints because browsers re-measure
     once the tile actually paints. */
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
  border: var(--stroke-hairline) solid var(--color-rule-dark);
  cursor: pointer;
  transition: transform var(--ease-standard) var(--duration-base), box-shadow var(--ease-standard) var(--duration-base), border-color var(--ease-standard) var(--duration-base);
}
.gallery-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); border-color: var(--color-rule-dark-strong); }
.gallery-tile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-brand); }
.gallery-tile img,
.gallery-tile video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.gallery-tile-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(216, 154, 46, 0.92);
  color: var(--dg-deeper);
  border-radius: 50%;
  font-size: 22px;
  font-weight: var(--weight-bold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0;
  background: rgba(4, 18, 28, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: none;
  z-index: var(--z-modal);
  padding: var(--space-12) var(--space-7);
}
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lightbox-stage {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-content { max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-content img,
.lightbox-content video {
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute; top: var(--space-5); right: var(--space-5);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244, 239, 230, 0.10); color: var(--color-fg);
  border-radius: 50%;
  font-size: 28px; line-height: 1;
  transition: background var(--ease-standard) var(--duration-base);
}
.lightbox-close:hover { background: rgba(244, 239, 230, 0.18); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244, 239, 230, 0.10); color: var(--color-fg);
  border-radius: 50%;
  font-size: 32px; line-height: 1;
  transition: background var(--ease-standard) var(--duration-base);
}
.lightbox-nav:hover { background: rgba(244, 239, 230, 0.18); }
.lightbox-nav.prev { left: var(--space-5); }
.lightbox-nav.next { right: var(--space-5); }
.lightbox-caption {
  position: absolute; bottom: var(--space-12); left: 50%;
  transform: translateX(-50%);
  max-width: 720px;
  font-size: var(--type-body-sm);
  color: var(--color-fg-muted);
  text-align: center;
  padding: 0 var(--space-5);
}
.lightbox-counter {
  position: absolute; bottom: var(--space-7); left: 50%;
  transform: translateX(-50%);
  font: var(--weight-medium) var(--type-meta-sm)/1 var(--font-mono);
  letter-spacing: var(--track-meta-lg); text-transform: uppercase;
  color: var(--color-fg-faint);
}
@media (max-width: 700px) {
  .lightbox { padding: var(--space-9) var(--space-3); }
  .lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
  .lightbox-nav.prev { left: var(--space-3); }
  .lightbox-nav.next { right: var(--space-3); }
}

/* ─── Scroll reveal ───
   Hiding styles apply only under html.js-reveal (set by reveal.js), so
   content is never invisible without JS. Reduced-motion users get no
   movement and no hiding at all. */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--duration-slow) var(--ease-standard),
                transform var(--duration-slow) var(--ease-standard);
  }
  html.js-reveal .reveal.is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* ─── Gallery filter chips ─── */
.filter-chips {
  display: flex; flex-wrap: wrap; gap: var(--space-1);
  padding: var(--space-2);
  background: rgba(244, 239, 230, 0.04);
  border: var(--stroke-hairline) solid var(--color-rule-dark);
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: var(--space-7);
}
.filter-chip {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  color: var(--color-fg-muted);
  font: var(--weight-medium) var(--type-body-xs)/1 var(--font-sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background var(--ease-standard) var(--duration-base), color var(--ease-standard) var(--duration-base);
}
.filter-chip:hover { color: var(--color-fg); }
.filter-chip[aria-pressed="true"] { background: var(--color-brand); color: var(--color-brand-on); font-weight: var(--weight-semi); }
.gallery-tile.is-filtered-out { display: none; }

/* ─── Misc utilities ─── */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { display: none; }

/* ─── Thanks page (form-submit redirect target) ─── */
.thanks-eyebrow { color: var(--color-fg-faint); margin-bottom: var(--space-5); }
.thanks-back { margin-top: var(--space-9); }

/* ─── Skip link (a11y) ─── */
.skip-link {
  position: absolute; top: -100px; left: var(--space-3);
  background: var(--color-brand); color: var(--color-brand-on);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill);
  text-decoration: none; font-weight: var(--weight-semi);
  transition: top var(--ease-standard) var(--duration-base);
  z-index: var(--z-modal);
}
.skip-link:focus { top: var(--space-3); }

/* ━━━━━━━━━━━━ Store badges + Download section ━━━━━━━━━━━━ */
.store-badge {
  display: inline-flex;
  border-radius: 7px;
  transition: transform var(--ease-standard) var(--duration-base), opacity var(--ease-standard) var(--duration-base);
}
.store-badge:hover { transform: translateY(-2px); opacity: 0.9; }
.store-badge:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 7px; }
.store-badge-svg { height: 46px; width: auto; display: block; }
/* Google's official badge has built-in clearspace, so render it a touch
   taller than the Apple badge so the visible buttons match in height. */
.store-badge-img { height: 54px; width: auto; display: block; }
/* Apple's official badge has minimal clearspace — render it shorter so the
   visible pill matches Google's. Defined after so it wins the height. */
.store-badge-apple { height: 46px; }
.hero-ctas, .store-badges { align-items: center; }

/* Hero: badges sit in .hero-ctas (right-aligned on desktop); the modes
   link is a quiet text CTA beneath them. */
.hero-modes-link {
  display: block;
  margin-top: var(--space-4);
  text-align: right;
  font: var(--weight-medium) var(--type-body-sm)/1 var(--font-sans);
  color: var(--color-fg-muted);
  text-decoration: none;
}
.hero-modes-link:hover { color: var(--color-brand-hi); }

/* Discrete launch-pricing note under the hero badges — surfaces the
   urgency at the primary conversion point without shouting. Number-free
   per the ACL-locked pricing rules. */
.hero-price-note {
  margin: var(--space-4) 0 0 auto;
  max-width: 430px;
  text-align: right;
  font-size: var(--type-body-sm);
  line-height: 1.5;
  color: var(--color-fg-faint);
}
@media (max-width: 900px) {
  .hero-modes-link { text-align: left; }
  .hero-price-note { text-align: left; margin-left: 0; }
}

/* Download section — reuses the amber .waitlist band, centred layout. */
.download-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.download-inner h2 {
  font: var(--weight-regular) var(--type-display-3)/var(--leading-snug) var(--font-display);
  letter-spacing: var(--track-display); margin: 0 0 var(--space-5);
}
.download-inner h2 em { font-style: italic; color: var(--color-brand-hi); }
.download-inner p {
  font-size: var(--type-body-md); color: var(--color-fg-muted);
  line-height: var(--leading-loose); margin: 0 auto var(--space-3); max-width: 500px;
}
.download-price { color: var(--color-fg-faint); font-size: var(--type-body-sm); }
.store-badges {
  display: flex; gap: var(--space-4); flex-wrap: wrap;
  justify-content: center; margin-top: var(--space-7);
}
.download-foot {
  margin-top: var(--space-7);
  font: var(--weight-medium) var(--type-meta-sm)/1.5 var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-fg-faint);
}
.pro-price {
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: var(--stroke-hairline) solid var(--color-rule-strong);
  font-size: var(--type-body-sm); color: var(--color-fg-muted-paper);
  max-width: 620px;
}

/* ━━━━━━━━━━━━━━━━━━━━ Video card (gallery) ━━━━━━━━━━━━━━━━━━━━
   Links out to YouTube rather than embedding: the CSP is default-src 'self'
   with no external frame-src, and the FAQ promises no third-party tracking.
   Poster is self-hosted so nothing loads off-origin. */
.video-card {
  position: relative; display: block; margin: 0 0 var(--space-8);
  border-radius: var(--radius-md, 10px); overflow: hidden;
  border: var(--stroke-hairline) solid var(--color-rule-dark);
  text-decoration: none; color: var(--color-fg);
  background: var(--color-bg);
}
.video-card img { display: block; width: 100%; height: auto; }
.video-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-brand); color: var(--color-brand-on);
  display: grid; place-items: center; font-size: 22px; padding-left: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  transition: transform var(--ease-standard) var(--duration-base);
}
.video-card:hover .video-card-play,
.video-card:focus-visible .video-card-play { transform: translate(-50%, -50%) scale(1.08); }
.video-card:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.video-card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(to top, rgba(4,18,28,0.92), rgba(4,18,28,0));
  color: var(--dg-paper);
}
.video-card-label strong { font-size: var(--type-body-md); font-weight: var(--weight-semibold, 600); }
@media (prefers-reduced-motion: reduce) {
  .video-card-play { transition: none; }
  .video-card:hover .video-card-play { transform: translate(-50%, -50%); }
}

/* ━━━━━━━━━━━━━━━━━━━━ Content-page tables ━━━━━━━━━━━━━━━━━━━━
   Used by the how-to reference pages. Wrapped in .scroll-x so wide
   tables scroll inside their own container instead of the page body. */
.scroll-x { overflow-x: auto; margin: var(--space-6) 0; -webkit-overflow-scrolling: touch; }
.content-page table {
  border-collapse: collapse; width: 100%; min-width: 520px;
  font-size: var(--type-body-sm); font-variant-numeric: tabular-nums;
}
.content-page th, .content-page td {
  text-align: left; padding: var(--space-3) var(--space-4);
  border-bottom: var(--stroke-hairline) solid var(--color-rule-dark);
  vertical-align: top;
}
.content-page thead th {
  font: var(--weight-medium) var(--type-meta-md)/1 var(--font-mono);
  letter-spacing: var(--track-meta); text-transform: uppercase;
  color: var(--color-fg-muted); white-space: nowrap;
}
.content-page tbody tr:last-child td { border-bottom: none; }
.content-page h3 { margin-top: var(--space-7); }
