/*
 * The marketing site at respondu.app.
 *
 * Same palette and the same idea as the app: sans is the machine, serif is a person. Every commenter's words,
 * every draft and every answer on these pages is set in --serif; every label, button and piece of chrome is
 * --sans, and the mono uppercase labels are the machine talking about itself. A site selling "we lend your
 * voice to a machine" should make whose voice is whose visible without saying so.
 *
 * The tokens are copied from web/src/styles/tokens.css rather than imported, and that is deliberate: these
 * pages must render with no JavaScript, no build step and no request to the app's origin, because a Google
 * reviewer opening /privacy has none of those. Copied means they can drift, so the values below are the
 * canonical set and the app's file is the one that must match — see docs/backlog.md.
 *
 * Light is the complete set on bare :root. Dark is redefined twice — once behind the OS preference, once
 * behind an explicit [data-theme] — so the toggle wins in both directions.
 */

:root {
  --ground: #f6f4f1;
  --surface: #ffffff;
  --surface-2: #efebe6;
  --rail: #221f2b;
  --rail-text: #cfc9d6;
  --rail-text-strong: #f6f4f1;

  --ink: #221f2b;
  --ink-2: #4a455a;
  --mist: #7c7689;
  --hairline: #ded8d0;
  --hairline-strong: #c9c1b6;

  --brass: #a8762c;
  --brass-soft: #f3e6ce;
  --brass-line: #e0c79a;

  --sage: #3f6b52;
  --sage-soft: #dfebe2;
  --sage-line: #b6cdbe;

  --rust: #93412f;
  --rust-soft: #f5e1dc;
  --rust-line: #e2bcb2;

  --shadow: 0 1px 2px rgb(34 31 43 / 6%), 0 8px 24px -12px rgb(34 31 43 / 18%);
  --shadow-lift: 0 2px 4px rgb(34 31 43 / 5%), 0 18px 48px -20px rgb(34 31 43 / 26%);

  /*
   * Deliberately not the app's stacks, which lead with 'Segoe UI Variable Text' and 'Cascadia Mono' and so
   * render the product differently on every machine that is not Windows. A public page does not get to look
   * like that. These lead with families that exist on macOS, Windows and Android, and fall back sanely.
   * Self-hosting a display serif is the real fix and is in the backlog.
   */
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', ui-serif, serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --measure: 68ch;
  --page: 1080px;
  --page-narrow: 760px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #16141d;
    --surface: #201d29;
    --surface-2: #2a2634;
    --rail: #0f0e14;
    --rail-text: #9a94a8;
    --rail-text-strong: #edeae4;

    --ink: #edeae4;
    --ink-2: #bdb7c7;
    --mist: #8a8496;
    --hairline: #322e3d;
    --hairline-strong: #453f53;

    --brass: #d9a356;
    --brass-soft: #33291a;
    --brass-line: #574323;

    --sage: #85be9a;
    --sage-soft: #1b2a21;
    --sage-line: #2e4736;

    --rust: #d2806c;
    --rust-soft: #2e1d19;
    --rust-line: #4c2e27;

    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 34%), 0 18px 48px -20px rgb(0 0 0 / 70%);
  }
}

:root[data-theme='dark'] {
  --ground: #16141d;
  --surface: #201d29;
  --surface-2: #2a2634;
  --rail: #0f0e14;
  --rail-text: #9a94a8;
  --rail-text-strong: #edeae4;

  --ink: #edeae4;
  --ink-2: #bdb7c7;
  --mist: #8a8496;
  --hairline: #322e3d;
  --hairline-strong: #453f53;

  --brass: #d9a356;
  --brass-soft: #33291a;
  --brass-line: #574323;

  --sage: #85be9a;
  --sage-soft: #1b2a21;
  --sage-line: #2e4736;

  --rust: #d2806c;
  --rust-soft: #2e1d19;
  --rust-line: #4c2e27;

  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 34%), 0 18px 48px -20px rgb(0 0 0 / 70%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* --- skip link ------------------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--ground);
  padding: 10px 16px;
  border-radius: 0 0 3px;
  font-size: 13.5px;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

