@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/assets/fonts/CormorantGaramond-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/assets/fonts/CormorantGaramond-Italic.ttf') format('truetype'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Krasumashi'; src: url('/assets/fonts/Krasumashi-Regular.otf') format('opentype'); font-display: swap; }

/* Krasumashi: Studio (dark, default) and Ink (paper). Text tokens are kept at
   7:1 or better on their ground; faint text is at least 4.5:1. */
:root, :root[data-skin="studio"] {
  --bg: #0a0a0b; --panel: #121214; --panel-2: #19191c; --panel-3: #232327;
  --line: #2a2a2f; --line-strong: #4a4a52;
  --text: #f3f3f4; --muted: #b4b4bb; --faint: #8c8c95;
  --action: #3d6bff; --action-bg: #2f5ae8; --action-text: #fff; --action-soft: rgba(61,107,255,.16); --focus: #8aa6ff;
  --accent-text: #9db3ff;
  --ok: #3ccf7a; --warn: #f0b34a; --warn-soft: rgba(240,179,74,.13); --bad: #ff7a6e;
  --radius: 12px; --card: 16px; --bw: 1px;
  --font: 'Inter', system-ui, sans-serif; --display: 'Cormorant', Georgia, serif;
  --shadow: 0 24px 70px rgba(0,0,0,.5);
  color-scheme: dark;
}
:root[data-skin="ink"] {
  --bg: #fbfbf9; --panel: #ffffff; --panel-2: #f3f3ef; --panel-3: #e9e9e4;
  --line: #deded8; --line-strong: #111;
  --text: #111; --muted: #47474c; --faint: #66666b;
  --action: #111; --action-bg: #111; --action-text: #fff; --action-soft: rgba(17,17,17,.07); --focus: #2f5ae8;
  --accent-text: #111;
  --ok: #1c7a44; --warn: #8a5a00; --warn-soft: rgba(138,90,0,.09); --bad: #b3261e;
  --radius: 6px; --card: 8px; --bw: 1.5px;
  --display: 'Krasumashi', 'Cormorant', Georgia, serif;
  --shadow: 0 18px 50px rgba(0,0,0,.12);
  color-scheme: light;
}
:root { font-size: 112.5%; } /* 18px base: large type for every reader */
:root[data-size="l"] { font-size: 125%; }
:root[data-size="xl"] { font-size: 140%; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-anchor: none; }
body, .stage { overflow-anchor: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--action); color: var(--action-text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
:root[data-skin="studio"] .skin-ink, :root[data-skin="ink"] .skin-studio { display: none !important; }
.eyebrow { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow span { color: var(--faint); }
.display { margin: 0; font: 400 clamp(2.2rem, 1.4rem + 3.6vw, 4rem)/1.04 var(--display); letter-spacing: -.01em; }
:root[data-skin="ink"] .display { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem); line-height: 1.1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: 0 1.1rem; border-radius: var(--radius); border: var(--bw) solid var(--line-strong); background: var(--panel-2); font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn.primary { background: var(--action-bg); border-color: var(--action-bg); color: var(--action-text); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.big { min-height: 3.3rem; padding: 0 1.4rem; font-size: 1.02rem; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.small { min-height: 2.4rem; padding: 0 .8rem; font-size: .86rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ''; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.chip-btn[aria-pressed="true"] { color: var(--text); background: var(--warn-soft); border-color: var(--warn); }
.icon-btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); border: var(--bw) solid var(--line); background: transparent; color: var(--text); }
.icon-btn:hover { background: var(--panel-2); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; }
.icon-btn.small { width: 2.4rem; height: 2.4rem; }
.link { border: 0; background: none; padding: 0 .2rem; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; font-size: .9em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.dock-row > .btn { min-width: 0; }
.bar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.8rem, 3vw, 2rem); padding: .7rem clamp(1rem, 3vw, 2rem); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: var(--bw) solid var(--line); }
.brand { display: flex; align-items: center; gap: .65rem; background: none; border: 0; padding: .2rem; text-align: left; }
.brand img { width: 1.9rem; height: auto; }
.brand b { display: block; font: 400 1.05rem/1 'Krasumashi', var(--font); letter-spacing: .01em; }
.brand small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.bar-tools { display: flex; align-items: center; gap: .6rem; }
.save { font-size: .76rem; color: var(--faint); white-space: nowrap; }
.save[data-kind="ok"]::before { content: '\25CF  '; color: var(--ok); }
.save[data-kind="warn"] { color: var(--warn); }

/* whole-session meter */
.meter { display: grid; gap: .35rem; min-width: 0; max-width: 760px; width: 100%; justify-self: center; }
.meter-track { position: relative; height: 8px; border-radius: 99px; background: var(--panel-3); overflow: visible; }
.meter-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--action), color-mix(in srgb, var(--action) 60%, var(--text))); width: 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
:root[data-skin="ink"] .meter-fill { background: var(--text); }
.meter-ticks i { position: absolute; top: -2px; width: 2px; height: 12px; background: var(--bg); transform: translateX(-1px); }
.meter-ticks b { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); transform: translate(-50%, -50%); transition: left .6s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 0 1px var(--line-strong); }
.meter-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--muted); }
.meter-where { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-left { flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- stage + orb ---------- */
.stage { position: relative; display: grid; align-content: start; justify-items: center; padding: clamp(1rem, 3vw, 2.4rem) clamp(1rem, 4vw, 3rem) 2rem; min-width: 0; }
.orb-wrap { position: relative; width: 112px; height: 112px; margin: 0 auto .4rem; transition: width .7s cubic-bezier(.2,.8,.2,1), height .7s cubic-bezier(.2,.8,.2,1), margin .7s; pointer-events: none; }
.orb-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage[data-mode="hero"] .orb-wrap, .stage[data-mode="tension"] .orb-wrap { width: min(300px, 62vw); height: min(300px, 62vw); margin-bottom: .2rem; }
.stage[data-mode="tension"] .orb-wrap { width: min(170px, 40vw); height: min(170px, 40vw); }
.stage[data-mode="page"] .orb-wrap { width: 84px; height: 84px; }
.stage[data-listening="true"] .orb-wrap { width: 168px; height: 168px; }
.orb-fallback::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--text), var(--action) 55%, transparent 72%); opacity: .8; transform: scale(calc(1 + var(--level, 0) * .25)); transition: transform .1s; animation: breathe 4s ease-in-out infinite; }
.orb-fallback.warm::before { background: radial-gradient(circle at 35% 30%, var(--text), var(--warn) 55%, transparent 72%); }
@keyframes breathe { 50% { opacity: .6; } }

