/* ============================================================
   Samy landing page. Same tokens, radius scale and motion clock
   as the app (src/renderer/touch.css), light first.
   ============================================================ */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-wght-normal.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;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arial sized to Figtree's metrics, so the swap doesn't shift the layout. */
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 99.3%;
  ascent-override: 95.7%;
  descent-override: 25.2%;
  line-gap-override: 0%;
}

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #e8a15d;
}

:root {
  --font: 'Figtree', 'Figtree Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;

  /* Surfaces */
  --bg: #eef0f4;
  --tile: #ffffff;
  --panel-2: #f3f4f7;
  --panel-3: #e8ebf0;
  --app-bg: #e9ecf1;
  --text: #1b1e24;
  --text-2: #3d434c;
  --muted: #5b626d;
  --faint: #6b717c;
  --ink: #1b1e24;
  --on-accent: #1f1510;
  --mark-bg: #14161a;
  --accent: #e8a15d;
  --tint-mix: 50%;
  --accent-text: color-mix(in srgb, var(--accent) var(--tint-mix), var(--text));
  --focus: color-mix(in srgb, var(--accent) 70%, #000);

  /* The hero surface: one or two per screen */
  --hero: #1b1e24;
  --hero-text: #eef0f4;
  --hero-muted: #a9afb8;
  --hero-fill: rgba(255, 255, 255, 0.09);
  --tab-on: #1b1e24;
  --tab-on-text: #ffffff;

  /* Primary CTA */
  --cta-bg: #1b1e24;
  --cta-text: #ffffff;
  --cta-glow: color-mix(in srgb, var(--accent) 42%, transparent);
  --cta-glow-hot: color-mix(in srgb, var(--accent) 62%, transparent);

  /* Status and tones */
  --ok: #2f8a4a;
  --ok-bg: #e3f3e7;
  --now: #c2492f;
  --tone-green-bg: #daf1e8;  --tone-green: #186b52;
  --tone-blue-bg: #dde8f8;   --tone-blue: #2c5fa8;
  --tone-red-bg: #f9e0e1;    --tone-red: #b8323b;
  --tone-violet-bg: #e8e6f3; --tone-violet: #5a5290;
  --tone-amber-bg: #f5ecd9;  --tone-amber: #8a6420;
  --tone-gray-bg: #e6e9ee;   --tone-gray: #4f5661;

  /* Project colours (task blocks carry ink text on them) */
  --p-q4: #e8a15d;
  --p-web: #8db8ec;
  --p-me: #7fd1b5;

  /* Meetings: a quiet diagonal hatch */
  --meet-a: #dfe3e9;
  --meet-b: #eceef2;

  /* Desktop wallpaper in the scenes */
  --wall-a: #dfe4ee;
  --wall-b: #efe4d8;
  --key-edge: #cfd4dc;

  /* Placeholder chips for values still to fill in */
  --ph-bg: #e8e6f3;
  --ph-text: #4b4480;

  /* Shadows */
  --tile-shadow: 0 1px 2px rgba(30, 36, 52, 0.05), 0 8px 24px rgba(30, 36, 52, 0.06);
  --lift-shadow: 0 1px 2px rgba(30, 36, 52, 0.05), 0 16px 34px rgba(30, 36, 52, 0.11);
  --pop-shadow: 0 2px 6px rgba(30, 36, 52, 0.05), 0 30px 70px rgba(30, 36, 52, 0.16);
  --shadow: rgba(30, 36, 52, 0.18);

  /* Aurora glass, for the small floating windows (capture bar, widget) */
  --aurora:
    radial-gradient(46% 60% at 18% 16%, rgba(88, 101, 242, 0.38), transparent 62%),
    radial-gradient(44% 56% at 84% 20%, rgba(139, 92, 246, 0.34), transparent 64%),
    radial-gradient(52% 64% at 80% 86%, rgba(45, 212, 191, 0.32), transparent 62%),
    radial-gradient(46% 56% at 22% 92%, rgba(56, 189, 248, 0.32), transparent 62%);
  --glass-core: rgba(248, 249, 252, 0.9);

  /* Mascot */
  --mascot-base: var(--accent);
  --mascot-shade: color-mix(in srgb, var(--accent) 78%, #000);
  --mascot-eye: #1f1510;

  /* Night (the final section). A night in both themes on purpose. */
  --night: #05070f;
  --night-2: #0d1328;
  --night-glow-a: rgba(88, 101, 242, 0.24);
  --night-glow-b: rgba(139, 92, 246, 0.18);
  --star: #eef0ff;

  /* Radius scale */
  --r-tile: 24px;
  --r-card: 18px;
  --r-ctl: 13px;
  --r-sm: 9px;
  --r-pill: 999px;

  /* Motion: one calm clock for the whole page. Never an overshoot. */
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Ambient only: the pen writing Hello (as in the app). */
  --ease-pen: cubic-bezier(0.37, 0, 0.3, 1);
  --t-press: 120ms;
  --t-move: 420ms;
  --t-enter: 620ms;
  --sel-in: 360ms;
  --sel-out: 240ms;

  --gutter: clamp(16px, 4vw, 40px);
  --sec-pad: clamp(64px, 8vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1115;
    --tile: #181b21;
    --panel-2: #20242b;
    --panel-3: #282c34;
    --app-bg: #13161b;
    --text: #e8eaed;
    --text-2: #b6bcc4;
    --muted: #9aa1ab;
    --faint: #8a919b;
    --tint-mix: 100%;
    --focus: var(--accent);
    --mark-bg: #262a33;

    --hero: color-mix(in srgb, var(--accent) 12%, #1d2026);
    --hero-text: #f1f2f4;
    --hero-muted: #b0b6bf;
    --hero-fill: rgba(255, 255, 255, 0.08);
    --tab-on: #e8eaed;
    --tab-on-text: #14161a;

    --cta-bg: var(--accent);
    --cta-text: #1f1510;
    --cta-glow: color-mix(in srgb, var(--accent) 34%, transparent);
    --cta-glow-hot: color-mix(in srgb, var(--accent) 52%, transparent);

    --ok: #7dc98f;
    --ok-bg: rgba(125, 201, 143, 0.14);
    --now: #f08a8f;
    --tone-green-bg: #1e3a34;  --tone-green: #6fd0b2;
    --tone-blue-bg: #1e2c3f;   --tone-blue: #7fb3f0;
    --tone-red-bg: #402224;    --tone-red: #f08a8f;
    --tone-violet-bg: #2c2c34; --tone-violet: #b3aed6;
    --tone-amber-bg: #33302a;  --tone-amber: #d6bd8a;
    --tone-gray-bg: #2a2e35;   --tone-gray: #a3aab4;

    --meet-a: #2a2e36;
    --meet-b: #22252c;
    --wall-a: #1a1f2b;
    --wall-b: #2a221b;
    --key-edge: #0b0d10;
    --ph-bg: #2f2c45;
    --ph-text: #c9c3f0;

    --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.22);
    --lift-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 34px rgba(0, 0, 0, 0.34);
    --pop-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 70px rgba(0, 0, 0, 0.5);
    --shadow: rgba(0, 0, 0, 0.55);

    --aurora:
      radial-gradient(46% 60% at 18% 16%, rgba(88, 101, 242, 0.55), transparent 62%),
      radial-gradient(44% 56% at 84% 20%, rgba(139, 92, 246, 0.5), transparent 64%),
      radial-gradient(52% 64% at 80% 86%, rgba(45, 212, 191, 0.42), transparent 62%),
      radial-gradient(46% 56% at 22% 92%, rgba(56, 189, 248, 0.38), transparent 62%);
    --glass-core: rgba(15, 17, 21, 0.92);
  }
}

/* ============ Base ============ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  timeline-scope: --final;
}
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
main, .foot { position: relative; z-index: 1; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-ctl);
  background: var(--hero); color: var(--hero-text); font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--sel-out) var(--ease-soft);
}
.skip:focus { transform: none; transition: transform var(--sel-in) var(--ease-soft); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

mark.ph {
  background: var(--ph-bg); color: var(--ph-text);
  border-radius: var(--r-pill); padding: 0.06em 0.5em;
  font-weight: 700; font-size: 0.9em; letter-spacing: 0.01em; white-space: nowrap;
}

/* Entrances: rise and fade once when about a fifth is in view. */
.js .rv { opacity: 0; transform: translateY(20px); }
.js .rv.in {
  opacity: 1; transform: none;
  transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
/* The hero copy rises on load, without waiting for script. */
.ld { animation: rise var(--t-enter) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.only-mob { display: none !important; }
@media (max-width: 767px) {
  .only-desk { display: none !important; }
  p.only-mob { display: block !important; }
  .cta.only-mob, .linkform.only-mob { display: flex !important; }
}

/* ============ Nav ============ */

.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav-in {
  position: relative; isolation: isolate;
  width: min(1232px, 100% - 2 * var(--gutter) + 16px); margin-inline: auto;
  height: 60px; padding: 0 8px 0 10px;
  display: flex; align-items: center; gap: 6px;
  border-radius: var(--r-pill);
  transform-origin: 50% 0;
  transition: transform var(--t-move) var(--ease-soft);
}
.nav-in::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--tile); box-shadow: var(--lift-shadow);
  opacity: 0; transition: opacity var(--t-move) var(--ease-soft);
}
/* At night the pill goes dark with the page. */
.nav-in::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #161a26; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
  opacity: 0; transition: opacity var(--sel-out) var(--ease-soft);
}
.night .nav-in::after { opacity: 1; transition: opacity var(--sel-in) var(--ease-soft); }
.night .nav { --text: #eef0f4; --text-2: #c3c9d4; --muted: #a3abba; --panel-2: #1e2331; --cta-bg: var(--accent); --cta-text: #1f1510; color: var(--text); }
.nav.scrolled .nav-in { transform: scale(0.97); }
.nav.scrolled .nav-in::before { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .nav-in { animation: nav-shrink linear both; animation-timeline: scroll(root); animation-range: 0 140px; transition: none; }
  .nav-in::before { animation: nav-fill linear both; animation-timeline: scroll(root); animation-range: 0 140px; transition: none; }
  .nav.scrolled .nav-in { transform: none; }
}
@keyframes nav-shrink { to { transform: scale(0.97); } }
@keyframes nav-fill { to { opacity: 1; } }

.brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: var(--r-pill); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--mark-bg); color: #e8eaed;
}
.brand-mark svg { width: 72%; height: 72%; }
.brand-mark.lg { width: 48px; height: 48px; border-radius: 15px; }

