/* =========================================================================
   To-Track — home
   Motion language shared with the film: ink + blue, state colours,
   Geist / Geist Mono, mono labels, blue full stops.
   ========================================================================= */

:root {
  --ink: #0B1020;
  --ink-2: #0F1528;
  --ink-3: #172036;
  --ink-line: rgba(255, 255, 255, .09);
  --bg: #FAFAF7;
  --bg-2: #F2F2EC;
  --surface: #FFFFFF;
  --line: #E5E4DD;
  --text: #0B1020;
  --muted: #5C6478;
  --muted-2: #8A91A2;
  --accent: #1A6FFF;
  --accent-2: #4F8FFF;
  --accent-ink: #0D4FCC;
  --done: #10B26C;
  --done-2: #25CF83;
  --wait: #F59E0B;
  --block: #E4572E;
  --violet: #7C4DFF;
  --violet-2: #B69CFF;

  /* iOS system colours used by the app's state categories */
  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-grey: #8E8E93;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 64px;
  --vh: 1vh;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

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

/* ------------------------------------------------------------- overlays */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 85; pointer-events: none; }

/* ------------------------------------------------------------ type kit */
.h2 {
  font-size: clamp(40px, 6.2vw, 88px); font-weight: 720; letter-spacing: -.045em; line-height: 1.0;
  text-wrap: balance;
}
.h2.xl { font-size: clamp(56px, 10vw, 150px); letter-spacing: -.05em; }
.h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.dot { color: var(--accent); }
.dot.g { color: var(--done-2); }
.dot.v { color: var(--violet-2); }
.muted { color: #A3A9B7; }
.sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); letter-spacing: -.01em; line-height: 1.5; max-width: 620px; text-wrap: pretty; }
[data-theme="dark"] .sub { color: rgba(255, 255, 255, .62); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.center { justify-items: center; text-align: center; }
.sec-head.center .sub { margin: 0 auto; }
.link { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.link:hover { border-color: var(--accent); }

/* split-text line masks */
.split-line { overflow: clip; padding-bottom: .09em; margin-bottom: -.09em; }

/* --------------------------------------------------------------- buttons */
.btn-store {
  --bg-b: #fff; --fg-b: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 24px 0 20px; border-radius: 16px;
  background: var(--bg-b); color: var(--fg-b);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -18px rgba(26, 111, 255, .65);
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn-store .ic { width: 26px; height: 26px; margin-top: -3px; }
.btn-store span { display: grid; line-height: 1.05; text-align: left; }
.btn-store small { font-size: 11px; font-weight: 500; opacity: .7; letter-spacing: .01em; }
.btn-store strong { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.btn-store:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 50px -16px rgba(26, 111, 255, .8); }
.btn-store.xl { height: 68px; padding: 0 30px 0 24px; border-radius: 20px; }
.btn-store.xl .ic { width: 30px; height: 30px; }
.btn-store.xl strong { font-size: 23px; }

.btn-film {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 8px; border-radius: 999px;
  color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 550; letter-spacing: -.01em;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-film:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.bf-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .5s var(--ease); }
.bf-icon .ic { width: 15px; height: 15px; margin-left: 2px; }
.btn-film:hover .bf-icon { transform: scale(1.08); }
.bf-dur { font-size: 12px; color: rgba(255, 255, 255, .5); }

.btn-line, .btn-solid {
  display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 14px;
  font-weight: 600; letter-spacing: -.01em; transition: transform .5s var(--ease), background .3s, box-shadow .3s;
}
.btn-line { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-solid { background: #fff; color: var(--ink); box-shadow: 0 18px 40px -16px rgba(124, 77, 255, .7); }
.btn-solid:hover { box-shadow: 0 22px 50px -14px rgba(124, 77, 255, .9); }

/* =================================================================== NAV */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 80; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--pad);
  color: #fff;
  transition: transform .5s var(--ease), color .35s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  opacity: 0; transition: opacity .35s var(--ease), background .35s var(--ease), border-color .35s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-light { color: var(--ink); }
.nav.is-light::before { background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom-color: rgba(11, 16, 32, .07); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 17px; justify-self: start; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 8px 14px; border-radius: 999px; opacity: .72; transition: opacity .2s, background .2s; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-cta {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; background: #fff; color: var(--ink);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.nav-cta .ic { width: 16px; height: 16px; margin-top: -2px; }
.nav.is-light .nav-cta { background: var(--ink); color: #fff; }
.nav-cta:hover { transform: translateY(-1px); }

/* ================================================================== HERO */
.hero { position: relative; background: var(--ink); color: #fff; }
.hero-stage {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 28px) var(--pad) 56px; gap: clamp(28px, 5vh, 56px);
  overflow: hidden; overflow: clip; isolation: isolate;
}
.fx-on .hero-stage { height: 100vh; height: 100svh; }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute; left: 50%; top: 68%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--glow, 26 111 255) / .28), rgb(var(--glow, 26 111 255) / .07) 45%, transparent 70%);
  transition: background 1s var(--ease);
  animation: glowDrift 14s ease-in-out infinite alternate;
}
@keyframes glowDrift { from { transform: translate3d(-2%, 1%, 0) scale(1); } to { transform: translate3d(2%, -2%, 0) scale(1.06); } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.1px, transparent 1.4px);
  background-size: 30px 30px; background-position: center;
  -webkit-mask-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 60%), #000 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .08) 100%);
          mask-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 60%), #000 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .08) 100%);
}
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 8, 18, .75) 100%); }

