/* Voxpital site stylesheet. Editorial clinical: warm paper, serif display, real photography,
   product screens that mirror the Voxpital app. One file for every page. */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/PlusJakartaSans-latin-wght.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/Newsreader-latin.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/Newsreader-latin-italic.woff2) format("woff2"); }

/* ---------- tokens ---------- */
:root {
  /* neutrals: warm paper canvas */
  --paper: #F7F5F0; --paper-2: #EFECE4; --surface: #FFFFFF;
  /* ink: logo navy, app navy, app text grays */
  --ink: #0D253D; --ink-2: #243F50; --text: #1A1A1A; --text-2: #4B5563; --text-3: #6B7280;
  --line: rgba(13,37,61,.12); --line-2: rgba(13,37,61,.22);
  /* logo gradient, used sparingly */
  --mint: #20D8AC; --teal: #18BCAB; --blue: #307EC4; --violet: #8040D0;
  --brand: linear-gradient(120deg, #20D8AC 0%, #18BCAB 28%, #307EC4 64%, #8040D0 100%);
  /* app tokens (voxpital-mobile src/theme/palette.ts) */
  --app-primary: #005A9C; --app-accent: #2563EB; --app-head: linear-gradient(180deg, #034EA2 6.25%, #0060DF 71.63%, #00A8E8 100%);
  --app-bg: #F9FAFB; --app-card: #E2E8F0; --app-gray: #E9EEF1; --app-slate: #4A687C; --app-border: #CED8DE;
  --signal: #0066FF; --mic: #FF3B5C; --ok: #00C678; --warn: #FF9E22; --high: #FA3264;
  --link: #005A9C; --focus: #2563EB;
  /* type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* shape and depth */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(13,37,61,.06);
  --sh-2: 0 12px 32px -14px rgba(13,37,61,.22), 0 2px 6px rgba(13,37,61,.05);
  --sh-3: 0 34px 70px -24px rgba(13,37,61,.34), 0 4px 12px rgba(13,37,61,.06);
  --ease: cubic-bezier(.2,.7,.2,1);
  --max: 1240px; --gutter: clamp(20px, 4vw, 48px); --nav-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body { margin: 0; position: relative; min-height: 100vh; font: 400 1.0625rem/1.6 var(--sans); color: var(--ink-2); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(32,216,172,.28); color: var(--ink); }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 1.6rem + 4.2vw, 5.5rem); line-height: .98; letter-spacing: -.028em; color: var(--ink); }