.nav-links { display: flex; gap: 2px; margin-left: auto; margin-right: 8px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: var(--r-pill);
  color: var(--text-2); font-size: 15px; font-weight: 650; text-decoration: none;
  transition: background-color var(--sel-out) var(--ease-soft), color var(--sel-out) var(--ease-soft);
}
.nav-links a .ic { width: 17px; height: 17px; color: var(--muted); }
.nav-links a:hover { background: var(--panel-2); color: var(--text); transition: background-color var(--sel-in) var(--ease-soft), color var(--sel-in) var(--ease-soft); }
@media (max-width: 899px) { .nav-links { display: none; } .nav-in > .cta { margin-left: auto; } }

/* ============ Call to action ============ */

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 28px 0 24px;
  border: 0; border-radius: var(--r-pill);
  background: var(--cta-bg); color: var(--cta-text);
  font-size: 17px; font-weight: 750; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px var(--cta-glow), 0 2px 6px -2px var(--cta-glow);
  transition: transform var(--t-press) var(--ease-soft), box-shadow var(--sel-out) var(--ease-soft), background-color var(--sel-in) var(--ease-soft), color var(--sel-in) var(--ease-soft);
}
.cta .ic { width: 20px; height: 20px; stroke-width: 2; }
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px var(--cta-glow-hot), 0 3px 10px -2px var(--cta-glow);
  transition: transform var(--t-move) var(--ease-soft), box-shadow var(--sel-in) var(--ease-soft);
}
.cta:active { transform: scale(0.97); transition: transform var(--t-press) var(--ease-soft); }
.cta-sm { height: 46px; padding: 0 20px 0 16px; font-size: 15px; }
.cta-sm .ic { width: 18px; height: 18px; }

.get { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.reducers { font-size: 14.5px; font-weight: 600; color: var(--muted); padding-left: 6px; }
.linknote { font-size: 14px; color: var(--muted); padding-left: 6px; max-width: 46ch; }

.linkform { width: 100%; max-width: 480px; flex-direction: column; gap: 8px; }
.field {
  display: flex; align-items: center; gap: 10px;
  height: 62px; padding: 0 6px 0 18px;
  border-radius: var(--r-pill);
  background: var(--tile); box-shadow: var(--tile-shadow);
  transition: box-shadow var(--sel-out) var(--ease-soft);
}
.field > .ic { color: var(--muted); width: 19px; height: 19px; }
.field:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), var(--tile-shadow);
  transition: box-shadow var(--sel-in) var(--ease-soft);
}
.field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font-size: 16px; color: var(--text);
}
.field input::placeholder { color: var(--faint); }
.field .cta { height: 50px; padding: 0 18px 0 15px; font-size: 15.5px; }
.field .cta .ic { width: 18px; height: 18px; }
/* Narrow phones: input on top, button under it, still one rounded field. */
@media (max-width: 480px) {
  .field { flex-wrap: wrap; height: auto; padding: 6px; gap: 0; border-radius: 26px; }
  .field > .ic { margin-left: 12px; }
  .field input { height: 50px; padding-left: 10px; flex-basis: calc(100% - 40px); }
  .field .cta { width: 100%; height: 52px; }
}
.form-msg { min-height: 1.4em; font-size: 14.5px; font-weight: 600; padding-left: 18px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--tone-red); }

.cta-row { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 64px); }
.cta-row .get { align-items: center; }
.cta-row .reducers, .cta-row .linknote { text-align: center; padding-left: 0; }

/* ============ Hero ============ */

.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: var(--sec-pad); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy .get { align-items: center; }
.hero-copy .reducers, .hero-copy .linknote { padding-left: 0; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 38px; padding: 8px 16px 8px 13px; border-radius: var(--r-pill);
  line-height: 1.3; text-wrap: balance;
  background: var(--tile); box-shadow: var(--tile-shadow);
  color: var(--text-2); font-size: 14.5px; font-weight: 650;
}
.eyebrow .ic { width: 17px; height: 17px; color: var(--accent-text); }
.hero-title {
  margin-top: 22px;
  max-width: 14ch;
  font-size: clamp(40px, 6vw, 76px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  margin-top: 22px; max-width: 60ch;
  font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2);
  text-wrap: pretty;
}
.hero-copy #hero-get { margin-top: 32px; width: 100%; display: flex; justify-content: center; }
.see {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 18px 0 14px; border-radius: var(--r-pill);
  color: var(--text); font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background-color var(--sel-out) var(--ease-soft), transform var(--t-press) var(--ease-soft);
}
.see .ic { color: var(--accent-text); }
.see:hover { background: var(--tile); transition: background-color var(--sel-in) var(--ease-soft); }
.see:active { transform: scale(0.97); }

