/* aphilo — site styles. Palette and type follow the launch flyer. */
:root {
  --bg: #0E0C09;
  --bg-2: #120F0B;
  --surface: #17140F;
  --surface-2: #1D1913;
  --line: #2B261D;
  --line-2: #3B3527;
  --gold: #D6C391;
  --gold-deep: #B9A36C;
  --sage: #A7B98A;
  --ink: #F3EEE2;
  --body: #C9C4B8;
  --muted: #8C877B;
  --faint: #6F6A5F;

  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--bg); }

/* Grain + dot texture, echoing the app's App Store art */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(214,195,145,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 100%);
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.sage { color: var(--sage); }

/* ---------- Labels, pills, buttons ---------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(23,20,15,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(167,185,138,.18); animation: breathe 2.6s var(--ease) infinite; margin-left: 6px; }
.pill .sep { width: 1px; height: 14px; background: var(--line-2); }
.pill .muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--surface); box-shadow: 0 10px 40px -10px rgba(214,195,145,.55); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(214,195,145,.7); background: #E0CFA2; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(23,20,15,.6); }
.btn-ghost:hover { border-color: var(--sage); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(14,12,9,.78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); }
.brand span { font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--ink); letter-spacing: .01em; line-height: 1; margin-top: -3px; }
.nav-links { display: flex; gap: 34px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -10%; width: 1100px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(214,195,145,.16), rgba(167,185,138,.05) 55%, transparent 75%);
  pointer-events: none;
}
.hero .pill { margin-bottom: 28px; }
.display {
  font-family: var(--display);
  font-weight: 400;
  color: #fff;
  line-height: .98;
  letter-spacing: -.005em;
  margin: 0;
}
.hero h1 { font-size: clamp(52px, 9vw, 116px); max-width: 1000px; margin: 0 auto; }
.hero .lede { max-width: 580px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--body); }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Phone fan — the flyer's showcase, built live */
.fan {
  position: relative;
  height: clamp(420px, 56vw, 720px);
  margin: 64px auto 0;
  max-width: 1200px;
  perspective: 1600px;
}
.fan::after { /* fade into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; z-index: 10;
}
.fan figure {
  --w: clamp(150px, 20vw, 290px);
  position: absolute; left: 50%; top: 0;
  width: var(--w); margin: 0;
  border-radius: calc(var(--w) * .07);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4);
  transform-origin: 50% 100%;
  transition: transform .9s var(--ease), filter .6s var(--ease), opacity .9s var(--ease);
  opacity: 0;
}
.fan figure img { width: 100%; height: auto; }
.fan.in figure { opacity: 1; }
.fan figure:nth-child(1) { z-index: 1; transform: translate(-50%, 0) translateX(-172%) translateY(14%) scale(.74) rotate(-7deg); filter: brightness(.6); }
.fan figure:nth-child(2) { z-index: 2; transform: translate(-50%, 0) translateX(-88%) translateY(6%) scale(.87) rotate(-3.5deg); filter: brightness(.8); }
.fan figure:nth-child(3) { z-index: 3; transform: translate(-50%, 0); }
.fan figure:nth-child(4) { z-index: 2; transform: translate(-50%, 0) translateX(88%) translateY(6%) scale(.87) rotate(3.5deg); filter: brightness(.8); }
.fan figure:nth-child(5) { z-index: 1; transform: translate(-50%, 0) translateX(172%) translateY(14%) scale(.74) rotate(7deg); filter: brightness(.6); }
.fan:not(.in) figure { transform: translate(-50%, 18%) scale(.9); }
.fan figure:hover { filter: brightness(1); }

/* ---------- Marquee lanes (the reference site's review lanes) ---------- */
.lanes { padding: 8px 0 40px; display: grid; gap: 14px; --lane-fade: 12%; }
.lane { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 var(--lane-fade), #000 calc(100% - var(--lane-fade)), transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--lane-fade), #000 calc(100% - var(--lane-fade)), transparent); }
.lane-track { display: flex; gap: 14px; width: max-content; animation: lane-drift 60s linear infinite; }
.lane.rev .lane-track { animation-direction: reverse; animation-duration: 70s; }
.lane:hover .lane-track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: 14px;
  white-space: nowrap;
  font-size: 15px; color: var(--ink);
}
.chip .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chip .v { color: var(--gold); font-weight: 600; }
.chip svg { width: 18px; height: 18px; color: var(--sage); flex: none; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head .label { display: block; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(42px, 6vw, 76px); }
.section-head p { margin: 20px auto 0; max-width: 560px; font-size: 18px; color: var(--body); }
.rule { border-top: 1px solid var(--line); }

/* Features: alternating rows with sticky phone */
.features { display: grid; gap: 40px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
  padding: 48px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, rgba(29,25,19,.7), rgba(23,20,15,.4));
  overflow: hidden; position: relative;
}
.feature::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,195,145,.10), transparent); top: 50%; transform: translateY(-50%); pointer-events: none; }
.feature:nth-child(odd)::before { right: -80px; }
.feature:nth-child(even)::before { left: -80px; }
.feature:nth-child(even) .feature-media { order: -1; }
.feature-copy .num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.feature-copy .num b { color: var(--gold); font-weight: 500; }
.feature-copy .num i { flex: 0 0 40px; height: 1px; background: var(--line-2); }
.feature-copy h3 { font-size: clamp(38px, 4.4vw, 58px); }
.feature-copy p { font-size: 18px; margin: 20px 0 0; max-width: 460px; }
.feature-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.feature-copy li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.feature-copy li svg { width: 18px; height: 18px; color: var(--sage); flex: none; margin-top: 3px; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media img { width: min(330px, 100%); border-radius: 26px; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }

/* Compare table */
.compare { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 22px 26px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.compare tbody th { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 22%; }
.compare td { color: var(--body); font-size: 15px; }
.compare .us { background: linear-gradient(180deg, rgba(214,195,145,.10), rgba(214,195,145,.04)); color: var(--ink); font-weight: 500; border-left: 1px solid rgba(214,195,145,.35); border-right: 1px solid rgba(214,195,145,.35); }
.compare thead .us { color: var(--gold); border-top: 2px solid var(--gold); }
.compare-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* Principles (replaces pricing grid) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: 38px; background: var(--surface); position: relative; }
.plan.pro { border-color: rgba(214,195,145,.45); background: linear-gradient(180deg, rgba(214,195,145,.09), var(--surface) 60%); box-shadow: 0 30px 80px -40px rgba(214,195,145,.35); }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 44px; color: #fff; margin: 0; line-height: 1; }
.plan .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-left: 10px; vertical-align: middle; }
.plan p { margin: 14px 0 26px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; color: var(--ink); font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--sage); flex: none; margin-top: 3px; }
.plan .btn { width: 100%; }
.promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 36px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.promise span { display: inline-flex; align-items: center; gap: 8px; }
.promise span::before { content: "✕"; color: var(--gold); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq-side h2 { font-size: clamp(42px, 5vw, 68px); }
.faq-side p { margin: 18px 0 28px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .2s; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.tab:hover:not([aria-selected="true"]) { color: var(--ink); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-size: 17px; color: var(--ink); font-weight: 500; }
.qa button .plus { position: relative; width: 14px; height: 14px; flex: none; }
.qa button .plus::before, .qa button .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--muted); transition: transform .3s var(--ease), background .3s; }
.qa button .plus::after { transform: rotate(90deg); }
.qa.open button .plus::after { transform: rotate(0); }
.qa.open button .plus::before, .qa.open button .plus::after { background: var(--gold); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { margin: 0 0 22px; max-width: 600px; }
.panel[hidden] { display: none; }

/* Final CTA with strike-through */
.final { padding: 150px 0; text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(214,195,145,.12), transparent 70%); pointer-events: none; }
.final h2 { font-size: clamp(56px, 10vw, 132px); }
.strike { position: relative; display: inline-block; }
.strike svg { position: absolute; left: -3%; width: 106%; top: 50%; height: .5em; transform: translateY(-40%); overflow: visible; }
.strike path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.1s var(--ease) .2s; }
.swoosh { position: relative; display: inline-block; }
.swoosh svg { position: absolute; left: 0; width: 100%; bottom: -.12em; height: .3em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--sage); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.1s var(--ease) .9s; }
.final.in .strike path, .final.in .swoosh path { stroke-dashoffset: 0; }
.final .strike-word { color: #6F6A5F; transition: color .6s .6s; }
.final:not(.in) .strike-word { color: #fff; }
.final p { max-width: 520px; margin: 26px auto 36px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 40px; }
.foot-grid .brand { margin-bottom: 14px; }
.foot-grid p { font-size: 14px; color: var(--muted); max-width: 320px; margin: 0; }
.foot-col h4 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 6px 0 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--body); padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--gold); }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--faint); line-height: 1.7; }
.foot-legal p { margin: 0; max-width: 760px; }

