/* Self-hosted fonts (variable woff2, latin subset). font-display:swap.
   DES-634 restyle: Fraunces -> Gabarito, Hanken Grotesk -> Host Grotesk. The
   old faces and their woff2 files were removed with the swap; recover from git
   if the restyle is ever reverted. */
@font-face{font-family:"Gabarito";font-weight:400 900;font-display:swap;src:url("assets/fonts/gabarito.woff2") format("woff2")}
@font-face{font-family:"Host Grotesk";font-style:normal;font-weight:300 800;font-display:swap;src:url("assets/fonts/host-grotesk-normal.woff2") format("woff2")}
@font-face{font-family:"Host Grotesk";font-style:italic;font-weight:300 800;font-display:swap;src:url("assets/fonts/host-grotesk-italic.woff2") format("woff2")}

/* ForLater default brand (DES-634). "Tender Remembrance" system */
:root{
  /* --- DES-634 palette. Values marked (guide) are verbatim from the ticket. --- */
  --amber:#e13f76;                      /* Razz, accent            (guide) */
  --amber-hi:#f0426b;                   /* CTA gradient stop 0%    (guide) */
  --ink:#0f172a;                        /* Midnight, headers       (guide) */
  --ink-soft:#6e665b;                   /* body text               (guide) */
  --accent-grad:linear-gradient(180deg,#f0426b 0%,#d9115a 100%); /* CTAs (guide) */
  /* Derived so the existing surfaces stay coherent once the accent moves from
     amber to razz. Not specified in the ticket. */
  --amber-glow:rgba(225,63,118,.12);
  --ink-mute:#7a7266;   /* 4.59:1 on --ivory; #9a9286 measured 2.97:1 */
  --ivory:#fdfbf7;
  --sand:#fdf0f2;
  --sand-deep:#f8dce2;
  --card:#ffffff;
  --line:rgba(15,23,42,.10);
  --blue:#1b2436;
  --blue-2:#0f172a;
  --nav-bg:rgba(253,251,247,.82);
  --hero-blob:radial-gradient(circle,rgba(225,63,118,.18),transparent 70%);
  --shadow-sm:0 1px 2px rgba(15,23,42,.05), 0 4px 14px rgba(15,23,42,.05);
  --shadow-md:0 8px 30px rgba(15,23,42,.09), 0 2px 8px rgba(15,23,42,.05);
  --shadow-lg:0 30px 70px rgba(15,23,42,.16), 0 8px 24px rgba(15,23,42,.09);
  --accent-grad-soft:var(--amber-glow);
  --page-grad:var(--ivory);
  --r:18px;
  --maxw:1200px;
  --serif:"Gabarito",system-ui,-apple-system,Segoe UI,sans-serif;
  --sans:"Host Grotesk",system-ui,-apple-system,Segoe UI,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--page-grad);color:var(--ink);
  font-family:var(--sans);font-size:18px;line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;font-family:var(--serif);font-weight:700;line-height:1.04;letter-spacing:-.01em;font-optical-sizing:auto}
p{margin:0}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}
.eyebrow{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--amber);display:inline-flex;align-items:center;gap:10px}
.eyebrow::before{content:"";width:26px;height:2px;border-radius:2px;background:var(--accent-grad);opacity:.85}
.lede{font-size:clamp(19px,2vw,22px);color:var(--ink-soft);line-height:1.55;max-width:60ch}