.hero-visual { margin-top: clamp(48px, 7vw, 88px); max-width: 880px; margin-inline: auto; }
/* Wide screens: copy on the left, the product beside it. */
@media (min-width: 1100px) {
  .hero { padding-top: clamp(24px, 3vw, 48px); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(36px, 3.6vw, 56px); }
  .hero-copy { align-items: flex-start; text-align: left; }
  .hero-copy .get { align-items: flex-start; }
  .hero-copy .reducers { text-align: left; padding-left: 6px; }
  .hero-copy #hero-get { justify-content: flex-start; }
  .hero-title { max-width: none; }
  .hero-visual { margin: 0; max-width: none; }
}
/* ============ Scaled stages ============
   Mocks are built at a fixed design size (--w x --h) and scaled to fit by
   script, so text and spacing keep their proportions at any width. */

.fit { --w: 600; --h: 460; position: relative; width: 100%; aspect-ratio: var(--w) / var(--h); overflow: clip; }
.js .fit { overflow: visible; }
.fit > .stage {
  position: absolute; left: 0; top: 0;
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  transform-origin: 0 0; transform: scale(var(--k, 0.5));
  font-size: 14px; line-height: 1.35;
}
.hero-fit { --w: 840; --h: 580; }
@media (max-width: 767px) { .hero-fit { --w: 440; --h: 400; } }

/* ============ Shared mock parts ============ */

.t { background: var(--tile); border-radius: var(--r-tile); box-shadow: var(--tile-shadow); min-width: 0; }
.live {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.tone-green { --tone: var(--tone-green); --tone-bg: var(--tone-green-bg); }
.tone-blue { --tone: var(--tone-blue); --tone-bg: var(--tone-blue-bg); }
.tone-amber { --tone: var(--tone-amber); --tone-bg: var(--tone-amber-bg); }
.tone-violet { --tone: var(--tone-violet); --tone-bg: var(--tone-violet-bg); }
.tone-red { --tone: var(--tone-red); --tone-bg: var(--tone-red-bg); }
.tone-gray { --tone: var(--tone-gray); --tone-bg: var(--tone-gray-bg); }
.mini-ic {
  width: 28px; height: 28px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center;
  background: var(--tone-bg); color: var(--tone);
}
.mini-ic .ic { width: 16px; height: 16px; }

.day-head { display: flex; align-items: baseline; gap: 10px; }
.day-title { font-size: 16px; font-weight: 750; }
.day-sub { font-size: 12.5px; color: var(--muted); }
.db { --span: 540; position: relative; display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px; }
.lane { position: relative; border-radius: 10px; background: var(--panel-2); }
.meet-lane { height: 32px; }
.task-lane { height: 42px; }
.blk {
  position: absolute; top: 3px; height: 26px;
  left: calc(var(--s) / var(--span) * 100%);
  width: calc((var(--e) - var(--s)) / var(--span) * 100%);
  display: flex; align-items: center; padding: 0 7px; overflow: hidden;
  border-radius: 8px; font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.blk { container-type: inline-size; }
.blk > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 40px) { .blk > span { display: none; } }
.blk.meet { background: repeating-linear-gradient(135deg, var(--meet-a) 0 6px, var(--meet-b) 6px 12px); color: var(--text-2); }
.blk.task { height: 36px; background: var(--cc, var(--accent)); color: var(--ink); }
.blk.task.current {
  box-shadow: 0 0 0 2px var(--tile), 0 0 0 4px color-mix(in srgb, var(--cc) 70%, transparent),
    0 10px 24px -8px color-mix(in srgb, var(--cc) 80%, transparent);
  z-index: 2;
}
.blk.away { background: var(--tone-red-bg); color: var(--tone-red); }
.now {
  position: absolute; top: -5px; bottom: 18px; width: 2px; margin-left: -1px;
  left: calc(var(--s) / var(--span) * 100%);
  border-radius: 2px; background: var(--now); z-index: 3;
  box-shadow: 0 0 8px color-mix(in srgb, var(--now) 60%, transparent);
}
.now span {
  position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
  background: var(--now); color: var(--tile);
  font-size: 10.5px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 15px; }
.ticks span {
  position: absolute; left: calc(var(--s) / var(--span) * 100%); transform: translateX(-50%);
  font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap;
}
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }

.sh-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; }
.sh-mark {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--tile)); color: var(--accent-text);
}
.sh-name { display: flex; flex-direction: column; line-height: 1.25; }
.sh-name b { font-size: 15px; font-weight: 750; }
.sh-name span { font-size: 12px; color: var(--muted); }
.sh-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 6px 16px 12px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.42; }
.msg.me { align-self: flex-end; background: color-mix(in srgb, var(--accent) 20%, var(--tile)); border-bottom-right-radius: 6px; }
.msg.samy { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 6px; }
.msg.act {
  align-self: stretch; max-width: none;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 7px 7px 11px; border-radius: var(--r-ctl);
  background: var(--ok-bg); color: var(--text-2); font-size: 12.5px; font-weight: 650;
}
.msg.act > .ic { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }
.act-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--tile); color: var(--text); font-size: 12px; font-weight: 750;
}
.undo .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.sh-input {
  margin: 0 12px 12px; height: 48px; padding: 0 7px;
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--r-ctl); background: var(--panel-2);
}
.sh-mic, .sh-send { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; }
.sh-mic { background: var(--tile); color: var(--muted); }
.sh-send { background: var(--accent); color: var(--on-accent); }
.sh-mic .ic, .sh-send .ic { width: 17px; height: 17px; }
.sh-ph, .sh-field { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-field .typed { color: var(--text); }
.sh-field.has .sh-ph { display: none; }

.glass { position: relative; isolation: isolate; overflow: hidden; background: var(--glass-core); box-shadow: var(--pop-shadow); }
.glass::before { content: ''; position: absolute; inset: -45%; z-index: -2; background: var(--aurora); filter: blur(34px); }
.glass::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 130% at 50% 42%, var(--glass-core) 44%, color-mix(in srgb, var(--glass-core) 55%, transparent) 72%, transparent 100%); }

/* ============ Hero mock: the task you're on, your day, and a thought dropped in ============ */

.app {
  position: absolute; left: 0; right: 0; top: 0; bottom: 64px;
  border-radius: 28px; background: var(--app-bg);
  box-shadow: var(--pop-shadow);
}
.app-bar { height: 64px; padding: 0 20px; display: flex; align-items: center; gap: 12px; }
.app-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--mark-bg); color: #e8eaed; }
.app-mark svg { width: 72%; height: 72%; }
.tabs { margin: 0 auto; display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--tile); box-shadow: var(--tile-shadow); }
.tab { height: 36px; padding: 0 15px 0 12px; display: flex; align-items: center; gap: 7px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 650; color: var(--muted); }
.tab .ic { width: 17px; height: 17px; }
.tab.on { background: var(--tab-on); color: var(--tab-on-text); }
.app-round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--muted); box-shadow: var(--tile-shadow); }
.app-round .ic { width: 17px; height: 17px; }

