/* MainHero — лендинг по скиллу landing-page-design (elayadesign/ai-design-skills).
   Значения берутся ТОЛЬКО из токенов ниже: отступы B2, радиусы B3 (шкала Tailwind), текстовые стили B1.
   Бренд (имя, слоган, логотип «Прожектор», золотой акцент, «вы») — production/marketing/brand/mainhero-brand.html */
:root {
  /* B2 spacing */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  /* B3 radius (Tailwind) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
  /* B4 dark backgrounds — only the allowed tones */
  --d-base: #131209; --d-surface: #1F1F1F; --d-raised: #272727; --d-line: #313131;
  --d-fg: #FFFFFF; --d-mute: #9B9B9B;
  /* light sections */
  --l-base: #F7F6F2; --l-card: #FFFFFF; --l-fg: #131209; --l-mute: #5F5E58; --l-line: #E4E2DA;
  /* brand accent: the spotlight */
  --gold: #FFB938; --gold-hover: #FFC85E; --gold-ink: #131209;
  --error: #B4233B;
  /* B7 motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, sans-serif;
  --gutter-l: max(var(--s-200), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--s-200), env(safe-area-inset-right, 0px));
}

/* B1 text styles — every text element uses one of these */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600 }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600 }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600 }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600 }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600 }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600 }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500 }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500 }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500 }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500 }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600 }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500 }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400 }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500 }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400 }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600 }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600 }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500 }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400 }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600 }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400 }
@media (max-width: 720px) {
  .heading-1 { font-size: 48px; line-height: 48px }       /* = Heading 2 values on phones */
  .heading-2 { font-size: 36px; line-height: 40px }       /* = Heading 3 */
  .heading-3 { font-size: 30px; line-height: 36px }       /* = Heading 4 */
}
h1, h2, h3 { margin: 0; text-wrap: balance }
p { margin: 0; text-wrap: pretty }

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900) }
body { margin: 0; font-family: var(--font); background: var(--l-base); color: var(--l-fg); -webkit-font-smoothing: antialiased }
img { max-width: 100%; height: auto; display: block }
a { color: inherit }
.wrap { max-width: 1152px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r) }
.ph { font-size: 24px; line-height: 1 }
:focus-visible { outline: 2px solid var(--gold); outline-offset: var(--s-50); border-radius: var(--r-md) }
.skip { position: absolute; left: var(--s-200); top: var(--s-200); z-index: 100; background: var(--gold); color: var(--gold-ink);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); transform: translateY(-200%); transition: transform .5s var(--ease); text-decoration: none }
.skip:focus { transform: translateY(0) }

/* buttons (B2: main buttons 8px / 12px, B9 states) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75); padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full); border: 1px solid transparent; cursor: pointer; text-decoration: none; font-family: var(--font);
  white-space: nowrap;   /* B10: button text stays inside the button at 390px */
  transition: background-color .3s var(--ease), transform .5s var(--ease), border-color .3s var(--ease) }
.btn:active { transform: scale(0.98) }
.btn-gold { background: var(--gold); color: var(--gold-ink) }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px) }
.btn-line { border-color: var(--l-line); color: var(--l-fg); background: var(--l-card) }
.btn-line:hover { border-color: var(--l-fg) }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none }

/* B7 navigation: floating compact bar */
.nav { position: fixed; z-index: 50; left: 50%; top: calc(env(safe-area-inset-top, 0px) + var(--s-200)); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - var(--s-400)); display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); border-radius: var(--r-full); border: 1px solid var(--d-line);
  background: rgba(19, 18, 9, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--d-fg) }
.nav .logo { display: inline-flex; text-decoration: none }
.nav .logo svg { height: 24px; width: auto }
.nav-links { display: flex; gap: var(--s-300); align-items: center }
.nav-links a:not(.btn) { color: var(--d-mute); text-decoration: none; transition: color .3s var(--ease) }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="true"] { color: var(--d-fg) }
.toggle { display: none; width: var(--s-500); height: var(--s-500); border-radius: var(--r-full); border: 0; background: var(--d-raised);
  cursor: pointer; position: relative }
