/* ============================================================
   Momentile: marketing site
   Palette + type + components + motion
   ============================================================ */

/* Hanken Grotesk (SIL OFL 1.1, see fonts/OFL.txt), self-hosted so the page makes
   no third-party requests. One variable file per subset covers every weight. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/hanken-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* surfaces (dark is primary) */
  --bg:        #0B0B0F;
  --bg-2:      #0E0E13;
  --surface:   #16161D;
  --surface-2: #1E1E27;
  --hairline:  #2A2A33;
  --hairline-soft: rgba(231,231,234,0.07);

  /* ink */
  --ink:       #E7E7EA;
  --ink-2:     #B9B9C2;
  --muted:     #8A8A95;
  --muted-2:   #6B6B76;

  /* accents */
  --indigo:    #6C5CE7;
  --indigo-bright: #8472FF;
  --teal:      #14B8C4;
  --amber:     #F0A93B;
  --rose:      #E8579B;
  --green:     #13B98A;

  /* light section */
  --light-bg:   #FBFBFD;
  --light-surf: #FFFFFF;
  --light-ink:  #1A1A1F;
  --light-muted:#6B6B76;
  --light-hair: #E6E6EC;

  /* lived tile fill */
  --lived:     #E7E7EA;
  --future:    rgba(231,231,234,0.085);
  --future-edge: rgba(231,231,234,0.04);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { margin: 0; padding: 0; }
body {
  font-family: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1;
  overflow-x: hidden;
}
::selection { background: rgba(108,92,231,0.35); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── type scale ─────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 2px;
  background: var(--indigo); vertical-align: middle; margin-right: 9px; margin-bottom: 2px;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
.display {
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 0.99;
}
.h2 { font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -0.03em; line-height: 1.03; }
.lede {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2);
  font-weight: 400; max-width: 42ch;
}
.muted { color: var(--muted); }

/* ── wordmark ───────────────────────────────────────────── */
.wordmark {
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  display: inline-flex; align-items: baseline; color: var(--ink);
  font-size: 21px;
}
.wordmark .tittle {
  display: inline-block; width: 0.34em; height: 0.34em;
  border-radius: 0.07em; background: var(--indigo);
  margin-left: 1px; transform: translateY(-0.06em);
}
.wordmark .i-stem { position: relative; }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 13px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease), color .2s;
  min-height: 44px; white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--indigo-bright); outline-offset: 3px; }