.turn { width: 100%; max-width: 820px; min-width: 0; }
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } .orb-wrap { transition: none; } }

/* the "spoken" line */
.q-text { margin: .5rem 0 0; font: 500 clamp(1.55rem, 1.05rem + 2.1vw, 2.45rem)/1.22 var(--font); letter-spacing: -.018em; text-wrap: pretty; outline: none; }
h1:focus { outline: none; }
.caret { display: inline-block; width: .08em; height: 1em; margin-left: .06em; vertical-align: -.12em; background: var(--action); animation: blink 1s steps(1) infinite; }
:root[data-skin="ink"] .caret { background: var(--text); }
.typed-done .caret { opacity: 0; animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.why { margin: .9rem 0 0; color: var(--muted); font: italic 400 1.18rem/1.45 'Cormorant', Georgia, serif; max-width: 60ch; }
:root[data-skin="ink"] .why { color: var(--muted); }
.q .eyebrow { text-align: left; }

/* ---------- hero screens ---------- */
.hero { text-align: center; display: grid; justify-items: center; gap: .2rem; }
.hero .eyebrow { margin-bottom: .6rem; }
.hero .lede { margin: 1rem auto 0; max-width: 54ch; color: var(--muted); font-size: 1.08rem; }
.resume { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius); background: var(--panel-2); border: var(--bw) solid var(--line); }
.ch-num { font: 400 1rem/1 var(--font); letter-spacing: .2em; color: var(--faint); margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.ch-nudge { margin: .9rem 0 0; font: italic 400 1.3rem/1.3 'Cormorant', Georgia, serif; color: var(--text); }
.ch-meta { margin: 1rem 0 0; font-size: .86rem; color: var(--faint); letter-spacing: .04em; }
.stage-mark { margin: 0 0 1rem; font-size: .86rem; color: var(--muted); }
.stage-mark span { display: inline-block; padding: .25rem .7rem; margin-right: .4rem; border-radius: 99px; border: var(--bw) solid var(--line-strong); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.depth { border: 0; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; width: 100%; max-width: 640px; }
.depth legend { width: 100%; text-align: center; font-weight: 600; margin-bottom: .8rem; }
.depth-card { display: grid; gap: .25rem; text-align: left; padding: 1.1rem 1.2rem; border-radius: var(--card); border: var(--bw) solid var(--line); background: var(--panel); transition: border-color .15s, background .15s; }
.depth-card b { font-size: 1.05rem; }
.depth-card span { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.depth-card small { color: var(--faint); font-size: .82rem; }
.depth-card:hover { border-color: var(--line-strong); }
.depth-card[aria-pressed="true"] { border-color: var(--action); background: var(--action-soft); box-shadow: inset 0 0 0 1px var(--action); }
.promises { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .45rem; color: var(--muted); font-size: .92rem; }
.promises li::before { content: '\2014  '; color: var(--faint); }
.next-steps { text-align: left; max-width: 560px; margin: 1.4rem auto 0; padding-left: 1.4rem; display: grid; gap: .8rem; color: var(--muted); }
.next-steps b { color: var(--text); font-weight: 600; }

/* ---------- answers ---------- */
.answer { margin-top: 1.5rem; }
.choose-hint { margin: 0 0 .7rem; font-size: .86rem; color: var(--faint); }
@media (hover: none) { .kbd-hint { display: none; } }
.opts { display: grid; gap: .55rem; }
.opts.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-wrap { display: grid; border-radius: var(--radius); }
.opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; width: 100%; min-height: 3.4rem; padding: .7rem .95rem; text-align: left; border-radius: var(--radius); border: var(--bw) solid var(--line); background: var(--panel); transition: border-color .15s, background .15s, transform .12s; }
.opt:hover { border-color: var(--line-strong); }
.opt:active { transform: scale(.995); }
.opt-key { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 7px; border: var(--bw) solid var(--line-strong); font-size: .8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt-key.rank { border-radius: 50%; border-style: dashed; }
.opt[aria-pressed="true"] .opt-key.rank { border-style: solid; }
.opt-lbl { font-size: 1rem; line-height: 1.35; font-weight: 500; }
.opt-lbl small { display: block; margin-top: .15rem; font-size: .84rem; font-weight: 400; color: var(--muted); }
.opt-tick { width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; color: transparent; border: var(--bw) solid var(--line-strong); }
.opt-tick svg { width: 1rem; height: 1rem; }
.opt[aria-pressed="true"] { border-color: var(--action); background: var(--action-soft); box-shadow: inset 0 0 0 1px var(--action); }
.opt[aria-pressed="true"] .opt-key { background: var(--action-bg); border-color: var(--action-bg); color: var(--action-text); }
.opt[aria-pressed="true"] .opt-tick { background: var(--action-bg); border-color: var(--action-bg); color: var(--action-text); }
.opt-note { padding: .45rem 0 .2rem 2.7rem; }
.opt-note input, .field input, .field textarea, .link-row input { width: 100%; min-height: 3rem; padding: .65rem .85rem; border-radius: var(--radius); border: var(--bw) solid var(--line); background: var(--panel-2); font-size: 1rem; }
.opt-note input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.max-note { margin: .6rem 0 0; color: var(--warn); font-size: .9rem; }
.unsure-note { margin: 1rem 0 0; padding: .7rem .9rem; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 var(--radius) var(--radius) 0; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.field { display: grid; gap: .35rem; }
.field > span { font-size: .86rem; color: var(--muted); font-weight: 500; }
.field textarea { min-height: 5rem; resize: vertical; line-height: 1.5; }
.q[data-type="fields"] .field:has(textarea) { grid-column: 1 / -1; }

.spectrum { display: grid; gap: 1.5rem; }
.spec-ends { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: .98rem; }
.spec input[type="range"] { width: 100%; height: 2.6rem; margin: .2rem 0 0; background: transparent; -webkit-appearance: none; appearance: none; }
.spec input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--line-strong), var(--panel-3) 50%, var(--line-strong)); }
.spec input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--panel-3); }
.spec input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--bg); border: 2px dashed var(--faint); }
.spec input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 2px dashed var(--faint); }
.spec.set input[type="range"]::-webkit-slider-thumb { background: var(--action-bg); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--action-bg); }
.spec.set input[type="range"]::-moz-range-thumb { background: var(--action-bg); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--action-bg); }
.spec-word { margin: .1rem 0 0; font-size: .9rem; color: var(--faint); }
.spec.set .spec-word { color: var(--accent-text); font-weight: 500; }