.toggle span { position: absolute; left: var(--s-100); right: var(--s-100); height: 2px; background: var(--d-fg); border-radius: var(--r-full);
  transition: transform .5s var(--ease) }
.toggle span:first-child { transform: translateY(-4px) }
.toggle span:last-child { transform: translateY(4px) }
.nav.open .toggle span:first-child { transform: rotate(45deg) }
.nav.open .toggle span:last-child { transform: rotate(-45deg) }
.menu { position: fixed; inset: 0; z-index: 40; background: rgba(19, 18, 9, .92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: calc(env(safe-area-inset-top, 0px) + var(--s-900)) var(--gutter-r) var(--s-600) var(--gutter-l);
  display: grid; align-content: start; gap: var(--s-300); color: var(--d-fg); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease) }
.menu.open { opacity: 1; pointer-events: auto }
.menu a { text-decoration: none; opacity: 0; transform: translateY(var(--s-300)); transition: opacity .5s var(--ease), transform .5s var(--ease) }
.menu.open a { opacity: 1; transform: none }
.menu.open a:nth-child(2) { transition-delay: 60ms } .menu.open a:nth-child(3) { transition-delay: 120ms }
.menu.open a:nth-child(4) { transition-delay: 180ms }
@media (max-width: 720px) {
  .nav { left: var(--gutter-l); right: var(--gutter-r); transform: none; width: auto; max-width: none; justify-content: space-between }
  .nav-links a:not(.btn) { display: none }
  .toggle { display: block }
}

/* dark sections */
.dark { background: var(--d-base); color: var(--d-fg) }
.dark .mute { color: var(--d-mute) }
.mute { color: var(--l-mute) }
section { padding-block: var(--s-900) }
.head { display: grid; gap: var(--s-200); margin-bottom: var(--s-600); max-width: 680px }
.eyebrow { color: var(--l-mute); text-transform: uppercase; letter-spacing: .08em }
.dark .eyebrow { color: var(--d-mute) }

/* B5 hero */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + var(--s-900) + var(--s-700)); padding-bottom: var(--s-900) }
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: var(--s-700); align-items: center }
.hero-copy { display: grid; gap: var(--s-300); min-width: 0 }
.hero h1, .hero .sub { max-width: 680px }
.hero h1 { background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent }
.hero .sub { color: var(--d-mute) }
.proof { display: inline-flex; gap: var(--s-75); align-items: center; color: var(--d-mute); width: fit-content;
  border: 1px solid var(--d-line); border-radius: var(--r-full); padding: var(--s-50) var(--s-100) }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); color: var(--d-mute) }
.facts span { display: inline-flex; gap: var(--s-75); align-items: center }
.facts .ph { color: var(--gold); font-size: 16px }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: var(--s-600) } }

/* credits card (the brand device) */
.credits { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--r-3xl); padding: var(--s-400) var(--s-300); display: grid; gap: var(--s-100) }
.credits .c { display: grid; grid-template-columns: 1fr auto; gap: var(--s-100); align-items: baseline; padding-bottom: var(--s-100);
  border-bottom: 1px dashed var(--d-line) }  /* a row divider inside the card, not a card border */
.credits .r { color: var(--d-mute); text-transform: uppercase; letter-spacing: .08em }
.credits .w { text-align: right }
.credits .star .w { color: var(--gold) }
.credits .fin { text-align: center; padding-top: var(--s-200); color: var(--gold); letter-spacing: .3em }
.credits .tag { color: var(--d-mute); text-align: center }

