/* landing/home.css — v2.38 Growth Wave home page (spandik.com). Heritage Sunset tokens are the approved brand; the
   other landing pages keep using styles.css. One orchestrated motion (the phone's screens), none elsewhere. */
:root {
  --cream: #FEF9F3;
  --dusk: #FFE7C7;
  --saffron: #FF9F1C;
  --ember: #E8850A;
  --indigo: #241B43;
  --indigo-2: #453A63;
  --muted: #6E6378;
  --line: #EEDDCC;
  --paper: #FFFDFC;
  --link: #9A5800;
  --night: #171329;
  --measure: 62ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--indigo); font: 400 17px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
/* Android Chrome paints its tap highlight as a rectangle over the element box; it is off (above) and every control
   shows its own rounded pressed state instead. The keyboard ring follows each element's own radius (never reshapes it). */
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
a, button, summary { touch-action: manipulation; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: var(--saffron); padding: 10px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; color: var(--indigo); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(254, 249, 243, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nav .lockup { height: 32px; width: auto; }
.nav .wrap > a { display: inline-flex; align-items: center; min-height: 44px; }
.nav nav { display: flex; align-items: center; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn-primary:active { background: var(--indigo-2); }
.btn-quiet:active, .btn-outline:active { background: rgba(36, 27, 67, .07); }
.btn-primary { background: var(--indigo); color: var(--saffron); }
.btn-quiet { color: var(--indigo); }
.btn-outline { color: var(--indigo); border: 1.5px solid var(--indigo); }

/* ── hero: an evening sky settling onto the heritage skyline ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream) 0%, #FFF1DE 46%, var(--dusk) 78%, #FFD3A0 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 210px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; font-weight: 900; max-width: 15ch; text-wrap: balance; }
.hero .lede { margin-top: 22px; font-size: 19px; color: var(--indigo-2); max-width: 44ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .avail { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 46ch; }
.mandala { position: absolute; top: -30px; width: 240px; opacity: .28; pointer-events: none; }
.mandala.l { left: -70px; }
.mandala.r { right: -70px; transform: scaleX(-1); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background: url('/brand/heritage-sunset-horizon.webp') center bottom / cover no-repeat; opacity: .9; }
.skyline::before { content: ''; position: absolute; inset: 0 0 auto; height: 60px; background: linear-gradient(180deg, #FFD3A0, transparent); }

/* ── the phone: real app screenshots (captured by e2e/tests/90-landing-shots.spec.ts) ── */
.phone-wrap { justify-self: center; text-align: center; }
.phone { width: 324px; border-radius: 48px; background: linear-gradient(150deg, #3A2F5E, var(--indigo) 45%, #120E22); padding: 12px; box-shadow: 0 2px 0 1px rgba(255, 255, 255, .08) inset, 0 50px 80px -30px rgba(36, 27, 67, .55), 0 18px 36px -18px rgba(232, 133, 10, .35); }
.screen { position: relative; aspect-ratio: 390 / 844; border-radius: 37px; overflow: hidden; background: var(--paper); touch-action: pan-y; }
/* Fade-through, not a crossfade: the outgoing screen fades out in 160 ms and only then is the next one shown, so two
   screens are never visible together (a crossfade ghosts their text); hidden screens are visibility:hidden. */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity .16s ease-in, visibility 0s linear .16s; -webkit-user-drag: none; user-select: none; }
.scene.on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .24s ease-out .16s, visibility 0s linear .16s; }
@media (prefers-reduced-motion: reduce) { .scene, .scene.on { transition: none; } }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
.tabs button { min-height: 44px; padding: 0 13px; border-radius: 999px; border: 1.5px solid rgba(36, 27, 67, .18); background: rgba(255, 253, 252, .7); color: var(--indigo); font: 700 14px/1 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; }
.tabs button { transition: background-color .15s, color .15s, transform .12s; }
.tabs button:active { transform: scale(.96); background: rgba(36, 27, 67, .1); }
@media (hover: hover) { .tabs button:hover { border-color: var(--indigo); } }
.tabs button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--saffron); }
.phone-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ── story sections ── */
.band { padding: 96px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; max-width: 18ch; }
.band .lead { margin-top: 16px; font-size: 18px; color: var(--indigo-2); max-width: var(--measure); }
.moments { display: grid; gap: 64px; margin-top: 56px; }
.moment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.moment:nth-child(even) .moment-shot { order: -1; }
.moment h3 { font-size: 26px; }
.moment p { margin-top: 12px; color: var(--indigo-2); max-width: 46ch; }
.moment-shot { margin: 0; justify-self: center; width: min(360px, 100%); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 30px 60px -30px rgba(36, 27, 67, .35); }
.moment-shot img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.shots-note { margin-top: 28px; }

/* privacy: plain statements of what is and isn't encrypted */
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: 920px; }
.fact { padding: 20px 0; border-top: 1px solid var(--line); }
.fact h3 { font: 700 17px/1.4 'Plus Jakarta Sans', system-ui, sans-serif; }
.fact p { margin-top: 6px; font-size: 15.5px; color: var(--indigo-2); }

