/* CallTweet — "voice wave" theme */
@font-face { font-family: "Bricolage"; src: url(fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(fonts/bricolage-grotesque-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #fff9f0; --card: #ffffff; --ink: #161222; --muted: #57506a; --line: #e8dccb;
  --accent: #5b2eff; --accent-ink: #4a1fe0; --accent-soft: #e9e2ff; --on-accent: #ffffff;
  --warn-bg: #fff1e6; --warn-line: #f0a36b; --ok: #0f7a4a; --over: #c4231c;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 22px; --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14111d; --card: #1d1929; --ink: #f4f0ff; --muted: #bdb5d2; --line: #342d48;
    --accent: #9d86ff; --accent-ink: #b9a9ff; --accent-soft: #2a2246; --on-accent: #14111d;
    --warn-bg: #2d2018; --warn-line: #b8693a; --ok: #5fd39b; --over: #ff7a70;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
code, kbd { white-space: nowrap; font-family: var(--mono); font-size: .9em; background: var(--accent-soft); padding: .1em .35em; border-radius: 6px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; background: var(--card); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }
.hint { color: var(--muted); font-size: .95rem; }

/* top bar */
.topbar { max-width: var(--max); margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -0.03em; }
.logo b { color: var(--accent-ink); font-weight: 800; }
.logo__mark { color: var(--accent); flex: none; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 4px; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 14px; border-radius: 999px; }
.menu a:hover { background: var(--accent-soft); }
.menu a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 700 .98rem/1.1 var(--body); cursor: pointer; text-decoration: none; border: 2px solid var(--ink); transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--solid:hover { color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--ink); }
.btn--ghost.is-done { background: var(--ink); color: var(--paper); }
.btn--x { background: var(--ink); color: var(--paper); }
.btn--x:hover { color: var(--paper); background: var(--accent-ink); border-color: var(--accent-ink); }

/* wave bars */
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 64px; }
.wave i { display: block; width: 6px; border-radius: 6px; background: var(--accent); height: 30%; transform-origin: center; }
.wave i:nth-child(3n) { background: var(--ink); }
.wave i:nth-child(5n+1) { height: 45%; } .wave i:nth-child(5n+2) { height: 80%; } .wave i:nth-child(5n+3) { height: 55%; }
.wave i:nth-child(5n+4) { height: 100%; } .wave i:nth-child(5n) { height: 35%; }
.wave i:nth-child(7n) { height: 65%; }
.wave--mini { justify-content: flex-start; height: 34px; gap: 3px; margin-bottom: 14px; }
.wave--mini i { width: 5px; }
.wave--line { justify-content: flex-start; height: 26px; gap: 3px; margin-top: 18px; opacity: .9; }
.wave--line i { width: 4px; }
.wave--flat { justify-content: flex-start; height: 40px; margin-bottom: 18px; }
.wave--flat i { height: 8% !important; }
.wave--tall { height: 180px; gap: 7px; }
.wave--tall i { width: 10px; animation: breathe 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.23s); }
.wave--live { height: 70px; width: 100%; max-width: 320px; margin: 22px auto 6px; }
.wave--live i { width: 5px; height: 12% !important; transition: height .3s ease; }
.is-listening .wave--live i { height: 100% !important; animation: talk 1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); }
.is-listening .wave--live i:nth-child(odd) { animation-duration: .8s; }
.is-listening .wave--live i:nth-child(4n) { animation-duration: 1.3s; }
@keyframes talk { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(.95); } }
@keyframes breathe { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* home hero */
.hero { max-width: 980px; margin: 0 auto; padding: 36px 16px 28px; text-align: center; }
.hero__kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .92rem; }
.hero h1 { font-size: clamp(3rem, 1.2rem + 8vw, 7.4rem); line-height: .92; letter-spacing: -0.045em; margin-bottom: 22px; }
.hero h1 span { color: var(--accent-ink); display: inline-block; }
.hero__lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 720px; margin: 0 auto; }