/* ---------- Legal / support pages ---------- */
.doc-hero { padding: 90px 0 40px; text-align: center; }
.doc-hero .label { display: block; margin-bottom: 18px; }
.doc-hero h1 { font-size: clamp(52px, 8vw, 96px); }
.doc-hero p { margin: 18px auto 0; color: var(--muted); max-width: 560px; }
.doc { max-width: 780px; margin: 0 auto; padding: 20px 24px 110px; }
.doc ol.clauses { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.doc ol.clauses > li { counter-increment: c; display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid var(--line); }
.doc ol.clauses > li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--gold); padding-top: 6px; }
.doc h2 { font-family: var(--sans); font-weight: 600; font-size: 20px; color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }
.doc p { margin: 0 0 10px; }
.doc ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.doc ul li { display: flex; gap: 12px; }
.doc ul li::before { content: "—"; color: var(--sage); flex: none; }
.doc ul.nots li::before { content: "✕"; color: var(--gold); }
.doc .caps { text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.doc a.mail { color: var(--gold); border-bottom: 1px solid rgba(214,195,145,.4); }
.doc-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.help-card { margin-top: 56px; padding: 40px; border: 1px solid rgba(214,195,145,.35); border-radius: 24px; background: linear-gradient(180deg, rgba(214,195,145,.08), var(--surface)); text-align: center; }
.help-card h2 { font-family: var(--display); font-weight: 400; font-size: 44px; color: #fff; margin: 10px 0 12px; }
.help-card p { max-width: 520px; margin: 0 auto 26px; }
.support-group { margin-top: 40px; }
.support-group .label { display: block; margin-bottom: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes lane-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 3px rgba(167,185,138,.18); } 50% { box-shadow: 0 0 0 7px rgba(167,185,138,.06); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .fan figure { opacity: 1 !important; }
  .strike path, .swoosh path { stroke-dashoffset: 0 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 36px 28px; text-align: center; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-copy .num { justify-content: center; }
  .feature-copy p { margin-left: auto; margin-right: auto; }
  .feature-copy ul { justify-items: center; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 84px 0; }
  .hero { padding-top: 44px; }
  .fan { height: 118vw; margin-top: 44px; }
  .fan figure { --w: 44vw; }
  .fan figure:nth-child(1) { transform: translate(-50%, 0) translateX(-118%) translateY(16%) scale(.7) rotate(-7deg); }
  .fan figure:nth-child(2) { transform: translate(-50%, 0) translateX(-66%) translateY(7%) scale(.84) rotate(-3.5deg); }
  .fan figure:nth-child(4) { transform: translate(-50%, 0) translateX(66%) translateY(7%) scale(.84) rotate(3.5deg); }
  .fan figure:nth-child(5) { transform: translate(-50%, 0) translateX(118%) translateY(16%) scale(.7) rotate(7deg); }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 30px 24px; }
  .compare { overflow-x: auto; }
  .compare table { min-width: 640px; }
  .compare th, .compare td { padding: 16px; }
  .doc ol.clauses > li { grid-template-columns: 1fr; padding: 24px 0; }
  .help-card { padding: 30px 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:last-child { grid-column: 1 / -1; }
}

.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; }

/* ---------- Feature tour: pinned phone, scrolling steps ---------- */
.tour { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; position: relative; }
.step { min-height: 64vh; display: flex; align-items: center; opacity: .28; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step:first-child { min-height: 52vh; }
.step:last-child { min-height: 70vh; }
.step-img { display: none; }
.tour-stage { position: sticky; top: 96px; height: calc(100vh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.tour-stage::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,195,145,.14), transparent); pointer-events: none; }
.stage-frame { position: relative; width: min(330px, 26vw, calc((100vh - 200px) * .46)); aspect-ratio: 720 / 1563; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -30px rgba(0,0,0,.95); background: var(--surface); }
.stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.stage-frame img.on { opacity: 1; transform: none; }
.stage-dots { display: flex; gap: 8px; position: relative; }
.stage-dots span { width: 6px; height: 6px; border-radius: 6px; background: var(--line-2); transition: width .4s var(--ease), background .4s; }
.stage-dots span.on { width: 24px; background: var(--gold); }

@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour-stage { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; opacity: 1; flex-direction: column; gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); text-align: center; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step-img { display: block; width: min(250px, 64vw); border-radius: 22px; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -25px rgba(0,0,0,.9); }
}

/* Tighter hero so the phones peek into the first screen */
.hero { padding-top: 56px; }
.fan { margin-top: 48px; }
@media (max-width: 960px) {
  .feature-copy ul { display: inline-grid; justify-items: start; text-align: left; }
}

/* ---------- Phone refinements (v4) ----------
   On phones the tour keeps one phone pinned at the top (under the header)
   and swaps its screen as each step scrolls past, same as desktop. */
@media (max-width: 960px) {
  .tour { display: flex; flex-direction: column-reverse; }
  .tour-stage {
    display: flex; position: sticky; top: 72px; z-index: 5; height: auto;
    gap: 12px; padding: 14px 0 22px; margin: 0 -24px;
    background: linear-gradient(var(--bg) 82%, rgba(14,12,9,0));
  }
  .tour-stage::before { width: 340px; height: 340px; }
  .stage-frame { width: min(190px, 44vw, calc((100svh - 72px) * .42 * .46)); border-radius: 18px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.9); }
  .step, .step:first-child, .step:last-child {
    min-height: 58svh; opacity: .28; padding: 36px 0; gap: 0; border-top: 0;
    justify-content: center;
  }
  .step.on { opacity: 1; }
  .step:first-child { padding-top: 12px; }
  .step:last-child { min-height: 62svh; }
  .step-img { display: none; }
  .step .display { font-size: clamp(28px, 8vw, 40px); }
}
@media (max-width: 960px) and (max-height: 620px) {
  .stage-frame { width: min(140px, 36vw); }
}