.btn-primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 10px 30px -12px rgba(108,92,231,0.85);
}
.btn-primary:hover {
  background: var(--indigo-bright); transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 18px 40px -14px rgba(108,92,231,0.95);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(231,231,234,0.025); color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { border-color: rgba(231,231,234,0.3); background: rgba(231,231,234,0.06); transform: translateY(-2px); }
.btn-ghost .arrow { transition: transform .3s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 11px; font-size: 14px; }

/* launch status: a label, not a button, until the App Store link exists */
.store-soon {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: 13px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
  background: rgba(108,92,231,0.14); border: 1px solid rgba(108,92,231,0.5);
}
.store-soon-sm { height: 42px; padding: 0 16px; border-radius: 11px; font-size: 14px; gap: 8px; }
.ss-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo-bright); }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,11,15,0.72); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline-soft); padding-top: 14px; padding-bottom: 14px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav-links a.link:hover { color: var(--ink); }
@media (max-width: 980px) { .nav-links { gap: 22px; } }
@media (max-width: 820px) { .nav-links a.link { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 130px 0 90px; overflow: hidden; }
.hero-grid-layer {
  position: absolute; inset: 0; z-index: 0;
  display: flex; justify-content: flex-end; align-items: center;
  pointer-events: none;
}
.hero-grid-layer .lifegrid {
  width: min(58vw, 720px);
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(120% 100% at 78% 42%, #000 28%, transparent 72%);
          mask-image: radial-gradient(120% 100% at 78% 42%, #000 28%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(80% 60% at 20% 50%, rgba(11,11,15,0.92) 0%, rgba(11,11,15,0.5) 45%, transparent 80%);
}
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; width: 100%; }
.hero-copy { max-width: 620px; }
.hero h1 { margin: 22px 0 0; }
.hero .lede { margin-top: 26px; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13.5px; }
.hero-meta .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(19,185,138,0.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(19,185,138,0.55);} 70%,100% { box-shadow: 0 0 0 9px rgba(19,185,138,0);} }

/* floating phones in hero */
.hero-stage { position: relative; height: 600px; }
.hero-phone { position: absolute; will-change: transform; }
.hero-phone.p-main { right: 4%; top: 50%; transform: translateY(-50%); z-index: 3; width: 280px; }
.hero-phone.p-back { right: 40%; top: 36%; width: 210px; z-index: 2; opacity: 0.96; }
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 8.5s ease-in-out infinite; }
@keyframes floatA { 0%,100%{ transform: translateY(-50%) translateZ(0);} 50%{ transform: translateY(calc(-50% - 14px));} }
@keyframes floatB { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
@media (prefers-reduced-motion: reduce) { .float-a,.float-b,.hero-meta .live-dot { animation: none; } }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-stage { display: none; }
  .hero-grid-layer { justify-content: center; opacity: 0.8; }
  .hero-grid-layer .lifegrid { width: min(92vw, 560px); }
  .hero::after { background: radial-gradient(90% 70% at 50% 38%, transparent 0%, rgba(11,11,15,0.78) 70%); }
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone {
  --pw: 280px;
  width: var(--pw); aspect-ratio: 280 / 605;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2a2a34, #121217 60%);
  box-shadow:
    0 2px 3px rgba(0,0,0,0.6),
    0 50px 90px -30px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 34px; overflow: hidden;
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column;
}
.phone-screen.light { background: var(--light-bg); color: var(--light-ink); }
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 19px; background: #000; border-radius: 11px; z-index: 20;
}
/* status bar */
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px 4px; font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
  position: relative; z-index: 10;
}
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; opacity: 0.95; }
.statusbar .sb-icons svg { display: block; }

/* app header */
.app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px 8px;
}
.app-head .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.app-head .brand .logo-sq { width: 16px; height: 16px; border-radius: 5px; background: var(--indigo); }
.app-head .head-tools { display: flex; gap: 8px; }
.app-head .htool {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--muted); border: 1px solid var(--hairline);
}
.app-head .htool svg { width: 15px; height: 15px; }

.statpill {
  margin: 2px 16px 8px; align-self: center;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 6px 14px; font-size: 11px; font-weight: 500;
  color: var(--muted); display: flex; gap: 7px; align-items: center; font-variant-numeric: tabular-nums;
}
.statpill b { color: var(--ink); font-weight: 700; }
.statpill .sep { color: var(--hairline); }

/* grid region inside phone */
.phone-gridwrap { flex: 1; display: flex; padding: 0 12px 12px 6px; min-height: 0; position: relative; }
.year-rail { display: flex; flex-direction: column; justify-content: space-between; padding: 2px 6px 2px 8px; }
.year-rail span { font-size: 7px; font-weight: 600; color: var(--muted-2); line-height: 1; font-variant-numeric: tabular-nums; }
.year-rail span small { display: block; font-size: 6px; color: var(--hairline); font-weight: 600; margin-top: 1px; }
.year-rail span.on { color: var(--ink); font-size: 9px; }
.year-rail span.on small { color: var(--muted-2); }
.phone-grid { flex: 1; }
.pg-inner { position: relative; }

/* press-and-hold loupe */
.loupe { position: absolute; z-index: 14; transform: translate(-50%, -50%); pointer-events: none; }
.loupe-lens { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; padding: 7px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  background: var(--bg); border: 1.5px solid rgba(231,231,234,0.55); box-shadow: 0 12px 30px -6px rgba(0,0,0,0.85), 0 0 0 4px rgba(11,11,15,0.45); }
.loupe-lens i { border-radius: 2px; background: var(--ink); opacity: 0.85; }
.loupe-lens i.e { background: var(--rose); opacity: 0.5; }
.loupe-lens i.m { background: var(--amber); opacity: 1; box-shadow: 0 0 8px rgba(240,169,59,0.85); }
.loupe-tag { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center;
  background: rgba(22,22,29,0.94); border: 1px solid var(--hairline); border-radius: 8px; padding: 5px 8px; font-size: 9px; line-height: 1.3; }