.matrix { display: grid; gap: .6rem; }
.mrow { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: .5rem 1rem; align-items: center; padding: .7rem .9rem; border-radius: var(--radius); background: var(--panel); border: var(--bw) solid var(--line); }
.mrow-lbl { font-weight: 550; }
.mrow-opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 2.6rem; padding: 0 1rem; border-radius: 99px; border: var(--bw) solid var(--line-strong); background: transparent; color: var(--muted); font-weight: 550; font-size: .9rem; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* services */
.svc-group { margin-bottom: 1.4rem; }
.svc-group > .eyebrow { margin-bottom: .7rem; }
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.svc { display: grid; align-content: start; gap: .4rem; padding: 1rem 1.1rem 1.1rem; text-align: left; border-radius: var(--card); border: var(--bw) solid var(--line); background: var(--panel); transition: border-color .15s, background .15s; }
.svc:hover { border-color: var(--line-strong); }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-n { font: 400 1.6rem/1 var(--display); color: var(--faint); }
.svc b { font-size: 1.02rem; line-height: 1.3; }
.svc-line { color: var(--muted); font-size: .9rem; }
.svc-inc { color: var(--faint); font-size: .82rem; line-height: 1.5; }
.svc-head { margin: 0 0 1.4rem; padding: 1.2rem 1.3rem; border-radius: var(--card); border: var(--bw) solid var(--line); background: var(--panel-2); }
.svc-head h2 { margin: .2rem 0 .5rem; font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.15 'Cormorant', Georgia, serif; }
.svc-head p { margin: 0; color: var(--muted); max-width: 66ch; }
.svc-head .svc-fees { margin-top: .7rem; font-size: .86rem; color: var(--faint); letter-spacing: .02em; }
.svcs.standard { grid-template-columns: 1fr; }
.svc-sub { margin: 1.6rem 0 .3rem; font: 400 1.45rem/1.2 'Cormorant', Georgia, serif; }
.svc-sub-intro { margin: 0 0 .8rem; color: var(--muted); font-size: .95rem; max-width: 66ch; }
.svc.small .svc-desc { font-size: .86rem; }
.svc-desc { color: var(--muted); font-size: .92rem; line-height: 1.55; max-width: 70ch; }
.svc.small .svc-top { justify-content: flex-end; }
.svc.accent { border-style: dashed; }
.svc[aria-pressed="true"] { border-color: var(--action); background: var(--action-soft); box-shadow: inset 0 0 0 1px var(--action); }
.svc[aria-pressed="true"] .opt-tick { background: var(--action-bg); border-color: var(--action-bg); color: var(--action-text); }
.a11y-panel { padding: 1.2rem 1.3rem; border-radius: var(--card); border: var(--bw) solid var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--panel)); }
.a11y-panel .eyebrow { display: flex; align-items: center; gap: .4rem; color: var(--ok); }
.a11y-panel .eyebrow svg { width: 1rem; height: 1rem; }
.a11y-panel h2 { margin: .4rem 0 .3rem; font: 400 1.5rem/1.2 var(--display); }
.a11y-panel p { margin: 0 0 .6rem; color: var(--muted); }
.a11y-panel ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.scope-note { margin: 1.2rem 0 0; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--panel-2); color: var(--muted); font-size: .92rem; border-left: 3px solid var(--line-strong); }

