/* LeRabbit landing page: the one shared stylesheet for every page in site/.
   Tokens and type roles come from docs/design-language/README.md
   (values reused from docs/design-language/prototypes/shared/shared.css).
   Light theme only: there is no dark mode in the app yet. */

/* ---------- Fonts: copies of assets/fonts/ (OFL files alongside) ---------- */
@font-face { font-family: 'Courier Prime'; src: url('../fonts/CourierPrime-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('../fonts/CourierPrime-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('../fonts/CourierPrime-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('../fonts/CourierPrime-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'PT Serif'; src: url('../fonts/PTSerif-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Serif'; src: url('../fonts/PTSerif-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'PT Serif'; src: url('../fonts/PTSerif-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Serif'; src: url('../fonts/PTSerif-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'PT Sans'; src: url('../fonts/PTSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Sans'; src: url('../fonts/PTSans-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'PT Sans'; src: url('../fonts/PTSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Sans'; src: url('../fonts/PTSans-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --paper: #F4EDDD;
  --paper-light: #FBF6E4;
  --paper-deep: #EAE0CA;
  --paper-edge: #D9CCB0;
  --ink: #231F1A;
  --ink-soft: #5E564A;
  --ink-faint: #9A8F7C;
  --primary: #3F5B45;
  --on-primary: #F7F1E3;
  --brass: #B8893A;
  --brass-deep: #7A5A1E;
  --error: #B3261E;
  --soft-shadow: rgba(0, 0, 0, .18);
  --primary-wash: #DCE3D3; /* pale green: selected text and a browser-filled field */

  --type: 'Courier Prime', monospace;     /* typewriter: wordmark, titles, small labels */
  --book: 'PT Serif', Georgia, serif;     /* book: headings and story text */
  --ui: 'PT Sans', system-ui, sans-serif; /* controls: buttons, fields, dialogs */

  --gutter: 20px;
  --measure: 40rem;  /* longest line of running text */
  --wide: 64rem;     /* the page's one column: every section starts on its left edge */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; } /* in-page links glide (product owner, 2026-11-18) */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--book);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  overflow-x: clip; /* no horizontal scroll at phone width */
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--book); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin-top: 32px; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ---------- Layout: one column, one left edge ---------- */
.section { padding: 64px max(var(--gutter), calc((100% - var(--wide)) / 2)); }
.section > * { max-width: var(--measure); }
@media (min-width: 720px) { .section { padding-top: 96px; padding-bottom: 96px; } }
.wordmark { font-family: var(--type); font-weight: 700; letter-spacing: .02em; }
.label { font-family: var(--type); font-size: .875rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons (pill; one filled button per page) ---------- */
.btn {
  display: inline-block;
  font-family: var(--ui);
  font-size: .9375rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  cursor: pointer;
}
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.quiet { background: transparent; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Fields (underlined, no box) ---------- */
.field {
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink-soft);
  border-radius: 0;
  padding: 8px 0;
  width: 100%;
}
.field:focus { border-bottom-color: var(--primary); outline: none; }
/* The browser's own highlights are blue: selected text and a field it fills in (or previews) turn pale green instead. */
::selection { background: var(--primary-wash); color: var(--ink); }
/* Two rules, so a browser that doesn't know one of the selectors still applies the other. */
.field:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--primary-wash) inset; -webkit-text-fill-color: var(--primary); }
.field:autofill { box-shadow: 0 0 0 100px var(--primary-wash) inset; -webkit-text-fill-color: var(--primary); }
.field::placeholder { color: var(--ink-faint); opacity: 1; }
.error { font-family: var(--ui); font-size: .8125rem; color: var(--error); }

/* ---------- Footer and the EN/PT switch ---------- */
.site-header {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
  display: flex;
  justify-content: flex-end;
}
.site-footer {
  border-top: 1px solid var(--paper-edge);
  padding: 32px var(--gutter) 48px;
  font-family: var(--ui);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.site-footer nav {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.site-footer a { color: var(--ink-soft); }
.copyright { max-width: var(--wide); margin: 16px auto 0; font-size: .8125rem; color: var(--ink-faint); }
.lang-switch { display: inline-flex; gap: 4px; font-size: .9375rem; }
.lang-switch a {
  font-family: var(--type);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.lang-switch a[aria-current="true"] { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

/* ======================================================================
   Landing page sections (ticket 02): hero, mission, vision and covers,
   pillars, beta section. Motion: the hero tagline and the lines under the beta
   thank-you's title type in (js/typewriter.js), and in-page links scroll smoothly; nothing else moves, and the reduce-motion setting is deliberately not
   special-cased (spec: Design, Motion).
   ====================================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  min-height: min(calc(100svh - 48px), 56rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 104px; /* room for the arrow */
}
.rabbit {
  width: min(80vw, 420px, 44svh); /* smaller on short screens, so the arrow stays on the first one */
  mix-blend-mode: darken; /* the art's lighter paper gives way to the page's, so no square shows */
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 12px;
  /* Welcome's 16% edge fade on all four edges (lib/common/presentation/widget/edge_fade.dart) */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}
.hero .wordmark { font-size: clamp(2.5rem, 7vw, 3.75rem); margin-bottom: 12px; }
.tagline {
  font-family: var(--book);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 30rem; /* the longer PT tagline stays on one line where the screen allows */
}
.tagline .untyped, .beta-thanks .untyped { color: transparent; }
/* The thank-you's last line types inside its word boxes; a box shows once its word starts. */
.beta-thanks .w:has(> .typed:empty) { background-color: transparent; border-color: transparent; }
.hero-action { margin-top: 32px; margin-bottom: 0; }
/* The arrow at the foot of the first screen: there is more below, and a tap jumps to it. */
.hero > .scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  margin-left: -22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center; /* a 44 px tap target around a bare arrow: no circle, so the sign-up button keeps the eye */
  color: var(--ink-soft);
}
.scroll-cue svg { width: 40px; height: 40px; fill: currentColor; }

/* ---------- Mission and vision ---------- */
h2.label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 28px; }
.statement { font-size: 1.375rem; line-height: 1.4; }
@media (min-width: 720px) { .statement { font-size: 1.625rem; } }
#mission { border-top: 1px solid var(--paper-edge); }
#vision, #beta { background: var(--paper-deep); }

/* Vision: the text beside a reading page drawn after the study-page prototype
   (docs/design-language/prototypes/screens/study.html). */
.section > .split { max-width: none; display: grid; gap: 48px; align-items: center; }
.split-text > * { max-width: var(--measure); }
.split-text > :last-child { margin-bottom: 0; }
/* More room above the subheading than under the label, so the statement reads as its own block. */
.split-text h3 { margin-top: 48px; }
@media (min-width: 880px) { .section > .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; } }

.reader-mock {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  border: 8px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 40px var(--soft-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Says the phone is something to try, not a screenshot. */
.mock-note { font-family: var(--type); font-style: italic; font-size: .8125rem; color: var(--ink-soft); text-align: center; margin: 14px 0 0; }

.reader-mock svg { width: 22px; height: 22px; fill: currentColor; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 18px 12px 10px; border-bottom: 1px solid var(--paper-edge); }
.mock-title { flex: 1; min-width: 0; margin-right: 20px; padding-left: 6px; font-family: var(--type); font-weight: 700; font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The toggles work (js/reader-mock.js): filled while on, as ReaderToggle in the app. */
.mock-toggle { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.mock-toggle svg { width: 17px; height: 17px; }
.mock-toggle[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.mock-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Its height is locked by js/reader-mock.js; the page takes whatever room the bars leave. */
.mock-page { flex: 1 0 auto; padding: 16px 20px 44px; font-size: 15px; line-height: 1.7; }
.mock-page p { margin: 0 0 .8em; }
/* Every word has a level, in the app's colours (lib/study/presentation/mapper/knowledge_state_mapper.dart);
   Known words get the dotted outline the app uses for that level. */
.w { padding: 0 2px; border: 1px solid transparent; border-radius: 3px; }
.w.new, .level-dot.new { background: rgba(186, 0, 6, .25); }
.w.rec, .level-dot.rec { background: rgba(255, 123, 0, .25); }
.w.fam, .level-dot.fam { background: rgba(255, 217, 0, .18); }
.w.lrn, .level-dot.lrn { background: rgba(210, 210, 210, .18); }
.w.known, .w.ign, .level-dot.known, .level-dot.ign { border: 1px dotted var(--ink-faint); }

/* The thank-you's last line: its words are buttons, as on the app's reading page (js/word-levels.js).
   They take the boxes' look once typed in, like the words in the reading-page mock. */
button.w { font: inherit; line-height: inherit; color: inherit; background-color: transparent; margin: 0; cursor: pointer; }
button.w:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* The level dialog, after the app's PaperDialog and KnowledgeStateDialog: light paper, an ink
   border, an offset ink shadow; the word on top in the typewriter face, its translation under it in the page's language,
   then one row per level. */
.level-dialog {
  width: min(100% - 44px, 20rem); padding: 20px 18px 12px;
  background: var(--paper-light); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink);
}
.level-dialog::backdrop { background: rgba(35, 31, 26, .38); }
.level-dialog form { display: flex; flex-direction: column; }
/* Opened from the reading page (js/word-levels.js), it sits inside the phone: the dialog is the scrim
   over the phone only, its form the paper. */
.reader-mock .level-dialog[open] {
  position: absolute; inset: 0; z-index: 1; width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0 22px; border: 0; border-radius: 0; box-shadow: none;
  background: rgba(35, 31, 26, .38); display: grid; place-items: center;
}
.reader-mock .level-dialog form {
  position: relative; width: 100%; padding: 16px 16px 8px;
  background: var(--paper-light); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink);
}
.reader-mock .level-dialog .level { padding: 3px 0; }
.reader-mock .level-dialog .level-dot { width: 32px; height: 32px; }
.level-word { margin: 0 24px 12px; font-family: var(--type); font-size: 1.125rem; font-weight: 700; text-align: center; }
.level-word:has(+ .level-meaning:not([hidden])) { margin-bottom: 0; }
.level-meaning { margin: 0 24px 12px; font-family: var(--type); font-size: .9375rem; color: var(--ink-soft); text-align: center; }
.level-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.level-close svg { fill: currentColor; }
.level { display: flex; align-items: center; gap: 14px; padding: 6px 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font-family: var(--type); font-size: .875rem; letter-spacing: 1.1px; text-transform: uppercase; }
.level-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .9375rem; letter-spacing: 0; border: 1px solid transparent; }
.mock-audio { display: flex; align-items: center; gap: 10px; padding: 14px 14px 16px; border-top: 1px solid var(--paper-edge); }
.mock-play { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; cursor: pointer; }
.mock-play svg { width: 18px; height: 18px; fill: currentColor; }
/* A range input drawn as the app's slider: a 3px track, filled in ink up to --fill (set by js/reader-mock.js), and an 11px knob. */
.mock-slider { --fill: 0%; flex: 1; min-width: 0; height: 20px; margin: 0; padding: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.mock-slider::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--ink) var(--fill), var(--paper-edge) var(--fill)); }
.mock-slider::-moz-range-track { height: 3px; background: linear-gradient(to right, var(--ink) var(--fill), var(--paper-edge) var(--fill)); }
.mock-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--ink); }
.mock-slider::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--ink); }
.mock-time, .mock-speed { font-family: var(--type); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.mock-time { min-width: 5ch; text-align: right; }
.mock-speed { font-weight: 700; color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 0; min-width: 44px; text-align: center; cursor: pointer; line-height: inherit; }
.mock-play:focus-visible, .mock-speed:focus-visible, .mock-slider:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mock-play:disabled, .mock-speed:disabled, .mock-slider:disabled { opacity: .4; cursor: default; }

/* ---------- Covers: a shelf of five; swiped sideways at phone width.
   The 3:4 crop keeps the middle half of the 3:2 art, so the subject stays in. ---------- */
.section > .covers {
  max-width: none;
  margin: 64px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 58%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
}
.cover { margin: 0; scroll-snap-align: start; }
.cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  box-shadow: 0 8px 18px var(--soft-shadow);
}
.cover figcaption { font-family: var(--type); font-size: .8125rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }
@media (min-width: 720px) {
  .section > .covers { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); margin-left: 0; margin-right: 0; padding: 0; overflow: visible; }
}