.app-body {
  position: absolute; top: 64px; left: 20px; right: 20px; bottom: 20px;
  display: grid; gap: 16px;
  grid-template-rows: minmax(0, 1fr) 160px;
}
.t-day { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }

.t-focus { background: var(--hero); color: var(--hero-text); padding: 26px 30px 26px 30px; display: flex; align-items: center; gap: 24px; }
.f-main { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 10px; }
.f-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 80%, var(--hero-text)); }
.f-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.f-meta { font-size: 14px; color: var(--hero-muted); }
.f-acts { margin-top: auto; display: flex; gap: 8px; }
.hbtn { height: 40px; padding: 0 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; border-radius: var(--r-ctl); background: var(--hero-fill); color: var(--hero-text); font-size: 13px; font-weight: 700; }
.hbtn .ic { width: 16px; height: 16px; }
.hbtn.primary { background: var(--accent); color: var(--on-accent); }
.f-ring { position: relative; width: 156px; height: 156px; flex: none; }
.f-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.r-track { fill: none; stroke: var(--hero-fill); stroke-width: 9; }
.r-fill { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 73; }
.r-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.r-center b { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.r-center span { font-size: 12px; color: var(--hero-muted); }

/* The capture bar floats over the board, then turns into the filed toast. */
.app .h-cap, .app .h-toast { position: absolute; z-index: 2; left: auto; top: auto; right: 36px; width: 480px; }
.app .h-cap { bottom: -44px; }
.app .h-toast { bottom: -26px; }
.h-cap kbd.k-enter { min-width: 0; height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }

.tab:not(.on) span { display: none; }
.tab:not(.on) { padding: 0 11px; }

/* Phones: just the task you're on, and the thought dropped in under it. */
@media (max-width: 767px) {
  .app { bottom: 96px; }
  .app-body { left: 16px; right: 16px; bottom: 16px; grid-template-rows: minmax(0, 1fr); }
  .t-day { display: none; }
  .t-focus { padding: 22px 22px 22px 24px; gap: 16px; }
  .f-title { font-size: 26px; }
  .f-ring { width: 112px; height: 112px; }
  .r-center b { font-size: 19px; }
  .hbtn:not(.primary) { display: none; }
  .app .h-cap, .app .h-toast { left: 16px; right: 16px; width: auto; }
  .app .h-cap { bottom: -84px; }
  .app .h-toast { bottom: -67px; }
}

/* On load the mock assembles once, then idles. */
.js [data-hero-mock] .t, .js [data-hero-mock] .app-bar { opacity: 0; }
.js [data-hero-mock].go .t, .js [data-hero-mock].go .app-bar {
  animation: rise var(--t-enter) var(--ease-out) both;
  animation-delay: calc(180ms + var(--i, 0) * 80ms);
}
.js [data-hero-mock].go .app-bar { --i: -1; }
[data-hero-mock].idle .now { animation: creep 240s linear forwards; }
[data-hero-mock].idle .r-fill { animation: ring 600s linear forwards; }
[data-hero-mock].idle .live { animation: breathe 3.6s var(--ease-soft) infinite; }
.paused, .paused * { animation-play-state: paused !important; }
@keyframes creep { to { transform: translateX(60px); } }
@keyframes ring { to { stroke-dashoffset: 52; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ============ Sections ============ */

.sec { padding-block: var(--sec-pad); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
}
.sec-title {
  margin-top: 12px; max-width: 22ch;
  font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  text-wrap: balance;
}
.tile { background: var(--tile); border-radius: var(--r-tile); box-shadow: var(--tile-shadow); padding: 26px; }
.tile-title { font-size: 18px; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; }
.tile p { color: var(--text-2); font-size: 17px; max-width: 60ch; }
.tile .tile-title + p { margin-top: 8px; }

/* ---- The problem ---- */
.problem .sec-title { max-width: 18ch; }
.pain-grid { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 699px) { .pain-grid { grid-template-columns: minmax(0, 1fr); } }
.pain-tag { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.pain-tag .ic { width: 16px; height: 16px; }

.pv-list { position: absolute; left: 20px; right: 20px; top: 17px; display: flex; flex-direction: column; gap: 12px; }
.pv-row { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(8px); }
.pv-row i { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 22%, transparent); }
.pv-row b { display: block; height: 10px; width: var(--l); border-radius: var(--r-pill); background: var(--tile); }
.played .pv-row { opacity: 1; transform: none; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); transition-delay: calc(500ms + var(--j) * 360ms); }

/* The turn: after the pain, the answer. */
.bridge {
  margin-top: 16px; padding: 22px 30px 22px 22px;
  display: flex; align-items: center; gap: 22px;
  border-radius: var(--r-tile); background: var(--hero); color: var(--hero-muted);
  box-shadow: var(--lift-shadow);
}
.bridge-mascot { width: 64px; height: 64px; flex: none; }
.bridge p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; }
.bridge strong { color: color-mix(in srgb, var(--accent) 82%, var(--hero-text)); font-weight: 750; }
@media (max-width: 639px) { .bridge { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px; } }
.pv { position: relative; height: 128px; margin-bottom: 22px; border-radius: var(--r-card); background: var(--panel-2); overflow: hidden; }

.pv-win { position: absolute; left: 18px; right: 18px; top: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 9px; }
.pv-b { height: 14px; width: 58%; border-radius: var(--r-pill); background: var(--tile); opacity: 0; transform: translateY(8px); }
.pv-b.me { align-self: flex-end; width: 44%; background: color-mix(in srgb, var(--accent) 28%, var(--tile)); }
.pv-b:nth-child(3) { width: 70%; }
.pv-chip {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px 0 9px; border-radius: var(--r-pill);
  background: var(--hero); color: var(--hero-text); font-size: 13px; font-weight: 750;
  opacity: 0; transform: translateY(6px);
}
.pv-chip .ic { width: 15px; height: 15px; color: var(--accent); }
.played .pv-b { opacity: 1; transform: none; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); transition-delay: calc(500ms + var(--j) * 360ms); }
.played .pv-chip { opacity: 1; transform: none; transition: opacity var(--t-enter) var(--ease-out) 2.1s, transform var(--t-enter) var(--ease-out) 2.1s; }

.pv-doc { position: absolute; left: 20px; right: 40%; top: 50px; display: flex; flex-direction: column; gap: 10px; }
.pv-doc i { display: block; height: 10px; width: var(--l); border-radius: var(--r-pill); background: var(--tile); position: relative; }
.pv-doc i.cur::after { content: ''; position: absolute; right: -8px; top: -4px; width: 2px; height: 18px; border-radius: 2px; background: var(--accent-text); }
.pv-bubble {
  position: absolute; left: 44%; top: 70px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tone-red-bg); color: var(--tone-red);
  opacity: 0; transform: translate(0, 10px) scale(0.92);
}
.pv-bubble .ic { width: 22px; height: 22px; }
.played .pv-bubble { animation: drift-off 2.8s var(--ease-soft) 700ms forwards; }
@keyframes drift-off {
  0% { opacity: 0; transform: translate(0, 10px) scale(0.92); }
  30% { opacity: 1; transform: translate(10px, -6px) scale(1); }
  100% { opacity: 0.32; transform: translate(118px, -52px) scale(0.9); }
}