/* grain + paper texture */
.grain{position:fixed;inset:0;pointer-events:none;z-index:60;opacity:.05;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>")}

/* nav */
.nav{position:fixed;top:0;left:0;right:0;z-index:50;transition:background .4s, box-shadow .4s, padding .4s;padding:22px 0}
.nav.scrolled{background:var(--nav-bg);backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 1px 0 var(--line);padding:14px 0}
.nav .row{display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand .mk{width:52px;height:36px;flex:none}
.brand .wt{width:127px;height:30px;flex:none}
@media (max-width:430px){
  /* the two-part lockup is 191px vs the old 121px and overflowed the nav row */
  .brand{gap:8px}
  .brand .mk{width:38px;height:26px}
  .brand .wt{width:93px;height:22px}
}
.brand .seal{width:30px;height:30px;flex:none}
.nav-links{display:flex;align-items:center;gap:30px;font-size:15px;font-weight:500;color:var(--ink-soft);flex:none}
.nav-links a{transition:color .2s;white-space:nowrap}
.nav-links a:hover{color:var(--amber)}
.navtoggle{display:none;background:none;border:0;padding:10px;margin:-10px;cursor:pointer;color:var(--ink);border-radius:10px}
.navtoggle svg{width:24px;height:24px;display:block}
.navtoggle .ico-close{display:none}
.nav.menu-open .navtoggle .ico-open{display:none}
.nav.menu-open .navtoggle .ico-close{display:block}
/* Pre-existing on develop, surfaced by the mobile pass: the deliver mock is a
   fixed 380px and the hero blob is 520px wide, so the document scrolls
   sideways ~25px at 375. body{overflow-x:hidden} clips it visually but the
   root still scrolls. */
@media(max-width:430px){
  .link-card{max-width:calc(100vw - 44px)}
  .blob{display:none}
}
@media(max-width:920px){
  /* 920, not 860: the nav row needs 877px for brand(191) + links(462) + CTA(144)
     + gaps/padding. Below that the CTA clipped off-screen. The new lockup is
     191px vs the old 121px, which is what pushed the requirement past 860. */
  .navtoggle{display:inline-flex}
  .nav .appstore{display:none}
  .nav-links{
    display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;
    align-items:stretch;gap:0;padding:8px 20px 16px;background:var(--ivory);
    border-bottom:1px solid var(--line);box-shadow:var(--shadow-md);
  }
  .nav.menu-open .nav-links{display:flex}
  .nav-links a{padding:14px 4px;min-height:44px;display:flex;align-items:center;
    border-bottom:1px solid var(--line);font-size:16px}
  .nav-links a:last-child{border-bottom:0}
}

/* App Store + Google Play — each store's official badge artwork. Do not restyle the
   badges themselves (both stores forbid it); the wrapper only sizes them. */
.appstore,.playstore{display:inline-flex;align-items:center;height:48px;text-decoration:none;flex:none;
  transition:transform .25s cubic-bezier(.2,.8,.2,1),filter .25s;will-change:transform}
.appstore img,.playstore img{height:100%;width:auto;display:block;pointer-events:none;object-fit:contain}
.appstore:hover,.playstore:hover{transform:translateY(-2px);filter:brightness(1.05)}
.appstore:focus-visible,.playstore:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:11px}
.nav .appstore{height:40px}
.coming{font-size:13.5px;color:var(--ink-mute);display:inline-flex;align-items:center;gap:8px}
.coming[hidden]{display:none !important}
.coming.gplay-soon{text-decoration:none;transition:color .2s}
.coming.gplay-soon:hover{color:var(--amber)}
.coming svg{width:15px;height:15px;opacity:.7}

/* buttons */
.btn-text{display:inline-flex;align-items:center;gap:9px;font-weight:600;color:var(--ink);transition:gap .25s}
.btn-text svg{width:17px;height:17px;transition:transform .25s}
.btn-text:hover{color:var(--amber)}
.btn-text:hover svg{transform:translateX(4px)}


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

/* hero */
.hero{position:relative;min-height:100svh;display:flex;align-items:center;padding:128px 0 80px}
.hero > .wrap{width:100%}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:54px;align-items:center}
.hero h1{font-size:clamp(44px,6.6vw,92px);line-height:.97;letter-spacing:-.025em;font-weight:700}
.hero h1 .line{display:block;overflow:hidden}
.hero h1 .line > span{display:block}
html.motion .hero h1 .line > span{transform:translateY(110%);transition:transform 1.05s cubic-bezier(.16,1,.3,1)}
.hero h1 .accent{font-weight:700;background:var(--accent-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
html.motion .hero.kin h1 .line>span{transform:translateY(0)}
html.motion .hero h1 .line:nth-child(2)>span{transition-delay:.10s}
html.motion .hero h1 .line:nth-child(3)>span{transition-delay:.20s}
.hero-sub{margin-top:26px;max-width:50ch}
.hero-cta{margin-top:34px;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
html.motion .hero-fade{opacity:0;transform:translateY(18px);transition:opacity .9s ease .5s,transform .9s cubic-bezier(.16,1,.3,1) .5s}
html.motion .hero.kin .hero-fade{opacity:1;transform:none}

/* hero collage */
.collage{position:relative;height:560px}
.collage .ph{position:absolute;border-radius:20px;overflow:hidden;box-shadow:var(--shadow-lg);background:var(--sand)}
.collage .ph img{width:100%;height:100%;object-fit:cover}
.collage .main{inset:0 0 60px 56px;}
.collage .small{width:215px;height:268px;left:-8px;bottom:0;border:7px solid var(--ivory)}
.collage .seal-badge{position:absolute;right:6px;top:-22px;z-index:3;background:var(--card);border-radius:16px;
  padding:14px 17px;box-shadow:var(--shadow-md);display:flex;align-items:center;gap:13px;border:1px solid var(--line)}
.seal-badge .ico{width:60px;height:42px;flex:none}
.seal-badge .t{font-size:12px;color:var(--ink-mute);letter-spacing:.04em;text-transform:uppercase;font-weight:600}
.seal-badge .d{font-family:var(--serif);font-size:19px;color:var(--ink);margin-top:1px}
.blob{position:absolute;border-radius:50%;filter:blur(60px);z-index:-1}

/* sections */
section{position:relative}
.sec{padding:104px 0}
.sec-head{max-width:760px}
.sec-head h2{font-size:clamp(32px,4.4vw,56px);margin-top:18px;letter-spacing:-.02em}
.sec-head p{margin-top:20px}
.center{margin-left:auto;margin-right:auto;text-align:center}
.center .eyebrow{justify-content:center}

/* reveal */
html.motion .r-up{opacity:0;transform:translateY(34px);transition:opacity .9s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1)}
html.motion .r-up.in{opacity:1;transform:none}
html.motion .r-up.d1{transition-delay:.08s}html.motion .r-up.d2{transition-delay:.16s}html.motion .r-up.d3{transition-delay:.24s}html.motion .r-up.d4{transition-delay:.32s}

/* two modes */
.modes{background:var(--sand);}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:56px}
.mode{position:relative;border-radius:24px;overflow:hidden;min-height:520px;display:flex;flex-direction:column;justify-content:flex-end;color:var(--ivory);box-shadow:var(--shadow-lg)}
.mode img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;will-change:transform}
.mode{transition:transform .55s cubic-bezier(.16,1,.3,1),box-shadow .55s}
.mode:hover{transform:translateY(-7px);box-shadow:0 40px 80px rgba(42,36,32,.22),0 10px 28px rgba(42,36,32,.12)}
.mode .scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,15,10,.05) 0%,rgba(20,15,10,.30) 42%,rgba(18,12,8,.86) 100%)}
.mode .body{position:relative;padding:38px 38px 40px}
.mode .tag{font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--amber-hi)}
.mode h3{font-size:34px;margin-top:14px;color:#fff}
.mode p{margin-top:14px;color:rgba(255,255,255,.86);font-size:16.5px;max-width:42ch}
.mode .pill{position:absolute;top:26px;left:26px;display:inline-flex;gap:8px;align-items:center;background:rgba(253,251,247,.92);color:var(--ink);padding:9px 15px;border-radius:100px;font-size:13px;font-weight:600;box-shadow:var(--shadow-sm)}
.mode .pill svg{width:15px;height:15px;color:var(--amber);position:relative;top:-1px}
.consent-note{margin-top:42px;display:flex;gap:14px;align-items:center;justify-content:center;text-align:center;
  font-family:var(--serif);font-size:clamp(20px,2.4vw,27px);color:var(--ink);line-height:1.3}
.consent-note .ico{width:30px;height:30px;color:var(--amber);flex:none}

/* timeline / how it works */
.steps{margin-top:64px;position:relative}
.steps .track{position:absolute;left:0;right:0;top:43px;height:2px;background:repeating-linear-gradient(90deg,var(--sand-deep) 0 9px,transparent 9px 18px)}
.steps .track .fill{position:absolute;left:0;top:0;height:100%;width:100%;background:var(--amber)}
html.motion .steps .track .fill{width:0;transition:width 1.6s ease}
html.motion .steps.in .track .fill{width:100%}
.step-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.step{position:relative;text-align:left}
.step .node{width:88px;height:88px;border-radius:50%;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-md);display:flex;align-items:center;justify-content:center;position:relative;z-index:2}
.step .node svg{width:38px;height:38px;color:var(--amber);stroke-width:1.4}
.step .k{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-mute);margin-top:26px}
.step h4{font-size:23px;margin-top:8px}
.step p{margin-top:9px;font-size:15.5px;color:var(--ink-soft);max-width:30ch}

