@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("./fonts/dm-sans-latin.woff2") format("woff2"); }

/* ─── Tokens (mirror the app's warm-neutral kit) ─────────────────────────── */
:root {
  color-scheme: light;
  --canvas: #fafaf9; --panel: #fff; --surface-2: #f6f6f4; --surface-3: #efefec; --hover: #f2f1ee;
  --ink: #1d1c1a; --ink-2: #3f3d39; --muted: #6a6862; --faint: #9d9a93; --dim: #8e8b84;
  --line: #ebeae6; --line-strong: #dcdad5; --line-soft: #f1f0ed;
  --accent: #f35f43; --accent-dark: #d4462b; --accent-text: #c23f26; --accent-soft: #fef1ed; --accent-soft-2: #fde4dc; --accent-line: #f8cabd;
  --red: #d93a2b; --red-soft: #fdf0ee; --red-line: #f6d2cd;
  --amber: #b86e0b; --amber-dot: #e0a100; --blue: #2e67d1; --green: #2f7d52; --green-soft: #edf6f0; --violet: #5f55c4; --violet-soft: #f2f1fc;
  --night: #171716; --night-2: #1f1f1d; --night-3: #282725; --night-ink: #edecea; --night-muted: #a3a19b; --night-faint: #6f6d67; --night-line: rgb(255 255 255 / 0.07);
  --cream: #f4ece2;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 14px; --r-2xl: 20px;
  --shadow-control: 0 1px 1px rgb(0 0 0 / 0.04), 0 0 0 1px rgb(0 0 0 / 0.02);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.03);
  --shadow-float: 0 0 0 1px rgb(0 0 0 / 0.05), 0 4px 8px -2px rgb(0 0 0 / 0.05), 0 16px 40px -12px rgb(0 0 0 / 0.14);
  --shadow-window: 0 0 0 1px rgb(29 28 26 / 0.07), 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 24px -12px rgb(29 28 26 / 0.12), 0 40px 80px -32px rgb(29 28 26 / 0.22);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 150ms; --t-enter: 700ms;
  --gutter: 24px; --header-h: 64px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  color: var(--ink); background: var(--canvas);
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent-soft-2); color: var(--ink); }
.sprite { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 14px; font-weight: 550; translate: 0 -200%; }
.skip-link:focus { translate: 0 0; }