.pv-bar { position: absolute; left: 18px; right: 18px; height: 30px; border-radius: 10px; background: var(--tile); --span: 540; }
.pv-bar:first-child { top: 26px; }
.pv-bar.empty { top: 66px; height: 36px; }
.pv-m { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; left: calc(var(--s) / var(--span) * 100%); width: calc((var(--e) - var(--s)) / var(--span) * 100%); background: repeating-linear-gradient(135deg, var(--meet-a) 0 5px, var(--meet-b) 5px 10px); }
.pv-now { position: absolute; left: 0; right: 0; top: -6px; height: 88px; pointer-events: none; }
.pv-now::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--now); box-shadow: 0 0 8px color-mix(in srgb, var(--now) 60%, transparent); }
.played .pv-now { transform: translateX(calc(var(--s) / var(--span) * 100%)); transition: transform 2.4s var(--ease-soft) 600ms; }

.scene kbd, .h-cap kbd {
  min-width: 46px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--tile);
  box-shadow: 0 3px 0 var(--key-edge), 0 6px 14px -6px var(--shadow);
  font: inherit; font-size: 14px; font-weight: 750; color: var(--text);
}
.scene kbd.wide { min-width: 90px; }
.kplus { color: var(--muted); font-weight: 700; }
.bub { padding: 11px 15px; border-radius: 16px 16px 6px 16px; background: color-mix(in srgb, var(--accent) 22%, var(--tile)); font-size: 15px; font-weight: 650; }
.bub-mic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }

/* ============ Feature story ============ */

.story-grid {
  margin-top: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 72px);
}
.st { grid-column: 1; min-height: 86vh; display: flex; flex-direction: column; justify-content: center; }
.st-in { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 26px; }
/* The step in play gets an accent bar; it glides in and fades out faster. */
.st-in::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  border-radius: var(--r-pill); background: var(--accent);
  opacity: 0; transform: scaleY(0.4);
  transition: opacity var(--sel-out) var(--ease-soft), transform var(--sel-out) var(--ease-soft);
}
.st.on .st-in::before { opacity: 1; transform: none; transition: opacity var(--sel-in) var(--ease-soft), transform var(--t-move) var(--ease-soft); }
.st[data-step='ritual'] { grid-row: 1; }
.st[data-step='tunnel'] { grid-row: 2; }
.st[data-step='capture'] { grid-row: 3; }
.st[data-step='talk'] { grid-row: 4; }
.st[data-step='close'] { grid-row: 5; }
.st-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.st-kicker .ic { width: 18px; height: 18px; }
.st-title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; }
.st-body { font-size: 18px; color: var(--text-2); max-width: 46ch; }
.st-aside { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; margin-top: 6px; padding: 9px 15px 9px 11px; border-radius: var(--r-pill); background: var(--tile); box-shadow: var(--tile-shadow); font-size: 15.5px; font-weight: 650; }
.st-aside .ic { color: var(--ok); stroke-width: 2.2; width: 18px; height: 18px; }

.scene {
  grid-column: 2; grid-row: 1 / 6; align-self: start;
  position: sticky; top: max(96px, calc(50vh - var(--sh, 460px) / 2));
  opacity: 0; visibility: hidden;
  transition: opacity var(--sel-out) var(--ease-soft), visibility 0s linear var(--sel-out);
}
.scene.on { opacity: 1; visibility: visible; transition: opacity var(--sel-in) var(--ease-soft), visibility 0s; }

/* Phones: each scene sits under its step and plays as it comes into view. */
@media (max-width: 767px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .st { min-height: 0; padding-top: 64px; }
  .st-in { padding-left: 0; }
  .st-in::before { display: none; }
  .st[data-step='ritual'] { grid-row: 1; padding-top: 24px; }
  .st[data-step='tunnel'] { grid-row: 3; }
  .st[data-step='capture'] { grid-row: 5; }
  .st[data-step='talk'] { grid-row: 7; }
  .st[data-step='close'] { grid-row: 9; }
  .scene { grid-column: 1; position: relative; top: auto; margin-top: 24px; opacity: 1; visibility: visible; }
  .scene[data-scene='ritual'] { grid-row: 2; }
  .scene[data-scene='tunnel'] { grid-row: 4; }
  .scene[data-scene='capture'] { grid-row: 6; }
  .scene[data-scene='talk'] { grid-row: 8; }
  .scene[data-scene='close'] { grid-row: 10; }
}

/* Scene stage parts. Hidden pieces wait for .show, set one by one in story.js. */
.scene .stage > * { position: absolute; }
.desk { inset: 0; border-radius: var(--r-tile); overflow: hidden; background: linear-gradient(140deg, var(--wall-a), var(--wall-b)); }
.desk > * { position: absolute; }
.win { background: var(--tile); border-radius: var(--r-card); box-shadow: var(--lift-shadow); overflow: hidden; }
.win-bar { height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--panel-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-3); }
.lines { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.lines i { display: block; height: 10px; width: var(--l); margin-left: var(--x, 0); border-radius: var(--r-pill); background: var(--panel-2); }
.lines i[style*='--l:0'] { height: 4px; background: none; }

[data-seq], .capbar, .back-pill { transition: opacity var(--sel-out) var(--ease-soft), transform var(--sel-out) var(--ease-soft); }
.show { transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out) !important; }

/* capture */
.doc { left: 28px; right: 28px; top: 78px; bottom: 28px; }
.keys { top: 18px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 9px; }
.scene kbd { transition: transform var(--t-press) var(--ease-soft), box-shadow var(--t-press) var(--ease-soft), background-color var(--t-press) var(--ease-soft); }
.scene kbd.down { transform: translateY(3px); box-shadow: 0 0 0 var(--key-edge), 0 2px 6px -4px var(--shadow); background: color-mix(in srgb, var(--accent) 26%, var(--tile)); }
.capbar { left: 56px; right: 56px; top: 140px; padding: 18px 20px 13px; border-radius: 20px; opacity: 0; transform: translateY(-12px); }
.capbar.show { opacity: 1; transform: none; }
.capbar.gone { opacity: 0; transform: translateY(-10px); }
.cap-row { display: flex; align-items: center; gap: 13px; min-height: 30px; }
.cap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 65%, transparent); flex: none; }
.cap-text { position: relative; flex: 1; display: flex; align-items: center; font-size: 19px; color: var(--text); white-space: nowrap; overflow: hidden; }
.cap-ph { color: var(--muted); }
.cap-text.has .cap-ph { display: none; }
.caret { width: 2px; height: 22px; margin-left: 1px; border-radius: 2px; background: var(--accent-text); flex: none; }
.cap-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.cap-back { display: inline-flex; align-items: center; gap: 6px; }
.cap-back .ic { width: 15px; height: 15px; }
.scene kbd.k-enter { min-width: 0; height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.ctoast {
  left: 48px; right: 48px; bottom: 44px; height: 66px; padding: 0 12px 0 14px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--r-card); background: var(--hero); color: var(--hero-text);
  box-shadow: 0 18px 40px -14px var(--shadow);
  opacity: 0; transform: translateY(14px);
}
.ctoast.show { opacity: 1; transform: none; }
.ct-ic { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 24%, transparent); color: var(--ok); }
.ct-ic .ic { width: 17px; height: 17px; stroke-width: 2.4; }
.ct-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ct-txt b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-txt span { font-size: 12.5px; font-weight: 650; color: var(--hero-muted); }
.back-pill { left: 48px; top: 136px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--hero); color: var(--hero-text); font-size: 14px; font-weight: 700; box-shadow: 0 12px 26px -10px var(--shadow); opacity: 0; transform: translateY(8px); }
.back-pill .ic { width: 16px; height: 16px; color: var(--accent); }
.back-pill.show { opacity: 1; transform: none; }