/* ---------- Pillars ---------- */
.section > .pillars { max-width: none; list-style: none; padding: 0; margin: 0; display: grid; gap: 40px 48px; }
.pillar h3 { margin-top: 12px; }
.pillar p { margin: 0; }
.icon { fill: var(--primary); }
@media (min-width: 720px) {
  .section > .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Beta section: the pitch beside the form card on wide screens ---------- */
#beta > h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
@media (min-width: 880px) {
  #beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); grid-template-rows: auto auto 1fr; column-gap: 72px; align-items: start; }
  #beta > h2, #beta > p { grid-column: 1; }
  #beta > .beta-card { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
/* ======================= end of landing page sections ======================= */

/* ======================================================================
   Beta sign-up form (ticket 05): underlined fields, the page's one filled
   button.
   ====================================================================== */
/* The form and its thank-you share one cell, so the thank-you takes the form's room and the page
   below never moves: the sent form stays in the layout, unseen and out of the tab order. */
.beta-card { margin-top: 32px; display: grid; }
.beta-card > * { grid-area: 1 / 1; }
.beta-form[hidden] { display: grid !important; visibility: hidden; } /* beats the global [hidden] rule */
.beta-form, .beta-thanks {
  padding: 28px 24px 32px;
  background: var(--paper-light);
  border: 1px solid var(--paper-edge);
  border-top: 3px solid var(--brass);
  border-radius: 4px;
  box-shadow: 0 6px 18px var(--soft-shadow);
}
@media (min-width: 720px) { .beta-form, .beta-thanks { padding: 36px 40px 40px; } }
.beta-form { display: grid; gap: 22px; font-family: var(--ui); }
.beta-form p { margin: 0; }
.fill-in { font-family: var(--book); font-size: 1.25rem; line-height: 1.9; }
.field.blank {
  display: inline-block;
  width: auto;
  padding: 0 4px 2px;
  font-family: var(--book);
  font-size: inherit;
  font-weight: 700;
  color: var(--primary);
  border-bottom-color: var(--primary);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
/* The email blank: an empty line to write on, as wide as an address. */
input.field.blank { width: 13em; max-width: 100%; cursor: text; }
/* Hints (the email's example, the phone before it is chosen): faint and plain, so they read as gaps. */
input.field.blank::placeholder { font-weight: 400; }
select.field.blank:invalid { color: var(--ink-faint); font-weight: 400; }
select.field.blank option { color: var(--ink); font-weight: 400; }
.beta-form input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; margin: 0; flex: none; cursor: pointer; }
/* Consent and submit sit centred under the sentences; the consent is small print. */
.consent { justify-self: center; margin-top: 18px; display: flex; gap: 8px; align-items: center; font-family: var(--book); font-size: .9375rem; color: var(--ink); cursor: pointer; } /* a tap anywhere on it ticks the box */
/* The honeypot: off-screen rather than display:none, so form-filling bots still see it. */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.beta-form .btn.primary { justify-self: center; min-width: 12rem; }
.beta-form .btn.primary:disabled { background: var(--paper-edge); color: var(--ink-soft); cursor: not-allowed; }
.beta-thanks > :last-child { margin-bottom: 0; }
.beta-thanks:focus { outline: none; }
/* The recap: the form's sentences again, each answer where its blank was, underlined as written in. */
.beta-thanks .recap { margin: 0; line-height: 1.9; } /* room for the underlines, as in the form */
/* Under the recap, one spot for what comes next: "Saving", the error and its retry, or the title and
   goodbye, so the outcome lands where "Saving" was. All three keep their room while hidden, so the card
   never changes height between them. The spot is centred across the card and sits a little above the
   middle of the room left under the recap (45% above, 55% below), which reads as centred. */
.beta-thanks { display: flex; flex-direction: column; }
.thanks-after { flex: 1; display: grid; grid-template-rows: 9fr auto 11fr; margin-top: 1.25em; text-align: center; }
.thanks-after > * { grid-area: 2 / 1; align-self: center; margin: 0; }
.thanks-after > [hidden] { display: block !important; visibility: hidden; } /* beats the global [hidden] rule */
.thanks-failed > .btn[hidden] { display: inline-block !important; visibility: hidden; }
.thanks-done > :first-child, .thanks-failed > :first-child { margin-top: 0; }
.thanks-done > :last-child { margin-bottom: 0; }
.thanks-done > .statement { margin-bottom: .35em; }
/* The dots stand outside the centring, so "Saving" holds still while they type in and clear. */
.saving { position: relative; }
.saving .dots { position: absolute; }
.thanks-failed > p { white-space: pre-line; } /* the message's two sentences, one per line */
.thanks-failed > .btn { margin-top: 4px; }
.echo { font-weight: 700; color: var(--primary); border-bottom: 1.5px solid var(--primary); padding: 0 4px 2px; overflow-wrap: anywhere; }
.echo:has(> .typed:empty) { border-bottom-color: transparent; } /* while typing, an answer is underlined once its first letter is in */

/* ======================= end of beta sign-up form ======================= */
