/* Allheard site. Tokens and rules come from docs/brand.md ("Visual identity and tone"):
   paper and ink, teal for what you can tap, amber only for what the app heard.
   No inline styles anywhere: the CSP in _headers forbids them. */

:root {
  --paper: #f6f7f4;
  --card: #ffffff;
  --ink: #10302c;
  --ink-2: #4a615d;
  --teal: #1e6f66;
  --teal-strong: #175a53;
  --on-teal: #f6f7f4;
  --amber: #f2c14e;
  --amber-ink: #8a5a00;
  --error: #a4331f;
  --line: #d9ded8;
  --band: #10302c;
  --band-ink: #eef1ec;
  --band-ink-2: #b5c6c1;
  --band-line: #2a4a44;
  --shadow: 0 18px 40px -24px rgba(16, 48, 44, 0.35);

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Newsreader', Georgia, 'Times New Roman', serif;

  --gutter: 16px;
  --wide: 1120px;
  --measure: 68ch;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1e1b;
    --card: #142925;
    --ink: #eef1ec;
    --ink-2: #9fb3ae;
    --teal: #5fb8ac;
    --teal-strong: #7ccbc0;
    --on-teal: #0e1e1b;
    --amber-ink: #f2c14e;
    --error: #f2a08a;
    --line: #24403a;
    --band: #142925;
    --band-line: #24403a;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

::selection {
  background: var(--amber);
  color: #10302c;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms var(--ease);
}

a:hover {
  color: var(--teal-strong);
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 8.4vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p,
ul,
ol,
dl {
  margin: 0;
}

p + p {
  margin-top: 0.85em;
}

strong {
  font-weight: 600;
}

/* The device the brand owns: ink on an amber band, "marked as heard". */
mark {
  background: var(--amber);
  color: #10302c;
  padding: 0 0.16em;
  margin: 0 -0.04em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sr-only {
  position: absolute;
  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: var(--gutter);
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}

.skip:focus {
  top: 0.75rem;
  color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted {
  color: var(--ink-2);
}

.lede {
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  max-width: 34em;
}

.ui {
  font-family: var(--display);
}

.num {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}

/* Header and footer */

.soon-bar {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9rem;
  text-align: center;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.lockup:hover {
  color: var(--ink);
}

.mark {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}

.site-footer {
  margin-top: clamp(5rem, 12vw, 9rem);
  border-top: 1px solid var(--line);
  padding-block: 3rem 3.5rem;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
}

.footer-top {
  display: grid;
  gap: 1.75rem;
}

.footer-top p {
  max-width: 30em;
  margin-top: 0.75rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-links h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--ink-2);
  text-decoration: none;
}

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

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Buttons and links that act */

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--on-teal);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 160ms var(--ease),
    transform 160ms var(--ease);
}

.btn:hover {
  background: var(--teal-strong);
  color: var(--on-teal);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

.more {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}

.more::after {
  content: ' \2192';
}

/* Sections */

.section {
  padding-top: clamp(5rem, 11vw, 8.5rem);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.list-top {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

/* Home: hero */

.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
}

.hero h1 {
  max-width: 13ch;
}

.hero-body {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.availability {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink-2);
  display: grid;
  gap: 0.6rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.stores li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.stores li span {
  color: var(--ink-2);
  font-weight: 400;
}

/* The launch notify form, on the home and pricing pages. */

.notify {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.notify[hidden] {
  display: none;
}

.notify-field {
  display: grid;
  gap: 0.35rem;
}

.notify-field label {
  color: var(--ink);
  font-weight: 600;
}

.notify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.notify-row input {
  flex: 1 1 13rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink-2);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.notify-row input[aria-invalid='true'] {
  border-color: var(--error);
}

.notify-error {
  color: var(--error);
}

.notify-promise {
  font-size: 0.95rem;
}

.notify-promise a,
.notify-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The honeypot: out of sight, not display: none, which some bots skip. */
.notify-trap {
  position: absolute;
  left: -9999px;
}

.notify-sent {
  color: var(--ink);
  font-weight: 600;
}

/* Stays in the page, so that a screen reader is already watching it when the text arrives. */
.notify-sent:empty {
  position: absolute;
}

.notify-section {
  margin-top: 2.5rem;
}

.notify-section .availability {
  max-width: 34rem;
}

@media (min-width: 900px) {
  .hero-body {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }

  .hero-copy {
    padding-top: 1.25rem;
  }
}

/* Home: the typing demo. The finished state is the markup; site.js only replays it. */

.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  display: grid;
  gap: 1.1rem;
}

.demo-label {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.demo-line {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  min-height: 4.2em;
}

.demo-line mark {
  transition:
    background-color 420ms var(--ease),
    color 420ms var(--ease);
}

/* While typing, the heard words look like the rest; the amber arrives once the sentence is done. */
.demo[data-state='typing'] .demo-line mark,
.demo[data-state='typed'] .demo-line mark {
  background-color: transparent;
  color: inherit;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--teal);
  vertical-align: -0.12em;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.meal {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-family: var(--display);
  display: grid;
  gap: 0.5rem;
  transition:
    opacity 420ms var(--ease),
    transform 420ms var(--ease);
}

.demo[data-state='typing'] .meal,
.demo[data-state='typed'] .meal {
  opacity: 0.2;
  transform: translateY(6px);
}

.meal-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 600;
}

.meal-title span:last-child {
  color: var(--ink-2);
  font-weight: 400;
  font-size: 0.9rem;
}

.meal ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.meal li,
.meal-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}

.meal li span:last-child {
  color: var(--ink-2);
  white-space: nowrap;
}

.meal-total {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  font-weight: 600;
}

.meal-total span:last-child {
  white-space: nowrap;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.demo-note {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.replay {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.replay:hover {
  background: transparent;
  color: var(--teal-strong);
}

/* Home: input modes, an editorial list rather than a grid of cards */

.modes {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.modes > li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.4rem 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.modes .icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--teal);
  grid-row: span 2;
}

.modes h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.modes p {
  max-width: 36em;
}

.said {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.5;
}

.said::before {
  content: '\201C';
}

.said::after {
  content: '\201D';
}

@media (min-width: 900px) {
  .modes > li {
    grid-template-columns: 3.5rem 15rem minmax(0, 1fr);
    gap: 2rem;
    align-items: baseline;
    padding-block: 2.25rem;
  }

  .modes .icon {
    grid-row: auto;
    align-self: start;
  }
}

.modes-after {
  margin-top: 1.75rem;
  max-width: 40em;
}

/* Home: Today mock */

.today-section {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.today-copy {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}

.today {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  font-family: var(--display);
  display: grid;
  gap: 0.25rem;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.today-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0.25rem 0.75rem;
}

.today-top strong {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.today-top span {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.tile {
  padding: 0.85rem 0.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

.tile-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tile-value {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.tile-value small {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-left: 0.2em;
}

.tile-sub {
  font-size: 0.9rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.meter {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  margin-top: 0.15rem;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--teal);
}

.meter .w-80 {
  width: 80%;
}

.meter .w-84 {
  width: 84%;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
  border-top: 1px solid var(--line);
}

.pair .tile {
  border-top: 0;
}

.composer {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.composer svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--teal);
}

.figure-note {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--ink-2);
  text-align: center;
  margin-top: 0.75rem;
}

@media (min-width: 900px) {
  .today-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }
}

/* Home and integrations: sources as type, no logos */

.sources {
  list-style: none;
  padding: 0;
  display: grid;
}

.sources > li {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}

.sources > li:last-child {
  border-bottom: 1px solid var(--line);
}

.source-name {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.source-what {
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .sources > li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: baseline;
  }
}

.next-up {
  margin-top: 1.5rem;
  font-family: var(--display);
  color: var(--ink-2);
}

.next-up strong {
  color: var(--ink);
}

/* Home: the EU band, the one dark ground on the page */

.band {
  margin-top: clamp(5rem, 11vw, 8.5rem);
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.band a {
  color: var(--amber);
}

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

.band .section-head p {
  color: var(--band-ink-2);
}

.facts {
  display: grid;
  gap: 0;
}

.facts > div {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--band-line);
}

.facts dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.facts dd {
  margin: 0;
  color: var(--band-ink-2);
  max-width: 34em;
}

@media (min-width: 720px) {
  .facts {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

/* Home: pricing teaser and about */

.teaser {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}

.teaser .price-line {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.about {
  display: grid;
  gap: 2rem;
}

.about-text {
  max-width: 36em;
  font-size: 1.2rem;
}

.signature {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink-2);
}

.signature strong {
  color: var(--ink);
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 4rem;
  }
}

/* Integrations page */

.page-head {
  padding-top: clamp(3rem, 8vw, 5.5rem);
  display: grid;
  gap: 1.25rem;
}

.page-head > * {
  max-width: 48rem;
}

.page-head h1 {
  font-size: clamp(2.4rem, 6.6vw, 4.4rem);
}

.integration {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.integration:last-of-type {
  border-bottom: 1px solid var(--line);
}

.integration h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.integration-body {
  display: grid;
  gap: 1.5rem;
}

.integration dl {
  display: grid;
  gap: 1rem;
}

.integration dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.integration dd {
  margin: 0.15rem 0 0;
}

.platform {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .integration {
    grid-template-columns: 22rem minmax(0, 1fr);
    gap: 3rem;
  }

  .integration-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* Pricing page */

.plans {
  display: grid;
  gap: 1.25rem;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.plan.featured {
  box-shadow: var(--shadow);
  border-color: var(--teal);
}

.plan h2 {
  font-size: 1.6rem;
}

.plan-price {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  display: grid;
  gap: 0.25rem;
}

.plan-price strong {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price span {
  color: var(--ink-2);
  font-size: 1rem;
}

.plan ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.plan li::marker {
  color: var(--teal);
}

.lifetime {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 0.5rem;
}

.lifetime h2 {
  font-weight: 600;
  font-size: 1.15rem;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }

  .lifetime {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: baseline;
  }
}

.faq {
  display: grid;
  max-width: 48rem;
}

.faq > div {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}

.faq dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.faq dd {
  margin: 0;
  max-width: var(--measure);
}

/* Read mode: support and the legal pages */

.doc {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(3rem, 7vw, 5rem);
}

.doc-head {
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}

.doc-head h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
}

.doc-meta {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.toc {
  font-family: var(--display);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.25rem;
}

.toc h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}

.toc ol {
  padding-left: 1.4rem;
  display: grid;
  gap: 0.1rem;
  font-variant-numeric: tabular-nums;
}

.toc li::marker {
  color: var(--ink-2);
}

.toc a {
  display: block;
  padding-block: 0.25rem;
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal);
  text-decoration: underline;
}

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

.prose h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 0.9rem;
}

.prose > h2:first-child,
.prose > section:first-child > h2 {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + ol,
.prose ol + p,
.prose p + .table,
.prose .table + p,
.prose ul + .table {
  margin-top: 0.85em;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.4rem;
}

.prose li::marker {
  color: var(--ink-2);
}

.prose section {
  scroll-margin-top: 1.5rem;
}

.placeholder {
  font-family: var(--display);
  font-size: 0.92em;
  background: var(--card);
  border: 1px dashed var(--amber-ink);
  color: var(--amber-ink);
  border-radius: 4px;
  padding: 0 0.25em;
}

.table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--display);
  font-size: 0.95rem;
  line-height: 1.4;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card);
}

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.steps {
  counter-reset: none;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  font-family: var(--display);
}

.prose .contact-list {
  padding-left: 0;
  gap: 0;
}

.contact-list li {
  display: grid;
  gap: 0.1rem 1.5rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list li > span:first-child {
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .contact-list li {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .doc.with-toc {
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: 4.5rem;
    align-items: start;
  }

  .doc.with-toc .doc-head {
    grid-column: 1 / -1;
  }

  .doc.with-toc .toc {
    position: sticky;
    top: 1.5rem;
    border-bottom: 0;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}

/* 404 */

.lost {
  padding-top: clamp(4rem, 12vw, 8rem);
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.lost > * {
  max-width: 40rem;
}

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

.band-more {
  margin-top: 2rem;
}