/* talk */
.s-day { left: 0; right: 0; top: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.s-chat { left: 0; right: 0; top: 186px; bottom: 0; display: flex; flex-direction: column; }
.s-chat .sh-msgs { gap: 9px; }
[data-scene='talk'] [data-seq='task'] { opacity: 0; transform: translateY(26px); }
[data-scene='talk'] [data-seq='away'] { opacity: 0; }
[data-scene='talk'] .msg[data-seq] { opacity: 0; transform: translateY(8px); }
[data-scene='talk'] .show { opacity: 1 !important; transform: none !important; }
.msg.typing { display: flex; gap: 5px; padding: 13px 14px; align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 6px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s var(--ease-soft) infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.msg-slot { display: grid; }
.msg-slot > * { grid-area: 1 / 1; justify-self: start; }
.instant, .instant * { transition: none !important; }
.msg.typing.gone { opacity: 0 !important; }

/* morning ritual */
.s-day.big { padding: 22px 22px 18px; }
.s-day.big .meet-lane { height: 36px; }
.s-day.big .task-lane { height: 46px; }
.s-day.big .blk.meet { top: 4px; height: 28px; }
.s-day.big .blk.task { top: 5px; height: 36px; }
.gap {
  position: absolute; top: 4px; bottom: 4px; border-radius: 9px;
  left: calc(var(--s) / var(--span) * 100%); width: calc((var(--e) - var(--s)) / var(--span) * 100%);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-text); font-size: 12px; font-weight: 750; white-space: nowrap;
}
.s-next { left: 0; right: 0; top: 196px; bottom: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.sub-head { padding: 0 8px 6px; font-size: 11.5px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.urow { height: 50px; padding: 0 10px; display: flex; align-items: center; gap: 12px; border-radius: 14px; transition: background-color var(--sel-out) var(--ease-soft); }
.urow.placed { background: color-mix(in srgb, var(--cc) 14%, var(--tile)); transition: background-color var(--sel-in) var(--ease-soft); }
.ucheck { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc) 75%, var(--panel-3)); }
.u-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-d { flex: none; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--panel-2); color: var(--text-2); font-size: 12px; font-weight: 650; }
.u-time { flex: none; width: 64px; text-align: right; font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; opacity: 0; }
.urow.placed .u-time { opacity: 1; transition: opacity var(--t-enter) var(--ease-out); }
[data-scene='ritual'] [data-seq='meet'] { opacity: 0; transform: translateY(6px); }
[data-scene='ritual'] [data-seq^='t'] { opacity: 0; transform: translateY(34px); }
[data-scene='ritual'] [data-seq='gap'] { opacity: 0; }
[data-scene='ritual'] .show { opacity: 1 !important; transform: none !important; }
[data-scene='ritual'] .gap.gone { opacity: 0 !important; }
.urow.picked .ucheck { background: var(--cc); box-shadow: inset 0 0 0 2px var(--cc); transition: background-color var(--sel-in) var(--ease-soft), box-shadow var(--sel-in) var(--ease-soft); }
.urow.picked .ucheck .ic { color: var(--ink); stroke-dashoffset: 0; transition: stroke-dashoffset var(--t-move) var(--ease-out) 80ms; }
.u-star { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: var(--faint); transition: color var(--sel-out) var(--ease-soft); }
.u-star .ic { width: 17px; height: 17px; fill: transparent; transition: fill var(--sel-out) var(--ease-soft); }
.u-star.on { color: var(--accent-text); transition: color var(--sel-in) var(--ease-soft); }
.u-star.on .ic { fill: currentColor; transition: fill var(--sel-in) var(--ease-soft); }

/* tunnel */
.tn-board { inset: 0; padding: 14px; border-radius: var(--r-tile); background: var(--app-bg); box-shadow: var(--lift-shadow); }
.bm-bar { height: 30px; display: flex; justify-content: center; gap: 6px; }
.bm-tab { width: 64px; height: 24px; border-radius: var(--r-pill); background: var(--tile); }
.bm-tab.on { background: var(--tab-on); }
.bm-grid { height: calc(100% - 42px); margin-top: 12px; display: grid; gap: 12px; grid-template-columns: 1fr 1.4fr 0.9fr; grid-template-rows: 1.2fr 1fr; }
.bm-grid i { border-radius: 18px; background: var(--tile); box-shadow: var(--tile-shadow); }
.bm-grid .bm-focus { background: var(--hero); }
.bm-grid .bm-day { grid-column: 1 / 3; grid-row: 2; }
.bm-grid .bm-b { grid-column: 3; grid-row: 2; }
.tn-veil {
  inset: 0; border-radius: var(--r-tile);
  background: color-mix(in srgb, var(--app-bg) 55%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0;
}
.tn-veil.show { opacity: 1; }
.tn-card {
  left: 52px; right: 52px; top: 46px; bottom: 46px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 16px;
  border-radius: var(--r-tile); background: var(--hero); color: var(--hero-text);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--cc) 40%, transparent), 0 26px 60px -18px var(--shadow);
  opacity: 0; transform: translateY(14px);
}
.tn-card.show { opacity: 1; transform: none; }
.tn-top { display: flex; align-items: center; gap: 10px; }
.tn-chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--cc) 20%, transparent); color: color-mix(in srgb, var(--cc) 70%, var(--hero-text)); font-size: 12.5px; font-weight: 750; }
.tn-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.tn-of { margin-left: auto; font-size: 12.5px; font-weight: 650; color: var(--hero-muted); }
.tn-main { flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 20px; }
.tn-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tn-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tn-steps { display: flex; flex-direction: column; gap: 6px; }
.tn-step {
  height: 40px; padding: 0 8px 0 10px; display: flex; align-items: center; gap: 10px;
  border-radius: var(--r-ctl); background: var(--hero-fill); font-size: 14px; font-weight: 650;
  transition: background-color var(--sel-out) var(--ease-soft);
}
.tn-step.cur { background: color-mix(in srgb, var(--accent) 18%, var(--hero-fill)); transition: background-color var(--sel-in) var(--ease-soft); }
.tn-step .ucheck { box-shadow: inset 0 0 0 2px var(--hero-muted); }
.tn-step.done .ucheck { background: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); transition: background-color var(--sel-in) var(--ease-soft), box-shadow var(--sel-in) var(--ease-soft); }
.tn-step.done .ucheck .ic { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t-move) var(--ease-out) 80ms; }
.tn-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--sel-out) var(--ease-soft); }
.tn-step.done .tn-t { color: var(--hero-muted); text-decoration: line-through; transition: color var(--sel-in) var(--ease-soft); }
.tn-now {
  flex: none; height: 22px; padding: 0 9px; display: inline-flex; align-items: center;
  border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0; transition: opacity var(--sel-out) var(--ease-soft);
}
.tn-step.cur .tn-now { opacity: 1; transition: opacity var(--sel-in) var(--ease-soft); }
.tn-ring { width: 124px; height: 124px; }
.tn-ring .r-fill { stroke-dashoffset: 62; transition: stroke-dashoffset 900ms var(--ease-soft); }
.tn-card.later .tn-ring .r-fill { stroke-dashoffset: 70; }
.tn-acts { display: flex; gap: 8px; }

