/* Investor Diary — investordiary.nl
   Tokens copied from design/claude-design/DESIGN_SPEC.md §1 (app), so site and app match. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-400Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0E1116;
  --ink2: #3A404A;
  --ink3: #5A616C;
  --ink4: #9AA0A8;
  --line: #E4E6EA;
  --line2: #F0F1F3;
  --line3: #D5D8DD;
  --fill: #F3F4F6;
  --fill2: #F7F8F9;
  --tint: #E8F4EE;
  --tint2: #F5F9F7;
  --tint3: #D6F0E3;
  --green-ink: #0B5A41;
  --accent: #0B6E4F;
  --accent-ink: #0B6E4F;
  --btn-bg: #0E1116;
  --btn-ink: #FFFFFF;
  --amber: #8A4B00;
  --amber-bg: #FFF3E0;
  --red: #B0102A;
  --red-bg: #FFF4F5;
  --ai: #5B3FC4;
  --ai-bg: #F3F0FD;
  --ai-line: #D5CCF5;
  --page-l: #0B6E4F;
  --page-r: #2F9E78;
  --tile: #0E1116;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 24px 60px -20px rgba(16,24,40,.18);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1116;
    --surface: #14171B;
    --ink: #ECEEF1;
    --ink2: #C5CAD1;
    --ink3: #9AA2AD;
    --ink4: #7C848F;
    --line: #2E333A;
    --line2: #23272D;
    --line3: #3A4048;
    --fill: #22262C;
    --fill2: #1B1F24;
    --tint: #143328;
    --tint2: #17241F;
    --tint3: #17402F;
    --green-ink: #7FD3B0;
    --accent-ink: #5FD3A8;
    --btn-bg: #ECEEF1;
    --btn-ink: #0E1116;
    --amber: #F2B15C;
    --amber-bg: #3A2A12;
    --red: #FF8795;
    --red-bg: #361A1F;
    --ai: #A993F5;
    --ai-bg: #231E3A;
    --ai-line: #463A78;
    --page-l: #2F9E78;
    --page-r: #7FD3B0;
    --tile: #1F2329;
    --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 70px -20px rgba(0,0,0,.7);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; padding: 8px 12px; background: var(--surface); }
.tile-bg { fill: var(--tile); }

/* Type */
.h-display { font: 400 clamp(38px, 6.4vw, 84px)/1.02 var(--serif); overflow-wrap: break-word; letter-spacing: -0.035em; text-wrap: balance; }
.h-display.small { font-size: clamp(36px, 4.6vw, 60px); }
.h-section { font: 400 clamp(32px, 3.8vw, 50px)/1.08 var(--serif); letter-spacing: -0.03em; text-wrap: balance; max-width: 18ch; }
.lede { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink2); }
.sub { margin-top: 16px; max-width: 36em; font-size: 17px; color: var(--ink2); }
.wordmark { font: 400 22px/1 var(--serif); letter-spacing: -0.03em; }
.wordmark.small { font-size: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 18px; font: 500 14px/1 var(--sans); white-space: nowrap; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn-lg { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; }
.btn-ink { background: var(--btn-bg); color: var(--btn-ink); }
.btn-ink:hover { background: var(--accent); color: #fff; }
.btn-line { border: 1px solid var(--line3); color: var(--ink); }
.btn-line:hover { border-color: var(--ink3); }
.btn:active { transform: scale(.98); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row.center { justify-content: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line2); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.tile { display: block; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.top-in > .btn { margin-left: auto; }
.nav + .btn { margin-left: 0; }
.nav a { padding: 8px 14px; border-radius: 18px; font-size: 15px; font-weight: 500; color: var(--ink2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--fill); color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 56px; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy .lede { animation-delay: .1s; }
.hero-copy .cta-row { animation-delay: .2s; }
.hero-copy .platforms { animation-delay: .3s; }
.platforms { margin-top: 18px; font-size: 14px; color: var(--ink3); }
.hero-mark { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* The book: the opening-screen animation from the app, op-left / op-right / op-write, 1.8s */
.book { position: relative; width: clamp(180px, 22vw, 300px); aspect-ratio: 1; perspective: 900px; }
.book svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.pg-l path { fill: var(--page-l); }
.pg-r path { fill: var(--page-r); }
.pg-l { animation: op-left 1.8s ease-out both; }
.pg-r { transform-origin: 50% 56.25%; animation: op-right 1.8s cubic-bezier(.2,.6,.2,1) both; }
.mark-word { font: 400 clamp(36px, 4.2vw, 56px)/1.15 var(--serif); letter-spacing: -0.03em; white-space: nowrap; padding-right: 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: op-write 1.8s cubic-bezier(.45,.05,.35,1) both; }
.hero-mark .book::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); filter: blur(6px); z-index: -1; animation: op-left 1.8s ease-out both; }
@keyframes op-left { 0% { opacity: 0 } 4%, 100% { opacity: 1 } }
@keyframes op-right { 0% { transform: rotateY(180deg) skewY(38.66deg); opacity: 0 } 2% { opacity: 1 } 42%, 100% { transform: rotateY(0deg) skewY(0deg); opacity: 1 } }
@keyframes op-write { 0%, 36% { -webkit-mask-size: 0% 100%; mask-size: 0% 100% } 95%, 100% { -webkit-mask-size: 125% 100%; mask-size: 125% 100% } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.book.small { width: 96px; margin: 0 auto 28px; }
.book.small .pg-l, .book.small .pg-r { animation-play-state: paused; }
.book.small.play .pg-l, .book.small.play .pg-r { animation-play-state: running; }

/* App window */
.window-wrap { padding-bottom: 40px; }
.window { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; opacity: 0; transform: translateY(40px) scale(.985); animation: win 1.1s var(--ease) 1.2s forwards; }
@keyframes win { to { opacity: 1; transform: none; } }
.w-bar { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line2); font-size: 14px; font-weight: 500; }
.w-bar > svg { flex: none; }
.w-word { font: 400 19px/1 var(--serif); letter-spacing: -0.03em; margin-right: 8px; white-space: nowrap; }
.w-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 8px; border-radius: 18px; font-size: 13.5px; background: var(--fill); color: var(--ink); white-space: nowrap; }
.w-rec { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 3px 0 12px; border: 1px solid var(--line); border-radius: 18px; font-size: 12px; }
.w-rec b { height: 28px; padding: 0 12px; border-radius: 14px; font-size: 13px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 500; display: inline-flex; align-items: center; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
.w-grow { flex: 1; }
.w-nav { height: 34px; padding: 0 12px 0 6px; gap: 6px; border-radius: 17px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; font-size: 13.5px; }
.w-think { height: 34px; padding: 0 12px 0 6px; gap: 6px; border-radius: 17px; color: var(--ink2); display: inline-flex; align-items: center; font-size: 13.5px; white-space: nowrap; }
.ai-ic { display: block; flex: none; overflow: visible; }
.w-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--green-ink); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.w-tabs { display: flex; gap: 4px; padding: 6px 16px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.w-tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px 10px 0 0; font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.w-tab.on { background: var(--tint); color: var(--green-ink); font-weight: 500; }
.amber-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }
.rec-badge { font: 500 11px/1 var(--mono); color: #fff; background: var(--red); padding: 4px 6px; border-radius: 6px; }
.w-list { font-size: 13px; }
.w-head, .w-row { display: grid; grid-template-columns: 76px 64px minmax(0, 1fr) 170px 90px; gap: 12px; align-items: center; padding: 0 20px; }
.w-head { height: 34px; background: var(--fill2); color: var(--ink3); font-weight: 500; font-size: 12px; }
.w-row { height: 42px; border-top: 1px solid var(--line2); color: var(--ink2); opacity: 0; transform: translateX(-10px); animation: row .55s var(--ease) forwards; animation-delay: calc(1.7s + var(--i) * 70ms); }
.w-head + .w-row { border-top: 0; }
@keyframes row { to { opacity: 1; transform: none; } }
.w-row .t { display: flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.w-row:nth-child(2) { background: var(--tint2); }
.tk { font: 500 12.5px/1 var(--mono); color: var(--green-ink); }
.badge { margin-left: auto; margin-right: 8px; padding: 2px 8px; border-radius: 6px; font: 500 12px/1.4 var(--sans); }
.badge.prep { background: var(--tint); color: var(--green-ink); }
.badge.draft { background: var(--amber-bg); color: var(--amber); }
.amber { color: var(--amber); }
.w-row > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mic { color: var(--ink3); flex: none; }

/* Scroll story */
.story { padding-top: 120px; padding-bottom: 40px; }
.story-head { max-width: 760px; }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; margin-top: 56px; }
.steps { counter-reset: s; }
.step { position: relative; min-height: 72vh; padding: 28px 0 0 56px; display: flex; flex-direction: column; justify-content: flex-start; opacity: .32; transition: opacity .5s; }
.step:last-child { min-height: 60vh; }
.step.on { opacity: 1; }
.step::before { content: ""; position: absolute; left: 17px; top: 72px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-n { position: absolute; left: 0; top: 26px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line3); display: flex; align-items: center; justify-content: center; font: 500 14px/1 var(--mono); color: var(--ink3); background: var(--bg); transition: background .4s, border-color .4s, color .4s; }
.step.on .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { font: 400 34px/1.1 var(--serif); letter-spacing: -0.02em; margin-top: 2px; }
.step p { margin-top: 14px; font-size: 17px; color: var(--ink2); max-width: 30em; }
.step-live { display: none; }

.stage-col { position: relative; }
.sheet { position: sticky; top: 104px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); padding: 20px 24px 24px; min-height: 520px; overflow: hidden; }
.sh-top { display: flex; align-items: center; gap: 12px; }
.seg { position: relative; display: inline-flex; padding: 2px; border-radius: 18px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.seg > span:not(.seg-k) { position: relative; z-index: 1; height: 30px; padding: 0 14px; display: flex; align-items: center; border-radius: 15px; transition: color .4s; }
.seg-k { position: absolute; top: 2px; left: 2px; height: 30px; border-radius: 15px; background: var(--tint); transition: transform .5s var(--ease), width .5s var(--ease); width: var(--kw, 104px); transform: translateX(var(--kx, 0)); }
.seg-a { color: var(--green-ink); }
.seg-b { color: var(--ink3); }
.sheet:not([data-stage="0"]) .seg-a { color: var(--ink3); }
.sheet:not([data-stage="0"]) .seg-b { color: var(--green-ink); }
.sh-meta { font-size: 13px; color: var(--ink3); }
.sh-rec { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 16px; background: var(--red-bg); color: var(--red); opacity: 0; transform: scale(.9); transition: opacity .4s, transform .4s var(--ease); }
.sheet[data-stage="1"] .sh-rec { opacity: 1; transform: none; }
.sh-title { margin-top: 18px; font: 600 26px/1.2 var(--sans); letter-spacing: -0.02em; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--fill); font-size: 12.5px; color: var(--ink2); }
.chip.tk { background: var(--tint); color: var(--green-ink); }
.chip.big { height: 34px; padding: 0 12px; font-size: 14px; }
.add-lng { display: none; }
.sheet[data-stage="2"] .add-lng { display: inline-flex; animation: pop .5s var(--ease) .2s both; }
@keyframes pop { from { opacity: 0; transform: scale(.6) } to { opacity: 1; transform: none } }
.type-chip { position: relative; overflow: hidden; }
.type-chip .tc-a { color: var(--amber); }
.type-chip .tc-b { display: none; color: var(--green-ink); }
.sheet[data-stage="2"] .type-chip { background: var(--tint); }
.sheet[data-stage="2"] .tc-a { display: none; }
.sheet[data-stage="2"] .tc-b { display: inline; animation: pop .5s var(--ease) .35s both; }

.layers { position: relative; margin-top: 20px; display: grid; }
.layer { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .45s, transform .6s var(--ease), visibility 0s .6s; }
.sheet[data-stage="0"] .l0, .sheet[data-stage="1"] .l1, .sheet[data-stage="2"] .l2 { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .1s, transform .6s var(--ease) .1s, visibility 0s; }
.layer [style*="--i"] { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.sheet[data-stage="0"] .l0 [style*="--i"], .sheet[data-stage="1"] .l1 [style*="--i"], .sheet[data-stage="2"] .l2 [style*="--i"] { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .22s); }

.doc { border: 1px solid var(--line3); border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.doc-h, .sum-h { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.doc ul { list-style: disc; padding-left: 20px; color: var(--ink2); }
.doc li + li { margin-top: 4px; }
.aibox { margin-top: 14px; border: 1px solid var(--ai-line); border-radius: 12px; background: var(--ai-bg); color: var(--ai); padding: 14px 18px; }
.ai-h { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.aibox li { font-size: 14px; line-height: 1.45; color: var(--ink); }
.aibox li + li { margin-top: 8px; }
.aibox small { display: block; font-size: 12px; color: var(--ai); margin-top: 1px; }

.wave { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 2px; }
.wave i { display: block; flex: none; width: 3px; height: 6px; border-radius: 2px; background: var(--accent); animation: cv 1s ease-in-out infinite paused; }
.sheet[data-stage="1"] .wave i { animation-play-state: running; }
.wave i:nth-child(5n+1) { animation-delay: 0s } .wave i:nth-child(5n+2) { animation-delay: .15s } .wave i:nth-child(5n+3) { animation-delay: .3s } .wave i:nth-child(5n+4) { animation-delay: .45s } .wave i:nth-child(5n) { animation-delay: .6s }
.wave i:nth-child(3n) { animation-duration: 1.3s } .wave i:nth-child(7n) { animation-duration: .8s }
@keyframes cv { 0%, 100% { height: 6px } 50% { height: 22px } }
.transcript { margin-top: 14px; display: grid; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.transcript b { display: inline-block; min-width: 0; margin-right: 8px; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.sp1 { background: var(--tint); color: var(--green-ink); }
.sp2 { background: var(--fill); color: var(--ink); }
.sp3 { background: var(--ai-bg); color: var(--ai); }
.transcript .marked { position: relative; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; background: var(--amber-bg); color: var(--ink); }
.mark { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--amber); }

.summary { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--tint2); font-size: 15px; color: var(--ink2); }
.todos { margin-top: 14px; display: grid; gap: 10px; }
.todos .sum-h { margin-bottom: 0; }
.todos label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); }
.todos svg { flex: none; fill: none; stroke-width: 1.6; }
.todos rect { stroke: var(--line3); fill: var(--surface); }
.todos .ck { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sheet[data-stage="2"] .todos label:first-of-type .ck { transition: stroke-dashoffset .45s ease-out 1.6s; stroke-dashoffset: 0; }
.sheet[data-stage="2"] .todos label:first-of-type rect { stroke: var(--accent); fill: var(--tint); transition: fill .3s 1.5s, stroke .3s 1.5s; }

/* Modes */
.modes { padding-top: 120px; padding-bottom: 120px; }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.way { padding: 32px 28px 8px 0; color: var(--ink); }
.way + .way { padding-left: 28px; border-left: 1px solid var(--line); }
.way h3 { margin-top: 22px; font: 600 18px/1.3 var(--sans); letter-spacing: -0.01em; }
.way p { margin-top: 8px; font-size: 15px; color: var(--ink2); }
.way svg { display: block; overflow: visible; }
.way-chat { display: flex; align-items: center; justify-content: center; width: 72px; height: 48px; color: var(--ink); }
.think .way-ic { color: var(--ink2); }

/* App icon animations — copied verbatim from design/claude-design/notes-screen.html */
.n-dot{transform-box:fill-box;transform-origin:center}
.mode:hover .n-line,.mode:focus-within .n-line,.mode:focus-visible .n-line{stroke-dasharray:1;animation:draw .6s ease-out both}
.mode:hover .n-l2,.mode:focus-within .n-l2,.mode:focus-visible .n-l2{animation-delay:.2s}
.mode:hover .n-l3,.mode:focus-within .n-l3,.mode:focus-visible .n-l3{animation-delay:.4s}
.mode:hover .n-dot,.mode:focus-within .n-dot,.mode:focus-visible .n-dot{animation:pulse 1.4s ease-in-out 1s infinite}
.w-pen,.w-halo,.r-bar,.r-halo,.e-ring,.e-core{transform-box:fill-box;transform-origin:center}
.w-halo{opacity:0}
.mode:hover .w-pen,.mode:focus-visible .w-pen{animation:write 1.1s ease-in-out}
.mode:hover .w-halo,.mode:focus-visible .w-halo{animation:ring 1.4s ease-out 1.1s infinite}
.r-halo{opacity:0}
.mode:hover .r-bar,.mode:focus-visible .r-bar{animation:voice .6s ease-in-out 2}
.mode:hover .r-halo,.mode:focus-visible .r-halo{animation:bar-ring 1.4s ease-out 1.2s infinite}
.r-bar:nth-child(2n){animation-delay:.1s!important}
.r-bar:nth-child(3n){animation-delay:.2s!important}
.e-d1{--d:.4s}.e-d2{--d:.2s}
.e-ring{opacity:0}
.mode:hover .e-net,.mode:focus-visible .e-net{stroke-dasharray:1;animation:draw .7s ease-out}
.mode:hover .e-core,.mode:focus-visible .e-core{animation:e-turn calc(.7s + var(--d,0s)) linear,pulse 1.4s ease-in-out calc(.7s + var(--d,0s)) infinite}
.mode:hover .e-ring,.mode:focus-visible .e-ring{animation:ring 1.4s ease-out calc(.7s + var(--d,0s)) infinite}
.c-bub{transform-origin:30% 85%}.c-dot{opacity:0}
.tb-chatbtn:hover .c-bub,.tb-chatbtn:focus-visible .c-bub{animation:c-pop .35s ease-out}
.tb-chatbtn:hover .c-dot,.tb-chatbtn:focus-visible .c-dot{animation:c-type 1s ease-in-out infinite}
.tb-chatbtn:hover .c-d2{animation-delay:.15s}.tb-chatbtn:hover .c-d3{animation-delay:.3s}
.tb-todo:hover .t-check,.tb-todo:focus-visible .t-check{stroke-dasharray:1;animation:draw .45s ease-out both}
.tb-todo:hover .t-c2{animation-delay:.25s}
@keyframes e-turn{0%,90%{fill:var(--ink)}100%{fill:var(--accent)}}
@keyframes write{0%,100%{transform:translate(0,0)}25%{transform:translate(-10px,4px)}50%{transform:translate(4px,-3px)}75%{transform:translate(-6px,6px)}}
@keyframes voice{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.65)}}
@keyframes bar-ring{from{transform:scale(1);opacity:1}to{transform:scale(1.6,1.12);opacity:0}}
@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
@keyframes ring{from{transform:scale(1);opacity:1}to{transform:scale(1.5);opacity:0}}
@keyframes c-pop{0%{transform:scale(1)}45%{transform:scale(1.12) rotate(-4deg)}100%{transform:scale(1)}}
@keyframes c-type{0%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-1.5px)}}
/* The app's buttons also lift on hover */
.w-pill.mode, .w-nav.mode, .w-think.mode { transition: transform .25s ease, box-shadow .25s ease; }
.w-pill.mode:hover, .w-think.mode:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,24,40,.1); }
.rail-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--tint); color: var(--green-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Talk (always dark, like a quiet room) */
.talk { background: #0E1116; color: #ECEEF1; padding: 120px 0; --ink2: #C5CAD1; --ink3: #9AA2AD; --line: #2E333A; }
@media (prefers-color-scheme: dark) { .talk { background: #090B0E; border-top: 1px solid #1B1F24; border-bottom: 1px solid #1B1F24; } }
.talk-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.talk .sub { color: #C5CAD1; }
.ticks { margin-top: 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #C5CAD1; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid #5FD3A8; border-bottom: 2px solid #5FD3A8; transform: rotate(-45deg); }
.talk-demo { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.orb { position: relative; width: 168px; height: 168px; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #BFE8D6 30%, #2F9E78 62%, #0B3B2C 100%);
  box-shadow: 0 0 0 1px rgba(11,110,79,.15), 0 10px 60px rgba(47,158,120,.35); animation: orb-breathe 3.2s ease-in-out infinite; }
.orb i { position: absolute; border-radius: 50%; filter: blur(14px); mix-blend-mode: screen; opacity: .9; }
.orb i:nth-child(1) { width: 70%; height: 70%; left: -10%; top: -5%; background: #FFFFFF; animation: orb-a 5s ease-in-out infinite; }
.orb i:nth-child(2) { width: 65%; height: 65%; right: -15%; bottom: -10%; background: #7FD3B0; animation: orb-b 6s ease-in-out infinite; }
.orb i:nth-child(3) { width: 55%; height: 55%; left: 25%; top: 40%; background: #0E1116; mix-blend-mode: multiply; opacity: .35; animation: orb-c 4.5s ease-in-out infinite; }
.orb[data-mode="speak"] { animation: none; transform: scale(var(--amp, 1)); transition: transform .11s ease-out; box-shadow: 0 0 0 calc((var(--amp, 1) - .9) * 80px) rgba(47,158,120,.16), 0 10px 60px rgba(47,158,120,.45); }
.orb[data-mode="speak"] i { animation-duration: 1.6s, 1.6s; }
@keyframes orb-breathe { 0%, 100% { transform: scale(.94) } 50% { transform: scale(1) } }
@keyframes orb-a { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(30%, 25%) } }
@keyframes orb-b { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(-35%, -20%) } }
@keyframes orb-c { 0%, 100% { transform: translate(0, 0) scale(1) } 50% { transform: translate(-30%, -35%) scale(1.3) } }
.convo { width: 100%; max-width: 520px; display: grid; gap: 14px; }
.q { justify-self: end; max-width: 85%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: #22262C; font-size: 15px; min-height: 48px; }
.a { padding: 16px 18px; border-radius: 18px 18px 18px 4px; border: 1px solid #2E333A; background: #14171B; font-size: 15.5px; line-height: 1.55; min-height: 140px; }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #5FD3A8; opacity: 0; }
.typed.typing::after { opacity: 1; animation: blink .9s steps(1) infinite; }
.cites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cites span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #1B1F24; font-size: 13px; color: #ECEEF1; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.cites b { font: 500 11px/1 var(--mono); color: #0E1116; background: #7FD3B0; border-radius: 5px; padding: 3px 5px; }
.cites small { color: #9AA2AD; font-size: 12px; }
.talk-demo.cited .cites span { opacity: 1; transform: none; }
.talk-demo.cited .cites span:nth-child(2) { transition-delay: .12s } .talk-demo.cited .cites span:nth-child(3) { transition-delay: .24s }

/* Company profile + to-dos */
.know { padding-top: 120px; padding-bottom: 40px; }
.narrow { max-width: 40em; }
.know-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin-top: 48px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 22px 24px; }
.p-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line2); }
.p-head b { display: block; font-size: 16px; font-weight: 600; }
.p-head small { display: block; font-size: 13px; color: var(--ink3); }
.view-chip, .count { margin-left: auto; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; background: var(--tint); color: var(--green-ink); white-space: nowrap; }
.count { background: var(--fill); color: var(--ink2); }
.p-sub { margin: 18px 0 8px; font-size: 13px; font-weight: 500; color: var(--ink3); }
.beliefs li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--ink); }
.beliefs li + li { border-top: 1px solid var(--line2); }
.conf { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; }
.conf.hi { background: var(--accent); } .conf.mid { background: #2F9E78; opacity: .55; } .conf.lo { background: var(--amber); }
.teach { margin-left: auto; flex: none; height: 28px; padding: 0 12px; border: 1px solid var(--line3); border-radius: 14px; background: transparent; color: var(--ink2); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.teach:hover { border-color: var(--accent); color: var(--accent-ink); }
.teach.on, .corrected .teach { background: var(--tint); border-color: transparent; color: var(--green-ink); }
.b-txt { display: grid; }
.b-txt s { color: var(--ink4); text-decoration-thickness: 1px; }
.b-txt ins { text-decoration: none; }
.know.in .corrected s { animation: strike .6s ease-out .4s both; }
.know.in .corrected ins { animation: rise .6s var(--ease) .9s both; }
@keyframes strike { from { text-decoration-color: transparent; color: var(--ink) } to { text-decoration-color: currentColor } }
.news li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; font-size: 14.5px; }
.news small { width: 100%; padding-left: 16px; color: var(--ink3); font-size: 12.5px; }
.n-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ai); flex: none; transform: translateY(-2px); }
.todo-list li { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; padding: 12px 0; font-size: 15px; }
.todo-list li + li { border-top: 1px solid var(--line2); }
.todo-list small { grid-column: 2; color: var(--ink3); font-size: 12.5px; }
.box { width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid var(--line3); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; }
.todo-list .done { color: var(--ink3); }
.todo-list .done .tt { text-decoration: line-through; text-decoration-color: var(--ink4); }
.todo-list .done .box { background: var(--accent); border-color: var(--accent); }

/* Security */
.security { padding-top: 120px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.sec-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.sec-list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.sec-list dt { font-weight: 600; font-size: 16px; }
.sec-list dd { margin: 6px 0 0; color: var(--ink2); font-size: 15px; }

/* FAQ */
.faq { padding-top: 120px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.8px solid var(--ink3); border-bottom: 1.8px solid var(--ink3); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list details p { padding: 0 0 22px; max-width: 38em; color: var(--ink2); }
.faq-list details[open] p { animation: rise .4s var(--ease); }

/* Final */
.final { padding-top: 140px; padding-bottom: 120px; text-align: center; }
.final .h-display { max-width: 16ch; margin: 0 auto; }
.about { max-width: 38em; margin: 24px auto 0; font-size: 17px; color: var(--ink2); }
.fine { margin-top: 22px; font-size: 14px; color: var(--ink3); }
.fine a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.foot { border-top: 1px solid var(--line2); }
.foot-in { display: flex; align-items: center; gap: 20px; height: 76px; font-size: 14px; color: var(--ink3); }
.foot-in .grow { flex: 1; }
.foot-in > a:not(.brand):hover { color: var(--ink); }


/* Legal pages (privacy, 404) */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal .h-section { max-width: none; }
.legal-meta { margin-top: 12px; font-size: 14px; color: var(--ink3); }
.legal section { margin-top: 48px; scroll-margin-top: 88px; }
.legal h2 { font: 400 28px/1.2 var(--serif); letter-spacing: -0.02em; }
.legal h3 { margin-top: 24px; font: 600 16px/1.4 var(--sans); }
.legal p, .legal li { color: var(--ink2); font-size: 16px; }
.legal p { margin-top: 12px; max-width: 40em; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal b { color: var(--ink); font-weight: 600; }
.legal a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; padding-bottom: 8px; }
.toc a { padding: 6px 12px; border-radius: 16px; background: var(--fill); font-size: 13.5px; color: var(--ink2) !important; text-decoration: none !important; }
.toc a:hover { background: var(--tint); color: var(--green-ink) !important; }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th { text-align: left; font-weight: 500; color: var(--ink3); background: var(--fill2); padding: 10px 14px; font-size: 13px; }
.legal td { padding: 10px 14px; border-top: 1px solid var(--line2); color: var(--ink2); vertical-align: top; }
.legal td:first-child { color: var(--ink); }
mark.todo { background: var(--amber-bg); color: var(--amber); padding: 0 4px; border-radius: 4px; }
.foot a[aria-current="page"] { color: var(--ink); }

/* Responsive */
@media (max-width: 1000px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hero-mark { order: -1; flex-direction: row; justify-content: flex-start; gap: 16px; }
  .hero-mark .book { width: 84px; }
  .mark-word { font-size: 38px; }
  .story-grid { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .stage-col { order: -1; margin-bottom: 24px; }
  .sheet { position: relative; top: 0; min-height: 0; padding: 14px 16px 16px; }
  /* Phones and small tablets: the steps become tabs under the note, with the active step's text below */
  .stage-col { margin-bottom: 16px; }
  .steps { display: flex; gap: 6px; }
  .step, .step:last-child { min-height: 0; padding: 5px 14px 5px 5px; display: flex; flex-direction: row; align-items: center; gap: 8px; border-radius: 20px; background: var(--fill); opacity: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .3s; }
  .step.on { background: var(--tint); }
  .step::before { display: none; }
  .step-n { position: static; width: 26px; height: 26px; font-size: 12px; flex: none; }
  .step h3 { margin: 0; font: 600 15px/1 var(--sans); letter-spacing: 0; white-space: nowrap; }
  .step.on h3 { color: var(--green-ink); }
  .step p { display: none; }
  .step-live { display: block; margin-top: 14px; min-height: 5.2em; font-size: 16px; color: var(--ink2); }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .way:nth-child(3) { padding-left: 0; border-left: 0; }
  .way:nth-child(n+3) { border-top: 1px solid var(--line); }
  .talk-in, .know-grid, .security, .faq { grid-template-columns: 1fr; gap: 32px; }
  .talk-demo { order: -1; }
  .w-head, .w-row { grid-template-columns: 60px 52px minmax(0, 1fr) 150px; }
  .w-hide-m, .w-word { display: none; }
  .c-who { display: none; }
}
@media (max-width: 760px) {
  .w-hide-s { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .story, .modes, .know, .security, .faq { padding-top: 80px; }
  .modes { padding-bottom: 80px; }
  .talk { padding: 80px 0; }
  .final { padding-top: 96px; padding-bottom: 80px; }
  .legal { padding-top: 40px; }
  .top .wordmark { display: none; }
  .w-hide-s, .c-type, .w-ava { display: none; }
  .w-bar { padding: 0 12px; gap: 8px; }
  .w-word { display: none; }
  .w-head, .w-row { grid-template-columns: 52px 46px minmax(0, 1fr); padding: 0 12px; gap: 8px; }
  .badge { display: none; }
  .sh-title { font-size: 20px; }
  .sh-meta { display: none; }
  .doc, .aibox, .summary { padding: 12px 14px; }
  .aibox li:nth-child(n+2) { display: none; }
  .transcript p:nth-child(4) { display: none; }
  .transcript { font-size: 13.5px; }
  .mode-grid { grid-template-columns: 1fr; }
  .way, .way + .way { padding: 24px 0; border-left: 0; }
  .way + .way { border-top: 1px solid var(--line); }
  .sec-list { grid-template-columns: 1fr; }
  .orb { width: 128px; height: 128px; }
  .foot-in { flex-wrap: wrap; height: auto; padding: 20px 16px; }
  .p-head { flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .step-n { display: none !important; }
  .step, .step:last-child { padding: 7px 12px; }
  .steps { gap: 4px; }
  .h-display { font-size: 34px; }
  .h-section { font-size: 28px; }
  .mark-word { font-size: 30px; }
  .hero-mark .book { width: 64px; }
  .top-in { gap: 12px; }
  .w-rec b { display: none; }
  .sheet { padding: 12px; }
}
/* Short landscape phones: keep the hero compact */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 24px; }
  .hero-mark { display: none; }
}

/* Reduced motion: show every end state, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark-word { -webkit-mask-size: 125% 100%; mask-size: 125% 100%; }
  .window, .w-row { opacity: 1; transform: none; }
  .wave i { height: 14px; }
  .cites span { opacity: 1; transform: none; }
}