h2, h3, .display-2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.display-2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.35rem + 2.5vw, 3.6rem); line-height: 1.04; letter-spacing: -.022em; color: var(--ink); }
.display em, .display-2 em { font-style: italic; letter-spacing: -.012em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.eyebrow .keep { text-transform: none; letter-spacing: .06em; }
.lead { font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 38rem; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 8vw, 116px); }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.is-scrolled { background: rgba(247,245,240,.86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { position: relative; font: 500 .9375rem/1 var(--sans); color: var(--ink-2); padding: 8px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(13,37,61,.6); }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 14px 28px -10px rgba(13,37,61,.6); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn.is-done { border-color: var(--ok); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--sans); color: var(--ink); padding: 8px 0; }
.link-arrow:hover { text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(12px, 2.5vw, 32px) clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-proof { display: grid; gap: 12px; width: 100%; max-width: 34rem; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-proof li { display: flex; align-items: center; gap: 12px; font-size: .9688rem; color: var(--ink-2); }
.hero-proof .i { width: 18px; height: 18px; color: var(--teal); }
.hero-media { position: relative; }
.photo-hero { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--nav-h) - 64px); margin-left: auto; }

/* dictation card: the product story in one object */
.dictation { position: absolute; left: clamp(-64px, -4vw, -20px); bottom: -28px; width: min(352px, 80%); display: grid; gap: 14px; padding: 18px 18px 16px; border-radius: 22px; background: rgba(255,255,255,.97); border: 1px solid rgba(13,37,61,.07); box-shadow: var(--sh-3); }
.dict-head { display: flex; align-items: center; gap: 10px; font: 600 .8125rem/1 var(--sans); color: var(--ink); }
.rec { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px 7px 9px; border-radius: 999px; background: var(--paper); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); transition: background-color .3s; }
.dictation.is-listening .rec i { background: var(--mic); animation: pulse 1.6s ease-out infinite; }
.dictation.is-drafting .rec i { background: var(--signal); }
.mini-wave { display: flex; align-items: center; gap: 2px; height: 16px; }
.mini-wave i { width: 2px; height: 30%; border-radius: 2px; background: var(--app-border); transition: background-color .3s; }
.dictation.is-listening .mini-wave i { background: var(--signal); animation: bar .9s ease-in-out infinite alternate; }
.mini-wave i:nth-child(2n) { animation-delay: -.3s; height: 70%; }
.mini-wave i:nth-child(3n) { animation-delay: -.55s; height: 100%; }
.mini-wave i:nth-child(4n) { animation-delay: -.15s; height: 50%; }
.dict-meta { margin-left: auto; font-weight: 500; color: var(--text-3); }
.dict-text { font: 400 .9375rem/1.6 var(--sans); color: var(--ink); }
.w { transition: opacity .22s linear; }
.dictation.is-playing .w { opacity: .14; }
.dictation.is-playing .w.on { opacity: 1; }
.hl { background: linear-gradient(90deg, rgba(32,216,172,.34), rgba(48,126,196,.26)) no-repeat 0 90% / 100% .5em; border-radius: 2px; transition: background-size .6s var(--ease); }
.dictation.is-playing .hl { background-size: 0% .5em; }
.dictation.is-playing .hl.on { background-size: 100% .5em; }
.dict-label { display: flex; justify-content: space-between; gap: 12px; font: 600 .6875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.dict-items { display: grid; gap: 8px; }
.dict-items li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font: 600 .8125rem/1.3 var(--sans); color: var(--ink); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.dict-items li { transition: color .35s var(--ease), background-color .35s var(--ease); }
.dictation.is-playing .dict-items li:not(.on) { color: transparent; background: linear-gradient(90deg, var(--paper) 0%, #FFFFFF 50%, var(--paper) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.dictation.is-playing .dict-items li:not(.on) > * { visibility: hidden; }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.tick .i { width: 11px; height: 11px; stroke: #fff; stroke-width: 3; opacity: 0; transition: opacity .3s; }
.dictation.is-confirmed .tick { background: var(--ok); border-color: var(--ok); }
.dictation.is-confirmed .tick .i { opacity: 1; }
.dept { font: 600 .6875rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--link); white-space: nowrap; }
.dict-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dict-note { font-size: .75rem; color: var(--text-3); }
.confirm { position: relative; display: inline-grid; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .75rem/1 var(--sans); }
.confirm span { grid-area: 1 / 1; transition: opacity .3s; }
.confirm .c-done { opacity: 0; }
.dictation.is-confirmed .confirm .c-todo { opacity: 0; }
.dictation.is-confirmed .confirm .c-done { opacity: 1; }

/* ---------- how it works: tabs + stage ---------- */
.steps { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps-side { display: grid; gap: 0; }
.steps-side .section-head { margin-bottom: clamp(28px, 3vw, 40px); }
.steps-list { display: grid; gap: 6px; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 8px; width: 100%; padding: 24px 24px 24px 22px; border: 0; border-radius: 18px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.step::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--brand); transform: scaleY(0); transition: transform .4s var(--ease); }
.step-num { grid-row: span 2; font: 600 .8125rem/2.1 var(--sans); letter-spacing: .08em; color: var(--text-3); }
.step-title { font: 400 1.75rem/1.15 var(--serif); letter-spacing: -.012em; color: var(--ink); }
.step-body { font-size: 1rem; line-height: 1.55; color: var(--text-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s var(--ease); }
.step-short { display: none; }
.step:hover { background: rgba(255,255,255,.55); }
.step.is-active { background: var(--surface); box-shadow: var(--sh-2); }
.step.is-active::before { transform: scaleY(1); }
.step.is-active .step-num { color: var(--ink); }
.step.is-active .step-body { max-height: 12em; opacity: 1; }
.step-detail { display: none; }
.stage { position: relative; display: grid; place-items: center; min-height: 620px; padding: 48px 24px 56px; border-radius: var(--r-xl); background: linear-gradient(165deg, var(--paper-2) 0%, var(--app-gray) 100%); overflow: hidden; }
.stage-panel { grid-area: 1 / 1; width: 100%; display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.stage-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.stage-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--text-3); }

/* phone frame and app screens (mirror voxpital-mobile) */
.phone { position: relative; width: 290px; aspect-ratio: 9 / 19.5; padding: 9px; border-radius: 50px; background: var(--ink); box-shadow: var(--sh-3), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 86px; height: 25px; border-radius: 14px; background: #000; transform: translateX(-50%); }
.screen { height: 100%; display: flex; flex-direction: column; border-radius: 41px; overflow: hidden; background: var(--app-bg); }
.app-head { display: flex; align-items: center; gap: 10px; padding: 52px 16px 13px; background: var(--app-head); color: #fff; }
.app-avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); background: rgba(42,89,168,.6); font: 800 .8125rem/1 var(--sans); }
.app-who { display: grid; gap: 2px; min-width: 0; }
.app-title { font: 800 .875rem/1.2 var(--sans); }
.app-sub { font: 600 .6875rem/1.3 var(--sans); color: var(--app-gray); }
.app-switch { margin-left: auto; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.16); font: 700 .5938rem/1 var(--sans); letter-spacing: .08em; }
.app-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 13px; background: var(--app-gray); }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 10px; font: 600 .75rem/1 var(--sans); color: var(--text); }
.seg .on { background: #fff; color: var(--app-accent); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.seg .i { width: 14px; height: 14px; }
.app-card { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--app-card); box-shadow: 0 1px 2px rgba(0,0,0,.05); font: 400 .75rem/1.55 var(--sans); color: var(--text); }
.app-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 34px; }
.app-wave i { width: 3px; height: 40%; border-radius: 2px; background: var(--signal); animation: bar 1s ease-in-out infinite alternate; }
.app-wave i:nth-child(2n) { height: 75%; animation-delay: -.35s; }
.app-wave i:nth-child(3n) { height: 100%; animation-delay: -.6s; }
.app-wave i:nth-child(5n) { height: 55%; animation-delay: -.2s; }
.app-mic { position: relative; width: 70px; height: 70px; margin: 2px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--mic); box-shadow: 0 12px 24px -4px rgba(255,59,92,.45); }
.app-mic::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,59,92,.45); animation: ripple 1.8s ease-out infinite; }
.app-mic b { width: 20px; height: 20px; border-radius: 5px; background: #fff; }
.app-btn { margin-top: auto; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--app-primary); color: #fff; font: 600 .8125rem/1 var(--sans); }
.app-btn.muted { background: var(--app-gray); color: var(--app-slate); }
.app-label { display: flex; justify-content: space-between; align-items: baseline; font: 700 .8125rem/1.2 var(--sans); color: var(--text); }
.app-label small { font: 500 .6875rem/1 var(--sans); color: var(--text-3); }
.app-items { display: grid; gap: 8px; }
.app-items li { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--app-card); }
.app-items .t { font: 600 .75rem/1.35 var(--sans); color: var(--text); }
.app-items .d { justify-self: start; padding: 4px 8px; border-radius: 999px; background: #EAF2FF; color: var(--app-accent); font: 600 .625rem/1 var(--sans); }
.app-items .acts { grid-row: 1 / 3; grid-column: 2; display: flex; align-items: center; gap: 6px; }
.app-items .acts span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--app-card); color: var(--app-slate); }
.app-items .acts .i { width: 13px; height: 13px; }
.app-hint { font: 500 .6875rem/1.45 var(--sans); color: var(--text-3); text-align: center; }

