/* Calliphon — shared styles */
:root {
  --paper: #ffffff;
  --wash: #f5f6fa;
  --ink: #0f1a2e;
  --slate: #556070;
  --faint: #8a93a3;
  --line: #e4e7ee;
  --accent: #2f3bd9;
  --accent-wash: #eef0fe;
  --miss: #d93a40;
  --miss-wash: #fdecec;
  --ok: #12946a;
  --ok-wash: #e7f6f0;
  --radius-s: 6px;
  --radius-m: 10px;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --ipa: "Charis SIL", "Noto Serif", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); font-feature-settings: "ss01";
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ipa { font-family: var(--ipa); }
code, pre, .mono { font-family: var(--mono); font-size: 13.5px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; font-size: 15px; color: var(--slate); }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 14.5px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #c9ceda; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #1f2c45; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { border-color: transparent; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn.danger { color: var(--miss); }

/* ---------- landing ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 20px; }
.hero p.lead { font-size: 19px; color: var(--slate); max-width: 34em; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--faint); }

/* the alignment strip: the signature element */
.strip { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); overflow: hidden; }
.strip .bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--slate); }
.strip .bar .say { color: var(--ink); font-weight: 600; font-size: 15px; }
.strip .bar .score { margin-left: auto; font-weight: 700; color: var(--ink); font-size: 15px; }
.strip .body { padding: 18px 16px 8px; }
.rows { display: grid; grid-template-columns: 64px 1fr; row-gap: 6px; align-items: center; }
.rows .lbl { font-size: 12.5px; color: var(--faint); }
.cells { display: flex; gap: 4px; flex-wrap: nowrap; }
.cell { flex: 1 1 0; min-width: 0; height: 40px; display: grid; place-items: center; border-radius: 5px; font: 400 21px/1 var(--ipa); background: var(--wash); }
.cell.gap { background: transparent; }
.cell.ok { background: var(--ok-wash); color: #0d6e50; }
.cell.miss { background: var(--miss-wash); color: var(--miss); box-shadow: inset 0 0 0 1.5px var(--miss); }
.cell.wordsep { flex: 0 0 10px; background: none; }
.words { display: flex; gap: 4px; margin: 2px 0 0 64px; font-size: 12.5px; color: var(--faint); }
.words span { flex-grow: 1; flex-basis: 0; text-align: center; border-top: 1px solid var(--line); padding-top: 4px; }
.wave { height: 44px; margin: 14px 0 0 64px; }
.wave rect { fill: #cdd2de; }
.wave rect.hot { fill: var(--miss); }
.strip .foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.strip .foot > div { padding: 14px 16px; font-size: 14px; }
.strip .foot > div + div { border-left: 1px solid var(--line); }
.strip .foot b { display: block; font-size: 13px; color: var(--faint); font-weight: 500; margin-bottom: 2px; }
.reveal .heard .cell { opacity: 0; transform: translateY(4px); }
.reveal.go .heard .cell { opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
@media (prefers-reduced-motion: reduce) { .reveal .heard .cell { opacity: 1; transform: none; } }

.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; color: var(--faint); font-size: 14.5px; }
.logos .wrap { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.logos strong { color: var(--ink); font-weight: 600; }

section.block { padding: 88px 0; }
section.block.tint { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 14px; font-weight: 700; max-width: 18em; }
.block p.sub { color: var(--slate); font-size: 17.5px; max-width: 38em; margin: 0 0 44px; }

.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.signals > div { padding: 26px 28px 8px 0; }
.signals > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.signals h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.signals p { color: var(--slate); margin: 0 0 14px; font-size: 15.5px; }
.signals .eg { font-family: var(--ipa); font-size: 19px; color: var(--ink); }
.signals .eg s { color: var(--miss); text-decoration-thickness: 1.5px; }
.signals .eg ins { color: var(--ok); text-decoration: none; }

.codewrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 6px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--slate); }
.steps b { font-size: 16.5px; }
.steps span { color: var(--slate); font-size: 15px; }

.code { border: 1px solid var(--line); border-radius: var(--radius-m); background: #fbfbfd; overflow: hidden; }
.code .tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.code .tabs button { border: 0; background: none; padding: 9px 12px; font: 500 13.5px var(--sans); color: var(--slate); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.code .tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; line-height: 1.65; color: #26324a; }
.code .k { color: var(--accent); } .code .s { color: #0d7a57; } .code .c { color: var(--faint); } .code .n { color: #b4441f; }
.code .copy { margin-left: auto; align-self: center; }

.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.fields div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 16px; font-size: 15px; }
.fields code { color: var(--accent); font-size: 13.5px; }
.fields span { color: var(--slate); }

.price { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.rate { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; background: var(--paper); }
.rate .big { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.rate .big small { font-size: 17px; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.rate ul { margin: 22px 0 24px; padding: 0; list-style: none; }
.rate li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.rate li span:last-child { color: var(--slate); }
.calc label { display: block; font-size: 14px; color: var(--slate); margin-bottom: 8px; }
.calc input[type=range] { width: 100%; accent-color: var(--ink); }
.calc .out { display: flex; justify-content: space-between; margin-top: 14px; font-size: 15px; }
.calc .out b { font-size: 22px; }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--slate); margin: 10px 0 0; max-width: 46em; }

.closer { padding: 88px 0; text-align: left; }
.closer .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.closer h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; margin: 0; max-width: 14em; line-height: 1.08; }

footer.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--slate); font-size: 14px; }
footer.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
footer.foot h4 { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
footer.foot a { display: block; text-decoration: none; padding: 3px 0; }
footer.foot a:hover { color: var(--ink); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.docs nav { position: sticky; top: 88px; align-self: start; font-size: 14.5px; }
.docs nav h5 { margin: 18px 0 6px; font-size: 13px; color: var(--faint); font-weight: 500; }
.docs nav a { display: block; padding: 5px 10px; border-radius: 5px; text-decoration: none; color: var(--slate); }
.docs nav a:hover { background: var(--wash); color: var(--ink); }
.docs article { max-width: 760px; }
.docs article h1 { font-size: 38px; letter-spacing: -.03em; margin: 0 0 10px; }
.docs article h2 { font-size: 24px; letter-spacing: -.015em; margin: 52px 0 10px; padding-top: 12px; scroll-margin-top: 80px; }
.docs article h3 { font-size: 17px; margin: 28px 0 8px; }
.docs article p, .docs article li { color: #2c3648; }
.docs article .code { margin: 14px 0 20px; }
.endpoint { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px 10px; }
.endpoint b { color: var(--ok); }
table.ref { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0 20px; }
table.ref th { text-align: left; font-weight: 600; color: var(--slate); font-size: 13px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
table.ref td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ref td:first-child { white-space: nowrap; }
table.ref code { color: var(--accent); }
.pill { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--wash); color: var(--slate); border: 1px solid var(--line); }
.pill.req { background: var(--accent-wash); color: var(--accent); border-color: #d9ddfc; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-wash); padding: 12px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 15px; margin: 16px 0; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .side { background: var(--wash); border-right: 1px solid var(--line); padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .side blockquote { margin: 0; font-size: 22px; line-height: 1.4; letter-spacing: -.01em; max-width: 22em; }
.auth .form { display: grid; place-items: center; padding: 40px 24px; }
.auth form { width: 100%; max-width: 380px; }
.auth h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth p.sub { color: var(--slate); margin: 0 0 26px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select { height: 42px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 12px; font: 15px var(--sans); color: var(--ink); background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.auth .btn { width: 100%; justify-content: center; height: 44px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.swap { margin-top: 18px; font-size: 14.5px; color: var(--slate); text-align: center; }

/* ---------- dashboard ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side-nav { border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.side-nav .brand { padding: 4px 8px 18px; }
.side-nav a.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--slate); font-size: 14.5px; font-weight: 500; }
.side-nav a.item svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.side-nav a.item:hover { background: var(--wash); color: var(--ink); }
.side-nav a.item[aria-current="page"] { background: var(--wash); color: var(--ink); }
.side-nav .spacer { flex: 1; }
.side-nav .who { border-top: 1px solid var(--line); padding: 12px 8px 0; font-size: 13.5px; color: var(--slate); }
.side-nav .who b { display: block; color: var(--ink); }
.main { padding: 28px 40px 64px; min-width: 0; }
.main header.page { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.main h1 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.main header.page p { margin: 4px 0 0; color: var(--slate); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 24px; }
.stats > div { padding: 18px 20px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .k { font-size: 13.5px; color: var(--slate); }
.stats .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.stats .d { font-size: 13px; color: var(--faint); }
.panel { border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 24px; background: #fff; }
.panel > .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel > .ph h2 { font-size: 15.5px; margin: 0; }
.panel > .pb { padding: 18px; }
.chart { height: 220px; }
.chart .bar { fill: var(--ink); }
.chart .bar.err { fill: var(--miss); }
.chart text { fill: var(--faint); font-size: 11px; font-family: var(--sans); }
.chart line { stroke: var(--line); }
table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.list th { text-align: left; color: var(--slate); font-weight: 500; font-size: 13px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
table.list td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
table.list tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status.err::before { background: var(--miss); }
.keytext { font-family: var(--mono); font-size: 13px; background: var(--wash); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; }
.balance { display: flex; align-items: baseline; gap: 10px; }
.balance .v { font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.amounts button { height: 54px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; font: 600 17px var(--sans); cursor: pointer; color: var(--ink); }
.amounts button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.row2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.toggle:first-child { border-top: 0; }
.toggle small { display: block; color: var(--slate); }
.switch { width: 38px; height: 22px; border-radius: 99px; background: #d5d9e2; position: relative; border: 0; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { left: 19px; }
.modal { position: fixed; inset: 0; background: rgba(15,26,46,.35); display: none; place-items: center; z-index: 50; padding: 16px; }
.modal.open { display: grid; }
.modal .box { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; padding: 24px; border: 1px solid var(--line); }
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.modal p { color: var(--slate); margin: 0 0 18px; font-size: 15px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.secret { display: flex; gap: 8px; }
.secret input { flex: 1; font-family: var(--mono); font-size: 13px; height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: var(--wash); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14.5px; z-index: 60; display: none; }
.toast.show { display: block; }
.empty { padding: 40px 18px; text-align: center; color: var(--slate); }

/* playground */
.rec { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.recbtn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.recbtn i { width: 18px; height: 18px; border-radius: 50%; background: var(--miss); display: block; }
.recbtn.on i { border-radius: 4px; }
textarea.json { width: 100%; min-height: 280px; font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfbfd; color: #26324a; resize: vertical; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .codewrap, .price, .row2 { grid-template-columns: 1fr; }
  .signals { grid-template-columns: 1fr; }
  .signals > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .fields { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs nav { position: static; display: none; }
  footer.foot .wrap { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .app { grid-template-columns: 1fr; }
  .side-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav .spacer, .side-nav .who { display: none; }
  .main { padding: 24px 16px 56px; }
  .auth { grid-template-columns: 1fr; }
  .auth .side { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .top .right .btn.ghost { display: none; }
  .hero { padding-top: 40px; }
  .cell { font-size: 16px; height: 34px; }
  .rows { grid-template-columns: 50px 1fr; }
  .words, .wave { margin-left: 50px; }
  .fields div { grid-template-columns: 1fr; gap: 4px; }
  .amounts { grid-template-columns: 1fr 1fr; }
  table.list th:nth-child(n+4), table.list td:nth-child(n+4) { display: none; }
}
footer.foot a.brand { display: flex; }

/* ---------- metrics band ---------- */
.metrics { border-bottom: 1px solid var(--line); }
.metrics .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics .m { padding: 30px 24px 26px 0; }
.metrics .m + .m { padding-left: 24px; border-left: 1px solid var(--line); }
.metrics .v { font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.metrics .v small { font-size: 20px; font-weight: 600; color: var(--slate); letter-spacing: -.01em; }
.metrics .k { font-weight: 600; margin-top: 10px; font-size: 15.5px; }
.metrics .how { color: var(--faint); font-size: 13.5px; margin-top: 4px; line-height: 1.45; }
.metrics .bar { height: 4px; background: var(--wash); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.metrics .bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }

/* ---------- mouth (light theme) ---------- */
.mouthsec { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.mouthcard { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.mouthcard .bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--slate); flex-wrap: wrap; }
.mouthcard .bar i { display: inline-block; width: 16px; height: 0; border-top: 3px solid; margin-right: 6px; vertical-align: 3px; }
.mouthcard .stage { padding: 10px 18px 0; }
.mouthcard .tip { border-top: 1px solid var(--line); padding: 14px 16px; font-size: 15px; display: flex; gap: 12px; align-items: baseline; }
.mouthcard .tip b { color: var(--accent); white-space: nowrap; }
.mouth { width: 100%; display: block; }
.mouth .anat { fill: none; stroke: #9aa3b5; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mouth .cavity { fill: #f4f5f9; }
.mouth .palate { fill: none; stroke: #c98ba0; stroke-width: 4; stroke-linecap: round; }
.mouth .velum { fill: #f3e3ea; stroke: #c98ba0; stroke-width: 2.2; }
.mouth .tooth { fill: #fff; stroke: #aeb5c4; stroke-width: 1.2; }
.mouth .lbl { fill: #9aa3b5; font-size: 8.5px; text-anchor: middle; font-family: var(--sans); }
.mouth .you path { fill: rgba(217,58,64,.22); stroke: var(--miss); stroke-width: 1.8; stroke-linejoin: round; }
.mouth .you .lip { fill: rgba(217,58,64,.35); }
.mouth .should path { fill: none; stroke: var(--ok); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.mouth .arrow { stroke: var(--accent); stroke-width: 2; }
.mouth .dot { fill: var(--accent); }
.points { list-style: none; margin: 24px 0 0; padding: 0; }
.points li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; font-size: 15px; }
.points li b { font-weight: 600; }
.points li span { color: var(--slate); }

/* ---------- input / output examples ---------- */
.ex-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ex-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font: 500 14px var(--sans); color: var(--slate); cursor: pointer; }
.ex-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.io { display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.io > div { padding: 22px; min-width: 0; }
.io .in { background: var(--wash); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.io .tag { font-size: 13px; color: var(--faint); }
.io .said { font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.io .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.io .meta span { font-size: 12.5px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 2px 9px; color: var(--slate); }
.io .wv { height: 54px; }
.io .wv rect { fill: #b9c0cf; }
.io .out { display: flex; flex-direction: column; gap: 14px; }
.io .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.io .score { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.io .score small { font-size: 14px; color: var(--slate); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.io .view { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.io .view button { border: 0; background: #fff; padding: 6px 11px; font: 500 13px var(--sans); color: var(--slate); cursor: pointer; }
.io .view button[aria-pressed="true"] { background: var(--wash); color: var(--ink); }
.wchips { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.wchip { display: grid; gap: 4px; }
.wchip .w { font-size: 12.5px; color: var(--slate); }
.wchip .ph { display: flex; gap: 3px; }
.wchip .ph span { font: 17px/1 var(--ipa); padding: 6px 6px; border-radius: 4px; background: var(--ok-wash); color: #0d6e50; min-width: 26px; text-align: center; }
.wchip .ph span.x { background: var(--miss-wash); color: var(--miss); box-shadow: inset 0 0 0 1.5px var(--miss); }
.wchip .ph span.n { background: var(--accent-wash); color: var(--accent); }
.io ul.ms { list-style: none; margin: 0; padding: 0; }
.io ul.ms li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.io ul.ms li .ipa { font-size: 17px; }
.io ul.ms li small { display: block; color: var(--slate); font-size: 13.5px; margin-top: 2px; }
.io pre { margin: 0; font-size: 12.5px; line-height: 1.6; background: #fbfbfd; border: 1px solid var(--line); border-radius: 8px; padding: 14px; overflow: auto; max-height: 340px; color: #26324a; }

@media (max-width: 980px) {
  .metrics .wrap { grid-template-columns: 1fr 1fr; }
  .metrics .m:nth-child(3) { padding-left: 0; border-left: 0; }
  .metrics .m:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mouthsec, .io { grid-template-columns: 1fr; }
  .io .in { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .metrics .wrap { grid-template-columns: 1fr; }
  .metrics .m, .metrics .m + .m { padding-left: 0; border-left: 0; }
  .metrics .m + .m { border-top: 1px solid var(--line); }
  .points li { grid-template-columns: 1fr; gap: 2px; }
}