/* problem → solution */
.ps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300) }
.ps article { border-radius: var(--r-3xl); padding: var(--s-500); display: grid; gap: var(--s-200); align-content: start; min-width: 0 }
.ps .before { background: var(--l-card); border: 1px solid var(--l-line) }
.ps .after { background: var(--d-base); color: var(--d-fg); border: 1px solid var(--d-base) }
.ps .after .mute { color: var(--d-mute) }
.props { display: flex; flex-wrap: wrap; gap: var(--s-300); align-items: flex-end; padding-top: var(--s-200) }
.props .ph { color: var(--gold); font-size: 48px }
@media (max-width: 880px) { .ps { grid-template-columns: 1fr } .ps article { padding: var(--s-300) } }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-200) }
.benefit { background: var(--l-card); border: 1px solid var(--l-line); border-radius: var(--r-2xl); padding: var(--s-300); display: grid; gap: var(--s-100); align-content: start }
.benefit .icon { width: var(--s-500); height: var(--s-500); border-radius: var(--r-xl); background: var(--l-base); display: grid; place-items: center }

/* B11 tagline reveal */
.tagline { padding-block: var(--s-900) }
.tagline p { max-width: 680px; margin: 0 auto; text-align: center; text-wrap: balance }
.tagline .w { color: var(--d-fg); opacity: .3; transition: opacity .5s var(--ease) }
.tagline .w.on { opacity: 1 }
@media (prefers-reduced-motion: reduce) { .tagline .w { opacity: 1; transition: none } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200); counter-reset: s }
.steps li { background: var(--l-card); border: 1px solid var(--l-line); border-radius: var(--r-2xl); padding: var(--s-300); display: grid; gap: var(--s-100); align-content: start }
.steps .n { color: var(--l-mute) }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr } }

/* proof: empty state until the beta */
.empty { border: 1px dashed var(--l-line); border-radius: var(--r-3xl); padding: var(--s-600) var(--s-400); display: grid; gap: var(--s-200); justify-items: center; text-align: center; background: var(--l-card) }
.empty .icon { width: var(--s-600); height: var(--s-600); border-radius: var(--r-full); background: var(--l-base); display: grid; place-items: center }
.empty p { max-width: 520px }

/* price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); align-items: stretch }
.price-card { background: var(--d-base); color: var(--d-fg); border-radius: var(--r-3xl); padding: var(--s-500); display: grid; gap: var(--s-300); align-content: start }
.price-card .amount { color: var(--gold) }
.price-card ul, .risk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-100) }
.price-card li, .risk li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-100); align-items: start }
.price-card .ph { color: var(--gold) }
.risk { border: 1px solid var(--l-line); background: var(--l-card); border-radius: var(--r-3xl); padding: var(--s-500); display: grid; gap: var(--s-300); align-content: start }
@media (max-width: 880px) { .price { grid-template-columns: 1fr } .price-card, .risk { padding: var(--s-300) } }

/* faq */
.faq { display: grid; gap: var(--s-75); max-width: 820px }
.faq details { background: var(--l-card); border: 1px solid var(--l-line); border-radius: var(--r-2xl); padding: var(--s-200) var(--s-300) }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-200); align-items: center }
.faq summary::-webkit-details-marker { display: none }
.faq summary .ph { transition: transform .5s var(--ease); flex: none }
.faq details[open] summary .ph { transform: rotate(45deg) }
.faq details p { padding-top: var(--s-100); color: var(--l-mute) }

/* form (final CTA) */
.order .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-700); align-items: start }
form { display: grid; gap: var(--s-300); min-width: 0; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--r-3xl); padding: var(--s-400) }
.field { display: grid; gap: var(--s-75) }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200) }
input, select, textarea { font-family: var(--font); font-size: 16px; line-height: 24px; color: var(--d-fg); background: var(--d-raised);
  border: 1px solid var(--d-line); border-radius: var(--r-xl); padding: var(--s-100) var(--s-200); width: 100%; min-width: 0;
  transition: border-color .3s var(--ease) }