/* shared fixed-background sections — photo locked to viewport (standard background-attachment:fixed, GPU-smooth) */
.fixed-bg{position:relative;overflow:hidden;background-color:var(--blue);background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}
.fixed-bg .pbg-scrim{position:absolute;inset:0;z-index:1;pointer-events:none}
.fixed-bg .eyebrow,.fixed-bg h2,.fixed-bg h3,.fixed-bg h4,.fixed-bg p,.fixed-bg .lede{text-shadow:0 1px 20px rgba(8,12,20,.5),0 1px 4px rgba(8,12,20,.5)}

/* recipients beat */
.beat{color:var(--ivory);background-color:var(--blue);background-image:url("assets/img/photo-1470252649378-9c29740c9fa8.webp")}
.beat .pbg-scrim{background:linear-gradient(90deg,rgba(16,24,36,.88) 0%,rgba(16,24,36,.66) 58%,rgba(16,24,36,.46) 100%)}
html[data-theme="midnight"] .beat .pbg-scrim{background:linear-gradient(90deg,rgba(6,11,20,.9) 0%,rgba(6,11,20,.68) 58%,rgba(6,11,20,.48) 100%)}
.beat .wrap{position:relative;z-index:2}
.beat .grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.beat .eyebrow{color:var(--amber-hi)}.beat .eyebrow::before{background:var(--amber-hi)}
.beat h2{font-size:clamp(30px,4vw,50px);color:#fff;margin-top:18px}
.beat p{margin-top:20px;color:rgba(251,246,238,.78);max-width:48ch}
.beat .visual{position:relative;height:400px}
.link-card{position:absolute;background:#fff;color:var(--ink);border-radius:16px;box-shadow:var(--shadow-lg);overflow:hidden}
.link-card .bar{display:flex;align-items:center;gap:8px;padding:11px 14px;background:#f1ece4;border-bottom:1px solid var(--line)}
.link-card .dot{width:9px;height:9px;border-radius:50%;background:#d8cdbd}
.link-card .url{margin-left:8px;font-size:12px;color:var(--ink-mute);font-family:var(--sans);background:#fff;border-radius:6px;padding:4px 10px;flex:1;display:flex;align-items:center;gap:6px}
.link-card .url svg{width:12px;height:12px;color:#3a8f5a}
.link-card .play{aspect-ratio:16/10;position:relative;background:#222 center/cover}
.link-card .play .pbtn{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md)}
.link-card .play .pbtn svg{width:24px;height:24px;color:var(--ink);margin-left:3px}

/* app showcase */
.showcase{background:linear-gradient(180deg,var(--ivory),var(--sand))}
.showcase .grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:56px;align-items:center}
.feat-list{margin-top:30px;display:flex;flex-direction:column;gap:18px}
.feat-list .it{display:flex;gap:15px;align-items:flex-start}
.feat-list .it .ic{width:40px;height:40px;border-radius:11px;background:var(--card);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;flex:none;box-shadow:var(--shadow-sm)}
.feat-list .it .ic svg{width:20px;height:20px;color:var(--amber)}
.feat-list .it h4{font-family:var(--sans);font-weight:650;font-size:16.5px}
.feat-list .it p{font-size:15px;color:var(--ink-soft);margin-top:3px}

/* phone */
.phone-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:600px}
.phone{position:relative;width:300px;height:614px;background:#0d0a08;border-radius:46px;padding:11px;box-shadow:var(--shadow-lg),0 0 0 2px rgba(42,36,32,.06);z-index:2}
.phone .screen{position:relative;width:100%;height:100%;border-radius:36px;overflow:hidden;background:#15100c}
.phone .notch{position:absolute;top:20px;left:50%;transform:translateX(-50%);width:108px;height:27px;background:#0d0a08;border-radius:16px;z-index:6}
.scr-rec{position:absolute;inset:0;display:flex;flex-direction:column;color:#fff}
/* width/height 100% is load-bearing: b3cab0b9 added width/height attributes to
   this img, which map to CSS height and so defeat `bottom:0`. Without them the box
   grew to the intrinsic 2100px inside a 592px screen and cover cropped it to a
   sliver of a face. Matches `.mode img` and `.uc img`. */
.scr-rec .vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(1.05)}
.scr-rec .vscrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.05) 30%,rgba(0,0,0,.12) 62%,rgba(0,0,0,.72))}
.scr-rec .top{position:relative;padding:46px 20px 0;display:flex;justify-content:space-between;align-items:center;z-index:3}
.scr-rec .rec-dot{display:inline-flex;align-items:center;gap:7px;background:rgba(0,0,0,.4);backdrop-filter:blur(8px);padding:6px 12px;border-radius:100px;font-size:12px;font-weight:600;letter-spacing:.02em}
.scr-rec .rec-dot i{width:9px;height:9px;border-radius:50%;background:#ff5a4d;display:inline-block;animation:blink 1.4s infinite}
@keyframes blink{50%{opacity:.25}}
.scr-rec .chip{background:rgba(0,0,0,.4);backdrop-filter:blur(8px);padding:6px 12px;border-radius:100px;font-size:12px;font-weight:600}
.scr-rec .bottom{position:relative;margin-top:auto;padding:0 20px 30px;z-index:3}
.scr-rec .deliver{background:rgba(251,246,238,.16);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:11px;margin-bottom:22px}
.scr-rec .deliver svg{width:18px;height:18px;color:var(--amber-hi);flex:none}
.scr-rec .deliver .l{font-size:10px;text-transform:uppercase;letter-spacing:.1em;opacity:.7;font-weight:600}
.scr-rec .deliver .v{font-size:14px;font-weight:600;margin-top:1px}
.scr-rec .ctrls{display:flex;align-items:center;justify-content:center;gap:34px}
.scr-rec .ctrls .mini{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.16);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center}
.scr-rec .ctrls .mini svg{width:20px;height:20px;color:#fff}
.scr-rec .recbtn{width:74px;height:74px;border-radius:50%;border:4px solid rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center}
.scr-rec .recbtn i{width:30px;height:30px;border-radius:9px;background:#ff5a4d;display:block}
/* library card behind phone */
.lib{position:absolute;right:-2px;top:70px;width:262px;background:var(--card);border-radius:22px;box-shadow:var(--shadow-lg);border:1px solid var(--line);padding:18px;z-index:1;transform:rotate(2.5deg)}
.lib .h{font-family:var(--serif);font-size:18px;margin-bottom:4px}
.lib .sub{font-size:12px;color:var(--ink-mute);margin-bottom:14px}
.lib .row2{display:flex;gap:11px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.lib .row2 .th{width:46px;height:46px;border-radius:10px;object-fit:cover;flex:none;background:var(--sand)}
.lib .row2 .nm{font-size:13.5px;font-weight:600;line-height:1.2}
.lib .row2 .mt{font-size:11.5px;color:var(--ink-mute);margin-top:2px;display:flex;align-items:center;gap:5px}
.lib .row2 .mt svg{width:11px;height:11px;color:var(--amber)}
.lib .row2 .st{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--amber);background:var(--amber-glow);padding:4px 8px;border-radius:7px;flex:none}
@media(max-width:560px){.lib{display:none}}

/* features grid */
.fgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:54px}
.fcard{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:30px 28px;box-shadow:var(--shadow-sm);transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s}
.fcard:hover{transform:translateY(-5px);box-shadow:var(--shadow-md)}
.fcard .ic{width:48px;height:48px;border-radius:13px;background:var(--amber-glow);display:flex;align-items:center;justify-content:center;margin-bottom:20px}
.fcard .ic svg{width:24px;height:24px;color:var(--amber);stroke-width:1.5}
.fcard h4{font-family:var(--sans);font-weight:650;font-size:18.5px}
.fcard p{margin-top:9px;font-size:15.5px;color:var(--ink-soft)}

/* privacy band */
.privacy{color:var(--ivory);position:relative;overflow:hidden;background-color:var(--blue);background-image:url("assets/img/photo-1500964757637-c85e8a162699.webp")}
.privacy .pbg-scrim{background:linear-gradient(180deg,rgba(23,34,48,.8),rgba(23,34,48,.7) 45%,rgba(23,34,48,.82))}
html[data-theme="midnight"] .privacy .pbg-scrim{background:linear-gradient(180deg,rgba(8,14,26,.84),rgba(8,14,26,.74) 45%,rgba(8,14,26,.86))}
.privacy .wrap{position:relative;z-index:2}
.privacy .eyebrow{color:var(--amber-hi)}.privacy .eyebrow::before{background:var(--amber-hi)}
.privacy h2{color:#fff;font-size:clamp(30px,4vw,52px);margin-top:18px;max-width:18ch}
.privacy .pl{margin-top:48px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px 46px;max-width:920px}
.privacy .pi{display:flex;gap:16px;align-items:flex-start;padding:18px 0;border-top:1px solid rgba(251,246,238,.14)}
.privacy .pi svg{width:24px;height:24px;color:var(--amber-hi);flex:none;stroke-width:1.5;margin-top:2px}
.privacy .pi h4{font-family:var(--sans);font-weight:650;font-size:17px;color:#fff}
.privacy .pi p{font-size:14.5px;color:rgba(251,246,238,.72);margin-top:4px}

/* use cases */
.uc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px;margin-top:54px}
.uc{position:relative;border-radius:22px;overflow:hidden;min-height:340px;display:flex;align-items:flex-end;box-shadow:var(--shadow-md)}
.uc img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;will-change:transform}
.uc{transition:transform .55s cubic-bezier(.16,1,.3,1),box-shadow .55s}
.uc:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.uc .scrim{position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(20,14,9,.82))}
.uc .b{position:relative;padding:30px 30px 32px;color:#fff}
.uc .seal-stamp{position:absolute;top:22px;right:22px;width:54px;height:54px;opacity:.92}
.uc .who{font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--amber-hi)}
.uc h4{font-family:var(--serif);font-size:25px;color:#fff;margin-top:10px;font-weight:600}
.uc p{font-size:15px;color:rgba(255,255,255,.85);margin-top:8px;max-width:40ch}

/* faq */
.faq-wrap{max-width:820px;margin:54px auto 0}
.faq{border-top:1px solid var(--line)}
.faq:last-child{border-bottom:1px solid var(--line)}
.faq button{width:100%;background:none;border:0;cursor:pointer;text-align:left;padding:26px 8px;display:flex;justify-content:space-between;align-items:center;gap:24px;font-family:var(--serif);font-size:clamp(20px,2.4vw,26px);color:var(--ink);font-weight:600}
.faq .ic{width:30px;height:30px;flex:none;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;transition:transform .35s,background .35s,border-color .35s}
.faq .ic svg{width:15px;height:15px;color:var(--amber);transition:transform .35s}
.faq.open .ic{background:var(--amber);border-color:var(--amber)}
.faq.open .ic svg{color:#fff;transform:rotate(45deg)}
.faq .ans{max-height:0;overflow:hidden;transition:max-height .5s cubic-bezier(.4,0,.2,1)}
.faq .ans p{padding:0 8px 28px;color:var(--ink-soft);font-size:17px;max-width:64ch}

/* closing */
.closing{position:relative;text-align:center;color:var(--ivory);overflow:hidden;padding:140px 0;background-color:#1a120b;background-image:url("assets/img/photo-1511895426328-dc8714191300.webp")}
.closing .pbg-scrim{background:linear-gradient(180deg,rgba(20,14,9,.6),rgba(20,14,9,.78))}
.closing .c{position:relative;z-index:2}
.closing h2{font-size:clamp(34px,5.4vw,72px);color:#fff;font-weight:600;letter-spacing:-.02em;max-width:16ch;margin:0 auto}
.closing .lede{color:rgba(251,246,238,.82);margin:24px auto 38px}
.closing .hero-cta{justify-content:center}

/* footer */
/* DES-634: Figma footer is the page ground (#fdfbf7) with dark text, not a dark band. */
.footer{background:var(--ivory);color:var(--ink-soft);padding:64px 0 40px}
.footer .top{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;padding-bottom:36px;border-bottom:1px solid var(--line)}
.footer .brand{color:var(--ink)}
.footer .tag{margin-top:14px;font-size:14.5px;max-width:34ch;color:var(--ink-mute)}
.footer .cols{display:flex;gap:64px;flex-wrap:wrap}
.footer .col h5{font-family:var(--sans);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-mute);margin:0 0 16px}
.footer .col a{display:flex;align-items:center;min-height:44px;font-size:14.5px;transition:color .2s}
.footer .col a:hover{color:var(--amber-hi)}
.footer .bot{padding-top:26px;display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:nowrap;font-size:13.5px;color:var(--ink-mute)}
/* Both ends stay on the same row at every width. The copyright never shrinks or
   breaks; the tagline takes whatever is left and breaks internally if it must. */
.footer .bot span:first-child{flex:0 0 auto;white-space:nowrap}
.footer .bot span:last-child{flex:0 1 auto;min-width:0;text-align:right}

/* sticky mobile cta */
.mcta{position:fixed;left:0;right:0;bottom:0;z-index:55;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--nav-bg);backdrop-filter:blur(14px);box-shadow:0 -1px 0 var(--line);display:none;gap:12px;align-items:center}
/* Badges keep their fixed proportions (both stores bar altering them). 44px fits from
   324px wide; below 340px both drop to Apple's 40px minimum for 320px phones. */
.mcta{justify-content:center}
.mcta .appstore,.mcta .playstore{height:44px}
@media(max-width:340px){.mcta .appstore,.mcta .playstore{height:40px}}
/* Suppressed while an in-page store CTA is visible (see main.js) so the
   user never sees two of the same CTA at once. */
.mcta{transition:opacity .24s cubic-bezier(.4,.1,.2,1),transform .24s cubic-bezier(.4,.1,.2,1),visibility 0s}
/* visibility, not just opacity: an opacity:0 bar stays tabbable and in the a11y
   tree. Delay it so the slide-out still plays. */
.mcta.is-hidden{opacity:0;transform:translateY(140%);pointer-events:none;visibility:hidden;
  transition:opacity .24s cubic-bezier(.4,.1,.2,1),transform .24s cubic-bezier(.4,.1,.2,1),visibility 0s .24s}
@media (prefers-reduced-motion:reduce){
  .mcta{transition:none}
  .mcta.is-hidden{transform:none;visibility:hidden}
}
@media(max-width:920px){
  .mcta{display:flex}
  /* the bar is ~80px and position:fixed, so without this the footer's last
     line sits under it at max scroll and is unreachable. */
  .footer{padding-bottom:120px}
}

/* responsive */
@media(max-width:980px){
  .hero-grid,.beat .grid,.showcase .grid{grid-template-columns:1fr;gap:40px}
  .collage{height:440px}
  .mode-grid,.uc-grid,.privacy .pl{grid-template-columns:1fr}
  .fgrid{grid-template-columns:1fr 1fr}
  .step-grid{grid-template-columns:1fr 1fr;gap:40px 26px}
  .steps .track{display:none}
  .beat .visual{order:-1}
}
@media(max-width:600px){
  body{font-size:17px}
  .wrap{padding:0 22px}
  .hero{padding:130px 0 64px}
  .sec{padding:74px 0}
  .fgrid{grid-template-columns:1fr}
  .step-grid{grid-template-columns:1fr}
  .collage .small{width:150px;height:190px}
  .footer .top{flex-direction:column}
}
/* Short wide viewports (1536x864 at 125% scaling = 1528x698): at the 92px h1 cap
   the hero store CTAs end at y=759, below the fold. Sized for 698px tall and scaled
   down with the viewport height below that, so the CTAs clear any fold in range. */
@media(min-width:1400px) and (max-height:758px){
  .hero{--u:calc(min(100vh, 698px) / 698);padding:max(96px, calc(104 * var(--u))) 0 calc(48 * var(--u))}
  .hero h1{font-size:calc(76 * var(--u))}
  .hero-sub{margin-top:calc(20 * var(--u));font-size:calc(22 * var(--u))}
  .hero .hero-cta{margin-top:calc(26 * var(--u))}
  .collage{height:calc(480 * var(--u))}
  .collage .main{bottom:calc(60 * var(--u))}
  .collage .small{width:calc(215 * var(--u));height:calc(268 * var(--u))}
}
/* cinematic ken burns — slow pan/zoom so photos breathe (motion-gated) */
@keyframes kbHero{0%{transform:scale(1.05) translate(0,0)}100%{transform:scale(1.18) translate(-2%,-1.4%)}}
@keyframes kbA{0%{transform:scale(1.06) translate(1.6%,.8%)}100%{transform:scale(1.18) translate(-2%,-1.4%)}}
@keyframes kbB{0%{transform:scale(1.18) translate(-1.6%,-1.2%)}100%{transform:scale(1.06) translate(1.6%,1.2%)}}
/* hero collage — cinematic pan + zoom INSIDE each frame (frame itself stays put; no scroll movement) */
@keyframes kbHeroMain{0%{transform:scale(1.08) translate(-2.5%,1.8%)}100%{transform:scale(1.28) translate(2.5%,-2.4%)}}
@keyframes kbHeroSmall{0%{transform:scale(1.26) translate(2.6%,-2%)}100%{transform:scale(1.08) translate(-2.8%,2.4%)}}
html.motion .collage .main img{animation:kbHeroMain 14s ease-in-out infinite alternate}
html.motion .collage .small img{animation:kbHeroSmall 17s ease-in-out infinite alternate}
html.motion .mode-grid .mode:nth-of-type(1) img{animation:kbA 26s ease-in-out infinite alternate}
html.motion .mode-grid .mode:nth-of-type(2) img{animation:kbB 30s ease-in-out infinite alternate}
html.motion .uc-grid .uc:nth-of-type(4n+1) img{animation:kbA 28s ease-in-out infinite alternate}
html.motion .uc-grid .uc:nth-of-type(4n+2) img{animation:kbB 32s ease-in-out infinite alternate}
html.motion .uc-grid .uc:nth-of-type(4n+3) img{animation:kbB 29s ease-in-out infinite alternate}
html.motion .uc-grid .uc:nth-of-type(4n+4) img{animation:kbA 33s ease-in-out infinite alternate}
html.motion .scr-rec .vid{animation:kbA 26s ease-in-out infinite alternate}

@media (prefers-reduced-motion: reduce){ html:not(.motion){scroll-behavior:auto} }

/* ============ COLOR THEMES (Tweaks) ============ */
/* Declared explicitly so ?theme=amber stays covered by the drift tripwire. */
html[data-theme="amber"]{
  --ivory:#fdfbf7;--sand:#fdf0f2;--sand-deep:#f8dce2;
  --ink:#0f172a;--ink-soft:#6e665b;--ink-mute:#7a7266;
  --amber:#e13f76;--amber-hi:#f0426b;--amber-glow:rgba(225,63,118,.12);
  --card:#ffffff;--line:rgba(15,23,42,.10);
  /* Declared, not inherited: :root now holds `default`, not amber. */
  --blue:#1b2436;--blue-2:#0f172a;--nav-bg:rgba(253,251,247,.82);
}
html[data-theme="midnight"]{
  --ivory:#0f172a;--sand:#152033;--sand-deep:#1f2c44;
  --ink:#faf5ef;--ink-soft:#cdc6ba;--ink-mute:#8b93a3;
  --amber:#f59e0b;--amber-hi:#fbbf24;--amber-glow:rgba(245,158,11,.18);
  --blue:#0a1120;--blue-2:#070d18;--card:#172132;
  --line:rgba(250,245,239,.12);--nav-bg:rgba(15,23,42,.82);
  --shadow-sm:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.35);
  --shadow-md:0 8px 30px rgba(0,0,0,.45),0 2px 8px rgba(0,0,0,.4);
  --shadow-lg:0 30px 70px rgba(0,0,0,.6),0 8px 24px rgba(0,0,0,.45);
}
html[data-theme="terracotta"]{
  --ivory:#f7f1e8;--sand:#efe4d6;--sand-deep:#e6d6c2;
  --ink:#2c211c;--ink-soft:#5e4f46;--ink-mute:#917f72;
  --amber:#c75b39;--amber-hi:#dd7a52;--amber-glow:rgba(199,91,57,.15);
  --blue:#34231c;--blue-2:#291a14;--card:#fffaf3;
  --line:rgba(44,33,28,.12);--nav-bg:rgba(247,241,232,.84);
}
html[data-theme="editorial"]{
  --ivory:#f4f1ea;--sand:#eae5da;--sand-deep:#ded7c8;
  --ink:#1f2530;--ink-soft:#4d535e;--ink-mute:#868a93;
  --amber:#3b4cca;--amber-hi:#5566e0;--amber-glow:rgba(59,76,202,.12);
  --blue:#222a38;--blue-2:#191f2a;--card:#fbfaf6;
  --line:rgba(31,37,48,.12);--nav-bg:rgba(244,241,234,.84);
}

/* ---- Aurora — modern, cool gradients (violet → blue → cyan) ---- */
html[data-theme="aurora"]{
  --ivory:#f5f4fe;--sand:#ebe9fb;--sand-deep:#dcd8f6;
  --ink:#1c1840;--ink-soft:#4a4576;--ink-mute:#8480ad;
  --amber:#6d4aff;--amber-hi:#8e74ff;--amber-glow:rgba(109,74,255,.14);
  --blue:#181442;--blue-2:#110d30;--card:#ffffff;
  --line:rgba(28,24,64,.10);--nav-bg:rgba(245,244,254,.8);
  --hero-blob:radial-gradient(circle at 32% 32%,rgba(109,74,255,.32),transparent 60%),radial-gradient(circle at 72% 70%,rgba(6,182,212,.26),transparent 62%);
  --accent-grad:linear-gradient(100deg,#6d4aff,#3b82f6 52%,#06b6d4);
  --accent-grad-soft:linear-gradient(100deg,rgba(109,74,255,.14),rgba(6,182,212,.12));
  --page-grad:linear-gradient(180deg,#f7f5ff,#f1eefc 42%,#f5f4fe);
  --shadow-md:0 8px 30px rgba(40,30,90,.12),0 2px 8px rgba(40,30,90,.08);
  --shadow-lg:0 30px 70px rgba(40,30,90,.20),0 8px 24px rgba(40,30,90,.12);
}

/* ---- Bloom — lively, vibrant (coral → pink → magenta) ---- */
html[data-theme="bloom"]{
  --ivory:#fff5f1;--sand:#ffe7de;--sand-deep:#ffd6c8;
  --ink:#3d1c28;--ink-soft:#71495a;--ink-mute:#a87f8c;
  --amber:#f0426b;--amber-hi:#ff6f5e;--amber-glow:rgba(240,66,107,.14);
  --blue:#3a1322;--blue-2:#2b0d18;--card:#fffaf8;
  --line:rgba(61,28,40,.10);--nav-bg:rgba(255,245,241,.82);
  --hero-blob:radial-gradient(circle at 30% 30%,rgba(255,111,94,.34),transparent 60%),radial-gradient(circle at 76% 66%,rgba(192,38,211,.24),transparent 62%);
  --accent-grad:linear-gradient(100deg,#ff7a4d,#f0426b 50%,#c026d3);
  --accent-grad-soft:linear-gradient(100deg,rgba(255,122,77,.16),rgba(192,38,211,.12));
  --page-grad:linear-gradient(180deg,#fff7f3,#ffeee8 46%,#fff5f1);
  --shadow-md:0 8px 30px rgba(120,30,60,.12),0 2px 8px rgba(120,30,60,.08);
  --shadow-lg:0 30px 70px rgba(120,30,60,.20),0 8px 24px rgba(120,30,60,.12);
}

/* ---- Slate — clean, minimal modern (cool gray + electric teal) ---- */
html[data-theme="slate"]{
  --ivory:#f6f8fb;--sand:#eceff4;--sand-deep:#dfe4ec;
  --ink:#0e1729;--ink-soft:#455066;--ink-mute:#8893a6;
  --amber:#0d9488;--amber-hi:#14b8a6;--amber-glow:rgba(13,148,136,.12);
  --blue:#0e1729;--blue-2:#0a111f;--card:#ffffff;
  --line:rgba(14,23,41,.09);--nav-bg:rgba(246,248,251,.82);
  --hero-blob:radial-gradient(circle at 35% 35%,rgba(20,184,166,.24),transparent 60%),radial-gradient(circle at 72% 68%,rgba(56,189,248,.20),transparent 62%);
  --accent-grad:linear-gradient(100deg,#0d9488,#14b8a6 55%,#22d3ee);
  --accent-grad-soft:linear-gradient(100deg,rgba(13,148,136,.14),rgba(34,211,238,.10));
  --page-grad:linear-gradient(180deg,#f8fafc,#eef2f7 50%,#f6f8fb);
  --shadow-md:0 8px 30px rgba(15,23,41,.10),0 2px 8px rgba(15,23,41,.07);
  --shadow-lg:0 30px 70px rgba(15,23,41,.16),0 8px 24px rgba(15,23,41,.10);
}

/* ---- Liquid Glass — translucent frosted material over a soft mesh ---- */
html[data-theme="glass"]{
  --ivory:#eef1fb;--sand:rgba(255,255,255,.42);--sand-deep:rgba(255,255,255,.6);
  --ink:#16203a;--ink-soft:#46506b;--ink-mute:#7b86a0;
  --amber:#3b5bff;--amber-hi:#6d8bff;--amber-glow:rgba(59,91,255,.12);
  --blue:#10183a;--blue-2:#0b1230;--card:rgba(255,255,255,.55);
  --line:rgba(255,255,255,.55);--nav-bg:rgba(255,255,255,.5);
  --accent-grad:linear-gradient(100deg,#3b5bff,#7c3aed 55%,#06b6d4);
  --accent-grad-soft:linear-gradient(100deg,rgba(59,91,255,.14),rgba(6,182,212,.10));
  --hero-blob:radial-gradient(circle at 30% 30%,rgba(99,102,241,.42),transparent 60%),radial-gradient(circle at 75% 70%,rgba(236,72,153,.30),transparent 62%);
  --page-grad:radial-gradient(at 14% 18%,#dbe4ff 0,transparent 46%),radial-gradient(at 86% 14%,#ffe0f0 0,transparent 46%),radial-gradient(at 72% 84%,#d6fbff 0,transparent 46%),radial-gradient(at 22% 90%,#ece0ff 0,transparent 46%),#eef1fb;
  --shadow-sm:0 1px 2px rgba(30,40,80,.06),0 4px 14px rgba(30,40,80,.08);
  --shadow-md:0 8px 30px rgba(30,40,80,.12),0 2px 8px rgba(30,40,80,.07);
  --shadow-lg:0 24px 60px rgba(30,40,80,.18),0 8px 24px rgba(30,40,80,.10);
}
/* Glass material — frosted translucency + light edge + top sheen on the floating chrome */
html[data-theme="glass"] .fcard,
html[data-theme="glass"] .seal-badge,
html[data-theme="glass"] .lib,
html[data-theme="glass"] .link-card,
html[data-theme="glass"] .mode .pill,
html[data-theme="glass"] .step .node,
html[data-theme="glass"] .faq-wrap{
  background:rgba(255,255,255,.5);
  -webkit-backdrop-filter:blur(20px) saturate(1.7);
  backdrop-filter:blur(20px) saturate(1.7);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(180,195,255,.25);
}
html[data-theme="glass"] .faq-wrap{border-radius:26px;padding:6px 28px;margin-top:48px}
html[data-theme="glass"] .faq{border-color:rgba(120,140,200,.18)}
html[data-theme="glass"] .nav.scrolled,
html[data-theme="glass"] .mcta{-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);box-shadow:0 1px 0 rgba(255,255,255,.6),0 6px 24px rgba(30,40,80,.08)}
html[data-theme="glass"] .fcard:hover{background:rgba(255,255,255,.62)}