/* evening close */
.s-list { left: 0; right: 0; top: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.s-list .urow { height: 46px; }
.ucheck { display: grid; place-items: center; transition: background-color var(--sel-out) var(--ease-soft), box-shadow var(--sel-out) var(--ease-soft); }
.ucheck .ic { width: 13px; height: 13px; color: var(--tile); stroke-width: 3.2; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--sel-out) var(--ease-soft); }
.urow.done .ucheck { background: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); transition: background-color var(--sel-in) var(--ease-soft), box-shadow var(--sel-in) var(--ease-soft); }
.urow.done .ucheck .ic { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t-move) var(--ease-out) 80ms; }
.u-t { transition: color var(--sel-out) var(--ease-soft); }
.urow.done .u-t { color: var(--muted); text-decoration: line-through; transition: color var(--sel-in) var(--ease-soft); }
.u-tmr { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-pill); background: var(--tone-blue-bg); color: var(--tone-blue); font-size: 12px; font-weight: 750; opacity: 0; transform: translateX(8px); transition: opacity var(--sel-out) var(--ease-soft), transform var(--sel-out) var(--ease-soft); }
.u-tmr .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.u-tmr.show { opacity: 1; transform: none; }
.s-prog { left: 0; bottom: 0; width: 220px; height: 186px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pg-ring { position: relative; width: 84px; height: 84px; }
.pg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.p-track { fill: none; stroke: var(--panel-2); stroke-width: 11; }
.p-fill { fill: none; stroke: var(--ok); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset var(--sel-out) var(--ease-soft); }
.s-prog.filled .p-fill { stroke-dashoffset: 25; transition: stroke-dashoffset 900ms var(--ease-soft); }
.pg-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pg-text { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; color: var(--muted); }
.pg-text b { color: var(--text); font-size: 14px; font-weight: 750; }
.seg { flex: none; display: flex; gap: 3px; padding: 3px; border-radius: var(--r-pill); background: var(--panel-2); opacity: 0; transform: translateX(8px); }
.seg.show { opacity: 1; transform: none; }
.sp { height: 26px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; color: var(--muted); transition: background-color var(--sel-out) var(--ease-soft), color var(--sel-out) var(--ease-soft); }
.sp.on { background: var(--tab-on); color: var(--tab-on-text); transition: background-color var(--sel-in) var(--ease-soft), color var(--sel-in) var(--ease-soft); }
.s-mood { left: 236px; right: 0; bottom: 0; height: 186px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.mood-q { font-size: 15px; font-weight: 750; }
.moods { display: flex; flex-wrap: wrap; gap: 6px; }
.mp { height: 32px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--panel-2); color: var(--text-2); font-size: 13px; font-weight: 650; transition: background-color var(--sel-out) var(--ease-soft), box-shadow var(--sel-out) var(--ease-soft); }
.mp.on { background: color-mix(in srgb, var(--accent) 22%, var(--tile)); color: var(--text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); transition: background-color var(--sel-in) var(--ease-soft), box-shadow var(--sel-in) var(--ease-soft); }
.set-btn { margin-top: auto; align-self: flex-start; height: 40px; padding: 0 16px 0 13px; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-ctl); background: var(--hero); color: var(--hero-text); font-size: 13.5px; font-weight: 700; opacity: 0; transform: translateY(6px); }
.set-btn .ic { width: 16px; height: 16px; color: var(--accent); }
.set-btn.show { opacity: 1; transform: none; }

/* ============ Privacy ============ */

.trust { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tr { grid-column: span 2; }
.tr.big { grid-column: span 3; }
@media (max-width: 1023px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr, .tr.big { grid-column: auto; } .tr:last-child { grid-column: span 2; } }
@media (max-width: 639px) { .trust { grid-template-columns: minmax(0, 1fr); } .tr:last-child { grid-column: auto; } }
.tr-ic { width: 44px; height: 44px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); margin-bottom: 18px; }
.tr-ic .ic { width: 21px; height: 21px; }
.tr.big .tr-ic { display: none; }
.tr.big { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 0; }
.tr.big > * { grid-column: 1 / -1; }
.tr-vis { height: 92px; margin-bottom: 20px; border-radius: var(--r-card); background: var(--panel-2); display: flex; align-items: center; justify-content: center; gap: 16px; }
.wave { display: flex; align-items: center; gap: 5px; height: 40px; }
.wave i { width: 6px; border-radius: var(--r-pill); background: var(--tone-green); opacity: 0.8; }
.wave i:nth-child(1) { height: 14px; } .wave i:nth-child(2) { height: 28px; } .wave i:nth-child(3) { height: 40px; }
.wave i:nth-child(4) { height: 22px; } .wave i:nth-child(5) { height: 34px; } .wave i:nth-child(6) { height: 18px; } .wave i:nth-child(7) { height: 10px; }
.tr-vis .arrow { transform: rotate(90deg); color: var(--muted); }
.tr-pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: var(--r-pill); background: var(--tile); box-shadow: var(--tile-shadow); font-size: 14px; font-weight: 750; }
.tr-pill .ic { width: 17px; height: 17px; color: var(--tone-blue); }
.cal { display: grid; grid-template-columns: repeat(3, 28px); gap: 5px; }
.cal i { height: 18px; border-radius: 6px; background: var(--tile); }
.cal i.m { background: repeating-linear-gradient(135deg, var(--meet-a) 0 4px, var(--tile) 4px 8px); }

/* ============ Proof ============ */

.proof-grid { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 860px; }
.founder { padding: clamp(26px, 4vw, 40px); }
.founder .q { width: 30px; height: 30px; color: var(--accent-text); }
.founder blockquote { margin-top: 16px; }
.founder blockquote p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text); max-width: 58ch; }
.founder figcaption { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 700; color: var(--text-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mark-bg); color: #e8eaed; }
.avatar svg { width: 64%; height: 64%; }

/* ============ Pricing ============ */

.pricing .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing .sec-title { max-width: none; }
.plan { margin-top: clamp(36px, 5vw, 56px); width: min(560px, 100%); padding: clamp(26px, 4vw, 40px); text-align: left; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--lift-shadow); }
.plan-head { display: flex; align-items: center; gap: 14px; }
.plan-name { font-size: 22px; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .amount { font-size: clamp(44px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .amount mark.ph { font-size: 0.6em; }
.price .per { font-size: 17px; font-weight: 650; color: var(--muted); }
.incl { display: flex; flex-direction: column; gap: 10px; }
.incl li { display: flex; align-items: center; gap: 12px; font-size: 16.5px; font-weight: 600; color: var(--text-2); }
.incl .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); stroke-width: 2.6; }
.plan .cta.only-desk { width: 100%; }
.plan .get { align-items: stretch; }
.plan .field { background: var(--panel-2); box-shadow: none; }
.plan .reducers { text-align: center; padding-left: 0; }
.plan-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.plan-note .ic { width: 17px; height: 17px; }

/* ============ FAQ ============ */

.qa-list { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 10px; }
.qa { background: var(--tile); border-radius: var(--r-card); box-shadow: var(--tile-shadow); }
.qa-h { font-size: inherit; }
.qa-q {
  width: 100%; min-height: 66px; padding: 16px 16px 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 0; background: none; border-radius: var(--r-card);
  font-size: 17.5px; font-weight: 700; text-align: left; cursor: pointer;
}
.qa-chev { width: 36px; height: 36px; border-radius: var(--r-sm); flex: none; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); transition: transform var(--sel-out) var(--ease-soft); }
.qa.open .qa-chev { transform: rotate(180deg); transition: transform var(--sel-in) var(--ease-soft); }
.qa-a { display: grid; grid-template-rows: 1fr; }
.js .qa-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--sel-out) var(--ease-soft), visibility 0s linear var(--sel-out); }
.js .qa.open .qa-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--t-move) var(--ease-soft), visibility 0s; }
.qa-in { min-height: 0; overflow: hidden; }
.qa-in p { padding: 0 22px 22px; font-size: 17px; color: var(--text-2); max-width: 64ch; }