/* HUD */
.hud { position: absolute; inset: calc(var(--nav-h) + 10px) clamp(14px, 2.2vw, 30px) clamp(14px, 2.2vw, 26px); pointer-events: none; z-index: 1; }
.brk { position: absolute; width: 16px; height: 16px; border: 1.5px solid rgba(255, 255, 255, .28); }
.brk.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.brk.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.brk.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.brk.br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hud-t { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: rgba(255, 255, 255, .42); white-space: nowrap; }
.hud-t b { color: var(--accent-2); font-weight: 500; }
.hud-t.tl { left: 26px; top: -1px; }
.hud-t.tr { right: 26px; top: -1px; font-variant-numeric: tabular-nums; }
.hud-t.bl { left: 26px; bottom: -2px; }
.hud-t.br { right: 26px; bottom: -2px; }
html:not(.fx-on) .hud-t.br { display: none; }
.hud-arrow { display: inline-block; font-style: normal; animation: bob 1.6s var(--ease-io) infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: min(1100px, 100%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 550; color: rgba(255, 255, 255, .86);
  background: rgba(124, 77, 255, .14); box-shadow: inset 0 0 0 1px rgba(182, 156, 255, .32);
  transition: background .3s;
}
.eyebrow:hover { background: rgba(124, 77, 255, .24); }
.eyebrow .ic { width: 13px; height: 13px; opacity: .7; transition: transform .4s var(--ease); }
.eyebrow:hover .ic { transform: translateX(3px); }
.eb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 0 0 rgba(182, 156, 255, .6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(182, 156, 255, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(182, 156, 255, 0); } }

.display {
  font-size: clamp(46px, min(8.4vw, 12.4vh), 132px); font-weight: 740; letter-spacing: -.052em; line-height: .96;
  display: grid; justify-items: center;
}
.display .line { display: block; white-space: nowrap; }
.display .dot { color: var(--accent); }
.lede { font-size: clamp(16px, 1.35vw, 19px); color: rgba(255, 255, 255, .64); max-width: 600px; line-height: 1.5; letter-spacing: -.005em; text-wrap: pretty; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* hero visual: the film as a live window, real app cards floating around it */
.hero-visual { position: relative; width: min(100%, 62vw, 1000px); margin: clamp(24px, 5vh, 56px) 0 4vh; }
.floaters { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 9; pointer-events: none; container-type: inline-size; }
.floaters.back { z-index: 0; }
.floaters.front { z-index: 4; }
/* mid-size screens: the window is small, so the cards keep a readable size relative to it */
@media (min-width: 641px) and (max-width: 1200px) { .floaters { --k: 1.2; } }
.fl { position: absolute; left: var(--x); top: var(--y); width: calc(var(--w, 10) * var(--k, 1) * 1cqw); will-change: transform; }
.fl-bob { animation: hcBob var(--bd, 7s) var(--ease-io) infinite alternate; animation-delay: calc(var(--d) * -3.1s); }
@keyframes hcBob { from { transform: translate3d(0, -.45cqw, 0) rotate(-.6deg); } to { transform: translate3d(0, .45cqw, 0) rotate(.6deg); } }
.fl-a { --x: -19%; --y: 6%; --w: 34.5; --r: -5deg; --d: 1.25; }
.fl-b { --x: 85%; --y: -20%; --w: 22; --r: 4deg; --d: 1; }
.fl-h { --x: 88%; --y: 31%; --w: 22; --r: -3deg; --d: 1.45; }
.fl-ai { --x: -9%; --y: 44%; --w: 31; --r: 2deg; --d: .85; }
.fl-c1 { --x: 3%; --y: -15%; --r: -9deg; --d: .5; }
.fl-c2 { --x: 66%; --y: -12%; --r: 7deg; --d: .6; }
.fl-c3 { --x: 103%; --y: 84%; --r: -6deg; --d: .5; }
.fl-c1, .fl-c2, .fl-c3 { width: auto; }
.fl-bob > * { rotate: var(--r, 0deg); }
.fl-c1 .fl-bob, .fl-c2 .fl-bob, .fl-c3 .fl-bob { filter: blur(calc((1 - var(--d)) * 2.4px)); opacity: .85; }

/* hero cards: the app's dark-mode task cards (state-coloured bottom edge + glow) */
.hcard {
  --sc: 142 142 147;
  position: relative;
  font-family: -apple-system, "SF Pro Text", var(--font); font-size: calc(1.42cqw * var(--k, 1)); line-height: 1.25; color: #fff;
  background: rgba(30, 30, 34, .78); border-radius: 1.55em; padding: 1em 1.1em .95em;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -.09em 0 rgb(var(--sc)),
    0 1.3em 2em -1.3em rgb(var(--sc) / .85), 0 2.6em 4.4em -1.4em rgba(0, 0, 0, .6);
}
.hcard.st-open { --sc: 10 132 255; }
.hcard.st-active { --sc: 48 209 88; }
.hc-t { font-size: 1.62em; font-weight: 500; letter-spacing: -.01em; margin-bottom: .45em; }
.hc-t.sm { font-size: 1.12em; margin: 0; font-weight: 600; }
.hc-row { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.hc-row + .hc-row { margin-top: .7em; }
.hc-tags, .hc-metas { display: flex; gap: .35em; }
.hc-tag { font-size: .92em; padding: .2em .75em; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); white-space: nowrap; }
.hc-meta { display: inline-flex; align-items: center; gap: .3em; font-size: .82em; padding: .35em .55em; border-radius: .6em; background: rgba(255, 255, 255, .08); color: rgba(235, 235, 245, .6); }
.hc-meta .ic { width: 1.2em; height: 1.2em; }
.hc-meta.m-start .ic { color: #409CFF; }
.hc-meta.m-rep .ic { color: #FF9F0A; }
.hchip { display: inline-block; font-family: -apple-system, "SF Pro Text", var(--font); font-size: .86em; font-weight: 700; letter-spacing: .02em; padding: .38em .6em; border-radius: .5em; white-space: nowrap; }
.fl-c1 .hchip, .fl-c2 .hchip, .fl-c3 .hchip { font-size: max(11px, 1.55cqw); padding: .45em .75em; box-shadow: 0 1em 2em -1em rgba(0, 0, 0, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hchip.c-open { background: rgba(10, 132, 255, .2); color: #409CFF; }
.hchip.c-active { background: rgba(48, 209, 88, .18); color: #30D158; }
.hchip.c-closed { background: rgba(142, 142, 147, .24); color: #C7C7CC; }
.hc-time { display: flex; align-items: flex-end; gap: .6em; }
.hc-small { font-size: .72em; color: rgba(235, 235, 245, .55); text-align: right; line-height: 1.15; white-space: nowrap; }
.hc-small b { display: block; font-size: 1.45em; font-weight: 450; color: rgba(235, 235, 245, .75); font-variant-numeric: tabular-nums; }
.hc-big { font-size: 1.75em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hc-prop { display: flex; justify-content: space-between; align-items: center; height: 2.35em; padding: 0 1em; border-radius: .9em; background: rgba(255, 255, 255, .07); margin-bottom: .4em; font-size: 1.02em; }
.hc-prop span { color: rgba(235, 235, 245, .8); }
.hc-prop b { font-weight: 650; font-variant-numeric: tabular-nums; }
.hc-roll { position: relative; display: inline-block; height: 1.25em; overflow: hidden; vertical-align: middle; }
.hc-roll span { display: block; color: #fff !important; }
.hc-ago { font-size: .82em; color: rgba(235, 235, 245, .45); }
.hc-flame { display: inline-flex; align-items: center; gap: .25em; font-weight: 750; font-size: 1.1em; color: #FF9F0A; }
.hc-flame .ic { width: 1em; height: 1em; }
.hc-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: .28em; margin: .75em 0 .7em; }
.hc-dots i { aspect-ratio: 1; border-radius: .22em; background: rgba(255, 255, 255, .07); }
.hc-dots i.l1 { background: rgba(48, 209, 88, .32); }
.hc-dots i.l2 { background: rgba(48, 209, 88, .6); }
.hc-dots i.l3 { background: #30D158; }
.hc-dots i.today { box-shadow: 0 0 0 .12em #fff; animation: todayPulse 2.4s var(--ease-io) infinite; }
@keyframes todayPulse { 50% { box-shadow: 0 0 0 .12em rgba(255, 255, 255, .25); } }
.hc-rr { display: inline-flex; align-items: center; gap: .35em; font-size: .82em; color: #FF9F0A; }
.hc-rr .ic { width: 1.1em; height: 1.1em; }
.hc-ai {
  display: flex; align-items: center; gap: .7em; padding: .75em .75em .75em 1.05em; border-radius: 999px;
  background: rgba(22, 20, 44, .72); box-shadow: inset 0 0 0 1px rgba(182, 156, 255, .38), 0 1.2em 3em -1em rgba(124, 77, 255, .65), 0 2.6em 4.4em -1.4em rgba(0, 0, 0, .6);
}
.hc-spark { width: 1.3em; height: 1.3em; color: var(--violet-2); flex: none; }
.hc-say { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; font-size: 1.02em; color: rgba(255, 255, 255, .92); }
.hc-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--violet-2); animation: rec 1s steps(2, jump-none) infinite; }
.hc-send { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--violet); flex: none; }
.hc-send .ic { width: 1.05em; height: 1.05em; stroke-width: 2.6; }

/* film */
.film { position: relative; z-index: 2; width: 100%; }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #070A14;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 140px -30px rgba(26, 111, 255, .45), 0 60px 120px -40px rgba(0, 0, 0, .8);
  cursor: pointer;
}
.film-frame video, .film-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-still { pointer-events: none; transition: opacity .35s; display: none; }
.js .film-still { display: block; }
html:not(.js) .film-sound, html:not(.js) .film-ui { display: none; }
.film-still.is-hidden { opacity: 0; }
.film-sound {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fff; background: rgba(11, 16, 32, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .3s, transform .5s var(--ease), opacity .4s;
}
.film-sound .ic { width: 14px; height: 14px; }
.film-sound:hover { background: rgba(26, 111, 255, .7); transform: scale(1.04); }
.film-sound .fs-ring { position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); animation: ring 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35, 1.7); } }
.film.is-user .film-sound { opacity: 0; pointer-events: none; }

.film-ui { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding-top: 16px; }
.film-now { font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .5); white-space: nowrap; min-width: 170px; }
.film-now b { color: var(--accent-2); font-weight: 500; }
.film-chapters { display: flex; gap: 3px; height: 22px; align-items: center; }
.chap { position: relative; height: 22px; flex: var(--d) 1 0; display: flex; align-items: center; cursor: pointer; }
.chap::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); transition: height .2s var(--ease), background .2s; }
.chap i { position: absolute; left: 0; height: 3px; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: #fff; transition: height .2s var(--ease); }
.chap:hover::before, .chap:hover i, .chap:focus-visible::before, .chap:focus-visible i { height: 6px; }
.chap:hover::before { background: rgba(255, 255, 255, .3); }
.chap.is-now i { background: var(--accent-2); }
.film-ctrl { display: flex; gap: 6px; }
.fc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .2s, color .2s; }
.fc:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.fc .ic { width: 15px; height: 15px; }
.film-thumb {
  position: absolute; bottom: calc(100% - 4px); left: 0; width: 176px; padding: 4px; border-radius: 12px; background: #fff;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); opacity: 0; transform: translate(-50%, 8px) scale(.96); pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease);
}
.film-thumb.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.film-thumb span { display: block; aspect-ratio: 16 / 9; border-radius: 8px; background-image: url("../film/chapters.webp"); background-size: 1200% 100%; }
.film-thumb b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--ink); padding: 6px 4px 2px; font-weight: 500; }

/* fx mode: copy up top, the window peeks below it and opens to full frame on scroll */
.fx-on .hero-stage { justify-content: flex-start; padding-top: calc(var(--nav-h) + clamp(20px, 5vh, 52px)); }
@media (min-width: 641px) { .fx-on .display { font-size: clamp(46px, min(7.6vw, 10.6vh), 120px); } }
.fx-on .hero-visual { display: contents; }
/* static page: the cards step aside once the film is actually being watched */
html:not(.fx-on) .film.is-user ~ .floaters { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.fx-on .hud-t.bl, .fx-on .hud-t.br { display: none; }
.fx-on .film { position: absolute; left: var(--fl, 0); top: var(--ft, 0); width: var(--fw, 80vw); margin: 0; z-index: 3; pointer-events: none; }
.fx-on .film-frame { transform-origin: 0 0; will-change: transform; pointer-events: auto; }
.fx-on .film.is-open .film-ui { pointer-events: auto; }
.fx-on .film:not(.is-open) .film-sound { opacity: 0; pointer-events: none; }
.fx-on .film-ui { opacity: 0; }
.fx-on .floaters { left: var(--fl, 0); top: var(--ft, 0); width: var(--fw, 80vw); transform-origin: 0 0; will-change: transform; }
.fx-on .floaters.back { z-index: 2; }

/* hide-until-intro (with a CSS failsafe in case scripts never run) */
.js .hero-copy > *, .js .film, .js .fl-in { animation: failsafe 0s 2.6s forwards; opacity: 0; }
.fx-ready .hero-copy > *, .fx-ready .film, .fx-ready .fl-in { animation: none; opacity: 1; }
@keyframes failsafe { to { opacity: 1; } }

/* ================================================================== BAND */
.band { position: relative; z-index: 2; background: var(--bg); color: var(--ink); overflow: hidden; overflow: clip; border-bottom: 1px solid var(--line); }
.band-track { display: flex; align-items: center; gap: 34px; width: max-content; padding: 26px 0; will-change: transform; }
.band-track span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.band-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.band-track i:nth-of-type(3n+2) { background: var(--done); }
.band-track i:nth-of-type(3n) { background: var(--wait); }

/* ================================================================= STORY */
/* clip, not hidden: keeps the phone sticky, and its unscaled 420px box off the page width */
.story { position: relative; background: var(--bg); padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 120px); overflow-x: clip; }
.story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(11, 16, 32, .085) 1.2px, transparent 1.5px); background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.story-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.story-head { display: grid; gap: 22px; padding-bottom: 12vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 520px; opacity: .28; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step:last-child { min-height: 90vh; }
.step p { font-size: clamp(16px, 1.3vw, 18.5px); color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.try { display: inline-flex; align-items: center; gap: 10px; font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--accent) !important; }
.try .ic { width: 18px; height: 18px; animation: nudge 1.8s var(--ease-io) infinite; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 6px; }
.flow i { width: 16px; height: 1.5px; background: var(--line); position: relative; }
.flow i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--line); border-right: 0; }
.fl { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; }
.s-open { background: #DCEBFF; color: var(--ios-blue); }
.s-wait { background: #FEF1DB; color: #B86E00; }
.s-active { background: #DDF5E3; color: #1F9D45; }
.s-rev { background: #EDE6FF; color: #6A3DF0; }
.s-closed { background: #ECECEF; color: #7A7A80; }

.story-stage { position: relative; }
.phone-sticky { position: sticky; top: calc(var(--nav-h) + (100vh - var(--nav-h) - var(--ph, 760px) - 40px) / 2); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone-fit { position: relative; width: calc(420px * var(--ps, .86)); height: calc(880px * var(--ps, .86)); }
.phone-hint { font-size: 11px; letter-spacing: .24em; color: var(--muted-2); display: flex; gap: 12px; align-items: center; }
.phone-hint .ph-l { animation: nudgeL 1.8s var(--ease-io) infinite; }
.phone-hint .ph-r { animation: nudge 1.8s var(--ease-io) infinite; }
@keyframes nudgeL { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }

/* ------------------------------------------------------------ phone (402pt-ish screen) */
.phone {
  position: absolute; left: 0; top: 0; width: 420px; height: 880px; transform: scale(var(--ps, .86)); transform-origin: 0 0;
  border-radius: 70px; background: #0A0A0D; padding: 13px;
  box-shadow: 0 0 0 2px #2A2B31, 0 0 0 5px #0A0A0D, 0 70px 120px -40px rgba(11, 16, 32, .5), 0 30px 60px -30px rgba(26, 111, 255, .3);
  font-family: -apple-system, "SF Pro Text", var(--font);
  user-select: none; -webkit-user-select: none;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 57px; background: #F2F2F7; overflow: hidden; color: #000; }
.island { position: absolute; left: 50%; top: 12px; width: 120px; height: 35px; margin-left: -60px; background: #000; border-radius: 20px; z-index: 6; }
.status { position: absolute; left: 0; right: 0; top: 16px; padding: 0 32px 0 44px; display: flex; justify-content: space-between; font-size: 16px; font-weight: 650; z-index: 5; }
.status .sic { display: flex; gap: 6px; align-items: center; }
.batt { width: 25px; height: 12px; border-radius: 4px; border: 1.5px solid rgba(0, 0, 0, .4); padding: 1.5px; }
.batt i { display: block; height: 100%; width: 80%; background: #000; border-radius: 2px; }
.scr-sort { position: absolute; right: 26px; top: 66px; width: 22px; height: 22px; }
.scr-sort .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.scr-title { position: absolute; left: 26px; top: 96px; font-size: 32px; font-weight: 750; letter-spacing: -.02em; }
.list { position: absolute; left: 14px; right: 14px; top: 150px; bottom: 0; }
.slot { position: relative; margin-bottom: 12px; }
.under { position: absolute; inset: 0; border-radius: 22px; display: flex; align-items: stretch; overflow: hidden; opacity: 0; }
.under.u-next { justify-content: flex-end; }
.under.u-prev { justify-content: flex-start; }
.under { transition: opacity .2s; }
.under span { width: 32px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 12px; letter-spacing: .02em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; transition: transform .25s var(--ease), letter-spacing .25s var(--ease); }
.under.armed span { transform: rotate(180deg) scale(1.14); letter-spacing: .06em; }
.card {
  --sc: rgba(0, 0, 0, 0); --bw: 1px; --sw: .6px; --blur: 16px;
  position: relative; background: #fff; border-radius: 22px; padding: 14px 16px 12px;
  box-shadow: inset 0 calc(var(--bw) * -1) 0 var(--sc), inset var(--sw) 0 0 var(--sc), inset calc(var(--sw) * -1) 0 0 var(--sc), 0 12px var(--blur) -14px var(--sc);
  transition: box-shadow .35s var(--ease-io);
  touch-action: pan-y; cursor: grab; will-change: transform;
}
.card.st-open { --sc: rgba(0, 122, 255, .8); }
.card.st-active { --sc: rgba(52, 199, 89, .8); --bw: 1.5px; --blur: 22px; }
.card.is-pressed { --blur: 0px; --sw: 0px; transition-timing-function: var(--ease); }
.wash { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
.card:active { cursor: grabbing; }
.ct { font-size: 21px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 9px; color: #0B0B0F; }
.prop { height: 38px; border-radius: 13px; background: #F2F2F7; display: flex; align-items: center; justify-content: space-between; padding: 0 5px 0 14px; font-size: 16px; color: #1c1c1e; margin-bottom: 9px; }
.propv { height: 29px; border-radius: 10px; background: #fff; padding: 0 12px 0 14px; display: flex; align-items: center; gap: 5px; font-weight: 650; }
.propv.plain { background: transparent; font-size: 18px; }
.propv .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row + .row { margin-top: 9px; }
.tags { display: flex; gap: 5px; }
.tag { font-size: 14px; padding: 3px 11px; border-radius: 999px; border: 1.3px solid #C9CBD1; color: #1c1c1e; }
.metas { display: flex; gap: 5px; }
.meta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #8E8E93; background: #F2F2F7; border-radius: 8px; padding: 4px 7px; }
.meta .ic { width: 14px; height: 14px; }
.meta.m-start .ic { color: #3B82F6; }
.meta.m-end .ic { color: #EF4444; }
.meta.m-rep .ic { color: #F59E0B; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; border-radius: 7px; padding: 5px 8px; white-space: nowrap; }
.c-open { background: #D6E7FF; color: var(--ios-blue); }
.c-active { background: #D9F5E1; color: #22A447; }
.c-closed { background: #E5E5EA; color: #8E8E93; }
.c-wait { background: #FEF1DB; color: #C77A06; }
.c-rev { background: #EDE6FF; color: #6A3DF0; }
.chipbox { position: relative; height: 26px; overflow: hidden; }
.chipbox .chip { transition: transform .5s var(--ease), opacity .3s; }
.tright { display: flex; align-items: flex-end; gap: 8px; min-height: 30px; }
.tsmall { font-size: 10.5px; color: #8E8E93; text-align: right; line-height: 1.15; }
.tsmall b { display: block; font-size: 15px; font-weight: 450; }
.tbig { font-size: 21px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1; }
.tm { font-size: 13px; color: #8E8E93; }
.tm b { font-weight: 650; color: #6c6c70; }
.dock { position: absolute; left: 20px; right: 20px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.dk { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 245, 247, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.dk .ic { width: 24px; height: 24px; stroke-width: 1.8; }
.dk-add { width: 140px; border-radius: 999px; }

.touch { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(26, 111, 255, .22); box-shadow: 0 0 0 2px rgba(26, 111, 255, .65), 0 8px 20px rgba(26, 111, 255, .3); z-index: 10; left: 0; top: 0; opacity: 0; pointer-events: none; }

/* details sheet */
.sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); opacity: 0; pointer-events: none; z-index: 7; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: 88%; z-index: 8; background: #fff; border-radius: 30px 30px 0 0;
  padding: 26px 22px 20px; transform: translateY(102%); box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .25);
}
.sh-handle { position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #D1D1D6; }
.sh-top { display: flex; align-items: center; justify-content: space-between; height: 52px; border-bottom: 1px solid #EEEEF0; margin-bottom: 4px; }
.sh-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.sh-row { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid #F1F1F3; }
.sh-ic { width: 24px; height: 24px; color: var(--ios-blue); margin-top: 4px; stroke-width: 1.8; }
.sh-l { font-size: 12px; color: #8E8E93; margin-bottom: 2px; }
.sh-v { font-size: 17px; font-weight: 500; display: flex; gap: 6px; align-items: center; min-height: 24px; }
.bt { font-size: 14px; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: #D9E7FF; color: #1756D6; }
.sh-note { font-size: 14.5px; line-height: 21px; color: #1c1c1e; white-space: pre; }
.thumbs { display: flex; gap: 8px; margin-top: 2px; }
.thumb { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .9); background: linear-gradient(135deg, var(--a), var(--b)); }
.thumb .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.sh-btns { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; gap: 10px; }
.sh-ai { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--violet); box-shadow: inset 0 0 0 1.5px #D8C9FF; }
.sh-ai .ic { width: 22px; height: 22px; }
.sh-done { flex: 1; height: 50px; border-radius: 14px; background: var(--ios-blue); color: #fff; font-size: 17px; font-weight: 600; display: grid; place-items: center; }

/* ================================================================== TIME */
.time { position: relative; background: var(--ink); color: #fff; overflow: hidden; overflow: clip; padding-bottom: clamp(80px, 10vw, 140px); }
.time-stage { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad) 60px; }
.ring { position: absolute; left: 50%; top: 50%; z-index: -1; width: 100%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .95; pointer-events: none; }
.time-inner { position: relative; isolation: isolate; display: grid; justify-items: center; text-align: center; gap: 24px; }
/* the ring wraps the running clock; headline and copy sit under it */
.dial {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; container-type: inline-size;
  width: clamp(min(88vw, 400px), calc(100svh - 240px), min(820px, 88vw));
}
.dial-c { display: grid; justify-items: center; gap: 3.2cqw; transform: translateY(calc((34px + 3.2cqw) / -2)); } /* clock dead-centre, tag above */
.time-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; color: #8DB9FF; background: rgba(26, 111, 255, .14); box-shadow: inset 0 0 0 1px rgba(26, 111, 255, .45); padding: 8px 16px; border-radius: 999px; }
.time-tag i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A4E; animation: rec 1.2s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.odo { display: flex; justify-content: center; font-size: 19cqw; font-weight: 620; letter-spacing: -.02em; line-height: 1; height: 1em; font-variant-numeric: tabular-nums; }
.dcol { height: 1em; overflow: hidden; width: .6em; text-align: center; }
.dcol.sec { color: var(--accent-2); }
.dstrip { display: block; will-change: transform; }
.dstrip span { display: block; height: 1em; line-height: 1em; }
.colon { width: .3em; text-align: center; color: rgba(255, 255, 255, .3); transform: translateY(-.04em); }
.time-cap { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; max-width: 680px; text-wrap: balance; }
.time .sub { text-align: center; }

.stream { margin: 0 auto; max-width: 980px; background: rgba(255, 255, 255, .03); border-radius: 28px; padding: clamp(22px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--ink-line); display: grid; gap: 16px; }
.stream-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .45); padding-bottom: 6px; }
.stream-row { display: grid; grid-template-columns: 110px 1fr 76px; align-items: center; gap: 18px; }
.sl { font-size: 15px; color: rgba(255, 255, 255, .78); }
.sb { position: relative; display: flex; gap: 3px; height: 14px; }
.sb i { display: block; width: var(--w); height: 100%; border-radius: 4px; background: var(--c); transform-origin: left; }
.sn { font-size: 14px; text-align: right; color: #fff; }
.stream-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 10.5px; letter-spacing: .16em; color: rgba(255, 255, 255, .45); padding-top: 8px; }
.stream-legend span { display: inline-flex; align-items: center; gap: 8px; }
.stream-legend i { width: 8px; height: 8px; border-radius: 2px; }

/* ================================================================= BENTO */
.more { position: relative; background: var(--bg); padding: clamp(90px, 11vw, 150px) 0; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; border-radius: 30px; background: var(--surface); padding: clamp(22px, 2.4vw, 32px);
  box-shadow: 0 0 0 1px rgba(11, 16, 32, .06), 0 30px 60px -40px rgba(11, 16, 32, .25);
  overflow: hidden; display: flex; flex-direction: column; gap: 22px; isolation: isolate;
}
.tile.is-dark { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 40px 70px -40px rgba(11, 16, 32, .6); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--tx, 50%) var(--ty, 50%), rgba(26, 111, 255, .07), transparent 60%);
}
.tile.is-dark::after { background: radial-gradient(500px circle at var(--tx, 50%) var(--ty, 50%), rgba(255, 255, 255, .06), transparent 60%); }
.tile:hover::after { opacity: 1; }
.tile-top { display: grid; gap: 10px; }
.k { font-size: 11px; letter-spacing: .2em; color: var(--muted-2); display: inline-flex; align-items: center; gap: 8px; }
.k .ic { width: 14px; height: 14px; }
.is-dark .k { color: rgba(255, 255, 255, .5); }
.tile-h { font-size: clamp(24px, 2.3vw, 32px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.tile-p { font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 440px; }
.is-dark .tile-p { color: rgba(255, 255, 255, .58); }

.t-habits { grid-column: span 8; grid-row: span 2; }
.t-insights { grid-column: span 4; grid-row: span 2; }
.t-lists { grid-column: span 5; }
.t-props { grid-column: span 4; }
.t-tree { grid-column: span 3; }
.t-lang { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; min-height: 240px; }

/* habits */
.rr { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.rr-ind { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--done); z-index: 0; transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }
.rrc { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 550; padding: 8px 15px; border-radius: 999px; color: rgba(255, 255, 255, .66); box-shadow: inset 0 0 0 1.3px rgba(255, 255, 255, .16); transition: color .3s, box-shadow .3s; }
.rrc .ic { width: 15px; height: 15px; }
.rrc:hover { color: #fff; }
.rrc.on { color: #fff; box-shadow: none; }
.habit-body { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 3vw, 44px); align-items: end; margin-top: auto; }
.hgrid-wrap { display: flex; gap: 10px; min-width: 0; }
.hdays { display: grid; grid-template-rows: repeat(7, 1fr); gap: var(--hg, 6px); font-size: 10px; color: rgba(255, 255, 255, .3); padding-top: 0; }
.hdays span { display: flex; align-items: center; height: var(--hc, 26px); }
.hgrid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, var(--hc, 26px)); grid-auto-columns: var(--hc, 26px); gap: var(--hg, 6px); }
.hc { border-radius: 7px; background: #172036; transition: background .35s var(--ease), transform .35s var(--ease); }
.hc.on { background: var(--done); }
.hc.on.l2 { background: #25CF83; }
.hc.on.l0 { background: #0C8A52; }
.hc.fut { background: transparent; box-shadow: inset 0 0 0 1.3px rgba(255, 255, 255, .1); }
.hc.today { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px #fff; }
.streak { text-align: left; min-width: 150px; }
.flame { width: 44px; height: 44px; color: #FFB020; fill: rgba(255, 176, 32, .18); stroke-width: 1.8; margin-bottom: 2px; }
.streak-n { font-family: var(--font); font-size: clamp(88px, 9vw, 132px); font-weight: 720; letter-spacing: -.055em; line-height: .88; font-variant-numeric: tabular-nums; }
.streak-l { font-size: 17px; color: rgba(255, 255, 255, .6); margin-top: 10px; }

/* insights */
.big-num {
  font-size: clamp(64px, 6.6vw, 96px); font-weight: 720; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #5B2BE0, #1A6FFF 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 8px;
}
.big-cap { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: -10px; }
.delta { color: #0C9A5C; font-size: 12px; letter-spacing: .02em; }
.chart { position: relative; margin-top: auto; border-radius: 22px; background: var(--bg); padding: 18px 18px 16px; box-shadow: inset 0 0 0 1px rgba(11, 16, 32, .05); }
.chart-h { display: grid; gap: 2px; margin-bottom: 14px; }
.chart-h b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.chart-h span { font-size: 10px; letter-spacing: .12em; color: var(--muted-2); }
.bars { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 6px; }
.cbar { position: relative; flex: 1; border-radius: 99px; background: linear-gradient(180deg, #1A6FFF, #8DB9FF); height: calc(var(--h) * 1%); transform-origin: bottom; cursor: pointer; transition: filter .2s; }
.cbar:hover { filter: brightness(1.1) saturate(1.2); }
.cbar.hi { background: linear-gradient(180deg, #5B2BE0, #1A6FFF); }
.trend { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 150px; width: calc(100% - 36px); overflow: visible; pointer-events: none; }
.chart-tip { position: absolute; top: 12px; right: 16px; font-size: 11px; letter-spacing: .06em; color: var(--ink); background: #fff; padding: 5px 9px; border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .3); opacity: 0; transition: opacity .2s; }
.chart-tip.on { opacity: 1; }

/* lists */
.ls-card { margin-top: auto; border-radius: 22px; background: var(--bg); padding: 16px; box-shadow: inset 0 0 0 1px rgba(11, 16, 32, .05); display: grid; gap: 12px; }
.ls-h { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.02em; }
.ls-h .ic { width: 22px; height: 22px; color: var(--accent); }
.ls-count { margin-left: auto; min-width: 34px; height: 26px; padding: 0 9px; border-radius: 999px; background: #E6EEFF; color: var(--accent); font-size: 13px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.qbar { min-height: 48px; border-radius: 14px; background: #fff; display: flex; align-items: center; gap: 7px; padding: 6px 10px; font-size: 13px; box-shadow: 0 0 0 1px rgba(11, 16, 32, .05); flex-wrap: wrap; }
.qbar > .ic { width: 16px; height: 16px; color: var(--muted-2); }
.qph { color: #A3A9B7; }
.qc { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 9px; padding: 5px 8px; white-space: nowrap; font-weight: 550; }
.qc em { font-style: normal; color: var(--muted-2); font-weight: 450; }
.qc .chip { font-size: 10.5px; padding: 3px 6px; }
.qand { font-size: 10.5px; letter-spacing: .12em; color: var(--muted-2); font-weight: 600; }
.ls-rows { display: flex; flex-direction: column; }
.lr { height: 44px; margin-bottom: 6px; flex: none; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 14px; box-shadow: 0 0 0 1px rgba(11, 16, 32, .04); overflow: hidden; }
.lr-n { font-size: 14.5px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-r { display: flex; gap: 6px; align-items: center; }
.lr .tag { font-size: 11.5px; padding: 2px 8px; }
.lr .chip { font-size: 10px; padding: 3px 6px; }

/* properties */
.props { margin-top: auto; display: grid; gap: 8px; }
.prop-r { height: 46px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 16px; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(11, 16, 32, .04); }
.prop-r b { font-size: 17px; font-weight: 650; padding-right: 10px; font-variant-numeric: tabular-nums; }
.prop-r .enum { height: 34px; border-radius: 10px; background: #fff; padding: 0 12px 0 14px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); cursor: pointer; font-family: var(--font); }
.prop-r .enum .ic { width: 13px; height: 13px; stroke-width: 2.6; }

/* tree */
.tree { margin-top: auto; display: grid; gap: 6px; font-size: 14.5px; }
.node { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(11, 16, 32, .04); white-space: nowrap; }
.node.parent { font-weight: 650; background: #fff; box-shadow: 0 0 0 1px rgba(11, 16, 32, .08); }
.cnt { margin-left: auto; font-size: 11px; color: var(--muted-2); font-weight: 500; }
.kids { position: relative; display: grid; gap: 6px; padding-left: 22px; }
.kids::before { content: ""; position: absolute; left: 12px; top: -6px; bottom: 19px; width: 1.5px; background: var(--line); }
.kid { position: relative; overflow: hidden; }
.kid span:last-child { overflow: hidden; text-overflow: ellipsis; }
.bul { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.6px #B8BDC8; display: grid; place-items: center; transition: background .35s var(--ease), box-shadow .35s; }
.node.is-prog .bul { box-shadow: inset 0 0 0 4.5px var(--ios-green); }
.node.is-done .bul { background: var(--ios-green); box-shadow: none; }
.node.is-done .bul::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.node.is-done > span:nth-child(2) { color: var(--muted-2); }
.parent.is-done { box-shadow: 0 0 0 1.5px var(--ios-green), 0 10px 24px -12px rgba(52, 199, 89, .6); }

/* languages */
.t-lang { background: linear-gradient(120deg, #0B1020, #121A36 60%, #1A2550); }
.lang-l { display: grid; gap: 10px; max-width: 520px; }
.lang-r { text-align: right; min-width: 0; flex: 1; }
.lang-word { font-size: clamp(56px, 8vw, 116px); font-weight: 720; letter-spacing: -.05em; line-height: 1; white-space: nowrap; background: linear-gradient(95deg, #fff 30%, #8DB9FF); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .06em .08em 0; }
.lang-meta { margin-top: 10px; font-size: 12px; letter-spacing: .18em; color: rgba(255, 255, 255, .45); }

/* ==================================================================== AI */
.ai { position: relative; background: #0A0D1C; color: #fff; overflow: hidden; overflow: clip; padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -1; }
.au { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.au1 { left: -10%; top: 20%; width: 60vw; height: 50vw; background: rgba(124, 77, 255, .38); animation: auA 18s ease-in-out infinite alternate; }
.au2 { right: -15%; top: -10%; width: 62vw; height: 48vw; background: rgba(26, 111, 255, .34); animation: auB 22s ease-in-out infinite alternate; }
.au3 { left: 30%; bottom: -20%; width: 50vw; height: 40vw; background: rgba(6, 182, 212, .2); animation: auA 26s ease-in-out infinite alternate-reverse; }
@keyframes auA { to { transform: translate3d(8vw, -6vw, 0) scale(1.1); } }
@keyframes auB { to { transform: translate3d(-10vw, 8vw, 0) scale(.92); } }
.ai::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, var(--ink)); z-index: -1; }
.ai-wrap { display: grid; justify-items: center; }
.ai-demo { position: relative; width: 100%; max-width: 820px; display: grid; gap: 22px; justify-items: center; }
.prompt {
  position: relative; width: 100%; min-height: 72px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 30px 80px -30px rgba(124, 77, 255, .6);
  display: flex; align-items: center; padding: 10px 12px 10px 24px; gap: 16px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.pspark { width: 26px; height: 26px; color: var(--violet-2); fill: rgba(182, 156, 255, .25); }
.ptext { flex: 1; font-size: clamp(16px, 1.8vw, 22px); letter-spacing: -.01em; color: #fff; min-height: 1.5em; line-height: 1.4; }
.ptext .tk { border-radius: 6px; transition: background .35s, color .35s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ptext .tk.hit { background: rgba(182, 156, 255, .28); color: #E6DDFF; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--violet-2); vertical-align: -.2em; margin-left: 2px; border-radius: 2px; animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.psend { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); transition: background .3s, color .3s, transform .4s var(--ease); flex: none; }
.psend .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.psend.on { background: linear-gradient(135deg, #7C4DFF, #1A6FFF); color: #fff; }
.psend.hit { transform: scale(.86); }
.ai-card {
  position: relative; width: 100%; max-width: 640px; background: #fff; color: var(--ink); border-radius: 30px; padding: 22px 26px 22px; overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  font-family: -apple-system, "SF Pro Text", var(--font);
}
.ai-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #EEEEF0; margin-bottom: 10px; }
.ai-title { font-size: 28px; font-weight: 700; letter-spacing: -.025em; min-height: 1.2em; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--violet); background: #F1EBFF; border-radius: 999px; padding: 6px 11px; white-space: nowrap; }
.ai-badge .ic { width: 13px; height: 13px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.af { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.af .sh-ic { color: var(--violet); }
.af .sh-v { font-weight: 600; }
.ai-shimmer { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(182, 156, 255, .28) 45%, rgba(91, 168, 255, .22) 55%, transparent 70%); transform: translateX(-100%); }
.ai-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 980px; margin-top: clamp(50px, 7vw, 90px); }
.ax { display: grid; gap: 6px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ax .ic { width: 22px; height: 22px; color: var(--violet-2); margin-bottom: 6px; }
.ax b { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.ax span { font-size: 14px; color: rgba(255, 255, 255, .55); line-height: 1.45; }

/* =============================================================== OFFLINE */
.offline { position: relative; background: var(--ink); color: #fff; overflow: hidden; overflow: clip; padding: clamp(110px, 13vw, 180px) 0; isolation: isolate; }
.off-marq { position: absolute; left: -20%; right: -20%; top: 50%; transform: translateY(-50%) rotate(-7deg); z-index: -1; display: grid; gap: 0; pointer-events: none; }
.om-row { white-space: nowrap; font-size: clamp(80px, 12vw, 180px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .07); will-change: transform; }
.off-wrap { display: grid; justify-items: center; text-align: center; gap: 28px; }
.wifi { width: clamp(70px, 8vw, 110px); height: clamp(70px, 8vw, 110px); color: #fff; margin-top: 20px; }
.wifi .ic { width: 100%; height: 100%; stroke-width: 1.8; }
.wslash { stroke: #FF5A4E; stroke-width: 2.2; }
.off-lines { display: grid; font-size: clamp(52px, 9.5vw, 150px); font-weight: 740; letter-spacing: -.05em; line-height: .98; }
.ol { display: block; white-space: nowrap; }
.ol em { font-style: normal; color: var(--accent-2); }
.off-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 820px; margin-top: 24px; }
.os { display: grid; gap: 4px; padding: 20px 18px; border-radius: 20px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--ink-line); }
.os b { font-size: 40px; font-weight: 600; letter-spacing: -.04em; }
.os b small { font-size: 16px; color: rgba(255, 255, 255, .5); margin-left: 2px; letter-spacing: 0; }
.os span { font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* ============================================================= PLATFORMS */
.platforms { position: relative; background: var(--bg); padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 7vw, 100px); }
.plat-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-top: 34px; }
.plat-line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.plat-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; background: linear-gradient(90deg, var(--done), var(--done-2)); border-radius: 2px; transform-origin: left; }
.plat { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px rgba(11, 16, 32, .06), 0 24px 50px -36px rgba(11, 16, 32, .25); transition: box-shadow .5s var(--ease); }
.plat:hover { box-shadow: 0 0 0 1px rgba(11, 16, 32, .08), 0 30px 60px -30px rgba(11, 16, 32, .3); }
.plat-dot { position: absolute; left: 22px; top: -34px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px #C9CBD1; }
.plat.is-live .plat-dot { background: var(--done); box-shadow: 0 0 0 5px rgba(16, 178, 108, .18); }
.plat.is-live .plat-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--done); animation: ringDot 2s var(--ease) infinite; }
@keyframes ringDot { from { transform: scale(.8); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
.plat-ic { width: 26px; height: 26px; margin-bottom: 6px; }
.plat b { font-size: 21px; letter-spacing: -.02em; }
.plat-st { font-size: 10.5px; letter-spacing: .14em; color: var(--muted-2); }
.plat.is-live .plat-st { color: var(--done); }
.plat p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.plat.is-live { background: var(--ink); color: #fff; }
.plat.is-live p { color: rgba(255, 255, 255, .6); }

/* =============================================================== PRICING */
.pricing { position: relative; background: var(--bg); padding: clamp(80px, 10vw, 140px) 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; perspective: 1400px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 40px); border-radius: 32px;
  background: var(--surface); box-shadow: 0 0 0 1px rgba(11, 16, 32, .07), 0 40px 80px -50px rgba(11, 16, 32, .35);
  transform-style: preserve-3d; transition: transform .6s var(--ease);
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-tier { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.plan-price { font-size: 44px; font-weight: 720; letter-spacing: -.05em; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.plan-sub { color: var(--muted); font-size: 15px; margin-top: -8px; }
.feats { display: grid; gap: 12px; margin: 10px 0 18px; }
.feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.feats .ic { width: 20px; height: 20px; flex: none; padding: 4px; border-radius: 50%; background: #E3F6EC; color: #0C9A5C; stroke-width: 3; margin-top: 1px; }
.plan .btn-line, .plan .btn-solid { margin-top: auto; }
.plan-pro { background: var(--ink); color: #fff; box-shadow: 0 50px 100px -40px rgba(80, 50, 200, .55); overflow: hidden; }
.plan-pro::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 1.5px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), rgba(124, 77, 255, .1), #B69CFF, #5BA8FF, rgba(26, 111, 255, .1), rgba(124, 77, 255, .1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.plan-pro > * { position: relative; z-index: 1; }
.plan-glow { position: absolute !important; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 77, 255, .45), transparent); z-index: 0 !important; pointer-events: none; }
.plan-pro .plan-sub { color: rgba(255, 255, 255, .6); }
.plan-pro .feats .ic { background: rgba(182, 156, 255, .18); color: var(--violet-2); }
.pro-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #E6DDFF; background: rgba(124, 77, 255, .3); padding: 7px 12px; border-radius: 999px; }
.pro-tag .ic { width: 13px; height: 13px; }

/* =================================================================== FAQ */
.faq { background: var(--bg); padding: clamp(60px, 8vw, 120px) 0 clamp(100px, 12vw, 160px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-grid .h2 { font-size: clamp(36px, 4.6vw, 64px); }
.faq-list { display: grid; gap: 10px; }
.qa { border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px rgba(11, 16, 32, .06); overflow: hidden; transition: box-shadow .3s; }
.qa[open] { box-shadow: 0 0 0 1px rgba(11, 16, 32, .1), 0 24px 50px -36px rgba(11, 16, 32, .35); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa-i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--bg); transition: background .3s, transform .5s var(--ease); }
.qa-i::before, .qa-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease), background .3s; }
.qa-i::after { transform: rotate(90deg); }
.qa[open] .qa-i { background: var(--ink); transform: rotate(180deg); }
.qa[open] .qa-i::before, .qa[open] .qa-i::after { background: #fff; }
.qa[open] .qa-i::after { transform: rotate(0deg); }
.qa-b { padding: 0 24px 24px; }
.qa-b p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 640px; }
.qa-b strong { color: var(--ink); }

/* ================================================================ FINALE */
.finale { position: relative; background: var(--ink); color: #fff; overflow: hidden; overflow: clip; padding: clamp(120px, 14vw, 200px) var(--pad) clamp(100px, 12vw, 160px); isolation: isolate; }
.finale-glow { position: absolute; left: 50%; top: 42%; width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(26, 111, 255, .36), rgba(26, 111, 255, .08) 50%, transparent 75%); }
.finale-inner { display: grid; justify-items: center; text-align: center; gap: 22px; }
.logo { position: relative; width: clamp(150px, 17vw, 230px); aspect-ratio: 1; margin-bottom: 10px; }
.logo-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 50px rgba(26, 111, 255, .5)); }
.wordmark { font-size: clamp(64px, 11vw, 168px); font-weight: 740; letter-spacing: -.055em; line-height: .95; }
.tagline { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.03em; color: rgba(255, 255, 255, .72); }
.tagline span { display: inline-block; }
.tagline i { font-style: normal; color: var(--accent-2); }
.finale-sub { color: rgba(255, 255, 255, .55); max-width: 460px; font-size: 16px; }
.finale-cta { display: grid; justify-items: center; gap: 18px; margin-top: 16px; }
.notify { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); transition: color .3s, border-color .3s; }
.notify .ic { width: 15px; height: 15px; }
.notify:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.notify:hover .ic:last-child { transform: translateX(3px); }
.notify .ic:last-child { transition: transform .4s var(--ease); }

/* ================================================================ FOOTER */
.footer { position: relative; background: var(--ink); color: #fff; overflow: hidden; overflow: clip; padding-top: 70px; border-top: 1px solid var(--ink-line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: rgba(255, 255, 255, .5); margin-top: 14px; font-size: 15px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col a { color: rgba(255, 255, 255, .7); width: fit-content; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.fh { font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .4); margin-bottom: 6px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding: 22px 0; border-top: 1px solid var(--ink-line); font-size: 11.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .4); }
.footer-word {
  font-size: clamp(90px, 23vw, 360px); font-weight: 780; letter-spacing: -.065em; line-height: .78; text-align: center; white-space: nowrap;
  margin: 10px 0 -.06em; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================ responsive */
@media (max-width: 1100px) {
  .t-habits { grid-column: span 12; grid-row: auto; }
  .t-insights { grid-column: span 6; grid-row: auto; }
  .t-lists { grid-column: span 6; }
  .t-props { grid-column: span 6; }
  .t-tree { grid-column: span 6; }
  .plat-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plat-line { display: none; }
  .plat-dot { top: 22px; left: auto; right: 22px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hud-t.tl, .hud-t.bl { display: none; }

  .story-grid { grid-template-columns: 1fr; }
  .story-head { padding-bottom: 36px; }
  .story-stage { order: 2; }
  .phone-sticky { position: relative; top: auto; }
  .story-copy { display: contents; }
  .story-head { order: 1; }
  .steps-rail { order: 3; }
  .step { min-height: 0; opacity: 1; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
  .t-lang { flex-direction: column; align-items: flex-start; }
  .lang-r { text-align: left; }
  .ai-extras, .off-stats { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* story steps as a snap carousel on small screens */
@media (max-width: 900px) {
  .steps-rail {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 8px;
    scrollbar-width: none;
  }
  .steps-rail::-webkit-scrollbar { display: none; }
  .steps-rail .step {
    flex: 0 0 min(84vw, 420px); scroll-snap-align: center; padding: 22px; border-radius: 24px; background: var(--surface);
    box-shadow: 0 0 0 1px rgba(11, 16, 32, .07); opacity: .55; gap: 12px;
  }
  .steps-rail .step.is-on { opacity: 1; box-shadow: 0 0 0 1.5px var(--accent), 0 20px 40px -26px rgba(26, 111, 255, .5); }
  .steps-rail .step .h3 { font-size: 26px; }
  .steps-rail .step p { font-size: 15px; }
  .steps-rail .step:last-child { min-height: 0; }
}

@media (max-height: 720px) and (max-width: 640px) {
  .lede { display: none; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .t-habits, .t-insights, .t-lists, .t-props, .t-tree, .t-lang { grid-column: auto; }
  .habit-body { grid-template-columns: 1fr; }
  .streak { display: flex; align-items: baseline; gap: 12px; }
  .streak .flame { align-self: center; }
  .streak-n { font-size: 72px; }
  .plat-track { grid-template-columns: 1fr; }
  .stream-row { grid-template-columns: 78px 1fr 60px; gap: 10px; }
  .sl { font-size: 13px; }
  .ai-grid { grid-template-columns: 1fr; }
  .film-ui { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .film-now { min-width: 0; }
  .film-chapters { grid-column: 1 / -1; order: 3; }
  .lr .tag { display: none; }
  .film-sound { right: 8px; bottom: 8px; height: 34px; padding: 0 12px 0 10px; gap: 7px; font-size: 12.5px; }
  .film-sound .ic { width: 11px; height: 11px; }
  .fc { width: 34px; height: 34px; }
  .film-thumb { display: none; }
  .hud-t.tr { display: none; }
  .display { font-size: min(11.4vw, 60px); }
  .hero-copy { gap: 18px; }
  .lede { font-size: 15.5px; }
  .cta-row { flex-wrap: nowrap; gap: 10px; }
  .btn-store { height: 52px; padding: 0 16px 0 14px; gap: 9px; border-radius: 14px; }
  .btn-store .ic { width: 22px; height: 22px; }
  .btn-store strong { font-size: 17px; }
  .btn-store small { font-size: 10px; }
  .btn-film { height: 52px; padding: 0 16px 0 7px; gap: 9px; font-size: 15px; }
  .bf-icon { width: 38px; height: 38px; }
  .bf-dur { display: none; }
  .floaters { --k: 1; }
  .hcard { font-size: 2.62cqw; }
  .fl-a { --x: -3%; --y: -38%; --w: 66; --r: -4deg; }
  .fl-b { --x: 60%; --y: 56%; --w: 42; --r: 4deg; }
  .fl-h, .fl-ai, .fl-c2 { display: none; }
  .fl-c1 { --x: 76%; --y: -19%; }
  .fl-c3 { --x: -2%; --y: 106%; }
  .hero-visual { width: 100%; }
  html:not(.fx-on) .hero-visual { margin: 26% 0 6%; }
  html:not(.fx-on) .fl-b, html:not(.fx-on) .fl-c3 { display: none; }
  .time-stage { min-height: 0; padding: clamp(88px, 13vh, 120px) var(--pad) 44px; }
  .time-inner { gap: 18px; }
  .time-tag { font-size: 10px; letter-spacing: .12em; padding: 7px 12px; gap: 8px; }
  .tt-x { display: none; }
  .off-lines { font-size: 13.5vw; }
  .footer-word { font-size: 25vw; }
}

/* ======================================================== reduced motion */
/* (.fx-on is never set when the user prefers reduced motion) */
@media (prefers-reduced-motion: reduce) {
  /* the phone demo keeps its short, direct-manipulation slides (a card following your finger) */
  html:not(.fx-on) :not(.phone, .phone *), html:not(.fx-on) :not(.phone, .phone *)::before, html:not(.fx-on) :not(.phone, .phone *)::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .hero-copy > *, .js .film, .js .fl-in { opacity: 1; animation: none; }
}
