/* SpeechNet site. Paper and ink, one serif for headings, one hyper-legible sans for reading.
   No glow, no gradients on text, no bento. Sizes are in rem so text scales with browser settings. */

:root {
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --ink: #1c1b19;
  --muted: #5b574f;
  --rule: #ddd5c6;
  --unsure: #a3500b;      /* the dotted "not sure" underline, also the one accent (AA on paper) */
  --line: #1c1b19;        /* the voice line */
  --card: #fffdf8;
  --focus: #a3500b;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 8px 24px rgba(40, 30, 10, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1a18; --paper-2: #23211e; --ink: #ece6da; --muted: #b0a998; --rule: #3a3731;
    --unsure: #e08a3c; --line: #ece6da; --card: #24221f; --focus: #e08a3c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b1a18; --paper-2: #23211e; --ink: #ece6da; --muted: #b0a998; --rule: #3a3731;
  --unsure: #e08a3c; --line: #ece6da; --card: #24221f; --focus: #e08a3c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.brand img { width: 2rem; height: 2rem; }
.top nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-variation-settings: "SOFT" 50, "WONK" 1; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 38rem; }
.kicker { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.unsure-word { text-decoration: underline dotted var(--unsure) 2px; text-underline-offset: .22em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.25rem; border-radius: 10px;
  font: 600 1rem/1 var(--sans); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-plain { background: transparent; color: var(--ink); }
.btn-plain:hover { background: var(--paper-2); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 1.1rem; height: 1.1rem; }

/* ---------- sections ---------- */
section { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }

/* hero: the particle canvas sits exactly over the real heading, then hands over to it */
.hero { padding: 4rem 0 3.5rem; }
.particle-title { position: relative; }
.particle-title canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.motion .particle-title:not(.formed) > .pt-text { opacity: 0; }
.particle-title > .pt-text { transition: opacity .6s ease; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 .8rem; }
.fineprint { font-size: .9rem; color: var(--muted); }

/* ---------- the caption pill, as in the app ---------- */
.stage { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow);
  padding: 1.4rem; position: relative; max-width: 40rem; margin: 2.2rem 0 0; min-height: 15.5rem; }
.stage .doc-head { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.stage .doc-head span.dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--rule); display: inline-block; }
.doc-line { font-size: 1.1rem; min-height: 1.8em; }
.doc-line .typed { white-space: pre-wrap; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--ink); vertical-align: -.18em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.pill { position: relative; margin: .5rem 0 0 -.4rem; display: inline-flex; align-items: center; gap: .65rem;
  min-height: 2.6rem; padding: .35rem 1rem .35rem .6rem; border-radius: 12px; max-width: calc(100% + .4rem);
  background: color-mix(in srgb, var(--card) 82%, var(--paper-2)); border: 1px solid var(--rule);
  box-shadow: var(--shadow); font-size: 1rem; transition: opacity .25s ease, transform .25s ease; }
.pill[hidden] { display: inline-flex; opacity: 0; transform: translateY(-4px); pointer-events: none; }
.pill .app { width: 1.35rem; height: 1.35rem; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--rule); flex: none; position: relative; }
.pill .app::after { content: ""; position: absolute; left: 22%; right: 22%; top: 34%; height: 2px; background: var(--muted); box-shadow: 0 4px 0 var(--muted); border-radius: 2px; }
.pill .words { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.pill .listening { color: var(--muted); }
.pill .fix { margin-left: auto; padding-left: 1rem; font-weight: 600; color: var(--unsure); background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pill .voice { position: absolute; left: 50%; bottom: 4px; height: 2px; width: 6px; background: var(--line); border-radius: 2px; transform: translateX(-50%); transition: width .08s linear; }
.fixcard { position: relative; margin: .6rem 0 0 -.4rem; background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: var(--shadow); padding: .9rem 1rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; max-width: calc(100% - 2rem); }
.fixcard[hidden] { display: none; }
.fixcard .chip { padding: .2rem .5rem; border-radius: 6px; background: var(--paper-2); }
.fixcard .chip.picked { outline: 2px solid var(--unsure); }
.fixcard .to { color: var(--muted); }
.replay { margin-top: 1rem; }

/* ---------- feature rows (plain list, not a grid of boxes) ---------- */
.rows { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: row; }
.rows li { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.4rem 0; border-top: 1px solid var(--rule); counter-increment: row; }
.rows li::before { content: counter(row, decimal-leading-zero); font-family: var(--serif); color: var(--muted); font-size: 1.1rem; padding-top: .15rem; }
.rows h3 { margin-bottom: .3rem; }
.rows p { color: var(--muted); margin: 0; max-width: 40rem; }
@media (min-width: 56rem) { .rows li { grid-template-columns: 4rem 18rem 1fr; } .rows h3 { margin: 0; } }

.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; max-width: 44rem; margin: 0; }
.quote footer { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-top: 1rem; }

/* ---------- pricing: two plain columns ---------- */
.plans { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 48rem) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .plans-3 { grid-template-columns: 1fr 1fr 1fr; } }
.plan { border-top: 3px solid var(--ink); padding-top: 1.2rem; }
.plan .price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: .3rem 0 1rem; }
.plan .price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.plan ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.plan li { margin-bottom: .35rem; }

/* ---------- downloads ---------- */
.downloads { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 48rem) { .downloads { grid-template-columns: 1fr 1fr; } }
.dl { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; }
.dl h3 { display: flex; align-items: center; gap: .5rem; }
.dl .req { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--rule); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style-position: outside; }
details p { color: var(--muted); margin: .7rem 0 0; max-width: 46rem; }

/* ---------- long-form pages (support, legal) ---------- */
.page { padding: 3.5rem 0 4.5rem; }
.page .wrap { max-width: 46rem; }
.page h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.page h3 { margin-top: 1.6rem; }
.page li { margin-bottom: .4rem; }
.updated { color: var(--muted); font-size: .95rem; }
.todo { background: #fde68a; color: #1c1b19; padding: 0 .25em; border-radius: 3px; }
.steps > li { margin-bottom: .9rem; padding-left: .2rem; }
.steps ol { margin-top: .5rem; }
.contact-box { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 1.4rem 1.5rem; margin: 1.5rem 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; color: var(--muted); font-size: .95rem; }
.foot .wrap { display: grid; gap: 1.2rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