/* languages: the same sentence, three scripts */
.langs { background: var(--night); color: #FFF4E6; }
.langs h2 { color: #FFF4E6; }
.langs .lead { color: rgba(255, 244, 230, .78); }
.say { margin-top: 48px; display: grid; gap: 18px; }
.say p { font-family: 'Fraunces', 'Noto Serif Devanagari', 'Noto Serif Bengali', Georgia, serif; font-size: clamp(28px, 4.4vw, 56px); line-height: 1.2; color: #FFF4E6; }
.say p:nth-child(2) { color: var(--saffron); }
.say p:nth-child(3) { color: #FFC98A; }
.say small { display: block; font: 500 13px/1.4 'Plus Jakarta Sans', system-ui, sans-serif; color: rgba(255, 244, 230, .6); margin-top: 4px; }

/* how to start — a real sequence, so it is numbered */
.steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: var(--indigo); font: 700 18px/1 'Fraunces', serif; margin-bottom: 14px; }
.steps h3 { font-size: 21px; }
.steps p { margin-top: 8px; color: var(--indigo-2); font-size: 15.5px; }

/* faq */
.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:active { color: var(--indigo-2); }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; color: var(--indigo-2); max-width: var(--measure); }

/* closing + android + footer */
.closing { text-align: center; padding: 96px 0 0; background: linear-gradient(180deg, var(--cream), var(--dusk)); }
.closing h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 16ch; margin: 0 auto; }
.closing p { margin: 16px auto 28px; color: var(--indigo-2); max-width: 44ch; }
.closing .horizon { margin-top: 64px; height: 180px; background: url('/brand/heritage-sunset-horizon.webp') center bottom / cover no-repeat; }
.android { padding: 64px 0; border-top: 1px solid var(--line); }
.android code { word-break: break-all; }
footer { border-top: 1px solid var(--line); padding: 36px 0; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer .lockup { height: 28px; width: auto; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal a { color: var(--muted); font-size: 14px; text-decoration: none; min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; }
.legal a:hover, .legal a:active { text-decoration: underline; }
.copyright { width: 100%; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .moment, .facts, .steps { grid-template-columns: 1fr; }
  .moment:nth-child(even) .moment-shot { order: 0; }
  .mandala { width: 140px; opacity: .14; top: -20px; }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 150px; }
  .moment, .facts, .steps { grid-template-columns: 1fr; }
  .moment:nth-child(even) .moment-shot { order: 0; }
  .band { padding: 72px 0; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .phone { width: 262px; border-radius: 40px; padding: 10px; }
  .screen { border-radius: 31px; }
  .btn { padding: 0 18px; }
}
[hidden] { display: none !important; }