/* --- layout ---------------------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 28px;
}

.wrap--narrow {
  max-width: var(--page-narrow);
}

section {
  padding: 88px 0;
  border-top: 1px solid var(--hairline);
}

section:first-of-type {
  border-top: 0;
}

.prose {
  max-width: var(--measure);
}

/* --- type ------------------------------------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.02em;

  /* Adjacent-sibling margins collapse, so a following .lede with its own top margin does not double this. */
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}

h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brass);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

strong {
  color: var(--ink);
  font-weight: 650;
}

code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1px 5px;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The machine talking about itself. */
.label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist);
  font-weight: 600;
  margin: 0 0 14px;
}

.label--brass {
  color: var(--brass);
}

/* A person's words. Never chrome. */
.said {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* --- header ---------------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

@supports not (backdrop-filter: blur(10px)) {
  .site-header {
    background: var(--ground);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand svg {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
}

.brand b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 3px;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brass);
}

@media (max-width: 860px) {
  .site-header .wrap {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    white-space: nowrap;
  }
}

/* --- buttons --------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  padding: 0.68em 1.15em;
  border-radius: 3px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease;
}

.btn:hover {
  background: var(--surface-2);
  border-color: var(--mist);
  color: var(--ink);
}

.btn--primary {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--ground);
}

.btn--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--mist);
}

.btn--quiet:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.btn--big {
  font-size: 15px;
  padding: 0.8em 1.5em;
}

/* --- theme toggle ---------------------------------------------------------------------------------- */

/*
 * Hidden until the script that gives it meaning has run. Without JavaScript there is no toggle at all and the
 * OS preference decides, which is the correct no-JS behaviour rather than a degraded one — a button that
 * cannot do anything is worse than no button.
 */
.theme-toggle {
  display: none;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.js .theme-toggle {
  display: inline-flex;
}

.js :root[data-theme='dark'] .theme-toggle .i-sun,
.theme-toggle .i-sun {
  display: none;
}

.theme-toggle .i-moon {
  display: block;
}

:root[data-theme='dark'] .theme-toggle .i-sun {
  display: block;
}

:root[data-theme='dark'] .theme-toggle .i-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-sun {
    display: block;
  }

  :root:not([data-theme='light']) .theme-toggle .i-moon {
    display: none;
  }
}

/* --- hero ------------------------------------------------------------------------------------------ */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}

/*
 * A brass wash behind the hero, drawn in CSS rather than shipped as an image: it costs nothing, it is sharp at
 * every density, and it re-tints itself in dark mode because it is built from the same tokens as everything else.
 */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(58% 52% at 22% 34%, color-mix(in srgb, var(--brass) 16%, transparent), transparent 70%),
    radial-gradient(48% 46% at 82% 18%, color-mix(in srgb, var(--sage) 12%, transparent), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero h1 em {
  font-style: normal;
  color: var(--brass);
}

.hero .lede {
  margin-top: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
  background: var(--brass-soft);
  border: 1px solid var(--brass-line);
  border-radius: 3px;
  padding: 5px 10px;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* --- waitlist form --------------------------------------------------------------------------------- */

.waitlist {
  margin-top: 32px;
  max-width: 500px;
}

.waitlist-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.waitlist input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  padding: 0.75em 0.9em;
}

.waitlist input[type='email']::placeholder {
  color: var(--mist);
}

.waitlist .hint {
  font-size: 13px;
  color: var(--mist);
  margin: 11px 0 0;
}

.waitlist .hint a {
  color: var(--mist);
  text-decoration: underline;
}

.waitlist .hint a:hover {
  color: var(--ink);
}

/* Only shown when the form has actually reported something. */
.form-note {
  margin: 13px 0 0;
  font-size: 13.5px;
  padding: 10px 13px;
  border-radius: 3px;
  border: 1px solid var(--sage-line);
  background: var(--sage-soft);
  color: var(--sage);
}

.form-note--bad {
  border-color: var(--rust-line);
  background: var(--rust-soft);
  color: var(--rust);
}

.secondary-cta {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--mist);
}