.wrap { width: 100%; max-width: calc(1160px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: calc(1240px + 2 * var(--gutter)); }

.i { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-brand { fill: currentColor; stroke: none; }

/* Prior marks: cream P on a dark tile (brand foot in coral, agent dot in coral) */
.tile, .mark { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(165deg, #2a2725, #151413); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 0 0 1px rgb(0 0 0 / 0.3), 0 1px 2px rgb(0 0 0 / 0.12); }
.tile svg { width: 66%; height: 66%; margin: 4% 0 0 3%; }
.mark svg { width: 70%; height: 70%; margin: 6% 0 0 4%; }
.mark-xs { width: 18px; height: 18px; border-radius: 5px; }
.mark-xl { width: 64px; height: 64px; border-radius: 18px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 0 0 1px rgb(255 255 255 / 0.06), 0 12px 32px -8px rgb(0 0 0 / 0.6); }

/* ─── Buttons & links ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-md); font: inherit; font-size: 14px; font-weight: 550; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), translate var(--t-fast) var(--ease); }
.btn:active { translate: 0 1px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn-lg { min-height: 46px; padding: 0 18px; border-radius: var(--r-lg); font-size: 15px; }
.btn-lg .i-brand { width: 17px; height: 17px; }
.btn-ink, .btn-dl.is-primary { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 1px 2px rgb(0 0 0 / 0.18); }
.btn-dl { border-color: var(--line-strong); background: var(--panel); color: var(--ink); box-shadow: var(--shadow-control); }
.btn-quiet { color: var(--ink-2); }
.btn-quiet .i { width: 14px; height: 14px; color: var(--faint); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover, .btn-dl.is-primary:hover { background: #33312e; border-color: #33312e; }
  .btn-dl:hover { background: var(--surface-2); border-color: #cfccc6; }
  .btn-quiet:hover { background: var(--hover); color: var(--ink); }
}

.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 550; }
.text-link span { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color var(--t-fast) var(--ease); }
.text-link .i { width: 15px; height: 15px; color: var(--muted); transition: translate var(--t-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover span { text-decoration-color: var(--accent); }
  .text-link:hover .i { translate: 2px 0; }
}

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 550; letter-spacing: -0.005em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: rgb(250 250 249 / 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-name { font-size: 18px; font-weight: 650; letter-spacing: -0.04em; }
.header-nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
.header-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-md); color: var(--muted); font-size: 14px; font-weight: 500; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .header-nav a:hover { color: var(--ink); background: var(--hover); } }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ─── Hero: the page is a day ─────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding: 64px 0 0; }
/* Faint hour lines behind the headline, and a coral line at the visitor's real time. */
.hero-day { position: absolute; z-index: -1; inset: 0 0 auto; height: 620px; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 51px, var(--line-soft) 51px 52px); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.hero-now { position: absolute; left: 0; right: 0; top: calc(var(--dayp, 0.45) * 100%); height: 1px; background: linear-gradient(90deg, transparent, rgb(243 95 67 / 0.55) 8%, rgb(243 95 67 / 0.55) 92%, transparent); }
.hero-now em { position: absolute; right: max(12px, calc((100% - 1240px) / 2 - 72px)); top: -10px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; }

.hero-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 28px 56px; align-items: end; }
.clock { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 34px; padding: 4px 14px 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgb(255 255 255 / 0.85); box-shadow: var(--shadow-control); color: var(--muted); font-size: 13.5px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.clock-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(243 95 67 / 0.45); animation: clock-pulse 2.4s var(--ease) infinite; }
@keyframes clock-pulse { 0% { box-shadow: 0 0 0 0 rgb(243 95 67 / 0.45); } 70%, 100% { box-shadow: 0 0 0 8px rgb(243 95 67 / 0); } }
.clock-time { flex: none; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.clock-msg { min-width: 0; }
.hero-title { font-size: clamp(44px, 6.6vw, 92px); font-weight: 650; line-height: 0.96; letter-spacing: -0.055em; }
.t-word { position: relative; display: inline-block; color: var(--accent); font-style: normal; }
.t-bar { position: absolute; left: 0.02em; right: 0.04em; bottom: -0.04em; height: 0.07em; overflow: hidden; border-radius: 99px; background: var(--accent-soft-2); }
.t-bar i { display: block; width: calc(var(--dayp, 0.45) * 100%); height: 100%; border-radius: inherit; background: var(--accent); transition: width 1s var(--ease); }
.hero-side { padding-bottom: 8px; }
.hero-sub { color: var(--muted); font-size: clamp(16.5px, 1.45vw, 18.5px); line-height: 1.5; letter-spacing: -0.01em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn-accent { border-color: var(--accent-dark); background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1px 2px rgb(180 60 30 / 0.3), 0 10px 24px -10px rgb(243 95 67 / 0.7); }
.btn-accent .i { width: 15px; height: 15px; transition: translate var(--t-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { background: var(--accent-dark); }
  .btn-accent:hover .i { translate: 2px 0; }
}

/* Stage: chapters + the app window */
.stage { position: relative; margin-top: 64px; }
.stage::before { content: ""; position: absolute; z-index: -1; inset: 90px -3% -60px; background: radial-gradient(55% 55% at 28% 45%, rgb(243 95 67 / 0.16), transparent 70%), radial-gradient(45% 55% at 78% 65%, rgb(95 85 196 / 0.12), transparent 70%); filter: blur(24px); pointer-events: none; }
.chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.chap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; min-height: 44px; padding: 0 0 6px; border: 0; background: none; color: var(--faint); font: inherit; text-align: left; cursor: pointer; transition: color var(--t-fast) var(--ease); }
.chap-bar { flex: 1 0 100%; height: 3px; margin-bottom: 8px; overflow: hidden; border-radius: 99px; background: var(--line-strong); }
.chap-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ink); }
.chap-n { color: inherit; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chap-t { min-width: 0; overflow: hidden; font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; text-overflow: ellipsis; }
.chap.is-past { color: var(--muted); }
.chap.is-past .chap-bar i { width: 100%; background: var(--ink-2); }
.chap.is-active { color: var(--ink); }
.chap.is-active .chap-n { color: var(--accent); }
.chap.is-active .chap-bar i { animation: chap-fill var(--dur, 3s) linear forwards; background: var(--accent); }
.is-reduced .chap.is-active .chap-bar i { width: 100%; animation: none; }
@keyframes chap-fill { from { width: 0; } to { width: 100%; } }
@media (hover: hover) and (pointer: fine) { .chap:hover { color: var(--ink); } }
.chap-caption { display: grid; min-height: 46px; margin: 6px 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.chap-caption > span { grid-area: 1 / 1; max-width: 760px; }
.is-live .chap-caption > span { opacity: 0; translate: 0 6px; transition: opacity 350ms var(--ease), translate 350ms var(--ease); }
.is-live .chap-caption > span.is-on { opacity: 1; translate: 0 0; }
.chap-caption > span:not(:first-child) { visibility: hidden; }
.is-live .chap-caption > span:not(:first-child) { visibility: visible; }

/* The window (real sizes, responsive layout instead of scaling) */
.demo { --cu: 1px; --ppm: 0.92px; --row: 62px; position: relative; }
.d-win { overflow: hidden; border-radius: 16px; background: var(--canvas); box-shadow: var(--shadow-window); color: var(--ink); font-size: 13px; line-height: 1.35; text-align: left; user-select: none; -webkit-user-select: none; }
.d-win .ic { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.d-win kbd { font: inherit; }
.d-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.d-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #e0ddd7; }
.d-bar > i:first-child { background: #f07a64; } .d-bar > i:nth-child(2) { background: #f1c25b; } .d-bar > i:nth-child(3) { background: #7fc48f; }
.d-bar span { position: absolute; left: 50%; translate: -50% 0; color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
.d-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); }

.d-side { display: flex; flex-direction: column; gap: 1px; padding: 16px 10px 12px; background: var(--night); color: var(--night-muted); }
.d-brand { display: flex; align-items: center; gap: 9px; margin: 0 8px 14px; color: var(--night-ink); font-size: 16px; font-weight: 650; letter-spacing: -0.04em; }
.d-brand svg { width: 21px; height: 21px; }
.d-search { display: flex; align-items: center; gap: 8px; height: 30px; margin-bottom: 10px; padding: 0 8px 0 10px; border: 1px solid rgb(255 255 255 / 0.07); border-radius: 7px; background: var(--night-2); color: var(--night-faint); font-size: 12.5px; }
.d-search kbd, .d-agent kbd { margin-left: auto; padding: 0 5px; border: 1px solid rgb(255 255 255 / 0.09); border-radius: 4px; color: var(--night-faint); font-size: 10.5px; }
.d-nav { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.d-nav .ic { color: var(--night-faint); }
.d-nav em { margin-left: auto; color: var(--night-faint); font-size: 11px; font-style: normal; }
.d-nav.is-on { background: var(--night-3); color: #fff; }
.d-nav.is-on .ic { color: var(--accent); }
.d-agent { display: flex; align-items: center; gap: 10px; min-height: 38px; margin-top: auto; padding: 0 8px 0 6px; border: 1px solid var(--night-line); border-radius: 9px; background: var(--night-2); color: var(--night-ink); font-size: 13px; font-weight: 550; }
.d-agent .mark { width: 24px; height: 24px; border-radius: 7px; }

.d-main { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 24px 24px; }
.d-head { display: flex; align-items: flex-end; gap: 16px; }
.d-head > div { min-width: 0; }
.d-date { color: var(--muted); font-size: 12px; font-weight: 550; }
.d-title { margin-top: 4px; overflow: hidden; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; text-overflow: ellipsis; }
.d-progress { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.d-progress b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.d-pbar { width: 72px; height: 6px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.d-pbar i { display: block; width: calc(var(--done, 0) * 100%); height: 100%; border-radius: inherit; background: var(--green); transition: width 600ms var(--ease); }
.d-plan { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow-control); font-size: 12.5px; font-weight: 550; white-space: nowrap; transition: scale 160ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease); }
.d-plan .ic { color: var(--accent); }
.d-plan.is-pressed { scale: 0.95; border-color: var(--accent-line); box-shadow: 0 0 0 4px rgb(243 95 67 / 0.16); }

.d-composer { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); box-shadow: var(--shadow-card); font-size: 14.5px; transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease); }
.d-composer .d-plus { color: var(--faint); }
.d-composer.is-focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px rgb(243 95 67 / 0.11), var(--shadow-card); }
.d-input { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; overflow: hidden; white-space: pre; }
.d-ph { color: var(--faint); }
.d-typed:not(:empty) ~ .d-ph, .is-focus .d-ph { display: none; }
.d-caret { display: none; flex: none; width: 1.5px; height: 18px; margin-left: 1px; background: var(--accent); animation: caret 1s steps(1) infinite; }
.is-focus .d-caret { display: block; }
@keyframes caret { 50% { opacity: 0; } }
.tok { border-radius: 4px; background: transparent; color: inherit; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.tok.is-on { padding: 1px 0; }
.tok-date.is-on { background: var(--accent-soft-2); color: var(--accent-text); }
.tok-dur.is-on { background: var(--violet-soft); color: var(--violet); }
.tok-proj.is-on { background: var(--green-soft); color: var(--green); }
.tok-prio.is-on { background: var(--red-soft); color: var(--red); }
.d-parse { display: flex; flex: none; gap: 5px; }
.d-parse .chip { opacity: 0; scale: 0.9; transition: opacity 250ms var(--ease), scale 250ms var(--ease); }
.d-parse .chip.is-on { opacity: 1; scale: 1; }
.chip.tok-date { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.chip.tok-date .ic { color: var(--accent); }
.chip.tok-dur { border-color: #dcd9f6; background: var(--violet-soft); color: var(--violet); }
.chip.tok-dur .ic { color: var(--violet); }
.chip.tok-proj { border-color: #cfe5d7; background: var(--green-soft); color: var(--green); }
.chip.tok-proj .dot, .dot-green { background: var(--green); }
.dot-blue { background: var(--blue); }
.d-composer kbd { flex: none; display: grid; place-items: center; min-width: 26px; height: 22px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; transition: background-color 120ms, color 120ms, scale 120ms; }
.d-composer kbd.is-hit { scale: 0.9; border-color: var(--ink); background: var(--ink); color: #fff; }

.d-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr); gap: 14px; align-items: start; }
.d-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.d-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-card); }
.d-h { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.d-h b { font-weight: 600; letter-spacing: -0.01em; }
.d-h > .ic { color: var(--muted); }
.d-h > .ic.accent { color: var(--accent); }
.d-meta { overflow: hidden; margin-left: auto; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; }

.d-rows { position: relative; height: calc(4 * var(--row)); }
.d-row { position: absolute; left: 0; right: 0; top: calc(var(--slot) * var(--row)); display: flex; align-items: center; gap: 12px; height: var(--row); padding: 0 16px; border-bottom: 1px solid var(--line-soft); background: var(--panel); transition: top 650ms var(--ease), opacity 400ms var(--ease), translate 400ms var(--ease), background-color 600ms var(--ease); }
.d-row-b { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.d-row-b b { overflow: hidden; font-size: 14px; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; transition: color 300ms; }
.d-row .chip-when { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.d-row .chip-when .ic { color: var(--accent); }
.is-live .d-row .chip-when { max-width: 0; padding-inline: 0; border-width: 0; opacity: 0; transition: max-width 400ms var(--ease), padding 400ms var(--ease), opacity 300ms var(--ease); }
.is-live .d-row.is-placed .chip-when { max-width: 80px; padding-inline: 6px; border-width: 1px; opacity: 1; }
.chip-p2 { border-color: #f3dfb8; background: #fdf6e7; color: var(--amber); }
.chip-p2 .ic { color: var(--amber); }
.chip-p3 { border-color: #d3dff5; background: #f0f4fc; color: var(--blue); }
.chip-p3 .ic { color: var(--blue); }
.d-cb { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px solid #cdcac4; border-radius: 50%; background: var(--panel); transition: background-color 200ms var(--ease), border-color 200ms var(--ease), scale 200ms var(--ease); }
.d-cb svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.d-row.is-checked .d-cb { border-color: var(--accent); background: var(--accent); scale: 1.1; }
.d-row.is-checked .d-cb svg { opacity: 1; }
.d-row.is-checked .d-row-b b { color: var(--faint); text-decoration: line-through; }
.d-ai { display: none; align-items: center; gap: 5px; flex: none; height: 22px; padding: 0 8px; border-radius: 99px; background: linear-gradient(135deg, var(--accent-soft), var(--violet-soft)); color: var(--accent-text); font-size: 11.5px; font-weight: 600; }
.d-ai .ic { width: 12px; height: 12px; }
.is-live .d-ai { display: inline-flex; opacity: 0; scale: 0.8; transition: opacity 300ms var(--ease), scale 300ms var(--ease); }
.is-live .d-row.is-ai .d-ai { opacity: 1; scale: 1; }
.is-live .d-row[data-task="pricing"] { opacity: 0; translate: 0 10px; }
.is-live .d-row[data-task="pricing"].is-in { opacity: 1; translate: 0 0; }
.is-live .d-row.is-new { background: var(--accent-soft); }
.is-live .d-row[data-task="pricing"].is-gone { opacity: 0; translate: -16px 0; }

/* Focus card: idle, then the live session in the night palette */
.d-focus { --p: 0; display: flex; align-items: center; gap: 18px; padding: 16px 18px; transition: background-color 450ms var(--ease), border-color 450ms var(--ease), color 450ms var(--ease); }
.d-ring { position: relative; display: grid; place-items: center; flex: none; width: 92px; height: 92px; }
.d-ring svg { position: absolute; inset: 0; rotate: -90deg; }
.fr-bg { fill: none; stroke: var(--surface-3); stroke-width: 7; transition: stroke 450ms; }
.fr-fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: var(--p) 100; opacity: 0; transition: stroke-dasharray 120ms linear, opacity 300ms; }
.d-focus.is-on .fr-fg { opacity: 1; }
.d-ring b { position: relative; font-size: 19px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.d-focus-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.d-focus-b small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 550; }
.d-focus-b small .ic { width: 13px; height: 13px; color: var(--accent); }
.d-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.d-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.d-dots i.on { background: var(--accent); }
.d-focus-b > b { overflow: hidden; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; text-overflow: ellipsis; }
.d-focus-idle { color: var(--muted); }
.d-focus-task, .d-focus-actions { display: none !important; }
.d-focus-actions { gap: 6px; margin-top: 4px; }
.d-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 7px; background: rgb(255 255 255 / 0.06); font-size: 12px; font-weight: 550; }
.d-fbtn .ic { width: 13px; height: 13px; }
.d-fbtn-main { border-color: var(--accent-dark); background: var(--accent); color: #fff; }
.d-focus.is-on { border-color: var(--night); background: var(--night); color: var(--night-ink); }
.d-focus.is-on .fr-bg { stroke: var(--night-3); }
.d-focus.is-on .d-focus-b small { color: var(--night-muted); }
.d-focus.is-on .d-dots i { background: var(--night-3); }
.d-focus.is-on .d-dots i.on { background: var(--accent); }
.d-focus.is-on .d-focus-idle { display: none; }
.d-focus.is-on .d-focus-task { display: block !important; }
.d-focus.is-on .d-focus-actions { display: flex !important; }

/* Day calendar */
.d-cal-clip { overflow: hidden; }
.d-cal { position: relative; height: calc(540 * var(--ppm)); margin: 14px 12px 16px 50px; }
.d-hour { position: absolute; left: 0; right: 0; top: calc(var(--s) * var(--ppm)); border-top: 1px solid var(--line-soft); }
.d-hour span { position: absolute; left: -40px; top: -7px; width: 32px; color: var(--faint); font-size: 10.5px; text-align: right; font-variant-numeric: tabular-nums; }
.d-ev, .d-blk { position: absolute; left: 0; right: 0; top: calc(var(--s) * var(--ppm) + 1px); display: flex; align-items: center; gap: 6px; height: calc(var(--d) * var(--ppm) - 2px); padding: 0 8px; overflow: hidden; border-radius: 6px; font-size: 11px; white-space: nowrap; }
.d-ev b, .d-blk b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; }
.d-ev small, .d-blk small { margin-left: auto; font-size: 10px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.ev-violet { border-left: 3px solid var(--violet); background: var(--violet-soft); color: #463d9e; }
.ev-coral { border-left: 3px solid var(--accent); background: var(--accent-soft-2); color: #8a2e1c; }
.ev-green { border-left: 3px solid var(--green); background: var(--green-soft); color: #1f5a3a; }
.ev-lunch { background: repeating-linear-gradient(-45deg, var(--surface-2) 0 6px, var(--surface-3) 6px 7px); color: var(--muted); }
.d-blk { left: 6px; z-index: 1; border: 1px dashed #f3a593; background: repeating-linear-gradient(-45deg, rgb(243 95 67 / 0.07) 0 6px, rgb(243 95 67 / 0.15) 6px 8px), var(--panel); color: var(--accent-text); transition: opacity 450ms var(--ease), translate 450ms var(--ease), scale 450ms var(--ease), background-color 400ms var(--ease), color 400ms var(--ease), box-shadow 400ms var(--ease); }
.d-blk .ic { width: 12px; height: 12px; }
.d-blk-lock, .d-blk-ok { display: none; }
.is-live .d-blk { opacity: 0; translate: -28px 0; scale: 0.94; }
.is-live .d-blk.is-on { opacity: 1; translate: 0 0; scale: 1; }
.d-blk.is-locked { border: 1px solid var(--accent-dark); background: var(--accent); color: #fff; }
.d-blk.is-locked .d-blk-i { display: none; }
.d-blk.is-locked .d-blk-lock { display: block; }
.d-blk.is-live { box-shadow: 0 0 0 3px rgb(243 95 67 / 0.22), 0 6px 16px -6px rgb(243 95 67 / 0.6); }
.d-blk.is-done { border: 1px solid #cfe5d7; background: var(--green-soft); color: var(--green); }
.d-blk.is-done b { text-decoration: line-through; }
.d-blk.is-done .d-blk-i { display: none; }
.d-blk.is-done .d-blk-ok { display: block; }
.d-now { position: absolute; z-index: 3; left: -6px; right: 0; top: calc(var(--now) * var(--ppm)); height: 2px; border-radius: 2px; background: var(--accent); }
.d-now::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.d-now em { position: absolute; left: -44px; top: -8px; padding: 1px 4px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 10px; font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; }
.d-cal.is-running .d-now { transition: top 3000ms linear; }

/* Completion burst */
.d-burst { position: absolute; inset: 0; pointer-events: none; }
.d-burst i { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 2px; animation: burst 800ms var(--ease) forwards; }
@keyframes burst { from { opacity: 1; translate: 0 0; scale: 1; } to { opacity: 0; translate: var(--dx) var(--dy); scale: 0.4; rotate: 120deg; } }

/* Loop fade, and instant jumps between chapters */
.d-main > * { transition: opacity 400ms var(--ease); }
.is-resetting .d-main > * { opacity: 0; }
.is-instant *, .is-instant *::before, .is-instant *::after { transition: none !important; }

/* One app instead of five */
.replaces { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 8px; margin-top: 40px; color: var(--muted); font-size: 14px; font-weight: 500; }
.replaces li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
.replaces li:not(.is-prior) span { text-decoration: line-through; text-decoration-color: rgb(243 95 67 / 0.7); text-decoration-thickness: 1.5px; }
.replaces li.is-prior { padding-left: 4px; border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.replaces li.is-prior .tile { width: 26px; height: 26px; border-radius: 99px; }
.replaces li.is-prior::before { content: "→"; order: -1; display: none; }

/* Entrance motion (JS-enhanced only; content is always visible without JS) */
.js .rise { animation: rise 800ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity var(--t-enter) var(--ease), translate var(--t-enter) var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.js .bento .reveal:nth-child(2), .js .pillars .reveal:nth-child(2) { transition-delay: 80ms; }
.js .bento .reveal:nth-child(3), .js .pillars .reveal:nth-child(3) { transition-delay: 60ms; }
.js .bento .reveal:nth-child(4) { transition-delay: 120ms; }
.js .bento .reveal:nth-child(5) { transition-delay: 180ms; }

/* Small avatars, badges and habit squares shared by the vignettes */
.av { display: inline-grid; place-items: center; flex: none; width: calc(20 * var(--cu)); height: calc(20 * var(--cu)); border-radius: 50%; background: #6b8f71; color: #fff; font-size: calc(10 * var(--cu)); font-style: normal; font-weight: 650; }
.av-green { background: #6b8f71; }
.av-rust { background: #c0714f; }
.w-count { display: inline-grid; place-items: center; min-width: calc(18 * var(--cu)); height: calc(18 * var(--cu)); padding: 0 calc(5 * var(--cu)); border: 1px solid var(--accent-line); border-radius: calc(5 * var(--cu)); background: var(--accent-soft); color: var(--accent-dark); font-size: calc(11 * var(--cu)); font-weight: 650; }
.ring-card b span, .ph-habits .num span { color: var(--faint); }
.sq { display: inline-grid; place-items: center; flex: none; width: calc(16 * var(--cu)); height: calc(16 * var(--cu)); border: calc(1.5 * var(--cu)) solid var(--line-strong); border-radius: calc(4 * var(--cu)); background: var(--panel); }
.sq svg { width: 80%; height: 80%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.is-done .sq { border-color: var(--accent); background: var(--accent); }
/* Shared mini-UI atoms (sized by --cu; 1px outside the scaled window) */
.vg, .phone { --cu: 1px; }
.vg .ic, .phone .ic { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cb { display: inline-block; flex: none; width: calc(18 * var(--cu)); height: calc(18 * var(--cu)); border: calc(1.5 * var(--cu)) solid #cdcac4; border-radius: 50%; background: var(--panel); }
.chips { display: flex; gap: calc(5 * var(--cu)); min-width: 0; overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: calc(4 * var(--cu)); flex: none; height: calc(20 * var(--cu)); padding: 0 calc(6 * var(--cu)); border: 1px solid var(--line); border-radius: calc(5 * var(--cu)); background: var(--panel); color: var(--ink-2); font-size: calc(11 * var(--cu)); font-weight: 500; font-style: normal; white-space: nowrap; }
.chip .ic { width: calc(11 * var(--cu)); height: calc(11 * var(--cu)); color: var(--faint); }
.chip-p1 { border-color: var(--red-line); background: var(--red-soft); color: var(--red); }
.chip-p1 .ic { color: var(--red); }
.dot { display: inline-block; flex: none; width: calc(7 * var(--cu)); height: calc(7 * var(--cu)); border-radius: 50%; background: var(--faint); }
.dot.amber { background: var(--amber-dot); }
.ring { flex: none; rotate: -90deg; }
.ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 3.6; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: var(--p) 100; }

/* ─── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 144px 0 0; }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-title { margin-top: 18px; font-size: clamp(34px, 4.8vw, 56px); font-weight: 650; line-height: 1.02; letter-spacing: -0.045em; }
.section-lede { margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.55; letter-spacing: -0.01em; }

/* Features: bento of product vignettes */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; grid-column: span 2; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--shadow-card); }
.f-wide { grid-column: span 3; }
.vg { position: relative; height: 256px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; line-height: 1.35; user-select: none; }
.f-wide .vg { height: 300px; }
.feature-copy { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 28px 28px; }
.feature-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 550; }
.feature-kicker .i { width: 15px; height: 15px; color: var(--accent); }
.feature h3 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; }
.feature-copy > p:not(.feature-kicker):not(.feature-note) { color: var(--muted); font-size: 15px; line-height: 1.55; }
.feature-note { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13px; }
.feature-note .i { width: 14px; height: 14px; color: var(--faint); }

/* Vignette: Eisenhower matrix */
.vg-matrix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 10px; padding: 24px 24px 0; }
.q { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 2px solid var(--c); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-card); }
.q-red { --c: var(--red); } .q-amber { --c: var(--amber-dot); } .q-blue { --c: var(--blue); } .q-gray { --c: var(--faint); }
.q-h { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--line-soft); }
.q-h .dot { margin-top: 5px; background: var(--c); }
.q-h div { flex: 1; min-width: 0; }
.q-h b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.q-h small { display: block; overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.q-h .n { display: grid; place-items: center; min-width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.q-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.q-row span { overflow: hidden; text-overflow: ellipsis; }
.q-row .cb { width: 14px; height: 14px; }
.q-add { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 8px 12px; color: var(--faint); font-size: 11.5px; font-weight: 550; }
.q-add .ic { width: 12px; height: 12px; }

/* Vignette: agent conversation + review card */
.vg-agent { display: flex; justify-content: center; padding: 28px 24px 0; }
.chat { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 440px; }
.bubble { align-self: flex-end; max-width: 80%; padding: 8px 13px; border-radius: 14px 14px 4px 14px; background: var(--surface-3); color: var(--ink); font-size: 13px; }
.agent-msg { display: flex; align-items: flex-start; gap: 10px; }
.agent-msg > .mark { width: 24px; height: 24px; border-radius: 7px; }
.agent-body { display: flex; flex: 1; flex-direction: column; gap: 12px; min-width: 0; }
.agent-body > p { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.agent-body b { color: var(--ink); font-weight: 600; }
.review { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-float); }
.review-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.mini-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18); }
.mini-btn .ic { width: 12px !important; height: 12px !important; }
.review-b { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.review-b b { font-size: 13px; font-weight: 600; }

/* Vignette: week calendar + habit ring */
.vg-cal { padding: 22px 22px 0; }
.wk { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.wk-head { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.wk-head span { display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; }
.wk-head small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.wk-head b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12.5px; font-weight: 600; }
.wk-head .is-today small { color: var(--accent-text); }
.wk-head .is-today b { background: var(--accent); color: #fff; }
.wk-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(12, 16px); padding: 4px 3px 0; background: repeating-linear-gradient(to bottom, transparent 0 3px, var(--line-soft) 3px 4px, transparent 4px 32px), repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), var(--line-soft) calc(25% - 1px) 25%); }
.wk-ev { display: flex; flex-direction: column; min-width: 0; margin: 1px 2px; padding: 3px 6px; overflow: hidden; border-left: 2px solid var(--c); border-radius: 5px; background: var(--s); color: var(--t); font-size: 10.5px; line-height: 1.25; white-space: nowrap; }
.wk-ev { white-space: normal; }
.wk-ev b { display: -webkit-box; overflow: hidden; font-weight: 600; -webkit-box-orient: vertical; -webkit-line-clamp: 2; hyphens: auto; }
.wk-ev.coral { --c: var(--accent); --s: var(--accent-soft-2); --t: #8a2e1c; }
.wk-ev.violet { --c: var(--violet); --s: var(--violet-soft); --t: #3f378f; }
.wk-ev.green { --c: var(--green); --s: var(--green-soft); --t: #1f5a3a; }
.wk-now { align-self: start; height: 2px; margin: 8px 2px 0; border-radius: 2px; background: var(--accent); }
.ring-card { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-float); }
.ring-card .ring { width: 42px; height: 42px; }
.ring-card b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.ring-card small { color: var(--muted); font-size: 11.5px; }

/* Vignette: notes */
.vg-notes { padding: 22px 22px 0; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 36%; height: 100%; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--panel); }
.doc-main { min-width: 0; padding: 16px 16px 0 18px; }
.doc-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 12px; border-left: 1px solid var(--line-soft); background: #fcfcfb; }
.doc-side small { margin-bottom: 2px; color: var(--muted); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.doc-side > span { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--ink-2); font-size: 11.5px; white-space: nowrap; }
.doc-side > span > span { overflow: hidden; text-overflow: ellipsis; }
.doc-side .ic { color: var(--faint); }
.graph { width: 100%; max-width: 120px; margin-top: 10px; }
.graph path { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.graph circle { fill: #c9c6c0; }
.graph .hub { fill: var(--accent); }
.crumb { display: flex; align-items: center; gap: 4px; color: var(--faint); font-size: 11px; white-space: nowrap; }
.crumb .ic { width: 11px; height: 11px; }
.doc-title { margin-top: 8px; font-size: 19px; font-weight: 650; letter-spacing: -0.035em; }
.doc-tags { display: flex; gap: 5px; margin-top: 6px; }
.tagchip { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10.5px; font-weight: 550; }
.doc-p { margin-top: 10px; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.doc-p b { color: var(--ink); font-weight: 650; }
.doc-list { margin-top: 6px; padding-left: 16px; list-style: disc; color: var(--ink-2); font-size: 12.5px; line-height: 1.7; }
.doc-list li::marker { color: var(--faint); }
.wl { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 2px; }
.doc-list code { padding: 1px 4px; border-radius: 4px; background: var(--surface-3); color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; }

/* Vignette: project board */
.vg-board { display: flex; gap: 10px; padding: 22px 0 0 22px; }
.col { display: flex; flex: none; flex-direction: column; gap: 8px; width: max(38%, 136px); padding: 8px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface-3); }
.col-h { display: flex; align-items: center; gap: 7px; padding: 2px 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.col-h em { color: var(--faint); font-size: 11px; font-style: normal; font-weight: 500; }
.st { flex: none; width: 11px; height: 11px; border-radius: 50%; }
.st-todo { border: 1.5px solid var(--ink-2); }
.st-doing { border: 1.5px solid var(--amber-dot); border-radius: 3px; height: 7px; }
.st-done { background: var(--accent); }
.kard { display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); box-shadow: var(--shadow-card); }
.kard b { display: -webkit-box; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.kard.is-done b { color: var(--faint); text-decoration: line-through; }
.kard-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kard .av { width: 18px; height: 18px; font-size: 9px; }

/* ─── Mobile ──────────────────────────────────────────────────────────────── */
.mobile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ticks { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.ticks .i { width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); stroke-width: 2.5; }
.mobile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.phone-stage { position: relative; display: flex; justify-content: center; padding: 48px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface-2); }
.phone { position: relative; width: 300px; height: 668px; flex: none; padding: 9px; border-radius: 48px; background: #1d1c1a; box-shadow: inset 0 0 0 1.5px #3a3835, 0 30px 60px -24px rgb(29 28 26 / 0.35); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 40px; background: var(--canvas); font-size: 12px; line-height: 1.35; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 26px; font-size: 12px; font-weight: 600; }
.ph-cam { width: 10px; height: 10px; border-radius: 50%; background: #1d1c1a; }
.ph-sys { display: flex; gap: 3px; }
.ph-sys i { width: 4px; height: 9px; border-radius: 1px; background: var(--ink); }
.ph-sys i:nth-child(1) { height: 5px; margin-top: 4px; } .ph-sys i:nth-child(2) { height: 7px; margin-top: 2px; }
.ph-body { display: flex; flex-direction: column; gap: 10px; padding: 8px 14px 0; }
.ph-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ph-date { color: var(--muted); font-size: 11px; font-weight: 550; }
.ph-title { margin-top: 2px; font-size: 22px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.ph-agent { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); box-shadow: var(--shadow-control); }
.ph-agent .mark { width: 24px; height: 24px; border-radius: 7px; }
.ph-next { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 18px; border-radius: 13px; background: var(--night); color: var(--night-ink); }
.ph-next > i { position: absolute; top: 10px; bottom: 10px; left: 9px; width: 3px; border-radius: 2px; background: var(--accent); }
.ph-next div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ph-next small { color: var(--night-muted); font-size: 10.5px; }
.ph-next b { font-size: 14px; font-weight: 600; }
.ph-next .ic { color: var(--night-muted); }
.ph-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-card); }
.ph-card-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.ph-card-h b { font-weight: 600; }
.ph-task { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.ph-task:last-child { border-bottom: 0; }
.ph-task > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ph-task b { overflow: hidden; font-size: 13.5px; font-weight: 550; white-space: nowrap; text-overflow: ellipsis; }
.ph-habits { display: flex; align-items: center; gap: 12px; padding: 12px; }
.ph-habits .ring { width: 40px; height: 40px; }
.ph-habits div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ph-habits b { font-size: 14px; font-weight: 600; }
.ph-habits small { overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.ph-habits > .ic { color: var(--faint); }
.ph-waiting { display: flex; align-items: center; gap: 10px; padding: 12px; }
.ph-waiting .av { width: 28px; height: 28px; font-size: 10px; }
.av-blue { background: #5a78b8; }
.ph-waiting div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ph-waiting b { overflow: hidden; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ph-waiting small { overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.ph-nudge { flex: none; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); font-size: 11.5px; font-weight: 600; box-shadow: var(--shadow-control); }
.ph-tabs { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 70px; padding: 0 6px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.ph-tabs > span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--faint); font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.ph-tabs .ic { width: 17px; height: 17px; }
.ph-tabs .is-on { color: var(--ink); }
.ph-tabs .ph-fab { justify-self: center; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -26px; border-radius: 14px; background: var(--accent); color: #fff; box-shadow: 0 8px 18px -6px rgb(243 95 67 / 0.55); }
.ph-fab .ic { width: 20px; height: 20px; stroke-width: 2; }

/* ─── Local-first ─────────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--shadow-card); }
.pillar-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); color: var(--ink); }
.pillar-icon .i { width: 19px; height: 19px; }
.pillar h3 { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.privacy .text-link { margin-top: 20px; }

/* ─── Download band ───────────────────────────────────────────────────────── */
.cta { margin-top: 144px; padding: 120px 0; background: var(--night); color: var(--night-ink); }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-title { margin-top: 32px; font-size: clamp(36px, 5.4vw, 64px); font-weight: 650; line-height: 1.02; letter-spacing: -0.05em; }
.cta-lede { max-width: 520px; margin-top: 18px; color: var(--night-muted); font-size: 18px; line-height: 1.5; }
.cta .platforms { justify-content: center; margin-top: 40px; }
.platforms-dark .btn-dl { border-color: rgb(255 255 255 / 0.1); background: var(--night-2); color: var(--night-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05); }
.platforms-dark .btn-dl.is-primary { border-color: var(--cream); background: var(--cream); color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 1px 2px rgb(0 0 0 / 0.3); }
@media (hover: hover) and (pointer: fine) {
  .platforms-dark .btn-dl:hover { background: var(--night-3); border-color: rgb(255 255 255 / 0.16); }
  .platforms-dark .btn-dl.is-primary:hover { background: #fff; border-color: #fff; }
  .cta .release-meta a:hover { color: #fff; }
}
.cta .release-meta { justify-content: center; margin-top: 20px; color: var(--night-muted); }
.cta .release-meta .tag { border-color: rgb(255 255 255 / 0.1); background: var(--night-2); color: var(--night-ink); }
.cta .release-meta .sep { background: var(--night-faint); }
.cta .release-meta a:last-child span { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 3px; }
.cta :focus-visible { outline-color: var(--cream); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--canvas); }
.cta + .site-footer, main:has(> .cta:last-child) + .site-footer { border-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 36px 44px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.footer-brand .tile { width: 24px; height: 24px; border-radius: 7px; }
.footer-brand .brand-name { font-size: 16px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; transition: color var(--t-fast) var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.lang-picker { position: relative; display: inline-flex; align-items: center; color: var(--muted); }
.lang-picker .i { position: absolute; left: 11px; width: 15px; height: 15px; pointer-events: none; }
.lang-picker select { min-height: 40px; padding: 0 32px 0 33px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; appearance: none; -webkit-appearance: none; box-shadow: var(--shadow-control); }
.lang-picker select:hover { border-color: #cfccc6; }

/* ─── Legal pages ─────────────────────────────────────────────────────────── */
.legal { padding: 88px 0 128px; }
.legal article { max-width: 680px; }
.legal h1 { margin-top: 18px; font-size: clamp(44px, 6.4vw, 72px); font-weight: 650; line-height: 1; letter-spacing: -0.055em; }
.legal .updated { margin-top: 20px; padding-bottom: 36px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.legal h2 { margin-top: 44px; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.legal article > p:not(.eyebrow):not(.updated) { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.legal .back { margin-top: 48px; }
@media (hover: hover) and (pointer: fine) { .legal .back:hover .i { translate: -2px 0; } }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1280px) { .hero-now { display: none; } }
@media (max-width: 1120px) {
  .d-body { grid-template-columns: minmax(0, 1fr); }
  .d-side { display: none; }
}
@media (max-width: 920px) {
  .hero-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-side { max-width: 600px; padding-bottom: 0; }
  .d-parse { display: none; }
  .d-cols { grid-template-columns: minmax(0, 1fr) 236px; }
}
@media (max-width: 680px) {
  .stage { margin-top: 48px; }
  .chapters { gap: 6px; }
  .chap { gap: 2px 5px; }
  .chap-t { font-size: 13px; }
  .chap-caption { font-size: 14.5px; margin-bottom: 16px; }
  .demo { --row: 60px; }
  .d-bar span { display: none; }
  .d-main { gap: 12px; padding: 16px 14px 16px; }
  .d-title { font-size: 19px; }
  .d-progress { display: none; }
  .d-plan { margin-left: auto; }
  .d-cols { grid-template-columns: minmax(0, 1fr); }
  /* Phone: list then day (10:00–15:00); the focus session rises as a bottom sheet. */
  .d-left { display: contents; }
  .d-cal-clip { height: calc(300 * var(--ppm) + 28px); }
  .d-cal { margin-top: calc(14px - 60 * var(--ppm)); }
  .d-focus { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 10px; box-shadow: var(--shadow-float); opacity: 0; translate: 0 24px; pointer-events: none; transition: opacity 350ms var(--ease), translate 350ms var(--ease), background-color 450ms var(--ease); }
  .d-focus.is-on { opacity: 1; translate: 0 0; }
  .d-row { padding: 0 12px; gap: 10px; }
  .d-focus { gap: 14px; padding: 14px; }
  .d-ring { width: 76px; height: 76px; }
  .d-ring b { font-size: 16px; }
  .replaces { margin-top: 28px; font-size: 13px; }
  .replaces li { height: 30px; padding: 0 11px; }
}
@media (max-width: 480px) {
  .clock { align-items: flex-start; border-radius: 16px; }
  .clock-dot { margin-top: 6px; }
  .chap-n { display: none; }
  .d-ai span { display: none; }
}
@media (max-width: 1040px) {
  .header-nav { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .f-wide { grid-column: span 1; }
  .f-wide, .feature:last-child { grid-column: span 2; }
  .mobile-grid { gap: 40px; }
}
@media (max-width: 860px) {
  .section { padding-top: 112px; }
  .mobile-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .cta { margin-top: 112px; padding: 96px 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .platforms .btn-dl { flex: 1 1 calc(50% - 5px); }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 36px; }
  .section-lede { font-size: 17px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature, .f-wide, .feature:last-child { grid-column: auto; }
  .vg, .f-wide .vg { height: 248px; }
  .vg-matrix, .vg-agent { padding: 18px 16px 0; }
  .vg-cal, .vg-notes { padding: 16px 16px 0; }
  .vg-board { padding: 16px 0 0 16px; }
  .feature-copy { padding: 20px 20px 24px; }
  .feature h3 { font-size: 19px; }
  .phone-stage { padding: 32px 12px; }
  .phone { width: 288px; height: 652px; }
  .release-meta .sep { display: none; }
  .release-meta { gap: 0 14px; }
  .vg-matrix { grid-template-columns: minmax(0, 1fr); }
  .vg-matrix .q-blue, .vg-matrix .q-gray { display: none; }
  .f-wide .vg-agent, .f-wide .vg-matrix { height: auto; padding-bottom: 20px; }
  .pillar { padding: 24px; }
  .cta { margin-top: 88px; padding: 80px 0; }
  .cta .platforms { width: 100%; }
  .footer-brand { width: 100%; }
  .legal { padding: 56px 0 96px; }
}
@media (max-width: 420px) {
  .header-open { display: none; }
  .ring-card { right: 12px; bottom: 12px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .btn, .text-link .i { transition: none; }
  .clock-dot { animation: none; }
  .demo *, .chap-caption > span, .t-bar i { transition: none !important; animation: none !important; }
}

/* ─── Everything around the day ──────────────────────────────────────────── */
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--shadow-card); }
.tile-card h3 { margin-top: 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tile-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.tile-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.tile-icon .i { width: 18px; height: 18px; }
.tile-wide { grid-column: span 2; }
.tile-dark { border-color: var(--night); background: var(--night); color: var(--night-ink); }
.tile-dark p { color: var(--night-muted); }
.tile-dark .tile-icon { border-color: rgb(255 255 255 / 0.08); background: var(--night-3); }
.cmd { display: block; margin-top: auto; padding: 12px 14px; overflow-x: auto; border: 1px solid rgb(255 255 255 / 0.08); border-radius: var(--r-md); background: #0f0f0e; color: var(--cream); font: 500 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.cmd-p { margin-right: 10px; color: var(--accent); user-select: none; }
.js .more-grid .reveal:nth-child(2), .js .more-grid .reveal:nth-child(6) { transition-delay: 60ms; }
.js .more-grid .reveal:nth-child(3), .js .more-grid .reveal:nth-child(7) { transition-delay: 120ms; }
.js .more-grid .reveal:nth-child(4) { transition-delay: 180ms; }
@media (max-width: 1040px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile-wide { grid-column: auto; }
  .tile-card { padding: 20px; }
}