/* tool */
.tool { max-width: var(--max); margin: 12px auto 0; padding: 0 16px; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.deck { background: var(--ink); color: var(--paper); border-radius: 32px; padding: 30px 24px 24px; position: sticky; top: 16px; }
.deck__stage { text-align: center; }
.mic { position: relative; width: 176px; height: 176px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 800 1.15rem/1 var(--display); letter-spacing: .02em; box-shadow: 0 0 0 10px rgba(157, 134, 255, .22), 0 14px 40px rgba(91, 46, 255, .45); transition: transform .15s ease; }
.mic:hover { transform: scale(1.03); }
.mic:active { transform: scale(.97); }
.mic:focus-visible { outline: 4px solid var(--paper); outline-offset: 6px; border-radius: 50%; }
.mic__rings { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.is-listening .mic { background: #ff4b3e; color: #fff; box-shadow: 0 0 0 10px rgba(255, 75, 62, .25), 0 14px 40px rgba(255, 75, 62, .4); }
.is-listening .mic__rings::before, .is-listening .mic__rings::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #ff4b3e; animation: ring 1.8s ease-out infinite; }
.is-listening .mic__rings::after { animation-delay: .9s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }
.no-speech .mic { opacity: .45; cursor: not-allowed; box-shadow: none; }
.deck .wave i:nth-child(3n) { background: var(--paper); }
.status { margin: 6px 0 0; font-weight: 600; min-height: 3.2em; color: var(--paper); }
.deck__opts { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 18px; padding-top: 18px; display: grid; gap: 14px; }
@media (prefers-color-scheme: dark) { .deck { background: #0b0912; border: 2px solid var(--line); color: var(--ink); } .status { color: var(--ink); } .deck .wave i:nth-child(3n) { background: var(--ink); } .deck__opts { border-color: var(--line); } }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.field select { font: 600 1rem var(--body); padding: 10px 12px; border-radius: 14px; border: 2px solid transparent; background: var(--paper); color: var(--ink); min-height: 44px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .98rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check small { display: block; font-weight: 400; opacity: .78; font-size: .88rem; }
.check input:disabled + span { opacity: .5; }
.deck .hint { color: inherit; opacity: .8; margin: -6px 0 0 32px; font-size: .88rem; }

.desk { display: grid; gap: 20px; min-width: 0; }
.notice { margin: 0; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--accent); background: var(--accent-soft); }
.notice--warn { border-color: var(--warn-line); background: var(--warn-bg); }
.notice--soft { border-style: dashed; }
.editor { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; box-shadow: 6px 6px 0 var(--ink); }
.editor__label { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 800 1.2rem/1.2 var(--display); margin-bottom: 10px; }
.editor__label span { font: 400 .92rem var(--body); color: var(--muted); }
.editor textarea { width: 100%; min-height: 190px; resize: vertical; border: 0; background: transparent; color: var(--ink); font: 400 1.2rem/1.55 var(--body); padding: 4px 0; }
.editor textarea:focus { outline: none; }
.editor:focus-within { box-shadow: 6px 6px 0 var(--accent); border-color: var(--accent); }
.editor textarea::placeholder { color: var(--muted); opacity: .85; }
.interim { margin: 4px 0 0; color: var(--muted); font-style: italic; }
.interim::before { content: "Hearing: "; font-style: normal; font-weight: 700; }
.editor__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 2px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.meter { flex: 1 1 140px; height: 10px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.meter span { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--accent); border-radius: 99px; transition: width .2s ease; }
.meter.is-over span { background: var(--over); }
.count { margin: 0; font: 800 1.1rem var(--display); font-variant-numeric: tabular-nums; }
.count .is-over { color: var(--over); }
.editor__btns { display: flex; gap: 8px; flex-wrap: wrap; }

.out h2 { font-size: 1.7rem; margin-bottom: 4px; }
.out__summary { margin: 0 0 12px; color: var(--muted); }
.thread-help { background: var(--accent-soft); border-radius: 16px; padding: 4px 18px; margin-bottom: 14px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: p; }
.post { background: var(--card); border: 2px solid var(--line); border-left: 8px solid var(--accent); border-radius: 18px; padding: 14px 18px; }
.post__head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.post__len { font-variant-numeric: tabular-nums; }
.post__len.is-over { color: var(--over); }
.post__text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 12px; font-size: 1.08rem; }
.post__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* home sections */
.band, .split, .faqs, .reads { max-width: var(--max); margin: 0 auto; padding: 72px 16px 0; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 22px; position: relative; }
.steps__n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 1.5rem var(--display); margin-bottom: 14px; }
.steps p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.table-wrap { overflow-x: auto; }
.say { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.say th, .say td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.say th { background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 800; }
.say tr:last-child td { border-bottom: 0; }
.say td:first-child { font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.fact { border-top: 6px solid var(--accent); padding-top: 10px; }
.fact__n { font: 800 clamp(3.4rem, 2rem + 4vw, 5.2rem)/1 var(--display); letter-spacing: -0.04em; margin: 0 0 8px; color: var(--accent-ink); }
.fact p:last-child { color: var(--muted); margin: 0; }
.split--privacy { background: var(--accent-soft); border-radius: 32px; padding: 40px; margin-top: 72px; max-width: calc(var(--max) - 32px); }
.split--privacy + .faqs { padding-top: 72px; }
.qa { display: grid; gap: 10px; }
.qa details { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 0 18px; }
.qa details[open] { border-color: var(--ink); }
.qa summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 10px; font: 800 1.6rem var(--display); color: var(--accent-ink); }
.qa details[open] summary::after { content: "–"; }
.qa p { margin: 0 0 16px; color: var(--muted); }
.reads { padding-bottom: 20px; }
.reads__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reads__list a { display: grid; gap: 8px; height: 100%; padding: 22px; border-radius: var(--r); background: var(--ink); color: var(--paper); text-decoration: none; }
.reads__list a:hover { background: var(--accent-ink); color: #fff; }
.reads__t { font: 800 1.3rem/1.15 var(--display); }
.reads__s { opacity: .85; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .reads__list a { background: var(--card); color: var(--ink); border: 2px solid var(--line); } .reads__list a:hover { background: var(--accent-soft); color: var(--ink); } }

/* inner pages */
.sheet { max-width: 760px; margin: 0 auto; padding: 18px 16px 20px; }
.sheet--wide { max-width: 900px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.sheet__head { margin-bottom: 26px; }
.sheet__head h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 3.9rem); line-height: .98; letter-spacing: -0.035em; }
.lede { font-size: 1.22rem; color: var(--muted); margin: 0; }
.tag { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .85rem; }
.byline { color: var(--muted); font-size: .95rem; margin: 0; }
.toc { border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 22px; margin: 0 0 30px; background: var(--card); }
.toc p { margin: 0 0 6px; font: 800 1.05rem var(--display); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; }
.prose h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--accent); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); font-family: var(--display); }
.prose .table-wrap { margin: 0 0 1.2em; }
.prose pre { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 14px; overflow-x: auto; white-space: pre-wrap; }
.prose pre code { background: none; padding: 0; white-space: inherit; }
.prose .callout { background: var(--accent-soft); border-radius: 16px; padding: 14px 18px; }
.try { margin: 44px 0 0; padding: 28px; border-radius: 28px; background: var(--ink); color: var(--paper); }
.try p { margin: 0 0 14px; }
.try__big { font: 800 1.8rem/1.1 var(--display); }
@media (prefers-color-scheme: dark) { .try { background: var(--accent-soft); color: var(--ink); } }
.next { margin-top: 36px; }
.next h2 { font-size: 1.4rem; }
.next ul { padding-left: 20px; }
.sheet__cta { margin-top: 36px; }
.stack { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.stack__item { border: 2px solid var(--ink); border-radius: var(--r); padding: 22px 24px; background: var(--card); box-shadow: 6px 6px 0 var(--accent); }
.stack__item h2 { font-size: 1.6rem; margin: 4px 0 8px; }
.stack__item h2 a { color: var(--ink); text-decoration: none; }
.stack__item h2 a:hover { color: var(--accent-ink); text-decoration: underline; }
.stack__item p { margin: 0; color: var(--muted); }
.stack__meta { font-size: .9rem; }
.lost { padding-top: 60px; }

/* footer */
.foot { margin-top: 90px; background: var(--ink); color: var(--paper); padding: 48px 16px 24px; }
.foot__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.foot__word { font: 800 clamp(2.4rem, 1.5rem + 3vw, 3.6rem)/.95 var(--display); letter-spacing: -0.04em; margin: 0 0 14px; color: #b9a9ff; }
.foot__brand p:last-child { max-width: 460px; opacity: .85; margin: 0; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--paper); font-weight: 600; }
.foot a:hover { color: #b9a9ff; }
.foot__small { max-width: var(--max); margin: 36px auto 0; font-size: .88rem; opacity: .7; }
@media (prefers-color-scheme: dark) { .foot { background: #0b0912; color: var(--ink); border-top: 2px solid var(--line); } .foot a { color: var(--ink); } }

@media (max-width: 900px) {
  .tool { grid-template-columns: 1fr; }
  .deck { position: static; }
  .steps, .facts, .reads__list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split--privacy { padding: 28px 22px; margin-left: 16px; margin-right: 16px; }
  .wave--tall { height: 110px; }
  .foot__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar { justify-content: center; }
  .menu a { padding: 6px 11px; font-size: .9rem; }
  .mic { width: 150px; height: 150px; }
  .editor { box-shadow: 4px 4px 0 var(--ink); padding: 14px; }
  .deck { border-radius: 26px; padding: 24px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-listening .wave--live i { transform: none; }
  .is-listening .mic__rings::before { content: ""; opacity: .7; transform: scale(1.18); }
  .is-listening .mic__rings::after { content: none; }
  .btn:hover, .mic:hover { transform: none; }
}

/* cloud transcription: waiting for the text, and the (usually invisible) Turnstile check */
.is-busy .mic { opacity: .7; cursor: progress; }
.is-busy .wave--live i { animation: talk 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.2s); opacity: .6; }
.ts-box { margin-top: 12px; max-width: 100%; }
.ts-box:empty { display: none; }
