/* Vika homepage. Ivory page, two dark stages, gold used as light. */

@font-face { font-family: Vika; src: url("assets/home/fonts/BeVietnamPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vika; src: url("assets/home/fonts/BeVietnamPro-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vika; src: url("assets/home/fonts/BeVietnamPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vika; src: url("assets/home/fonts/BeVietnamPro-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --paper: #f4eee2;
  --raised: #fbf7ee;
  --sand: #ebe2cd;
  --ink: #1f1812;
  --dark: #17120e;
  --gold: #e5b33a;
  --gold-2: #f2c95c;
  --gold-text: #7f5e10;
  --muted: #6f675c;
  --line: #dcd4c5;
  --on-dark: #f4eee2;
  --on-dark-muted: #cbc1af;
  --focus: var(--gold-text);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4.5vw, 72px);
  --inset: 12px;
  --stage-radius: 28px;
  --section-y: clamp(84px, 10vw, 150px);
  --nav-h: 68px;
  --fast: 180ms;
  --slow: 700ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  padding-top: calc(var(--nav-h) + 22px);
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 Vika, "Be Vietnam Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--gold); color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.stage { --focus: var(--gold); }
.film { --focus: var(--dark); }

.skip { position: fixed; left: 20px; top: 12px; z-index: 80; background: var(--ink); color: var(--paper); padding: 10px 20px; border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Type */
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin-bottom: 22px; }
.eyebrow.on-dark { color: var(--on-dark-muted); }
.eyebrow.on-dark.gold { color: var(--gold); }
.eyebrow.on-gold { color: rgba(23, 18, 14, .78); }
h1 { font-size: clamp(46px, 6.4vw, 96px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
h1 span { display: block; }
h1 .gold { color: var(--gold); }
h2 { font-size: clamp(34px, 4.2vw, 62px); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
.sub { margin-top: 22px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 500; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.text-link svg { transition: transform .35s var(--ease); }
.text-link:hover svg { transform: translate(2px, -2px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid transparent; font-family: inherit; transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: rgba(244, 238, 226, .08); color: var(--on-dark); border-color: rgba(244, 238, 226, .24); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(244, 238, 226, .16); }
.btn-ink { background: var(--dark); color: var(--on-dark); }
.btn-ink:hover { background: #2b231b; }
.btn-nav { min-height: 44px; padding: 0 20px; font-size: 14px; background: var(--ink); color: var(--paper); }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 10px var(--inset) 0; pointer-events: none; }
.nav-inner { pointer-events: auto; position: relative; margin: 0 auto; max-width: 1576px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--nav-h); padding: 8px 8px 8px 22px; border-radius: 999px; color: var(--ink); transition: max-width .7s var(--ease), background .45s, box-shadow .45s, color .3s; }
.brand { display: block; width: 108px; }
.brand img { width: 100%; height: auto; }
.brand-light { display: none; }
.nav-links { justify-self: center; display: flex; gap: 4px; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .25s; }
.nav-links a:hover { background: rgba(31, 24, 18, .07); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav.is-floating .nav-inner { max-width: 900px; background: rgba(23, 18, 14, .86); color: var(--on-dark); box-shadow: 0 14px 44px -14px rgba(23, 18, 14, .55), inset 0 0 0 1px rgba(244, 238, 226, .08); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.nav.is-floating .brand-dark { display: none; }
.nav.is-floating .brand-light { display: block; }
.nav.is-floating .nav-links a:hover { background: rgba(244, 238, 226, .1); }
.nav.is-floating .btn-nav { background: var(--gold); color: var(--dark); }
.mobile-menu { display: none; }

/* Stages: inset dark or gold panels with large radius */
.stage { position: relative; width: calc(100% - 2 * var(--inset)); max-width: 1576px; margin: 0 auto; border-radius: var(--stage-radius); overflow: hidden; }

/* Hero */
.hero { isolation: isolate; background: var(--dark); color: var(--on-dark); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 30%); grid-template-rows: 1fr auto; column-gap: 3%; min-height: clamp(640px, calc(100vh - 110px), 900px); padding: clamp(48px, 7vh, 96px) var(--gutter) clamp(28px, 4vh, 40px); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture { position: absolute; inset: -4% 0; transform: translate3d(0, var(--hero-parallax, 0px), 0); }
.hero-media img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 36%; filter: saturate(.82) brightness(.82); }
.hero-glow { position: absolute; left: 62%; top: 42%; width: min(74vh, 660px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(242, 201, 92, .65) 0%, rgba(229, 179, 58, .32) 30%, transparent 68%); mix-blend-mode: screen; opacity: .7; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(23, 18, 14, .97) 0%, rgba(23, 18, 14, .9) 26%, rgba(23, 18, 14, .45) 48%, rgba(23, 18, 14, .08) 68%, rgba(23, 18, 14, .3) 100%),
  linear-gradient(180deg, rgba(23, 18, 14, .4) 0%, transparent 26%, transparent 58%, rgba(23, 18, 14, .94) 100%); }
.hero-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 1; align-self: center; max-width: 640px; }
.lede { margin-top: 28px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--on-dark-muted); max-width: 42ch; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-device { position: relative; z-index: 2; grid-column: 2; grid-row: 1 / 3; align-self: end; justify-self: center; width: clamp(230px, min(24vw, 38vh), 320px); margin: 0 0 6px; }
.hero-proof { position: relative; z-index: 2; grid-column: 1; grid-row: 2; align-self: end; display: flex; list-style: none; margin: 48px 0 0; padding: 0; }
.hero-proof li { padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(244, 238, 226, .18); }
.hero-proof li:last-child { border: 0; margin: 0; padding: 0; }
.hero-proof strong { display: block; font-size: 14px; font-weight: 600; }
.hero-proof span { font-size: 13px; color: var(--on-dark-muted); }

/* Phone frame */
.device { position: relative; aspect-ratio: 720 / 1560; background: #0c0a08; border-radius: 15% / 6.9%; padding: 3%; box-shadow: 0 44px 80px -28px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .07); }
.device::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .13); pointer-events: none; }
.screen { position: relative; height: 100%; border-radius: 13% / 6%; overflow: hidden; background: #17120e; transform: translateZ(0); }
.screen picture, .screen img, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen img, .screen video { object-fit: cover; }
#hero-video { opacity: 0; transition: opacity .9s; }
#hero-video.is-playing { opacity: 1; }
.device-note { position: absolute; right: 0; bottom: 100%; width: max-content; margin-bottom: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; white-space: nowrap; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.device-note button { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(244, 238, 226, .28); background: rgba(23, 18, 14, .5); color: var(--on-dark); }
.device-note button[hidden] { display: none; }
.callout { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .6); }
.callout-set { top: 12%; left: -32%; background: rgba(23, 18, 14, .74); color: var(--on-dark); border: 1px solid rgba(244, 238, 226, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.callout .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(229, 179, 58, .28); }
.callout-form { top: 47%; right: -24%; background: var(--paper); color: var(--ink); }

/* Sections */
.section { max-width: 1440px; margin: 0 auto; padding: var(--section-y) var(--gutter); }

/* How it works */
.steps { list-style: none; margin: clamp(44px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step-visual { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--sand); }
.step-visual picture, .step-visual > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.step-visual > picture img { object-fit: cover; }
.step-visual:not(.step-visual-app)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(transparent, rgba(23, 18, 14, .55)); }
.step-visual-app { background: radial-gradient(90% 70% at 50% 100%, #f1e6cc, var(--sand) 70%); }
.step-visual-app .device-card { position: absolute; left: 50%; top: 15%; width: 64%; transform: translateX(-50%); box-shadow: 0 30px 60px -24px rgba(23, 18, 14, .5), 0 0 0 1px rgba(255, 255, 255, .07); }
.step-num { position: absolute; z-index: 3; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: rgba(23, 18, 14, .78); color: var(--on-dark); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip { position: absolute; z-index: 3; left: 14px; bottom: 14px; padding: 8px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.chip-dark { background: rgba(23, 18, 14, .84); color: var(--on-dark); }
.chip-gold { background: var(--gold); color: var(--dark); }
.rep-counter { position: absolute; z-index: 3; left: 50%; bottom: 9%; transform: translateX(-50%); display: flex; align-items: baseline; gap: 4px; color: #fff; text-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
.rep-counter b { font-size: clamp(52px, 5.4vw, 78px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--gold); }
.rep-counter i { font-style: normal; font-size: 26px; font-weight: 700; }
.step h3 { margin-top: 22px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* In-session product chapters */
.product-layout { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr) auto; column-gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.product-device { position: sticky; top: 100px; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding: 26px 20px 20px; border-radius: 32px; background: var(--sand); }
.device-product { position: relative; width: min(74%, 270px, 29vh); }
.screen-stack .shot { opacity: 0; visibility: hidden; transform: translateY(12px) scale(1.025); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility .55s; }
.screen-stack .shot.is-active { opacity: 1; visibility: visible; transform: none; }
.product-device figcaption { position: relative; margin-top: 20px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.chapters { position: relative; padding: 6vh 0 10vh; }
.chapter { position: relative; min-height: 48vh; display: flex; flex-direction: column; justify-content: center; }
.chapter.is-active { opacity: 1; }
.chapter-head { display: flex; align-items: baseline; gap: 18px; padding: 0; border: 0; background: none; text-align: left; }
.chapter-num { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--gold-text); }
.chapter-title { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.chapter p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 44ch; }
.chapter-index { position: sticky; top: 44vh; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 8vh; }
.chapter-index a { display: flex; align-items: center; gap: 16px; padding: 6px 0; font-size: 14px; color: var(--muted); transition: color .3s; }
.chapter-index a::before { content: ""; width: 1px; height: 18px; background: var(--ink); opacity: 0; transition: opacity .3s; }
.chapter-index a span:last-child { font-variant-numeric: tabular-nums; color: var(--gold-text); }
.chapter-index a.is-active { color: var(--ink); }
.chapter-index a.is-active::before { opacity: 1; }

/* Film: gold stage */
.film { background: var(--gold); color: var(--dark); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 38%); align-items: center; gap: 6%; padding: clamp(56px, 8vw, 110px) var(--gutter); }
.film::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 18% 8%, rgba(255, 243, 208, .5), transparent 62%), radial-gradient(50% 60% at 92% 100%, rgba(127, 94, 16, .28), transparent 60%); pointer-events: none; }
.film > * { position: relative; }
.film h2 { color: var(--dark); }
.film-lede { margin-top: 22px; font-size: clamp(16px, 1.3vw, 19px); max-width: 44ch; color: rgba(23, 18, 14, .82); }
.film-moments { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(23, 18, 14, .2); max-width: 460px; }
.film-moments button { width: 100%; display: flex; align-items: center; gap: 18px; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(23, 18, 14, .2); background: none; color: var(--dark); text-align: left; font-size: 16px; }
.film-moments .time { min-width: 40px; font-size: 13px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: rgba(23, 18, 14, .68); }
.film-moments button:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.film-note { margin-top: 18px; font-size: 13px; color: rgba(23, 18, 14, .7); max-width: 44ch; }
.film-device { isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.device-film { width: min(100%, 330px); }

/* Includes */
.includes-list { max-width: 840px; margin: clamp(40px, 5vw, 64px) auto 0; }
.includes-list > div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.includes-list dt { font-weight: 600; }
.includes-list dd { color: var(--muted); }
.includes-cta { margin-top: 44px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq-list details { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; margin-bottom: 12px; transition: border-color .3s; }
.faq-list details[open] { border-color: #c7bcaa; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; list-style: none; font-size: 17px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.plus::before { width: 12px; height: 1.5px; }
.plus::after { width: 1.5px; height: 12px; transition: transform .35s var(--ease); }
.faq-list details[open] .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }
.faq-list details a { text-decoration: underline; text-underline-offset: 3px; }

/* Signup stage */
.start { background: var(--dark); color: var(--on-dark); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 46%); gap: 8%; align-items: center; padding: clamp(64px, 8vw, 120px) var(--gutter); }
.start-glow { position: absolute; left: -14%; bottom: -60%; width: 60vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(229, 179, 58, .5), rgba(229, 179, 58, .12) 45%, transparent 68%); pointer-events: none; }
.start-copy, .experience-form { position: relative; }
.start h2 { color: var(--on-dark); }
.start-copy p:not(.eyebrow) { margin-top: 22px; font-size: 17px; color: var(--on-dark-muted); max-width: 40ch; }
.experience-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { min-width: 0; }
.field:nth-child(-n+2) { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; margin-bottom: 8px; color: var(--on-dark-muted); }
.field label span { opacity: .7; }
.field input { width: 100%; font: inherit; font-size: 16px; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(244, 238, 226, .18); background: rgba(244, 238, 226, .06); color: var(--on-dark); transition: border-color .3s, background .3s; }
.field input::placeholder { color: rgba(244, 238, 226, .42); }
.field input:hover { border-color: rgba(244, 238, 226, .3); }
.field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: transparent; background: rgba(244, 238, 226, .09); }
.form-privacy { grid-column: 1 / -1; font-size: 13px; color: var(--on-dark-muted); }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.btn-submit { grid-column: 1 / -1; width: 100%; }
.btn-submit:disabled { opacity: .65; cursor: wait; transform: none; }
#form-status { grid-column: 1 / -1; min-height: 24px; font-size: 14px; color: var(--gold); }
.experience-form noscript { grid-column: 1 / -1; }

/* Footer */
.footer { max-width: 1600px; margin: 0 auto; padding: 56px var(--gutter) 28px; }
.footer-top { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 48px; }
.footer-top p { font-size: 14px; color: var(--muted); }
.footer-top nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
.footer-top nav a { display: flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Motion */
.js .rise { opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion-ready [data-reveal].in { opacity: 1; transform: none; }
.motion-ready [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.motion-ready [data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger] > *:nth-child(2) { transition-delay: .09s; }
[data-stagger] > *:nth-child(3) { transition-delay: .18s; }
[data-stagger] > *:nth-child(4) { transition-delay: .27s; }
[data-stagger] > *:nth-child(5) { transition-delay: .36s; }
[data-stagger] > *:nth-child(6) { transition-delay: .45s; }

/* Layout: large tablets and small laptops */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .product-layout { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
  .chapter-index { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); }
  .callout-set { left: -20%; }
}

/* Layout: phones and small tablets */
@media (max-width: 900px) {
  :root { --inset: 8px; --stage-radius: 22px; --nav-h: 60px; --section-y: 72px; }
  body { padding-top: calc(var(--nav-h) + 18px); }
  .nav-inner { grid-template-columns: 1fr auto; padding: 6px 6px 6px 16px; }
  .nav-links { display: none; }
  .brand { width: 92px; }
  .btn-nav { min-height: 40px; padding: 0 16px; font-size: 13px; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(31, 24, 18, .07); }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .nav.is-floating .mobile-menu summary { background: rgba(244, 238, 226, .12); }
  .burger { width: 18px; display: flex; flex-direction: column; gap: 5px; }
  .burger i { display: block; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .mobile-menu[open] .burger i:first-child { transform: translateY(3.3px) rotate(45deg); }
  .mobile-menu[open] .burger i:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .mobile-menu nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; padding: 12px; border-radius: 22px; background: var(--dark); color: var(--on-dark); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55); }
  .mobile-menu nav a { padding: 14px 16px; border-radius: 12px; font-size: 17px; font-weight: 500; }
  .mobile-menu nav a:hover { background: rgba(244, 238, 226, .08); }

  .hero { display: flex; flex-direction: column; min-height: 0; padding: 44px 22px 30px; }
  .hero-media img { left: 0; width: 100%; object-position: 72% 30%; }
  .hero-glow { left: 50%; top: 60%; width: 92vw; }
  .hero-shade { background: linear-gradient(180deg, rgba(23, 18, 14, .96) 0%, rgba(23, 18, 14, .86) 38%, rgba(23, 18, 14, .32) 58%, rgba(23, 18, 14, .4) 82%, rgba(23, 18, 14, .92) 100%); }
  .hero-copy, .hero-proof { max-width: none; align-self: stretch; }
  h1 { font-size: clamp(42px, 11.6vw, 62px); }
  .lede { font-size: 16px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { min-height: 48px; padding: 0 20px; font-size: 14px; }
  .hero-device { width: min(60%, 250px); align-self: center; margin: 58px 0 0; }
  .device-note { position: static; width: auto; margin: 14px 0 0; justify-content: center; flex-wrap: wrap; row-gap: 8px; font-size: 10px; text-align: center; }
  .callout { font-size: 12px; padding: 8px 12px; }
  .callout-set { left: -40%; top: 10%; }
  .callout-form { right: -38%; top: 44%; }
  .hero-proof { flex-direction: column; margin-top: 44px; }
  .hero-proof li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; margin: 0; border: 0; border-top: 1px solid rgba(244, 238, 226, .14); }
  .hero-proof span { text-align: right; }

  h2 { font-size: clamp(32px, 8.6vw, 44px); }
  .sub { font-size: 16px; }

  .steps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; margin: 36px calc(-1 * var(--gutter)) 0; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(76%, 320px); scroll-snap-align: start; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 14px; }

  .product-layout { display: flex; flex-direction: column; align-items: stretch; gap: 28px; margin-top: 36px; }
  .product-device { position: relative; top: auto; overflow: hidden; padding: 24px 16px 18px; }
  .device-product { width: min(54%, 230px); }
  .chapters { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapter { flex: 0 0 min(82%, 360px); min-height: 0; scroll-snap-align: center; justify-content: flex-start; padding: 22px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); opacity: 1; transition: border-color .3s; }
  .chapter.is-active { border-color: var(--gold); }
  .chapter-head { gap: 12px; }
  .chapter-title { font-size: 22px; }
  .chapter p { font-size: 15px; margin-top: 12px; }

  .film { display: flex; flex-direction: column; gap: 40px; padding: 56px 22px; }
  .device-film { width: min(92%, 320px); }
  .film-moments button { font-size: 15px; }

  .includes-list > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-list summary { font-size: 16px; padding: 18px 0; }
  .faq-list details { padding: 0 18px; }

  .start { display: flex; flex-direction: column; gap: 36px; padding: 60px 22px; }
  .start-glow { left: -30%; bottom: -30%; width: 120vw; }
  .experience-form { gap: 16px 12px; }
  .field:nth-child(n) { grid-column: 1 / -1; }

  .footer { padding-top: 44px; }
  .footer-top { gap: 24px; }
  .footer-top nav { margin: 0; width: 100%; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 380px) {
  h1 { font-size: 40px; }
  .hero-actions .btn { padding: 0 16px; font-size: 13px; }
  .callout-set { left: -30%; }
  .callout-form { right: -26%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-glow { animation: none; }
  .btn:hover, .text-link:hover svg { transform: none; }
  .nav-inner, .screen-stack .shot, .chapter { transition: none; }
}

/* Details shared throughout the page. */
.reading-progress { position: fixed; z-index: 70; inset: 0 0 auto; height: 2px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--reading-progress, 0)); }
.btn { isolation: isolate; position: relative; overflow: hidden; transition: transform var(--fast) var(--ease), background var(--fast), box-shadow .3s; }
.btn::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(251,247,238,.28) 50%, transparent 80%); transform: translateX(-120%) skewX(-18deg); transition: transform .75s var(--ease); pointer-events: none; }
.btn:active { transform: scale(.97); }
.btn-arrow { gap: 24px; }
.button-arrow { font-family: sans-serif; font-size: 23px; font-weight: 400; line-height: 1; transition: transform .3s var(--ease); }
.nav-links a { position: relative; }
.nav-links a[aria-current="location"]::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; bottom: 2px; left: calc(50% - 2px); background: var(--gold); }
.nav.is-floating { --focus: var(--gold); }
.hero-contour { position: absolute; width: 62%; height: 120%; right: -9%; top: -10%; opacity: .15; stroke: var(--gold-2); stroke-width: .8; }
.hero-depth { transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translate3d(0, var(--phone-lift, 0px), 0); }
.device-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(251,247,238,.11), transparent 26%, transparent 75%, rgba(229,179,58,.06)); box-shadow: inset 1px 1px 0 rgba(251,247,238,.28); }
.hero-device .callout { translate: var(--callout-x, 0px) var(--callout-y, 0px); }
.device-note button { min-height: 36px; }
.chapter-divider { max-width: 1440px; margin: 0 auto; padding: 26px var(--gutter) 0; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.chapter-divider a { min-height: 44px; display: inline-flex; align-items: center; gap: 20px; color: var(--ink); }
.chapter-divider > span { align-self: center; }
.chapter-divider a span { font-size: 20px; transition: transform .3s var(--ease); }
.how { padding-top: clamp(68px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 108px); }
.how .section-head { max-width: 780px; }
.step-visual { isolation: isolate; }
.step-visual > picture img { transition: transform 1s var(--ease); }
.step-visual .device-card { transition: transform .8s var(--ease); }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.step-controls { display: none; }
.product { border-top: 1px solid var(--line); padding-top: clamp(70px, 8vw, 110px); }
.product-stage-label { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 11px; letter-spacing: .04em; color: var(--gold-text); }
.signal-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.product-orbit { position: absolute; inset: 0; overflow: hidden; z-index: -1; border-radius: inherit; }
.product-orbit i { position: absolute; left: -36%; top: 20%; width: 165%; aspect-ratio: 1; border: 1px solid rgba(127,94,16,.16); border-radius: 50%; }
.product-orbit i + i { left: -26%; top: 26%; width: 145%; }
.session-insights { position: relative; align-self: stretch; display: grid; margin-top: -14px; z-index: 2; }
.session-insight { grid-area: 1 / 1; display: flex; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid rgba(127,94,16,.12); border-radius: 17px; background: var(--raised); box-shadow: 0 10px 24px -20px rgba(31,24,18,.5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s; }
.session-insight.is-active { opacity: 1; visibility: visible; transform: none; }
.insight-value { white-space: nowrap; color: var(--ink); font-size: 34px; letter-spacing: -.06em; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.insight-value > span { margin-left: 5px; font-size: 15px; letter-spacing: -.02em; color: var(--muted); }
.session-insight > div:last-child { flex: 1; }
.session-insight p { font-size: 12px; font-weight: 500; }
.rep-track { display: flex; gap: 4px; margin-top: 10px; }
.rep-track i { flex: 1; height: 9px; background: var(--sand); border-radius: 2px; }
.rep-track .done, .rep-track.complete i { background: var(--gold); }
.insight-note { font-size: 12px; color: var(--muted); }
.product-device figcaption { font-size: 11px; margin-top: 16px; text-align: center; }
.chapter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12%; height: 1px; background: var(--line); }
.chapter-head { min-height: 44px; }
.chapter-title { transition: color .4s; }
.chapter-index a { min-height: 44px; }
.film { isolation: isolate; }
.film-orbit { position: absolute; z-index: -1; width: 180%; aspect-ratio: 1; border: 1px solid rgba(127,94,16,.2); border-radius: 50%; display: grid; place-items: center; }
.film-orbit::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(127,94,16,.18); border-radius: 50%; }
.film-orbit span { font-size: clamp(100px, 14vw, 230px); font-weight: 700; letter-spacing: -.075em; color: rgba(127,94,16,.1); transform: rotate(-90deg); }
.film-caption { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--dark); font-size: 12px; }
.film-moments button { position: relative; isolation: isolate; padding: 19px 10px; transition: opacity .2s; }
.film-moments button::before { content: ""; position: absolute; z-index: -1; inset: 0; transform-origin: left; transform: scaleX(var(--moment-progress, 0)); background: rgba(251,247,238,.24); }
.film-moments button::after { content: "↗"; font-size: 20px; margin-left: auto; opacity: 0; transform: translate(-4px, 4px); transition: opacity .25s, transform .25s var(--ease); }
.film-moments button[aria-current="true"]::after, .film-moments button:hover::after, .film-moments button:focus-visible::after { opacity: 1; transform: none; }
.film-moments button[aria-current="true"] .time { color: var(--dark); }
.film-transport { display: flex; gap: 22px; align-items: center; margin-top: 30px; }
.film-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--dark); font-size: 14px; font-weight: 600; }
.film-toggle:hover span { text-decoration: underline; text-underline-offset: 4px; }
.film-time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--gold-text); }
.film-time > span { color: var(--dark); }
.includes-list dt { display: flex; align-items: baseline; gap: 24px; font-weight: 500; }
.includes-list dt span { font-size: 11px; font-weight: 400; color: var(--gold-text); }
.includes-list dd { font-size: 15px; }
.faq { padding-top: 48px; }
.faq-list details { transition: border-color .3s, background .3s; }
.faq-list details[open] { background: transparent; }
.faq-list details[open] summary ~ * { animation: answer-in .35s var(--ease); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.start-monogram { position: absolute; width: min(52%, 700px); height: 130%; left: -3%; top: 2%; stroke: var(--gold); stroke-width: .7; opacity: .15; pointer-events: none; }
.field input { min-height: 56px; border-radius: 10px; }
.experience-form:focus-within .btn-submit { box-shadow: 0 0 0 4px rgba(229,179,58,.08); }
.footer-top nav a { position: relative; }
.footer-top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--gold-text); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.footer-top nav a:hover::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: translateX(120%) skewX(-18deg); }
  .btn-arrow:hover .button-arrow { transform: translate(2px, -2px); }
  .btn-gold:hover { box-shadow: 0 8px 24px -12px rgba(229,179,58,.65); }
  .chapter-divider a:hover span { transform: translateY(4px); }
  .step:hover .step-visual > picture img { transform: scale(1.055); }
  .step:hover .device-card { transform: translate(-50%, -8px); }
}
@media (min-width: 901px) and (max-height: 760px) {
  .product-device { top: 90px; padding-top: 18px; }
  .product-stage-label { margin-bottom: 14px; }
  .device-product { width: min(64%, 25vh); }
  .session-insight { padding: 14px 18px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .product-layout { grid-template-columns: minmax(300px, 38%) minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 900px) {
  .mobile-menu summary, .btn-nav { min-height: 44px; }
  .mobile-menu summary { width: 44px; }
  .mobile-menu[open] nav { animation: answer-in .3s var(--ease); }
  .hero-media picture { inset: 0; transform: none; }
  .hero-contour { width: 130%; height: 80%; top: 22%; right: -45%; }
  .hero-depth { transform: none; }
  .hero-device .callout { translate: none; }
  .device-note button { min-height: 44px; }
  .hero-proof li { align-items: baseline; }
  .hero-proof li:last-child { padding-top: 12px; border-top: 1px solid rgba(244,238,226,.14); }
  .hero-proof strong { font-size: 13px; flex-shrink: 0; }
  .hero-proof span { font-size: 12px; }
  .chapter-divider { padding-top: 16px; font-size: 12px; gap: 16px; }
  .chapter-divider a { gap: 10px; flex-shrink: 0; }
  .step-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
  .step-controls > div { display: flex; gap: 8px; }
  .step-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 22px; transition: background .2s, transform .2s; }
  .step-controls button:active { transform: scale(.94); }
  .step-controls button:disabled { opacity: .3; cursor: default; }
  .step-position { display: flex; align-items: center; gap: 12px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--gold-text); }
  .step-track { width: 80px; height: 2px; background: var(--line); }
  .step-track i { display: block; height: 100%; background: var(--gold-text); transform-origin: left; transform: scaleX(var(--step-progress, .25)); transition: transform .35s var(--ease); }
  .product { margin: 0 var(--gutter); padding-right: 0; padding-left: 0; }
  .product-layout { gap: 22px; }
  .session-insights { max-width: 330px; align-self: center; width: 100%; }
  .session-insight { padding: 15px 18px; }
  .chapter::after { display: none; }
  .chapters { scroll-padding-inline: var(--gutter); }
  .film-device { align-self: stretch; }
  .film-orbit { width: min(140%, 720px); }
  .film-caption { font-size: 11px; }
  .includes-list > div { padding: 18px 0; }
  .includes-list dd { padding-left: 40px; font-size: 14px; }
  .faq { padding-top: 0; }
  .start-monogram { width: 130%; height: 70%; left: -28%; top: 0; opacity: .12; }
}
@media (max-width: 380px) {
  .nav-inner { padding-left: 12px; }
  .brand { width: 78px; }
  .btn-nav { padding-inline: 12px; font-size: 12px; white-space: nowrap; }
  .chapter-divider > span { max-width: 16ch; }
  .hero-proof li { gap: 10px; }
  .hero-proof strong { font-size: 12px; }
  .product-stage-label { font-size: 10px; }
}
@media (min-width: 901px) {
  .chapter:not(.is-active) .chapter-title { color: var(--muted); }
}
@media (min-width: 681px) and (max-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 32%); grid-template-rows: 1fr auto; column-gap: 36px; padding: 56px 32px 32px; min-height: 720px; }
  .hero h1 { font-size: clamp(40px, 5.6vw, 50px); }
  .hero-copy { align-self: center; }
  .hero-device { grid-column: 2; grid-row: 1; width: min(100%, 230px); margin: 0; align-self: center; }
  .hero-shade { background: linear-gradient(90deg, rgba(23,18,14,.95), rgba(23,18,14,.82) 38%, rgba(23,18,14,.3) 100%), linear-gradient(0deg, rgba(23,18,14,.95), transparent 40%); }
  .hero-proof { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 24px; margin-top: 36px; }
  .hero-proof li, .hero-proof li:last-child { flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(244,238,226,.14); }
  .hero-proof span { text-align: left; }
  .callout-set { left: -18%; }
  .callout-form { right: -14%; }
  .device-note { white-space: normal; line-height: 1.5; }
  .device-note > span { max-width: 22ch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .motion-ready [data-reveal], .motion-ready [data-stagger] > * { opacity: 1; transform: none; }
  .hero-media picture, .hero-depth, .screen-stack .shot, .session-insight, .step:hover .step-visual > picture img { transform: none; }
  .hero-device .callout { translate: none; }
  .btn::before { display: none; }
}