/* earlier answers */
.prior { margin-top: 1.2rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .85rem 1rem; border-radius: var(--radius); border: var(--bw) dashed var(--line-strong); background: var(--panel); }
.prior p { margin: 0; flex: 1 1 18rem; }
.prior .eyebrow { display: block; margin-bottom: .25rem; }

/* attachments */
.attach-hint { display: flex; gap: .5rem; align-items: center; margin: 1rem 0 0; color: var(--faint); font-size: .88rem; }
.attach-hint svg { width: 1rem; height: 1rem; flex: none; }
.att-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.att { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: var(--radius); background: var(--panel-2); border: var(--bw) solid var(--line); min-width: 0; }
.att a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att audio { flex: 1; min-width: 0; height: 2.4rem; }
.att-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 8px; background: var(--panel-3); flex: none; }
.att-ico svg { width: 1.1rem; height: 1.1rem; }
.att-thumb { width: 2.4rem; height: 2.4rem; object-fit: cover; border-radius: 8px; flex: none; }
.att-meta { color: var(--faint); font-size: .8rem; white-space: nowrap; }

/* tension */
.tension .eyebrow { color: var(--warn); }
.quotes { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .55rem; }
.quotes li { padding: .75rem 1rem; border-radius: var(--radius); background: var(--warn-soft); border-left: 3px solid var(--warn); }
.quotes .eyebrow { display: block; margin-bottom: .2rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .8rem; }