input::placeholder, textarea::placeholder { color: var(--d-mute) }
textarea { min-height: var(--s-900); resize: vertical }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold) }
[aria-invalid="true"] { border-color: var(--error) }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-100); align-items: start; color: var(--d-mute) }
.check input { width: 20px; height: 20px; margin: var(--s-25) 0 0; accent-color: var(--gold) }
.form-msg { color: #FF8A9B; min-height: 20px }
.form-msg.ok { color: var(--d-mute) }
.hp { position: absolute; left: -9999px }
@media (max-width: 880px) { .order .wrap { grid-template-columns: 1fr; gap: var(--s-500) } .row2 { grid-template-columns: 1fr } form { padding: var(--s-300) } }

/* footer */
footer { padding-block: var(--s-500) calc(var(--s-500) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--d-line) }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); align-items: center }
footer nav { display: flex; gap: var(--s-300); flex-wrap: wrap }
footer a { color: var(--d-mute); text-decoration: none; transition: color .3s var(--ease) }
footer a:hover { color: var(--d-fg) }

/* B7 scroll reveals (only when JS runs, so the page is complete without it) */
.js .reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.js .reveal.in { opacity: 1; transform: none }
.js .credits .c, .js .credits .fin { opacity: 0; transform: translateY(var(--s-75)); transition: opacity .5s var(--ease), transform .5s var(--ease) }
.js .credits.in .c, .js .credits.in .fin { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .js .reveal, .js .credits .c, .js .credits .fin { transform: none; transition: opacity .3s var(--ease) }
}

/* text pages */
.page { padding-top: calc(env(safe-area-inset-top, 0px) + var(--s-900) + var(--s-400)); padding-bottom: var(--s-900); min-height: 100vh }
.page .wrap { max-width: 760px; display: grid; gap: var(--s-200) }
.page ul { margin: 0; padding-left: var(--s-300); display: grid; gap: var(--s-75) }
.todo { background: #FFF3D6; color: #5A3E00; padding: 0 var(--s-50); border-radius: var(--r-md) }
.ph-hl { color: var(--gold) }

/* ---------- hero: props floating at depth (scroll + pointer parallax, transform only) ---------- */
.hero { position: relative; overflow: hidden }
.hero .wrap { position: relative; z-index: 1 }
.float-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0 }
.fp { position: absolute; will-change: transform; opacity: .9 }
.fp .ph { color: var(--gold); font-size: 64px }
.fp.d1 { opacity: .35 } .fp.d2 { opacity: .6 }
@media (max-width: 880px) { .fp.hide-sm { display: none } .fp { opacity: .45 } }

/* ---------- stage: the game's own parallax layers, driven by scroll ---------- */
.stage { position: relative; height: 260vh; background: var(--d-base) }
.stage-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden }
.layer { position: absolute; left: 0; bottom: 0; width: 400%; background-repeat: repeat-x; background-size: auto 100%;
  background-position: left bottom; will-change: transform }
.layer.far { height: 100%; background-image: url(img/stage/far.svg) }
.layer.mid { height: 100%; background-image: url(img/stage/mid.svg) }
.layer.near { height: 26%; background-image: url(img/stage/near.svg) }
.runner { position: absolute; z-index: 1; left: 26%; bottom: 6%; height: 46%; aspect-ratio: 448 / 620; overflow: hidden }
/* 4×4 sheet, row-major, 16 fps: the row wrapper (4 frames tall) steps down once per 0.25 s, the sheet steps left 4× per row */
.runner .row { position: absolute; inset: 0 auto auto 0; width: 100%; animation: run-y 1s steps(4) infinite }
.runner img { width: 400%; max-width: none; height: auto; animation: run-x .25s steps(4) infinite }
@keyframes run-y { to { transform: translateY(-100%) } }
@keyframes run-x { to { transform: translateX(-100%) } }
.stage-copy { position: absolute; z-index: 2; left: var(--gutter-l); top: calc(env(safe-area-inset-top, 0px) + var(--s-900));
  max-width: 420px; background: rgba(19, 18, 9, .86); color: var(--d-fg); border: 1px solid var(--d-line);
  border-radius: var(--r-2xl); padding: var(--s-300); display: grid; gap: var(--s-100) }