.secondary-cta a {
  font-weight: 650;
}

/* --- the product still, rebuilt rather than screenshotted -------------------------------------------- */

/*
 * This is the Review screen's own markup and the app's own tokens, not a picture of them. It stays true when
 * the product changes, it is sharp at any density, it re-themes with the rest of the page, and it reads to a
 * screen reader. A screenshot would be none of those.
 */
.still {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.still-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--rail);
  color: var(--rail-text);
}

.still-chrome .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rail-text);
  opacity: 0.35;
  flex: none;
}

.still-chrome span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rail-text);
  margin-left: 6px;
}

.still-body {
  padding: 20px;
}

.still-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.still-author {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

.still-on {
  font-size: 12.5px;
  color: var(--mist);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  padding: 0.3em 0.6em;
  border-radius: 3px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink-2);
  background: var(--surface-2);
  white-space: nowrap;
}

.pill--wait {
  color: var(--brass);
  background: var(--brass-soft);
  border-color: var(--brass-line);
}

.pill--go {
  color: var(--sage);
  background: var(--sage-soft);
  border-color: var(--sage-line);
}

.pill--stop {
  color: var(--rust);
  background: var(--rust-soft);
  border-color: var(--rust-line);
}

.still-quote {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid var(--hairline-strong);
  padding-left: 14px;
  margin: 0 0 16px;
}

.still-why {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  border-left: 2px solid var(--brass);
  padding-left: 12px;
  margin: 0 0 16px;
}

.still-draft {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 13px 14px;
  margin: 0 0 14px;
}

.still-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.still-actions .spacer {
  margin-left: auto;
  font-size: 12px;
  color: var(--mist);
}

/* --- generic panels + grids -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel h3 {
  margin-bottom: 9px;
}

.panel p {
  font-size: 14.5px;
}

.panel p:last-child {
  margin-bottom: 0;
}

/* The mechanism under a claim. Set apart, because it is the part that is checkable. */
.mech {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--mist);
}

.mech b {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--mist);
  margin-bottom: 5px;
  font-weight: 600;
}

/* --- numbered steps ---------------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

.step {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid var(--brass);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brass);
  margin-bottom: 9px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

.step p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
}

/* --- pull quote --------------------------------------------------------------------------------------- */

.pull {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 22px;
  margin: 0;
}

.pull p {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.pull footer {
  font-size: 13px;
  color: var(--mist);
  margin-top: 10px;
}

/* --- the ladder --------------------------------------------------------------------------------------- */

.ladder {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}

.rung {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  background: var(--surface);
  padding: 16px 20px;
  align-items: baseline;
}

@media (max-width: 700px) {
  .rung {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
}

.rung dt {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}

.rung dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.rung--future {
  background: var(--surface);
}

.rung--future dt,
.rung--future dd {
  opacity: 0.62;
}

/* --- status block ------------------------------------------------------------------------------------- */

/*
 * The honest state of things. It is a panel rather than small print because a product whose entire claim is
 * "it will not make things up" cannot bury what it cannot yet do.
 */
.status {
  border: 1px solid var(--brass-line);
  background: var(--brass-soft);
  border-radius: 4px;
  padding: 26px 28px;
}

.status h3 {
  margin-bottom: 10px;
}

.status ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
}

.status li {
  margin-bottom: 7px;
}

.status li:last-child {
  margin-bottom: 0;
}

/* --- facts table -------------------------------------------------------------------------------------- */

.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

.facts th,
.facts td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.facts th {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
  font-weight: 600;
  white-space: nowrap;
}

.facts td:first-child {
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}

/* --- diagrams ------------------------------------------------------------------------------------------ */

.figure {
  margin: 0;
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.figure figcaption {
  font-size: 13px;
  color: var(--mist);
  margin-top: 14px;
  max-width: 78ch;
}

/* --- closing band --------------------------------------------------------------------------------------- */

.closer {
  text-align: center;
}

.closer .waitlist {
  margin-left: auto;
  margin-right: auto;
}

.closer .waitlist-row {
  justify-content: center;
}

.closer .lede {
  margin-left: auto;
  margin-right: auto;
}

/* --- footer ---------------------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 56px;
  font-size: 13.5px;
  color: var(--mist);
}

.footer-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--mist);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer .fine {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  max-width: 74ch;
  font-size: 12.5px;
}

/* --- legal pages ------------------------------------------------------------------------------------------ */

/*
 * The privacy policy and the terms. They keep their own markup — a plain document inside <main>, with its own
 * <header> and <footer> — and only borrow the site's shell and tokens. Google's verification requires them to
 * be reachable publicly with no sign-in and no JavaScript, so nothing here may depend on either.
 */

.legal main {
  max-width: 760px;
  padding-top: 46px;
  padding-bottom: 86px;
}

.legal main > header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 34px;
}

.legal main > header .brand {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  margin: 0 0 12px;
  display: inline-block;
}

.legal main > header .brand:hover {
  color: var(--ink);
}

.legal h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 21px;
  margin: 42px 0 10px;
}