.loupe-tag b { display: block; font-weight: 700; color: var(--ink); }
.loupe-tag span { color: var(--muted); }

.zoompill {
  position: absolute; right: 16px; bottom: 18px; z-index: 12;
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--hairline); background: rgba(22,22,29,0.85); backdrop-filter: blur(10px);
}
.zoompill button { width: 30px; height: 28px; color: var(--ink); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.zoompill button + button { border-top: 1px solid var(--hairline); }

/* ── life grid component (canvas-rendered) ── */
.lifegrid { display: block; width: 100%; line-height: 0; font-size: 0; }
.lifegrid canvas { width: 100%; height: auto; display: block; }

/* ── reveal / now counter screen ── */
.revscreen { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 30px 18px 0; }
.revscreen .rk { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.revscreen .rnum { font-size: 50px; font-weight: 700; letter-spacing: -0.04em; margin: 8px 0 2px; line-height: 1; }
.revscreen .rsub { font-size: 12px; color: var(--muted); }
.revscreen .lifegrid { margin-top: 26px; width: 78%; gap: 1px; }
.revscreen .lifegrid .cell { border-radius: 1px; }

/* ── bottom sheet inside phone ── */
.phone-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--hairline);
  padding: 12px 18px 22px; box-shadow: 0 -20px 50px -20px rgba(0,0,0,0.7);
}
.phone-sheet .grab { width: 36px; height: 4px; border-radius: 3px; background: var(--hairline); margin: 0 auto 14px; }
.phone-sheet h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.phone-sheet .sheet-sub { font-size: 11.5px; color: var(--muted); margin: 5px 0 14px; line-height: 1.45; }
.sheet-scrim { position: absolute; inset: 0; z-index: 25; background: rgba(0,0,0,0.5); }

/* add-moment sheet fields */
.field { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 11px; padding: 10px 12px; margin-bottom: 9px; }
.field .flabel { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.field .fval { font-size: 13px; font-weight: 500; margin-top: 3px; color: var(--ink); }
.field .fval.ph { color: var(--muted-2); }
.cat-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.cat-chip { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--ink-2);
  padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--hairline); }