/* Download: App Store badge and QR, after Cal AI's store buttons */
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 26px 0 20px; border-radius: 999px; text-decoration: none; transition: transform .4s var(--ease), background .3s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge .apple { width: 24px; height: 24px; flex: none; margin-top: -3px; }
.store-badge span { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.store-badge small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .8; }
.store-gold { background: var(--gold); color: var(--dark); }
.store-gold:hover { background: var(--gold-2); }
.store-ink { background: var(--dark); color: var(--on-dark); }
.store-ink:hover { background: #2b231b; }
.download { --focus: var(--dark); background: var(--gold); color: var(--dark); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8%; padding: clamp(56px, 7vw, 104px) var(--gutter); margin-bottom: 12px; }
.download::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 12% 0%, rgba(255, 243, 208, .55), transparent 62%), radial-gradient(50% 60% at 95% 100%, rgba(127, 94, 16, .3), transparent 60%); pointer-events: none; }
.download > * { position: relative; }
.download h2 { color: var(--dark); }
.download-copy p:not(.eyebrow) { margin-top: 20px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(23, 18, 14, .8); max-width: 42ch; }
.download-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.qr-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 26px 22px; border-radius: 26px; background: var(--raised); box-shadow: 0 40px 80px -36px rgba(23, 18, 14, .55); }
.qr-card img { width: 184px; height: 184px; }
.qr-card figcaption { text-align: center; }
.qr-card strong { display: block; font-size: 15px; font-weight: 600; }
.qr-card span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.footer-store { margin-left: auto; }
.footer-store + nav { margin-left: 0; }
@media (max-width: 900px) {
  .download { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 56px 22px; }
  /* A phone already is the phone: the QR only helps on a computer. */
  .qr-card { display: none; }
  .store-badge { min-height: 54px; }
  .footer-store { margin-left: 0; }
}