.legal h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 650;
  margin: 26px 0 6px;
  color: var(--ink);
}

.legal .dates {
  color: var(--mist);
  font-size: 13.5px;
  margin: 0;
}

.legal .lede {
  font-size: 17.5px;
  border-left: 3px solid var(--brass);
  padding-left: 18px;
  margin-bottom: 10px;
  max-width: none;
}

.legal ul,
.legal ol {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

.legal th,
.legal td {
  text-align: left;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.legal th {
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}

.legal main > footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--mist);
}

/*
 * Anything the operator must replace before publishing. Loud on purpose — a placeholder that ships is worse
 * than no page at all, because it reads as a real commitment to whoever is relying on it.
 */
.todo {
  background: #ffe9a8;
  color: #3d2c00;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

/* --- the demo ---------------------------------------------------------------------------------------------- */

/*
 * The walkthrough at /demo. Every step of it is in the HTML in narrative order, so what these rules mostly do
 * is *hide* the later steps once JavaScript has confirmed it can reveal them again — hence `.js` on the hiding
 * rules. With JavaScript off the whole page is visible at once and reads as a written account, which is what a
 * provider's verification reviewer gets and what the site's no-build shape requires.
 *
 * No colour below is declared outside a token, so the demo re-themes with everything else and the toggle keeps
 * working on it. There is deliberately no motion beyond a fade that `prefers-reduced-motion` already removes
 * globally, because a page whose resting state has to be complete cannot lean on transitions to be legible.
 */

.js .demo-later:not(.demo-shown) {
  display: none;
}

.js .demo-set:not(.demo-set--on) {
  display: none;
}

.demo-shown {
  animation: demo-in 0.24s ease both;
}

@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.demo-lede-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--mist);
  max-width: 60ch;
}

/* The count under a step. Arithmetic on what is on the screen above it, and never anything more. */
.demo-count {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-2);
  max-width: 72ch;
}

/* --- step one: the comments as they arrived --- */

.demo-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}

.demo-c {
  background: var(--surface);
  padding: 15px 18px;
}

.demo-c-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.demo-c-who {
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--ink);
}

.demo-c .said {
  font-size: 15.5px;
  margin: 0;
}

/*
 * Never sent to a model. Faded rather than removed, because the point being made is that the creator can still
 * see what was filtered and why — a pre-filter nobody can audit is indistinguishable from losing comments.
 */
.demo-c--dropped {
  background: var(--ground);
}

.demo-c--dropped .demo-c-who,
.demo-c--dropped .said {
  color: var(--mist);
}

.demo-c--dropped .said {
  text-decoration: line-through;
  text-decoration-color: var(--hairline-strong);
}

/* --- step two: what it did with them --- */

.demo-group-note {
  font-size: 13.5px;
  color: var(--mist);
}

.demo-mini {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 3px;
  border: 1px solid var(--hairline);
  background: var(--ground);
}

.demo-mini-who {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
  margin: 0 0 6px;
}