/* ---------- dock / composer ---------- */
.dock { position: sticky; bottom: 0; z-index: 9; padding: .7rem clamp(1rem, 3vw, 2rem) calc(.8rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: var(--bw) solid var(--line); display: grid; justify-items: center; gap: .55rem; }
.dock > * { width: 100%; max-width: 820px; }
.dock-row { display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap; }
.spacer { flex: 1; }
.composer { display: grid; gap: .45rem; }
.compose-row { display: flex; align-items: flex-end; gap: .5rem; padding: .35rem .35rem .35rem 1rem; border-radius: calc(var(--radius) + 6px); border: var(--bw) solid var(--line-strong); background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.compose-row:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.compose-row textarea { flex: 1; min-height: 2.9rem; max-height: 38vh; padding: .7rem 0; border: 0; background: transparent; resize: none; outline: none; line-height: 1.45; font-size: 1.02rem; }
.composer.main .compose-row textarea { min-height: 3.6rem; }
.compose-row textarea::placeholder { color: var(--faint); }
.mic { flex: none; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 0; background: var(--action-bg); color: var(--action-text); transition: transform .15s, background .15s; }
.mic svg { width: 1.35rem; height: 1.35rem; }
.mic:hover { transform: scale(1.05); }
.mic.on { background: var(--bad); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 50%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.rec { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); padding: 0 .4rem; }
.rec-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--bad); animation: blink 1s steps(1) infinite; }
.rec-time { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

/* ---------- review ---------- */
.review { display: grid; gap: 1.2rem; }
.review-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.review-stats div { padding: 1rem 1.1rem; border-radius: var(--card); background: var(--panel); border: var(--bw) solid var(--line); }
.review-stats b { display: block; font: 300 2.1rem/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.review-stats span { color: var(--muted); font-size: .88rem; }
.review-block { padding: 1.1rem 1.2rem; border-radius: var(--card); background: var(--panel); border: var(--bw) solid var(--line); }
.review-block.warn { border-color: var(--warn); }
.review-block h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.review-block > p { margin: 0 0 .7rem; color: var(--muted); font-size: .92rem; }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rv-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rv-chapters { display: grid; gap: .5rem; }
.rv-ch { border-radius: var(--card); border: var(--bw) solid var(--line); background: var(--panel); }
.rv-ch summary { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .9rem 1.1rem; cursor: pointer; list-style: none; min-height: 3.4rem; }
.rv-ch summary::-webkit-details-marker { display: none; }
.rv-n { color: var(--faint); font-variant-numeric: tabular-nums; font-size: .86rem; letter-spacing: .1em; }
.rv-t { font-weight: 600; }
.rv-c { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.rv-qs { list-style: none; margin: 0; padding: 0 1.1rem .8rem; display: grid; }
.rv-qs li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .8rem 0; border-top: var(--bw) solid var(--line); }
.rv-q { margin: 0; color: var(--muted); font-size: .9rem; }
.rv-a { margin: .2rem 0 0; }
.rv-a.none { color: var(--faint); font-style: italic; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 99px; background: var(--panel-3); color: var(--muted); font-size: .76rem; }
.confirm { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--card); border: var(--bw) solid var(--line-strong); background: var(--panel); cursor: pointer; }
.confirm input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; accent-color: var(--action); flex: none; }