.stage-copy .mute { color: var(--d-mute) }
.stage-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: var(--s-50); background: var(--d-surface) }
.stage-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0) }
@media (max-width: 720px) { .stage { height: 220vh } .runner { height: 34%; left: 8% } .stage-copy { right: var(--gutter-r) } }
@media (prefers-reduced-motion: reduce) {
  .stage { height: auto } .stage-sticky { position: relative; height: 80vh }
  .runner .row, .runner img { animation: none }
}

/* ---------- questionnaire (anketa.html) ---------- */
#anketa { background: none; border: 0; padding: 0; border-radius: 0 }   /* levels hold their own cards */
.q-top { display: grid; gap: var(--s-200); margin-bottom: var(--s-500) }
.q-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-75) }
.q-progress span { height: var(--s-50); border-radius: var(--r-full); background: var(--d-line); transition: background-color .3s var(--ease) }
.q-progress span.done { background: var(--gold) }
.q-level { display: none; gap: var(--s-400); border: 0; margin: 0; padding: 0; min-width: 0 }
.q-level.active { display: grid }
.q-level legend { padding: 0; margin-bottom: var(--s-300) }
.q-card { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--r-3xl); padding: var(--s-400); display: grid; gap: var(--s-300) }
.q-card h3 { margin: 0 }
.q-field { display: grid; gap: var(--s-75) }
.q-field .hint { color: var(--d-mute) }
.q-field .req { color: var(--gold) }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-100) }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-75) }
.choices label { position: relative; cursor: pointer }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px }
.choices span { display: inline-flex; padding: var(--s-75) var(--s-200); border-radius: var(--r-full); border: 1px solid var(--d-line);
  background: var(--d-raised); color: var(--d-fg); transition: background-color .3s var(--ease), border-color .3s var(--ease) }
.choices input:checked + span { background: var(--gold); color: var(--gold-ink); border-color: var(--gold) }
.choices input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: var(--s-25) }
input[type="file"] { padding: var(--s-100); cursor: pointer }
input[type="file"]::file-selector-button { font-family: var(--font); font-weight: 600; border: 0; border-radius: var(--r-full);
  background: var(--gold); color: var(--gold-ink); padding: var(--s-75) var(--s-100); margin-right: var(--s-100); cursor: pointer }
.friend { border: 1px solid var(--d-line); border-radius: var(--r-2xl); padding: var(--s-300); display: grid; gap: var(--s-200) }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); flex-wrap: wrap; margin-top: var(--s-400) }
.q-saved { color: var(--d-mute) }
@media (max-width: 720px) { .trio { grid-template-columns: 1fr } .q-card { padding: var(--s-300) } }

/* =====================================================================================================
   Home page, warm editorial look (owner 2026-12-01, inspired by the mood of diabrowser.com, nothing copied):
   gold-to-cream light, a giant serif title, the game playing inside a glass window, a numbered list that
   lights up on scroll, one black pill fixed at the bottom. Everything is scoped to body.home: other pages keep
   their look. Motion: transform and opacity only, one curve, all of it off under prefers-reduced-motion.
   ===================================================================================================== */
.home {
  --cream: #FBF6EA; --ink: #17140C; --ink-mute: #6B6455; --hair: rgba(23, 20, 12, .08);
  --glass: rgba(255, 252, 244, .62); --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Cormorant", "Times New Roman", serif;
  background: var(--cream); color: var(--ink);
}
/* paper grain on a fixed layer, never on scrolling content */
.home::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: multiply;
  background-image: url(img/grain.svg) }