.cat-chip .cdot { width: 8px; height: 8px; border-radius: 3px; }
.cat-chip.sel { border-color: var(--indigo); background: rgba(108,92,231,0.14); color: #fff; }
.sheet-cta { width: 100%; height: 42px; border-radius: 11px; background: var(--indigo); color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* chapters sheet rows */
.chap-row { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; margin-bottom: 8px;
  background: var(--surface-2); border: 1px solid var(--hairline); }
.chap-row .csw { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; }
.chap-row .ctitle { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.chap-row .cmeta { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.chap-row .cx { margin-left: auto; color: var(--muted-2); font-size: 16px; }
.chap-add { width: 100%; height: 42px; border-radius: 11px; border: 1px dashed var(--hairline); color: var(--indigo-bright); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; background: transparent; }
.chap-row.tint-amber { background: rgba(240,169,59,0.10); border-color: rgba(240,169,59,0.28); }
.chap-row.tint-green { background: rgba(19,185,138,0.10); border-color: rgba(19,185,138,0.28); }
.chap-row.tint-rose  { background: rgba(232,87,155,0.10); border-color: rgba(232,87,155,0.28); }

/* ── life countdown screen ── */
.cd-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 6px 16px 16px; --shape-bg: var(--bg); }
.cd-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.cd-title { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.cd-hbtn { width: 22px; height: 22px; color: var(--ink-2); }
.cd-hbtn svg { width: 100%; height: 100%; display: block; }
.cd-shape { width: 100%; height: 236px; padding: 0 10px; margin: 26px 0 20px; color: var(--ink); }
.cd-count { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.cd-num { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit { font-size: 12px; color: var(--muted); }
.cd-secs { margin-top: 12px; display: flex; gap: 5px; align-items: baseline; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cd-secs [data-cd-secs] { color: var(--ink-2); font-weight: 600; font-size: 12px; }
.cd-recent { margin-top: auto; width: 100%; padding-top: 12px; border-top: 1px solid var(--hairline-soft); }
.cd-rrow { display: flex; align-items: center; justify-content: center; gap: 7px; }
.cd-rbtn { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline); --shape-bg: var(--surface); transition: border-color .2s, background .2s; }
.cd-rbtn .shp { width: 28px; height: 28px; }
.cd-rmore { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--hairline); }
.cd-rbtn.sel { border-color: var(--indigo); background: rgba(108,92,231,0.14); --shape-bg: #1a1830; }

/* countdown shapes (shared by phone + gallery) */
.shp { width: 100%; height: 100%; display: block; overflow: visible; }

/* ============================================================
   EXPERIENCE / APP SCREENS
   ============================================================ */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head .eyebrow { margin-bottom: 18px; display: block; }
.section-head .lede { margin-top: 20px; }

.exp-rail {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: end;
}
.exp-card { display: flex; flex-direction: column; min-width: 0; }
.exp-card .phone-grid { min-width: 0; }
.exp-card .phone { width: 100%; --pw: 100%; }
.exp-card .phone-fit { position: relative; width: 100%; aspect-ratio: 280 / 605; }
.exp-card .phone-fit .phone { position: absolute; top: 0; left: 0; width: 258px; transform: scale(var(--k, 1)); transform-origin: 0 0; }
.exp-card .cap { margin-top: 26px; }
.exp-card .cap .ci { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface); border: 1px solid var(--hairline); margin-bottom: 12px; color: var(--indigo-bright); }
.exp-card .cap .ci svg { width: 17px; height: 17px; }
.exp-card .cap h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.exp-card .cap p { margin: 7px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.exp-card:nth-child(even) { transform: translateY(34px); }

@media (max-width: 1040px) {
  .exp-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; }
  .exp-card:nth-child(even) { transform: none; }
  .exp-card { margin-bottom: 30px; }
  .exp-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); }
}
@media (max-width: 560px) {
  .exp-rail { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .exp-card:last-child:nth-child(odd) { width: 100%; }
}

/* ============================================================
   FEATURE STORY (light)
   ============================================================ */
.section.light {
  background: var(--light-bg); color: var(--light-ink);
  border-radius: 40px 40px 0 0;
}
.section.light .eyebrow { color: var(--light-muted); }
.section.light .eyebrow .dot { background: var(--indigo); }
.section.light .lede { color: #44444c; }
.section.light .h2 { color: var(--light-ink); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--light-hair);
  border: 1px solid var(--light-hair); border-radius: 22px; overflow: hidden; }
.feat {
  background: var(--light-surf); padding: 38px 34px 44px; position: relative;
  transition: background .3s var(--ease);
}
.feat:hover { background: #fff; }
.feat .ficon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.feat .ficon svg { width: 23px; height: 23px; }
.feat h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.022em; color: var(--light-ink); }
.feat p { margin: 11px 0 0; font-size: 14.5px; line-height: 1.6; color: #595962; max-width: 30ch; }
.feat .findex { position: absolute; top: 30px; right: 30px; font-size: 12px; font-weight: 600; color: #c4c4cf; font-variant-numeric: tabular-nums; }
.ic-indigo { background: rgba(108,92,231,0.12); color: var(--indigo); }
.ic-rose   { background: rgba(232,87,155,0.12); color: var(--rose); }
.ic-amber  { background: rgba(240,169,59,0.16); color: #C7861F; }
.ic-teal   { background: rgba(20,184,196,0.13); color: #0E8C96; }
.ic-green  { background: rgba(19,185,138,0.13); color: #0E8C68; }
.ic-violet { background: rgba(132,114,255,0.14); color: #6A55E0; }
.feat-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 44px; padding: 0 34px; }
.feat-more h4 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; color: var(--light-ink); }
.feat-more p { margin: 7px 0 0; font-size: 14px; line-height: 1.55; color: #595962; max-width: 34ch; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: repeat(2,1fr); } .feat-more { grid-template-columns: 1fr; gap: 22px; padding: 0 6px; } }
@media (max-width: 540px) { .feat-grid { grid-template-columns: 1fr; } .feat { padding: 30px 26px 34px; } }

/* ============================================================
   LIFE COUNTDOWN
   ============================================================ */
.cd-section { overflow: hidden; }
.cd-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.cd-stage { position: relative; display: flex; justify-content: center; }
.cd-stage::before { content: ""; position: absolute; left: 50%; top: 42%; width: 420px; height: 420px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(240,169,59,0.16), rgba(108,92,231,0.12) 40%, transparent 68%); filter: blur(10px); }
.cd-stage .phone { position: relative; width: min(300px, 100%); }
.cd-copy .eyebrow { display: block; margin-bottom: 18px; }
.cd-copy .lede { margin-top: 22px; }
.cd-gallery { margin-top: 96px; }
.cd-gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 30px; flex-wrap: wrap; margin-bottom: 24px; }
.cd-gallery-head h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; }
.cd-gallery-head p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 40ch; line-height: 1.5; }
.shape-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.shape-tile { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 8px 16px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; color: var(--ink); --shape-bg: var(--surface);
  transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .25s, background .25s; }
.shape-tile:hover { border-color: rgba(231,231,234,0.24); }
.shape-tile:focus-visible { outline: 2px solid var(--indigo-bright); outline-offset: 3px; }
.shape-tile[aria-pressed="true"] { border-color: var(--indigo); background: #1a1830; --shape-bg: #1a1830; }
.shape-tile .st-art { width: 72px; height: 72px; }
.shape-tile .st-name { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.shape-tile[aria-pressed="true"] .st-name { color: var(--ink); }
@media (max-width: 940px) {
  .cd-layout { grid-template-columns: 1fr; gap: 56px; }
  .cd-copy { order: -1; }
  .shape-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .shape-strip { gap: 8px; }
  .shape-tile { padding: 16px 4px 12px; gap: 10px; border-radius: 14px; }
  .shape-tile .st-art { width: 52px; height: 52px; }
  .shape-tile .st-name { font-size: 11.5px; }
}

/* ============================================================
   EMOTIONAL
   ============================================================ */
.emo { position: relative; padding: 0 0 clamp(90px, 12vw, 150px); text-align: center; overflow: hidden; }
.emo-stage { position: relative; padding: clamp(120px, 17vw, 210px) 0 clamp(100px, 13vw, 170px); }
.emo-stage.has-moment { cursor: pointer; }
.emo-grid-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0; pointer-events: none;
}
.emo-grid-bg .lifegrid {
  width: min(92vw, 1080px);
  -webkit-mask-image: radial-gradient(72% 78% at 50% 50%, #000 42%, transparent 100%);
          mask-image: radial-gradient(72% 78% at 50% 50%, #000 42%, transparent 100%);
}
.emo-inner { position: relative; z-index: 2; }
.emo h2 { font-size: clamp(40px, 8vw, 118px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }
.emo .emo-sub { margin: 30px auto 0; max-width: 36ch; font-size: clamp(16px,1.5vw,19px); line-height: 1.6; color: var(--ink-2); }
.emo .now-chip { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; white-space: nowrap;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--hairline); background: rgba(22,22,29,0.5); }
.emo .now-chip .nb { width: 9px; height: 9px; border-radius: 2px; background: var(--indigo); box-shadow: 0 0 12px 2px rgba(108,92,231,0.9); }

/* hover hint */
.emo-hint { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin: 26px auto 0; font-size: 13.5px; color: var(--muted); }
.eh-dots { display: inline-flex; gap: 3px; }
.eh-dots i { width: 7px; height: 7px; border-radius: 2px; }
.eh-dots i:nth-child(1) { background: var(--amber); }
.eh-dots i:nth-child(2) { background: var(--rose); }
.eh-dots i:nth-child(3) { background: var(--teal); }
.eh-tap { display: none; }
@media (hover: none) { .eh-hover { display: none; } .eh-tap { display: inline; } }

/* moment pill: mirrors the app's loupe pill (title row, age · year · week, chapter row) */
.emo-tip {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 240px;
  padding: 7px 13px 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--hairline);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.7);
  opacity: 0; transform: translateY(4px) scale(0.96); transform-origin: 50% 100%;
  transition: opacity .16s var(--ease), transform .2s var(--ease);
}
.emo-tip.below { transform-origin: 50% 0; }
.emo-tip.on { opacity: 1; transform: none; }
.et-row { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.et-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; }
.et-title { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-label { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.et-chap span { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.et-chap[hidden] { display: none; }
.emo-ring {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; border: 2px solid currentColor; border-radius: 5px;
  box-shadow: 0 0 14px 1px currentColor; opacity: 0; transform: scale(1.4); transition: opacity .16s var(--ease), transform .22s var(--ease);
}
.emo-ring.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .emo-tip, .emo-tip.on, .emo-ring, .emo-ring.on { transform: none; transition: opacity .12s linear; }
}

/* supporting points */
.emo-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; position: relative; z-index: 2; }
.em { padding: 26px 26px 28px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--hairline-soft); }
.em-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--indigo-bright); font-variant-numeric: tabular-nums; }
.em h3 { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.em p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 860px) { .emo-more { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: clamp(90px, 12vw, 150px) 0 70px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.ct-left h2 { margin-top: 18px; }
.ct-left .lede { margin-top: 22px; }
.ct-points { margin: 36px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ct-points li { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.ct-points li .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: rgba(108,92,231,0.16); color: var(--indigo-bright); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.ct-points li .tick svg { width: 13px; height: 13px; }

.ct-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 34px; }
.ct-note { font-size: 14px; color: var(--muted); margin: 0 0 24px; line-height: 1.5; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 14px 15px; font-size: 15px; color: var(--ink); font-family: inherit; resize: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-2); }
.form-field input:hover, .form-field textarea:hover { border-color: rgba(231,231,234,0.22); }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--indigo); background: var(--bg);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.16);
}
.form-submit { width: 100%; height: 52px; border-radius: 13px; background: var(--indigo); color: #fff; font-weight: 600; font-size: 15.5px;
  display: flex; align-items: center; justify-content: center; gap: 9px; transition: background .25s var(--ease), transform .2s; min-height: 44px; }
.form-submit:hover { background: var(--indigo-bright); transform: translateY(-2px); }
.form-submit:focus-visible { outline: 2px solid var(--indigo-bright); outline-offset: 3px; }
.form-submit:disabled { opacity: .6; cursor: default; transform: none; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.form-status.is-error { color: #F2A0A0; }
.ct-nojs { display: none; margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ct-nojs a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.no-js #contact-form { display: none; }
.no-js .ct-nojs { display: block; }
.form-status a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.form-fine { margin: 14px 0 0; font-size: 12.5px; color: var(--muted-2); text-align: center; }
.form-fine a { text-decoration: underline; text-underline-offset: 2px; }
.form-fine a:hover { color: var(--ink); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: rgba(19,185,138,0.16); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success h4 { font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.form-success p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; gap: 44px; } }

/* footer */
.footer { border-top: 1px solid var(--hairline-soft); padding: 40px 0 56px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .fcol { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 13.5px; }
.footer .fcol a { transition: color .2s; }
.footer .fcol a:hover { color: var(--ink); }
.footer .fsmall { font-size: 13px; color: var(--muted-2); }

/* ============================================================
   MOTION: reveals
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

.reveal-scale { opacity: 0; transform: translateY(40px) scale(0.96); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }

/* no-JS / pre-boot fallback: never trap content invisible */
.no-js .reveal, .no-js .reveal-scale { opacity: 1 !important; transform: none !important; }
.no-js .word > span { opacity: 1 !important; transform: none !important; }

/* word / line mask reveal */
.line-mask { display: block; overflow: hidden; }
.word { display: inline-block; }
.word > span { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.word.in > span { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  .word > span { transform: none !important; opacity: 1 !important; transition: none !important; }
}