/* department web app */
.browser { width: min(100%, 560px); border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(13,37,61,.08); box-shadow: var(--sh-3); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--app-bg); border-bottom: 1px solid var(--app-card); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--app-border); }
.browser-url { flex: 1; margin-left: 12px; padding-left: 10px; height: 26px; border-radius: 8px; background: #fff; border: 1px solid var(--app-card); font: 500 .6875rem/26px var(--sans); color: var(--text-3); }
.queue { padding: 18px 20px 10px; }
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.queue-title { font: 700 1rem/1.2 var(--sans); color: var(--text); }
.queue-tabs { display: flex; gap: 6px; }
.queue-tabs span { padding: 6px 10px; border-radius: 999px; font: 600 .6875rem/1 var(--sans); color: var(--text-2); }
.queue-tabs .on { background: var(--ink); color: #fff; }
.queue-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px 0; border-top: 1px solid var(--app-card); }
.queue-row .t { font: 600 .8125rem/1.35 var(--sans); color: var(--text); }
.queue-row .m { font: 500 .6875rem/1.35 var(--sans); color: var(--text-3); }
.status { grid-row: 1 / 3; grid-column: 2; align-self: center; padding: 6px 10px; border-radius: 999px; font: 700 .6875rem/1 var(--sans); white-space: nowrap; }
.s-received { background: var(--app-gray); color: var(--app-slate); }
.s-ack { background: #EAF2FF; color: var(--app-accent); }
.s-progress { background: rgba(255,158,34,.16); color: #8a5200; }
.s-blocked { background: rgba(250,50,100,.12); color: #b1002c; }
.s-done { background: rgba(0,198,120,.14); color: #00794a; }

/* ---------- departments ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.split-media { position: relative; }
.photo-team { aspect-ratio: 4 / 3; }
.float-chip { position: absolute; right: clamp(-32px, -2vw, 12px); bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; background: #fff; box-shadow: var(--sh-3); font: 600 .8125rem/1.3 var(--sans); color: var(--ink); }
.float-chip .badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #EAF2FF; color: var(--app-accent); }
.float-chip small { display: block; font-weight: 500; color: var(--text-3); }
.dept-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; margin-top: 36px; }
.dept-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); font: 500 1.0625rem/1.3 var(--sans); color: var(--ink); transition: padding .3s var(--ease), color .3s; }
.dept-list li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: transform .3s var(--ease), background .3s; }
.dept-list li:hover { padding-left: 6px; }
.dept-list li:hover::after { background: var(--brand); transform: scale(1.3); }

/* ---------- principles (ink band) ---------- */
.band { background: var(--ink); color: #fff; }
.principles { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.principles-head { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 32px); }
.principles .eyebrow { color: rgba(255,255,255,.7); }
.principles .display-2 { color: #fff; }
.principles .lead { color: rgba(255,255,255,.74); }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.pr { display: grid; gap: 10px; padding: 26px 0 30px; border-top: 1px solid rgba(255,255,255,.14); }
.pr h3 { font: 600 1.0625rem/1.35 var(--sans); color: #fff; }
.pr-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: default; }
.pr h3 .i { color: var(--mint); }
.pr p { font-size: .9688rem; line-height: 1.6; color: rgba(255,255,255,.72); }

/* ---------- closing call to action ---------- */
.cta { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(400px, 38vw, 540px); border-radius: var(--r-xl); overflow: hidden; color: #fff; }
.cta picture, .cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,37,61,.92) 0%, rgba(13,37,61,.74) 40%, rgba(13,37,61,.12) 78%); }
.cta-inner { display: grid; gap: 22px; justify-items: start; max-width: 640px; padding: clamp(32px, 6vw, 80px); }
.cta .display-2 { color: #fff; }
.cta p { font-size: 1.0625rem; color: rgba(255,255,255,.84); max-width: 30rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: 56px 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 56px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { margin-top: 14px; max-width: 22rem; font-size: .9063rem; color: var(--text-2); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-h { margin-bottom: 14px; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a { font-size: .9375rem; color: var(--ink-2); }
.footer-cols address { font-style: normal; font-size: .9375rem; line-height: 1.65; color: var(--ink-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--text-3); }

/* ---------- document pages (privacy, terms) ---------- */
.doc-hero { display: grid; gap: 18px; max-width: 820px; padding-block: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.doc-hero .meta { font-size: .9375rem; color: var(--text-3); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(40px, 6vw, 104px); padding-bottom: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; font-size: .875rem; }
.toc a { display: block; padding: 7px 0 7px 16px; border-left: 2px solid var(--line); color: var(--text-2); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--line-2); }
.toc a.is-current { color: var(--ink); font-weight: 600; border-left-color: var(--teal); }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 56px; font: 400 1.875rem/1.2 var(--serif); letter-spacing: -.012em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--teal); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 600; color: var(--ink); background: var(--paper); }

/* ---------- support ---------- */
.support-hero { display: grid; gap: 20px; max-width: 760px; padding-block: clamp(32px, 5vw, 72px) clamp(32px, 4vw, 48px); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.card { position: relative; display: grid; align-content: start; gap: 10px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid rgba(13,37,61,.07); box-shadow: var(--sh-1); }
.card-kicker { display: flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.card-kicker .i { color: var(--teal); }
.email-big { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); word-break: break-word; }
.email-big:hover { text-decoration: none; color: var(--link); }
.card p { color: var(--text-2); }
.card address { font-style: normal; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.support-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding-block: clamp(56px, 7vw, 96px) clamp(80px, 10vw, 140px); }
.support-more h2 { font: 400 1.875rem/1.2 var(--serif); color: var(--ink); margin-bottom: 16px; }
.support-more ul { display: grid; gap: 12px; }
.support-more li { display: flex; gap: 12px; color: var(--ink-2); }
.support-more li .i { color: var(--teal); margin-top: 3px; }
.support-more p + p { margin-top: 12px; }
.notice { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-md); background: var(--paper-2); color: var(--ink); }

/* ---------- 404 ---------- */
.page-404 { min-height: calc(100vh - var(--nav-h) - 260px); display: grid; align-content: center; justify-items: start; gap: 22px; padding-block: 64px; }
.page-404 img { width: 64px; height: 64px; }

/* ---------- learning flywheel ---------- */
.section-tint { background: var(--paper-2); }
.flywheel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.fw-copy { display: grid; gap: 22px; }
.fw-facts { display: grid; gap: 16px; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.fw-facts li { display: flex; gap: 14px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.fw-facts .i { margin-top: 2px; color: var(--teal); }
.fw { display: grid; justify-items: center; gap: 20px; }
.fw-wheel { position: relative; width: min(100%, 520px); aspect-ratio: 1; }
.fw-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fw-track { fill: none; stroke: url(#fwg); stroke-width: .7; }
.fw-chev path { fill: none; stroke: #307EC4; stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; }
.fw-comet circle { fill: #20D8AC; filter: drop-shadow(0 0 1.4px rgba(32,216,172,.95)); }
.fw-tail { fill: none; stroke: url(#fwtail); stroke-width: 1.4; stroke-linecap: round; }
.fw-station { fill: var(--paper-2); stroke: #307EC4; stroke-width: .6; transform-box: fill-box; transform-origin: center; transition: fill .2s linear, stroke .2s linear, transform .3s var(--ease); }
.fw-station.is-active { fill: var(--ink); stroke: var(--ink); transform: scale(1.25); }
.fw-center { position: absolute; inset: 24.5%; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 8%; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-2); text-align: center; }
.fw-num { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; color: var(--text-3); }
.fw-title { font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem)/1.1 var(--serif); color: var(--ink); }
.fw-text { font-size: .9063rem; line-height: 1.5; color: var(--text-2); }
.fw-node { position: absolute; transform: translate(-50%, -50%); min-width: 0; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 .9375rem/1 var(--sans); color: var(--ink); cursor: pointer; box-shadow: var(--sh-1); transition: background-color .18s linear, border-color .18s linear, color .18s linear, box-shadow .3s, transform .3s var(--ease); }
.fw-node:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: var(--sh-2); }
.fw-node.is-active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 12px 24px -10px rgba(13,37,61,.6); }
.n1 { left: 50.00%; top: 3.00%; }
.n2 { left: 94.70%; top: 35.48%; }
.n3 { left: 77.63%; top: 88.02%; }
.n4 { left: 22.37%; top: 88.02%; }
.n5 { left: 5.30%; top: 35.48%; }
.fw-detail { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* flywheel review proposal card (step 4 screen) */
.proposal { display: grid; gap: 6px; margin: 6px 0 8px; padding: 14px; border-radius: 12px; background: var(--app-bg); border: 1px solid var(--app-card); }
.proposal .t { font: 700 .875rem/1.35 var(--sans); color: var(--text); }
.proposal .m { font: 500 .7188rem/1.45 var(--sans); color: var(--text-3); }
.proposal-tag { justify-self: start; padding: 4px 8px; border-radius: 999px; background: rgba(32,216,172,.16); color: #0b6f77; font: 700 .625rem/1 var(--sans); letter-spacing: .04em; }
.proposal-acts { display: flex; gap: 8px; margin-top: 6px; }
.proposal-acts span { padding: 8px 14px; border-radius: 999px; font: 600 .75rem/1 var(--sans); }
.pa-keep { background: var(--ink); color: #fff; }
.pa-discard { border: 1px solid var(--app-border); color: var(--text-2); }

/* ---------- motion ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,.5); } 100% { box-shadow: 0 0 0 9px rgba(255,59,92,0); } }
@keyframes bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .rise { animation: rise .8s var(--ease) both; }
.js .rise-2 { animation-delay: .08s; }
.js .rise-3 { animation-delay: .16s; }
.js .rise-4 { animation-delay: .24s; }
.js .rise-5 { animation-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .dictation { left: -16px; }
  .float-chip { right: 12px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .hero-grid, .steps, .split, .principles, .support-more { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { gap: 22px; }
  .photo-hero { max-height: none; margin: 0; }
  .dictation { position: relative; left: auto; bottom: auto; width: calc(100% - 24px); margin: -120px auto 0; }
  .steps-list { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 16px; background: var(--paper-2); }
  .step { grid-template-columns: 1fr; padding: 12px 8px; border-radius: 12px; text-align: center; }
  .step::before { display: none; }
  .step-num { grid-row: auto; line-height: 1; font-size: .6875rem; }
  .step-title, .step-body { display: none; }
  .step-short { display: block; font: 600 .9375rem/1.2 var(--sans); color: var(--ink); }
  .step-detail { display: block; font-size: 1rem; line-height: 1.6; color: var(--text-2); min-height: 4.8em; }
  .stage { min-height: 560px; padding: 32px 16px 48px; }
  .phone { width: 262px; }
  .principles-head { position: static; }
  .pr-grid { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 12px; }
  .pr { padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; align-content: start; }
  .pr-toggle { flex-direction: column; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9375rem; }
  .pr p { display: none; font-size: .9063rem; }
  .pr.is-open { grid-column: 1 / -1; }
  .pr.is-open p { display: block; }
  .photo-hero { aspect-ratio: 1; }
  .dict-label span + span, .dict-note { display: none; }
  .dict-foot { justify-content: flex-end; }
  .nav .btn-sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
  .brand img { height: 38px; }
  .cta { align-items: flex-end; }
  .cta::before { background: linear-gradient(0deg, rgba(13,37,61,.94) 0%, rgba(13,37,61,.7) 55%, rgba(13,37,61,.2) 100%); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .flywheel { grid-template-columns: minmax(0, 1fr); }
  .fw-wheel { width: min(calc(100% - 56px), 360px); }
  .fw-center { inset: 26%; padding: 6%; }
  .fw-text { display: none; }
  .fw-node { padding: 7px 10px; font-size: .8125rem; }
  .fw-ring { inset: 7%; width: 86%; height: 86%; }
  .n1 { left: 50.00%; top: 5.00%; }
  .n2 { left: 92.80%; top: 36.09%; }
  .n3 { left: 76.45%; top: 86.41%; }
  .n4 { left: 23.55%; top: 86.41%; }
  .n5 { left: 7.20%; top: 36.09%; }
  .fw-detail { display: block; max-width: 30rem; min-height: 3.2em; text-align: center; font-size: 1rem; line-height: 1.6; color: var(--text-2); }
  .toc { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dept-list { column-gap: 20px; }
  .dept-list li { font-size: .9688rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-cols { gap: 28px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