/* ============ Final: the night ============ */

.dim {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 0%, var(--night-glow-a), transparent 70%),
    radial-gradient(50% 50% at 90% 20%, var(--night-glow-b), transparent 70%),
    radial-gradient(130% 90% at 50% 115%, var(--night-2), var(--night) 72%);
  opacity: 0;
  transition: opacity 1.6s var(--ease-soft);
}
.night .dim { opacity: 1; }
@supports (animation-timeline: view()) {
  .final { view-timeline-name: --final; }
  .dim { transition: none; animation: dim-in linear both; animation-timeline: --final; animation-range: entry 0% cover 42%; }
  .night .dim { opacity: 0; }
}
@keyframes dim-in { from { opacity: 0; } to { opacity: 1; } }
/* The section carries its own night too, so its text never depends on the
   overlay: it fades in from transparent at the top. */
.final {
  position: relative; isolation: isolate; overflow: clip;
  background:
    radial-gradient(60% 40% at 12% 34%, var(--night-glow-a), transparent 70%),
    radial-gradient(50% 36% at 92% 48%, var(--night-glow-b), transparent 70%),
    linear-gradient(to bottom, transparent 0, var(--night) min(40vh, 360px));
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 min(40vh, 360px)); mask-image: linear-gradient(to bottom, transparent, #000 min(40vh, 360px)); }
.stars { position: absolute; inset: -6%; animation: drift 180s linear infinite alternate; animation-play-state: paused; }
.night .stars { animation-play-state: running; }
.star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--star); opacity: var(--o); animation: twinkle var(--d) ease-in-out var(--dl) infinite alternate; animation-play-state: inherit; }
@keyframes twinkle { to { opacity: calc(var(--o) * 0.25); } }
@keyframes drift { to { transform: translate(-3%, 2%); } }

.final, .foot {
  --text: #eef0f4; --text-2: #c3c9d4; --muted: #a3abba;
  --tile: #161a26; --panel-2: #1e2331;
  --cta-bg: var(--accent); --cta-text: #1f1510;
  --cta-glow: color-mix(in srgb, var(--accent) 40%, transparent);
  --cta-glow-hot: color-mix(in srgb, var(--accent) 60%, transparent);
  --focus: var(--accent);
  --ph-bg: #2f2c45; --ph-text: #c9c3f0;
  --tile-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: var(--text);
}
.final { min-height: 100vh; padding-block: var(--sec-pad); display: flex; align-items: center; }
.final-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hello { width: min(460px, 78vw); }
.ink { width: 100%; height: auto; overflow: visible; }
.ink .line { fill: none; stroke: var(--text); stroke-width: 5; stroke-opacity: 0.55; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ink .fill { fill: var(--text); }
.final-title { margin-top: 18px; font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; max-width: 20ch; }
.final-sub { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 52ch; text-wrap: balance; }
.final-get { margin-top: 34px; width: 100%; display: flex; justify-content: center; }
.final-get .get { align-items: center; }
.final-get .reducers, .final-get .linknote { text-align: center; padding-left: 0; }
.js .final-title, .js .final-sub, .js .final-get { opacity: 0; transform: translateY(18px); }
.final .up { opacity: 1 !important; transform: none !important; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); }

/* ============ Footer ============ */

.foot { padding: 28px 0 40px; background: var(--night); }
.foot-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.brand.small { font-size: 14.5px; font-weight: 650; color: var(--muted); gap: 10px; padding: 0; }
.brand.small .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.foot-links { display: flex; gap: 4px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color var(--sel-out) var(--ease-soft), background-color var(--sel-out) var(--ease-soft); }
.foot-links a:hover { color: var(--text); background: var(--panel-2); transition: color var(--sel-in) var(--ease-soft), background-color var(--sel-in) var(--ease-soft); }
.foot-links .ic { width: 16px; height: 16px; }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: var(--r-pill); background: var(--panel-2); color: var(--muted); }
.lang .ic { width: 16px; height: 16px; margin-right: 6px; }
.lang-opt { height: 34px; min-width: 46px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); color: var(--muted); font-size: 13.5px; font-weight: 750; text-decoration: none; transition: background-color var(--sel-out) var(--ease-soft), color var(--sel-out) var(--ease-soft); }
.lang-opt:hover { color: var(--text); }
.lang-opt[aria-current='true'] { background: var(--tab-on); color: var(--tab-on-text); transition: background-color var(--sel-in) var(--ease-soft), color var(--sel-in) var(--ease-soft); }
@media (max-width: 639px) { .foot-in { flex-direction: column; align-items: flex-start; } }

/* ============ Reduced motion ============
   No transforms, pinning, typing or loops. Plain fades and end states. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .js .rv, .js .final-title, .js .final-sub, .js .final-get { transform: none; }
  .js .rv.in { transition: opacity var(--t-enter) linear; }
  .ld { animation: fade 1ms both; }
  .cta:hover, .cta:active, .see:active { transform: none; }
  .nav-in, .nav.scrolled .nav-in { animation: none; transform: none; }
  @supports (animation-timeline: scroll()) { .nav-in::before { animation: nav-fill linear both; animation-timeline: scroll(root); animation-range: 0 140px; animation-duration: auto !important; } }
  .stars, .star, .msg.typing i, .live { animation: none !important; }
  .dim { animation-duration: auto !important; }

  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); row-gap: 72px; }
  .st { min-height: 0; }
  .st-in { padding-left: 0; }
  .st-in::before { display: none; }
  .scene { position: relative; top: auto; opacity: 1; visibility: visible; grid-row: auto; align-self: center; }
  .scene[data-scene='ritual'] { grid-row: 1; }
  .scene[data-scene='tunnel'] { grid-row: 2; }
  .scene[data-scene='capture'] { grid-row: 3; }
  .scene[data-scene='talk'] { grid-row: 4; }
  .scene[data-scene='close'] { grid-row: 5; }
  .scene [data-seq], .scene .capbar, .scene .back-pill { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .scene { grid-column: 1; }
  .scene[data-scene='ritual'] { grid-row: 2; }
  .scene[data-scene='tunnel'] { grid-row: 4; }
  .scene[data-scene='capture'] { grid-row: 6; }
  .scene[data-scene='talk'] { grid-row: 8; }
  .scene[data-scene='close'] { grid-row: 10; }
}