/* ---------- drawer ---------- */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw; padding: 0; border: 0; border-left: var(--bw) solid var(--line); background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.drawer::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(3px); }
.drawer[open] { animation: slide .3s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-in { display: grid; gap: 1.3rem; padding: 1.3rem 1.3rem 2.4rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.drawer-head h2 { margin: .3rem 0 0; font: 400 1.7rem/1.1 var(--display); }
.drawer-meter p { margin: .5rem 0 0; color: var(--muted); font-size: .86rem; }
.map { display: grid; gap: .15rem; }
.map-stage { margin: .8rem 0 .2rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.map-ch { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .5rem; align-items: center; min-height: 2.9rem; padding: 0 .7rem; border-radius: var(--radius); border: 0; background: transparent; text-align: left; }
.map-ch:hover { background: var(--panel-2); }
.map-ch.here { background: var(--panel-3); }
.map-n { color: var(--faint); font-size: .8rem; font-variant-numeric: tabular-nums; }
.map-c { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.map-c svg { width: 1rem; height: 1rem; color: var(--ok); }
.map-c i { width: 1rem; height: 1rem; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--p) * 360deg), var(--panel-3) 0); }
.drawer-sec { display: grid; gap: .6rem; padding-top: 1.1rem; border-top: var(--bw) solid var(--line); }
.drawer-sec h3 { margin: 0; font-size: .95rem; }
.drawer-sec p { margin: 0; font-size: .86rem; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: calc(var(--radius) + 3px); background: var(--panel-2); border: var(--bw) solid var(--line); width: fit-content; }
.seg button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--muted); min-height: 2.6rem; min-width: 2.8rem; padding: 0 .9rem; border-radius: var(--radius); font-weight: 600; }
.seg button svg { width: 1rem; height: 1rem; }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.toggle { display: flex; align-items: center; gap: .6rem; min-height: 3rem; padding: 0 .2rem; border: 0; background: none; text-align: left; }
.toggle svg { width: 1.2rem; height: 1.2rem; }
.toggle span { flex: 1; }
.toggle i { width: 2.6rem; height: 1.5rem; border-radius: 99px; background: var(--panel-3); position: relative; transition: background .2s; border: var(--bw) solid var(--line-strong); }
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.toggle[aria-pressed="true"] i { background: var(--action-bg); border-color: var(--action-bg); }
.toggle[aria-pressed="true"] i::after { transform: translateX(1.1rem); background: #fff; }
.link-row { display: flex; gap: .4rem; }
.link-row input { font-size: .82rem; min-height: 2.4rem; }

/* gate + toast */
.gate { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; }
.gate-mark { width: 3.4rem; }
.gate p { color: var(--muted); max-width: 40ch; margin: 0; }
.toast { position: fixed; left: 50%; bottom: calc(7.5rem + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 50; max-width: min(92vw, 520px); padding: .8rem 1.1rem; border-radius: var(--radius); background: var(--text); color: var(--bg); font-weight: 550; font-size: .92rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #111; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; padding: .55rem 1rem; }
  .brand span, .save { display: none; }
  .brand img { width: 1.7rem; }
  .meter-meta { font-size: .72rem; }
  .meter-where { display: none; }
  .meter-meta { justify-content: flex-start; }
  .stage { padding: .8rem 1rem 1.4rem; }
  .orb-wrap { width: 76px; height: 76px; }
  .stage[data-mode="hero"] .orb-wrap { width: min(220px, 56vw); height: min(220px, 56vw); }
  .stage[data-listening="true"] .orb-wrap { width: 120px; height: 120px; }
  .opts.many { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .depth { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 1fr; }
  .review-stats { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .review-stats div { padding: .7rem; }
  .review-stats b { font-size: 1.7rem; }
  .hide-sm { display: none; }
  .dock { padding: .5rem 1rem calc(.6rem + env(safe-area-inset-bottom)); gap: .45rem; }
  .dock-row .btn.big { padding: 0 1rem; }
  .dock-row .btn { padding: 0 .7rem; }
  .why { font-size: 1.08rem; }
  .opt-note { padding-left: 0; }
}

/* dock buttons give way on narrow screens; the primary action never shrinks */
.dock-row { min-width: 0; }
.dock-row .btn { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.dock-row .btn.primary { flex-shrink: 0; }
.show-sm { display: none; }
@media (max-width: 720px) { .show-sm { display: inline; } .dock-row { gap: .2rem; } .dock-row .btn.ghost { padding: 0 .55rem; } }
/* numerals stay in Inter: the display faces use old-style or stylised figures */
.svc-n { font-family: var(--font) !important; font-weight: 300; font-size: 1.3rem !important; letter-spacing: .04em; }
/* In Ink, the Krasumashi face is kept for the large display lines; smaller headings use Cormorant for legibility. */
.a11y-panel h2, .drawer-head h2 { font-family: 'Cormorant', Georgia, serif; }