.home .mute, .home .eyebrow { color: var(--ink-mute) }
.home .heading-2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -.01em }
.home section { padding-block: clamp(var(--s-900), 12vw, 160px) }
.home .eyebrow { display: inline-flex; width: fit-content; padding: var(--s-50) var(--s-100); border-radius: var(--r-full);
  background: var(--hair); letter-spacing: .2em; font-size: 10px }

/* glass pill nav, light */
.home .nav { background: var(--glass); border: 1px solid rgba(255, 255, 255, .7); color: var(--ink);
  box-shadow: 0 10px 40px -12px rgba(120, 84, 10, .25), inset 0 1px 0 rgba(255, 255, 255, .8) }
.home .nav-links a:not(.btn) { color: var(--ink-mute) }
.home .nav-links a:not(.btn):hover, .home .nav-links a[aria-current="true"] { color: var(--ink) }
.home .nav .btn-gold { background: var(--ink); color: var(--cream) }
.home .toggle { background: var(--hair) } .home .toggle span { background: var(--ink) }
.home .menu { background: rgba(251, 246, 234, .9); color: var(--ink) }

/* buttons: black pill, springy press */
.home .btn { transition: transform .6s var(--spring), background-color .4s var(--spring) }
.home .btn-gold { background: var(--ink); color: var(--cream) }
.home .btn-gold:hover { background: #2C271B }
.home .btn-line { background: transparent; border-color: rgba(23, 20, 12, .18); color: var(--ink) }

/* ---------- hero ---------- */
.hd { position: relative; overflow: hidden; padding-top: calc(env(safe-area-inset-top, 0px) + 104px) !important; padding-bottom: var(--s-800) !important;
  background:
    radial-gradient(150% 95% at 50% 0%, #EDB22E 0%, #F3C658 42%, #F7DD9C 62%, rgba(251, 246, 234, 0) 92%),
    radial-gradient(60% 40% at 85% 20%, rgba(255, 170, 60, .35), transparent 70%),
    var(--cream) }
.hd-wrap { display: grid; justify-items: center; text-align: center }
.hd-kicker { color: #4A3B12; position: relative; z-index: 2 }
.hd-title { font-family: var(--serif); font-weight: 500; color: #FFFDF6; position: relative; z-index: 0;
  font-size: clamp(52px, 9vw, 148px); line-height: .92; letter-spacing: -.02em; margin-top: var(--s-200);
  text-shadow: 0 2px 24px rgba(140, 85, 0, .35), 0 1px 2px rgba(120, 70, 0, .25) }
.hd-title em { font-style: italic; font-weight: 400 }
/* the window rises over the lower part of the title, like a product shot on a poster */
.hd-window { position: relative; z-index: 1; width: min(100%, 980px); margin-top: calc(clamp(52px, 9vw, 148px) * -0.16);
  padding: 7px; border-radius: 30px; background: rgba(255, 255, 255, .38); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 40px 80px -30px rgba(110, 70, 0, .45), 0 2px 0 rgba(255, 255, 255, .6) inset;
  transform-origin: 50% 0; will-change: transform }
.hd-core { border-radius: 23px; overflow: hidden; background: #FFFBF0; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9) }
.hd-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255, 249, 235, .95); border-bottom: 1px solid var(--hair) }
.hd-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #E8DCC0 }
.hd-chrome span { margin: 0 auto; padding: 2px 14px; border-radius: var(--r-full); background: var(--hair); color: var(--ink-mute) }
.hd-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1E1830 }
.hd-stage .layer { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; background-repeat: repeat-x;
  background-size: 50% 100%; background-position: left bottom; will-change: transform; animation: hd-scroll linear infinite }
/* tile width = window width (16:9 tiles in a 16:9 window), so moving by half the 200% strip loops without a seam */
.hd-stage .far { background-image: url(img/stage/far.svg); animation-duration: 48s }
.hd-stage .mid { background-image: url(img/stage/mid.svg); animation-duration: 20s }
.hd-stage .near { height: 26.667%; background-image: url(img/stage/near.svg); animation-duration: 7s }
@keyframes hd-scroll { to { transform: translate3d(-50%, 0, 0) } }
.hd-stage .runner { left: 22%; bottom: 7%; height: 50%; animation: hd-hop 14s var(--spring) infinite }
/* 14 s loop: she runs, then the screen fades into the final credits, then back to the run */
.hd-credits { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; overflow: hidden;
  background: rgba(14, 11, 22, .88); color: #FFF6DD; opacity: 0; animation: hd-fade 14s var(--spring) infinite }
.hd-credits .roll { display: grid; gap: 4px; justify-items: center; animation: hd-roll 14s linear infinite }
.hd-credits span { color: rgba(255, 246, 221, .55); text-transform: uppercase; letter-spacing: .18em; margin-top: 14px }
.hd-credits b { font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 2.6vw, 30px) }
.hd-credits .hd-serif { font-style: italic; font-size: clamp(30px, 5vw, 58px); color: #F4C95D }
.hd-credits .fin { color: #F4C95D; letter-spacing: .5em; margin-top: 28px }
@keyframes hd-fade { 0%, 52% { opacity: 0 } 58%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes hd-roll { 0%, 54% { transform: translateY(60%) } 96%, 100% { transform: translateY(-62%) } }
@keyframes hd-hop { 0%, 100% { transform: none } }
.hd-sub { max-width: 620px; margin-top: var(--s-600); color: var(--ink-mute) }
.home .facts { justify-content: center; margin-top: var(--s-300); color: var(--ink-mute) }
.home .facts .ph { color: #B8860B }
.home .proof { margin-top: var(--s-300); color: var(--ink-mute); border-color: rgba(23, 20, 12, .14) }
.hd .tag { margin-top: var(--s-200); color: var(--ink-mute); opacity: .8 }
/* load choreography: kicker, title, window arrive one after another */
/* the hidden state lives only inside the keyframes: if the animation never runs, the hero is simply visible */
.js .hd-in { animation: hd-arrive 1.1s var(--spring) both }
.js .hd-title.hd-in { animation-delay: .12s } .js .hd-window.hd-in { animation-delay: .3s }
@keyframes hd-arrive { from { opacity: 0; transform: translateY(28px); filter: blur(8px) } }
.js .hd-window.hd-in { animation-name: hd-arrive-win }
@keyframes hd-arrive-win { from { opacity: 0; filter: blur(8px) } }
@media (max-width: 720px) {
  .hd-window { padding: 5px; border-radius: 22px; margin-top: var(--s-300) }
  .hd-core { border-radius: 17px }
  .hd-chrome { padding: 8px 10px }
}

/* problem → solution and other cards: double bezel on cream */
.home .ps .before, .home .benefit, .home .steps li, .home .risk, .home .faq details, .home .empty {
  background: #FFFDF8; border: 1px solid var(--hair); box-shadow: 0 0 0 6px rgba(23, 20, 12, .025), 0 24px 60px -36px rgba(80, 60, 10, .35) }
.home .ps .after, .home .price-card { background: var(--ink); color: var(--cream) }
.home .ps .after .mute, .home .price-card .mute { color: #B9B09A }
.home .price-card .amount { color: #F4C95D; font-family: var(--serif) }
.home .props .ph, .home .price-card .ph { color: #F4C95D }
.home .ps article, .home .price-card, .home .risk { border-radius: 32px }
.home .steps li { border-radius: 28px; padding: var(--s-400) }
.home .steps .n { font-family: var(--serif); font-size: 20px; letter-spacing: 0; font-style: italic; color: #A07410 }

/* ---------- benefits: numbered list + sticky icon card ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-800); align-items: start }
.feat-list { display: grid; gap: var(--s-200) }
.feat-item { display: grid; gap: var(--s-75); padding: var(--s-300) 0 var(--s-300) var(--s-300); border-left: 2px solid var(--hair);
  opacity: .38; transition: opacity .7s var(--spring), border-color .7s var(--spring) }
.feat-item.on { opacity: 1; border-color: var(--ink) }
.feat-item .num { color: var(--ink-mute); letter-spacing: .1em }
.feat-h { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.05 }
.feat-item p { max-width: 420px; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px);
  transition: opacity .7s var(--spring), transform .7s var(--spring), max-height .7s var(--spring) }
.feat-item.on p { max-height: 120px; opacity: 1; transform: none }
.feat-visual { position: sticky; top: 22vh }
.feat-card { position: relative; aspect-ratio: 1; border-radius: 40px; padding: 8px;
  background: linear-gradient(160deg, #F6D27A, #F2BE3C 55%, #E9A23B); box-shadow: 0 40px 90px -40px rgba(140, 90, 0, .6) }
.feat-card::before { content: ""; position: absolute; inset: 8px; border-radius: 32px; background: rgba(255, 253, 246, .35);
  border: 1px solid rgba(255, 255, 255, .6) }
.feat-ic { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.85) rotate(-6deg);
  transition: opacity .8s var(--spring), transform .8s var(--spring) }
.feat-ic.on { opacity: 1; transform: none }
.feat-ic .ph { font-size: clamp(120px, 16vw, 220px); color: var(--ink) }
@media (max-width: 880px) {
  .feat { grid-template-columns: 1fr; gap: var(--s-500) }
  .feat-visual { display: none }
  .feat-item, .feat-item p { opacity: 1; max-height: none; transform: none }
}

/* tagline on cream, serif, words light up */
.home .tagline p { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 88px); line-height: 1; max-width: 980px }
.home .tagline .w { color: var(--ink); opacity: .16 }
.home .tagline .w.on { opacity: 1 }

/* final form keeps the dark card: the one place the page turns to night, like the end of a film */
.home .order { background: var(--ink) }
.home .order .heading-2 { color: var(--cream) }
.home footer { background: var(--ink) }

/* ---------- the black pill at the bottom, always one tap away ---------- */
.dock { display: none }
.home .dock { position: fixed; z-index: 45; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s-300));
  display: inline-flex; align-items: center; gap: var(--s-200); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-400);
  border-radius: var(--r-full); background: var(--ink); color: var(--cream); text-decoration: none; white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgba(23, 20, 12, .55); transform: translateX(-50%);
  transition: transform .7s var(--spring), opacity .5s var(--spring) }
.home .dock-i { width: 40px; height: 40px; border-radius: 50%; background: rgba(251, 246, 234, .12); display: grid; place-items: center;
  transition: transform .6s var(--spring) }
.home .dock-i .ph { font-size: 18px }
.home .dock:hover .dock-i { transform: translateX(3px) scale(1.06) }
.home .dock:active { transform: translateX(-50%) scale(.97) }
.home .dock.away { opacity: 0; transform: translate(-50%, 140%); pointer-events: none }

@media (prefers-reduced-motion: reduce) {
  .hd-stage .layer, .hd-stage .runner .row, .hd-stage .runner img, .hd-credits .roll { animation: none }
  .hd-credits { display: none }
  .js .hd-in { animation: none; opacity: 1; transform: none; filter: none }
  .feat-item, .feat-item p, .feat-ic, .home .dock { transition: none }
}
/* on the night blocks the button turns gold, so it never sinks into the dark */
.home .order .btn-gold, .home .price-card .btn-gold { background: #F4C95D; color: var(--ink) }
.home .order .btn-gold:hover, .home .price-card .btn-gold:hover { background: #F8D67F }
.home .order .eyebrow { color: #B9B09A; background: rgba(251, 246, 234, .08) }