.demo-mini-draft {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* The empty box. It has to read as an absence rather than as a draft that failed to load. */
.demo-mini--empty {
  border-style: dashed;
  border-color: var(--hairline-strong);
}

.demo-mini-draft--none {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--mist);
  font-style: italic;
}

.demo-qs {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.demo-qs li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
}

.demo-qs .pill {
  flex: none;
}

/* --- step three: the Answer screen, which is the whole demo --- */

.demo-answer {
  background: var(--surface);
  border: 1px solid var(--brass-line);
  border-radius: 5px;
  box-shadow: var(--shadow-lift);
  padding: 24px;
  margin-top: 30px;
  max-width: 720px;
}

.demo-answer-head {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.demo-question {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.34;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 8px;
}

.demo-asked {
  font-size: 13.5px;
  color: var(--mist);
  margin: 0 0 20px;
}

.demo-presets {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

.demo-presets legend {
  padding: 0;
}

.demo-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-chip {
  font-size: 13px;
  padding: 0.55em 0.9em;
}

.demo-chip[aria-pressed='true'] {
  border-color: var(--brass);
  background: var(--brass-soft);
  color: var(--brass);
}

/* A person's answer, in a person's typeface. The same rule the app follows, and the reason it is serif here. */
.demo-textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  padding: 12px 13px;
  resize: vertical;
}

.demo-answer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.segs {
  display: inline-flex;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  overflow: hidden;
}

.seg {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 0.55em 0.85em;
  border: 0;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.seg + .seg {
  border-left: 1px solid var(--hairline-strong);
}

.seg[aria-pressed='true'] {
  background: var(--surface-2);
  color: var(--ink);
}

/* Said out loud rather than left to be discovered: the replies below were written before you typed. */
.demo-frozen {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 3px;
  border: 1px solid var(--brass-line);
  background: var(--brass-soft);
  color: var(--ink-2);
  font-size: 13px;
}

.demo-set {
  margin-top: 34px;
}

.demo-set + .demo-set {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
}

.demo-set-head {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--brass);
  padding-left: 14px;
  margin: 0 0 14px;
  max-width: 72ch;
}

.demo-set-head .label {
  margin-bottom: 5px;
}

.demo-released {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 70ch;
}

.demo-drafts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 860px) {
  .demo-drafts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.demo-draft {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 16px 17px;
}

.demo-draft-who {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
  margin: 0 0 9px;
}

.demo-why {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  border-left: 2px solid var(--brass);
  padding-left: 11px;
  margin: 0 0 11px;
}

.demo-why--stop {
  border-left-color: var(--rust);
}

.demo-draft-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* The one that did not get written, and the reason the page exists. Dashed, like the empty box in step two. */
.demo-draft--asks {
  border-style: dashed;
  border-color: var(--rust-line);
  box-shadow: none;
}

.demo-draft-body--none {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  color: var(--rust);
}

.demo-punchline {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  border-left: 3px solid var(--brass);
  padding-left: 18px;
  max-width: 70ch;
}

/* --- step four: the decision, and what it measures --- */

.demo-review {
  margin-bottom: 14px;
}

.demo-review-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.demo-review-row .label {
  margin: 0;
}

.demo-hint {
  font-size: 12.5px;
  color: var(--mist);
  margin: 9px 0 0;
}

.demo-outcome {
  margin: 14px 0 0;
  padding: 10px 13px;
  border-radius: 3px;
  font-size: 13.5px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-2);
  color: var(--ink-2);
}

.demo-outcome--go {
  border-color: var(--sage-line);
  background: var(--sage-soft);
  color: var(--sage);
}

.demo-outcome--stop {
  border-color: var(--rust-line);
  background: var(--rust-soft);
  color: var(--rust);
}

.demo-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}

.demo-figure-num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brass);
}

/*
 * Never on its own. A bound of 47% after three decisions and 87% after twenty are different facts, and a
 * percentage with no count beside it cannot tell them apart — see docs/accepted-limits.md.
 */
.demo-figure-of {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
  font-weight: 600;
}

/* How many drafts are left. Beside the name, because the queue length is the thing a creator actually feels. */
.still-queue {
  margin-left: auto;
  color: var(--mist);
}
