/* Echolert website: layout and components.

   Colors and fonts come from theme.css, a byte-for-byte copy of the extension's extension/theme.css (the approved
   "Pulse" look): never change its values; scripts/check_website.py checks the copy. The few site-only shades below
   are written with light-dark() like theme.css, so they follow the same light or dark choice.

   Light or dark: data-theme="light" | "dark" on <html> (assets/js/theme-boot.js sets it before the page is drawn;
   without scripts the system's choice is followed). This file is the only other stylesheet: no inline styles, no
   style="" attributes and no external fonts, so the site works with a strict Content-Security-Policy. */

/* ------------------------------------------------------------------------------------------------ site tokens -- */
:root {
  --site-max: 1180px;
  --gutter: 16px;
  --header-h: 64px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --grid-line: light-dark(rgba(15, 23, 42, 0.055), rgba(148, 163, 184, 0.07));
  --glow-teal: light-dark(rgba(13, 148, 136, 0.08), rgba(45, 212, 191, 0.08));
  --frame-glow: light-dark(rgba(8, 145, 178, 0.18), rgba(34, 211, 238, 0.22));
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ------------------------------------------------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* The sticky header covers the top of the window: a jump to a #section, or a focused link or button in the page,
   stops just below it. The 32 px also leave room for a taller header: with large text (Chrome's font size 20 or
   24 px) the theme button can wrap onto a second row and the header grows to about 90 px; with 24 px, Shift+Tab hid
   the top of a link's focus ring under it. This is set on the page's content, not as scroll-padding on <html>: with
   that, Chrome treats everything inside the sticky header as hidden, and focusing the menu or theme button mid-page
   made the page jump. At the bottom, a link reached with Tab stops 16 px above the window's edge, so its whole focus
   ring shows. */
main, main :is(a, button, summary, [tabindex], [id]), .site-footer :is(a, button) {
  scroll-margin-top: calc(var(--header-h) + 32px);
  scroll-margin-bottom: 16px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--text); text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 650; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--text); }

.container {
  width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--accent-strong); color: var(--accent-ink); font-weight: 650; text-decoration: none;
  box-shadow: var(--shadow-pop);
}
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
/* A thin cyan line along the bottom edge, as on the side panel's top bar. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-line) 25%, var(--accent-line) 75%, transparent);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  border-radius: 12px;
}
.brand-mark {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line);
  box-shadow: 0 0 18px -4px var(--accent-glow);
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.brand-name { font: 650 1.1875rem/1 var(--font-display); letter-spacing: -0.01em; }
/* "Preview", on every page: a solid cyan pill (white on cyan in light mode, deep teal on cyan in dark mode). */
.badge-preview {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px;
  font-size: 0.75rem; line-height: 1.1; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-strong); border: 1px solid var(--accent-strong);
  box-shadow: 0 0 14px -4px var(--accent-glow);
}
.header-inner > .badge-preview { margin-right: auto; }

.site-nav { display: flex; align-items: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.nav-list a:hover { color: var(--text); background: var(--panel-2); }
.nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 8px var(--accent-glow);
}

.icon-button, .menu-toggle {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: var(--text-2);
  font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
}
.icon-button { width: 40px; padding: 0; }
.menu-toggle { padding: 0 12px; color: var(--text); }
.icon-button:hover, .menu-toggle:hover { color: var(--accent-text); border-color: var(--accent-line); background: var(--panel-2); }
.icon-button svg, .menu-toggle svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round;
}
/* Light / dark: the moon in light mode (switch to dark), the sun in dark mode (switch to light). */
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
/* Without scripts, neither button can work: the links simply show (below, on small screens). */
html:not(.js) .theme-toggle, html:not(.js) .menu-toggle { display: none; }

@media (max-width: 859.98px) {
  html:not(.js) .site-nav { order: 10; width: 100%; padding-bottom: 10px; }
  html:not(.js) .nav-list a { padding: 0 10px; }
  .js .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 10px var(--gutter) 16px;
    background: var(--panel); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-pop);
  }
  .js .menu-toggle[aria-expanded="true"] + .nav-list { display: flex; }
  .js .nav-list a { display: flex; min-height: 48px; font-size: 1.0625rem; padding: 0 14px; }
  .js .nav-list a[aria-current="page"] { background: var(--accent-soft); }
  .js .nav-list a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
}
@media (max-width: 419.98px) {
  .menu-toggle { width: 40px; padding: 0; }
  .menu-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .brand-name { font-size: 1.0625rem; }
}
/* The narrowest phones (and 400% zoom): the header stays on one row. */
@media (max-width: 359.98px) { :root { --gutter: 12px; } .header-inner { gap: 6px; } }
@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .site-nav { margin-left: 8px; }
}

/* ---------------------------------------------------------------------------------------- buttons and links -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text);
  font-weight: 650; font-size: 0.9375rem; text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { border-color: var(--accent-line); background: var(--panel-2); }
.btn-primary {
  background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink);
  box-shadow: 0 12px 30px -16px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-strong-hover); border-color: var(--accent-strong-hover);
  box-shadow: 0 0 22px -4px var(--accent-glow);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* Balanced lines keep the arrow with the last word when a card link or the Features page's link wraps (with large
   text it could sit alone). Balance works only on block-like boxes: links inside a sentence wrap with it. */
.more { font-weight: 650; text-decoration: none; text-wrap: balance; }
.more::after {
  content: "→"; content: "→" / ""; display: inline-block; margin-left: 6px; transition: transform 0.2s ease;
}
.more:hover { text-decoration: underline; }
.more:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------------------------------------- shared pieces -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 0.75rem; line-height: 1.2; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent-glow);
}
.grad {
  background: linear-gradient(100deg, var(--accent-text) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (forced-colors: active) { .grad { background: none; color: CanvasText; } }

.icon-tile {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px;
  color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line);
  box-shadow: 0 0 26px -10px var(--accent-glow);
}
.icon-tile svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ticked lists: a small cyan circle with a check mark, drawn in CSS. */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.18em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.ticks li::after {
  content: ""; position: absolute; left: 7.5px; top: calc(0.18em + 4.5px); width: 5px; height: 9px;
  border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ticks strong { color: var(--text); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip-row li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 0.8125rem; line-height: 1.3; color: var(--text-2); background: var(--panel); border: 1px solid var(--border);
}
.chip-row li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* "Notify me when ..." written like the side panel's rule boxes. They wrap like the site's paragraphs (text-wrap:
   pretty), so a rule rarely ends with one word alone on its last line (none does at 1385 px): the home page's p.rule
   already got this from p, and the Use cases page's span.rule boxes get it here (2026-11-14). Measured, it never adds
   a line or changes a box's height. */
.rule {
  display: block; padding: 11px 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--border-strong); color: var(--text); line-height: 1.45; text-wrap: pretty;
}
.rule b { color: var(--accent-text); font-weight: 650; }

/* ------------------------------------------------------------------------------------------------ waveforms -- */
/* Bars that rise and fall like the side panel's waveform; decoration only (aria-hidden). They stand still for
   anyone who asks for less motion. Each bar's rest height, range, speed and delay come from the rules below. */
.wave {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 120px; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
}
.wave i {
  flex: none; width: 4px; height: 100%; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(var(--rest, 0.34)); transform-origin: center;
}
:root[data-theme="dark"] .wave { filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.45)); }
.wave i:nth-child(2n) { --lo: 0.16; --hi: 0.62; --dur: 1.3s; --delay: -0.5s; --rest: 0.46; }
.wave i:nth-child(3n) { --lo: 0.28; --hi: 0.96; --dur: 1.9s; --delay: -1.1s; --rest: 0.72; }
.wave i:nth-child(4n+1) { --lo: 0.12; --hi: 0.5; --dur: 1.15s; --delay: -0.3s; --rest: 0.28; }
.wave i:nth-child(5n) { --lo: 0.3; --hi: 0.8; --dur: 2.2s; --delay: -1.6s; --rest: 0.58; }
.wave i:nth-child(7n) { --lo: 0.22; --hi: 1; --dur: 1.7s; --delay: -0.9s; --rest: 0.9; }
.wave i:nth-child(11n) { --lo: 0.1; --hi: 0.42; --dur: 1.4s; --delay: -0.2s; --rest: 0.2; }
@media (prefers-reduced-motion: no-preference) {
  .wave i { animation: wave-bar var(--dur, 1.6s) ease-in-out var(--delay, 0s) infinite alternate; }
}
@keyframes wave-bar {
  from { transform: scaleY(var(--lo, 0.2)); }
  to { transform: scaleY(var(--hi, 0.8)); }
}
.wave-sm { height: 44px; gap: 4px; }
.wave-sm i { width: 3px; }
/* A quiet line: the bars lie low and still (the 404 page). */
.wave-flat i { transform: scaleY(0.08); animation: none; }

/* ------------------------------------------------------------------------------------------------------- hero -- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 64px; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 60% at 75% 25%, var(--bg-glow), transparent 70%),
    radial-gradient(40% 45% at 12% 0%, var(--glow-teal), transparent 70%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 60% 20%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.status-pill {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 26px;
  padding: 7px 14px 7px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 0.8125rem; line-height: 1.35; color: var(--text-2);
}
.status-pill strong {
  display: inline-flex; align-items: center; gap: 9px; color: var(--accent-text); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.status-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 12px var(--accent-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: dot-glow 2.4s ease-in-out infinite; }
}
@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 0 5px var(--accent-soft), 0 0 16px var(--accent-glow); }
}
.hero h1 {
  font-size: clamp(2.6rem, 1.55rem + 4.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.032em;
  font-weight: 700; margin-bottom: 22px;
}
.hero-lead {
  font: 600 clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem)/1.35 var(--font-display); color: var(--text);
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.hero-text { max-width: 36rem; color: var(--text-2); font-size: 1.0625rem; margin-bottom: 30px; }
.hero .chip-row { margin-top: 30px; }

/* The real side panel, with one of its alerts close up in front of it (only the close-up on small screens). */
.hero-visual { position: relative; margin: 0; display: grid; justify-items: center; }
.hero-visual > .wave { position: absolute; left: -15%; right: -15%; top: 42%; height: 260px; transform: translateY(-50%); z-index: 0; opacity: 0.55; }
@media (max-width: 1023.98px) { .hero-visual > .wave { display: none; } }
/* (".hero-visual ..." so these win over the general .frame rules further down.) */
.hero-visual .hero-panel { display: none; }
.hero-visual .hero-alert { position: relative; z-index: 2; width: min(100%, 470px); }
.hero-visual figcaption { position: relative; z-index: 2; margin-top: 18px; }
@media (min-width: 1024px) {
  .hero { padding: 40px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 40px; }
  .hero-visual .hero-panel { display: block; position: relative; z-index: 1; width: min(100%, 318px); justify-self: end; margin-right: 6%; }
  /* The close-up sits over the panel's own Important alert, like a magnifier (it covers that alert completely). */
  .hero-visual .hero-alert { position: absolute; width: 330px; right: calc(6% - 19px); bottom: 19%; }
  .hero-visual figcaption { justify-self: end; margin-right: 6%; }
}

/* --------------------------------------------------------------------------------------- screenshot frames -- */
/* A frame in the screenshot's own look (dark or light), so each picture reads like the panel itself. */
.frame {
  display: block; position: relative; padding: 8px; border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pop), 0 40px 90px -46px var(--frame-glow);
}
.frame img { display: block; width: 100%; height: auto; border-radius: 13px; }
.frame-dark { color-scheme: dark; }
.frame-light { color-scheme: light; }
.frame-paper { padding: 14px; }
.frame-paper img { border-radius: 8px; }
.frame-lift { box-shadow: var(--shadow-pop), 0 0 0 1px var(--accent-line), 0 30px 70px -30px var(--frame-glow); }
.shot { margin: 0; display: grid; justify-items: center; gap: 14px; }
.shot-caption {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; line-height: 1.3; color: var(--muted);
}
.shot-caption::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warn-dot);
  box-shadow: 0 0 0 3px light-dark(rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.2));
}

/* ---------------------------------------------------------------------------------------------- sections -- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 84px) 0; }
.section-band { background: var(--panel); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.95rem); line-height: 1.1; letter-spacing: -0.024em;
  font-weight: 700; margin-bottom: 16px;
}
:where(.section-head) p { color: var(--text-2); font-size: 1.0625rem; margin: 0; }
:where(.section-head) p + p { margin-top: 12px; }
.section-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.section-head.center + * .section-foot, .section-foot.center { justify-content: center; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.section-band .card { background: var(--panel-2); }
:where(.card) h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 650; margin: 20px 0 8px; letter-spacing: -0.01em; }
:where(.card) p { color: var(--text-2); margin: 0; }
:where(.card) p + p, :where(.card) p + .rule, :where(.card) .rule + p { margin-top: 14px; }
/* The link sits at the card's bottom and is only as wide as its words, so its focus ring hugs the text; the space
   above it is the rule box's margin (only the use-case cards have such a link). */
.card .more { margin-top: auto; align-self: flex-start; }
.card .ticks { margin-top: 14px; }

/* --------------------------------------------------------------------------------------- how it works ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.step { overflow: hidden; }
.step-num {
  position: absolute; top: 16px; right: 22px; font: 700 3.25rem/1 var(--font-display); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--accent-line);
}
@media (forced-colors: active) { .step-num { color: CanvasText; -webkit-text-stroke: 0; } }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-head .eyebrow { margin: 0; }
.step-head .eyebrow::before { display: none; }

/* ---------------------------------------------------------------------------------- demo video placeholder -- */
/* A poster, not a player: nothing to click. It is always drawn in the dark look. */
.poster {
  color-scheme: dark; position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; min-height: 340px; padding: 48px 24px; text-align: center;
  border-radius: var(--r-xl); color: var(--text); border: 1px solid var(--border-strong);
  background:
    radial-gradient(70% 90% at 50% 125%, rgba(34, 211, 238, 0.24), transparent 62%),
    radial-gradient(45% 60% at 10% -5%, rgba(45, 212, 191, 0.16), transparent 70%),
    radial-gradient(40% 50% at 95% 10%, rgba(34, 211, 238, 0.1), transparent 70%),
    var(--bg);
  box-shadow: var(--shadow-pop), 0 50px 120px -60px var(--frame-glow);
  max-width: 1040px; margin-inline: auto;
}
.poster::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 30%, transparent 80%);
}
.poster > .wave { position: absolute; left: 0; right: 0; bottom: 6%; height: 120px; z-index: -1; opacity: 0.7; }
.poster-body { display: grid; justify-items: center; gap: 6px; max-width: 34rem; }
.poster-play {
  position: relative; width: 92px; height: 92px; margin-bottom: 22px; display: grid; place-items: center;
  border-radius: 50%; color: var(--accent); background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--accent-line); box-shadow: 0 0 60px -10px var(--accent-glow), inset 0 0 30px -12px var(--accent-glow);
}
.poster-play::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(34, 211, 238, 0.18);
}
@media (prefers-reduced-motion: no-preference) {
  .poster-play::after { animation: ring 2.8s ease-out infinite; }
}
@keyframes ring {
  from { transform: scale(0.86); opacity: 1; }
  to { transform: scale(1.35); opacity: 0; }
}
.poster-play svg { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; }
.poster-title { margin: 0; font: 650 clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem)/1.3 var(--font-display); letter-spacing: -0.01em; }
.poster-sub { margin: 0; color: var(--text-2); }
.poster-tag {
  position: absolute; top: 18px; left: 18px; padding: 5px 11px; border-radius: 999px; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.poster-time {
  position: absolute; top: 18px; right: 18px; padding: 5px 11px; border-radius: 999px; font-size: 0.8125rem;
  font-variant-numeric: tabular-nums; color: var(--text-2); background: rgba(11, 18, 32, 0.7); border: 1px solid var(--border);
}
/* The poster's size: the waveform always has its own strip below the words, so the bars never move behind the text,
   at any width or text size. (After ".poster > .wave", so these win.)
   Phones and tablets: the poster grows with its words; the room at the top grows with the text size, so the
   "Coming soon" tag never meets the play button's ring.
   From 1024 px: a 16:9 picture with as much room above the words as below them (where the waveform runs), so the
   words stay centered. With large text it grows instead of cutting them off: overflow: clip (unlike hidden) lets
   min-height: auto keep the words inside a box with an aspect-ratio. */
@media (max-width: 1023.98px) {
  .poster { min-height: 0; padding: calc(24px + 3rem) 24px 132px; }
  .poster > .wave { bottom: 10px; height: 96px; }
}
@media (min-width: 1024px) {
  .poster { aspect-ratio: 16 / 9; min-height: auto; overflow: clip; padding-block: 164px; }
  .poster > .wave { bottom: 28px; }
}

/* ------------------------------------------------------------------------------------------- feature tour -- */
.tour { display: grid; gap: clamp(64px, 9vw, 120px); }
.tour-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.tour-media { display: grid; justify-items: center; }
.tour-media .frame { width: min(100%, 340px); }
.tour-media .frame-paper { width: min(100%, 400px); }
.tour-copy h3 {
  font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 700; margin-bottom: 14px;
}
:where(.tour-copy) > p { color: var(--text-2); font-size: 1.0625rem; }
.tour-copy .ticks { margin: 22px 0 26px; }
@media (min-width: 900px) {
  .tour-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .tour-row.flip .tour-media { order: -1; }
}

/* ------------------------------------------------------------------------------------------------ use cases -- */
.usecase-card .rule { margin-top: 18px; margin-bottom: 18px; font-size: 0.9375rem; }
.section-band .card .rule { background: var(--panel); }

/* -------------------------------------------------------------------------------------------------- privacy -- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
}
.split .section-head { margin-bottom: 24px; }
.privacy-card { padding: 30px; }
.privacy-card .ticks { gap: 16px; }

/* ----------------------------------------------------------------------------------------------- CTA band -- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(44px, 6vw, 76px) 24px; border-radius: var(--r-xl);
  background: radial-gradient(60% 110% at 50% 0%, var(--bg-glow), transparent 72%), var(--panel);
  border: 1px solid var(--accent-line); box-shadow: var(--shadow), 0 0 70px -36px var(--accent-glow);
}
.cta-band > .wave { position: absolute; left: 0; right: 0; bottom: -10px; height: 110px; z-index: -1; opacity: 0.35; }
.cta-band:has(> .wave) { padding-bottom: clamp(96px, 10vw, 124px); }
.cta-band h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
  margin-bottom: 14px;
}
:where(.cta-band) p { max-width: 40rem; margin-inline: auto; color: var(--text-2); }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }
.fine { font-size: 0.875rem; color: var(--muted); }

/* ------------------------------------------------------------------------------------------- inner pages -- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 4vw, 60px); }
.page-hero h1 {
  font-size: clamp(2.3rem, 1.55rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
  margin-bottom: 18px; max-width: 20ch;
}
.page-hero .lead { max-width: 44rem; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--text-2); margin: 0; }
.page-hero .lead + .lead { margin-top: 12px; }
.page-hero > .container { position: relative; }
.page-hero .wave { position: absolute; right: var(--gutter); top: -6px; width: 300px; height: 90px; opacity: 0.5; z-index: -1; }
@media (max-width: 1099.98px) { .page-hero .wave { display: none; } }

.chip-nav { position: relative; margin-top: 30px; }
.chip-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--text-2);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.chip-nav a:hover { border-color: var(--accent-line); color: var(--accent-text); }

/* Features page: one block per feature, with its picture where there is one. */
.feature-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: clamp(52px, 7vw, 88px) 0; border-top: 1px solid var(--border); }
.feature-block:first-child { border-top: 0; }
.feature-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.feature-title h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
:where(.feature-copy) > p { color: var(--text-2); font-size: 1.0625rem; }
.feature-copy .ticks { margin-top: 22px; }
.feature-copy .more { display: inline-block; margin-top: 24px; }
.feature-media { display: grid; justify-items: center; }
.feature-media .frame { width: min(100%, 360px); }
.feature-media .frame-paper { width: min(100%, 400px); }
@media (min-width: 960px) {
  .feature-block.has-media { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; align-items: start; }
  .feature-block.has-media .feature-media { position: sticky; top: calc(var(--header-h) + 32px); }
}
.compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 30px; }
@media (min-width: 760px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare .card h3 { margin-top: 0; }
.tag {
  display: inline-flex; align-self: flex-start; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text); background: var(--panel); border: 1px solid var(--accent-line);
}
.compare .tag { margin-bottom: 14px; }

/* Levels (Quiet, Normal, Important), as tags. */
.level { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--panel); }
.level-important { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.level-normal { color: var(--accent-text); background: var(--panel); border-color: var(--accent-line); }

/* A boxed note: supported setup, preview status, the alerts line. */
.note {
  position: relative; padding: 22px 24px; border-radius: var(--r-lg); background: var(--info-bg);
  border: 1px solid var(--accent-line); color: var(--text);
}
.note h2, .note h3 { font-size: 1.1875rem; font-weight: 650; margin-bottom: 10px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note .ticks li { color: var(--text-2); }
.note-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.note-warn strong { color: var(--warn); }
.note-row { display: flex; gap: 14px; align-items: flex-start; }
.note-row .icon-tile { width: 40px; height: 40px; border-radius: 12px; }

/* Use cases page. */
.usecase { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: clamp(52px, 7vw, 88px) 0; border-top: 1px solid var(--border); }
.usecase:first-child { border-top: 0; }
@media (min-width: 960px) { .usecase { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }
.usecase-intro h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 18px 0 14px; }
:where(.usecase-intro) p { color: var(--text-2); font-size: 1.0625rem; }
.example { padding: 26px; }
.example-label {
  margin: 0 0 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.example-goal {
  margin: 0 0 24px; padding: 14px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); font-size: 1.0625rem; line-height: 1.5;
}
.example-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.example-rules li { display: grid; gap: 8px; }
@media (min-width: 560px) {
  /* A fixed column for the level, so every rule box has the same width. */
  .example-rules li { grid-template-columns: minmax(0, 1fr) 6rem; align-items: center; gap: 12px; }
}
.example-rules .level { justify-self: start; }

/* Pricing page. */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { gap: 16px; padding: 28px; }
.plan-name { font: 650 1.25rem/1.2 var(--font-display); margin: 0; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.plan-price strong {
  font: 700 clamp(2.3rem, 1.9rem + 1.3vw, 3rem)/1 var(--font-display); letter-spacing: -0.035em; color: var(--text);
}
.plan-price span { color: var(--muted); }
.plan .ticks { margin: 4px 0 8px; }
.na-label {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px;
  padding: 0 16px; border-radius: 12px; border: 1px dashed var(--border-strong); background: var(--panel-2);
  color: var(--muted); font-weight: 650; font-size: 0.9375rem; cursor: default; user-select: none;
}
.na-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn-dot);
}
.plan-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 28px; padding: 16px 20px;
  border-radius: var(--r-md); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--text);
}
.plan-strip strong { color: var(--warn); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.plan-strip p { margin: 0; }
/* Headings balance their lines, which can split "Listening-hour" at its hyphen. This one breaks only where it must. */
.no-balance { text-wrap: wrap; }
.faq + .fine { margin-top: 20px; }

/* Listening-hour packages: the total hours first (Bonus Hours included), then the price and the plan prices. */
.packs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pack { gap: 14px; }
.pack-hours { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.pack-hours strong {
  font: 700 clamp(2.6rem, 2.1rem + 1.6vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.035em; color: var(--text);
}
.pack-hours span { font: 650 1.25rem/1.2 var(--font-display); color: var(--text); }
.pack-includes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 30px; margin: 0; color: var(--text-2); }
/* "+ 5 Bonus Hours": a calm cyan label, never a flashing sticker. */
.bonus-tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 0.8125rem; line-height: 1.35; font-weight: 650; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.pack-price { margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.pack-price strong { font: 700 1.875rem/1 var(--font-display); letter-spacing: -0.025em; color: var(--text); }
.pack-plan-prices { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 0.9375rem; }
.pack-plan-prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; color: var(--text-2); }
.pack-plan-prices strong { color: var(--text); font-variant-numeric: tabular-nums; }
.pack-rules { margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .pack-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; } }

/* Referral rewards (planned): what each side gets, then the rules. */
.rewards { margin-bottom: 18px; }
.reward h3 { margin: 18px 0 10px; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.625rem); line-height: 1.2; letter-spacing: -0.015em; }
.reward-for {
  display: block; margin-bottom: 6px; font-family: var(--font); font-size: 0.75rem; line-height: 1.3; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
}
.reward-rules .card h3 { margin: 0; font-size: 1.125rem; }
.reward-rules .ticks { gap: 10px; }
.rewards + .reward-rules + .fine { margin: 24px 0 0; }

/* Tables: any table in the legal pages. */
table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
}
caption { caption-side: top; text-align: left; padding: 0 0 12px; color: var(--muted); font-size: 0.9375rem; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th {
  background: var(--panel-2); color: var(--text-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; vertical-align: bottom;
}
tbody th { font-weight: 650; color: var(--text); }
tbody td { color: var(--text-2); }
tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 559.98px) {
  th, td { padding: 11px 10px; }
  .plan { padding: 22px; }
}

/* FAQ: native details/summary (works with the keyboard and without scripts). */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; } }
.faq-toc { display: none; }
@media (min-width: 1024px) {
  .faq-toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
  .faq-toc ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--border); display: grid; gap: 4px; }
  .faq-toc a { display: block; padding: 5px 0; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
  .faq-toc a:hover { color: var(--accent-text); }
}
.faq-group + .faq-group { margin-top: 52px; }
.faq-group > h2 { font-size: 1.375rem; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 16px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--panel); box-shadow: var(--shadow);
}
.faq details + details { margin-top: 10px; }
.faq details[open] { border-color: var(--accent-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-md); font-weight: 650; font-size: 1.0625rem; line-height: 1.4; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 4px 0; border: solid var(--accent-text);
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.faq summary:hover { color: var(--accent-text); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq .answer ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.faq .answer li + li { margin-top: 6px; }
.contact-card { padding: 30px; }
.faq .contact-card { margin-top: 18px; }
.contact-card h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.02em; font-weight: 700; margin: 18px 0 10px; }
.contact-line { font-size: 1.125rem; margin: 18px 0; }

/* Owner-only information that is still missing: always visible, never mistaken for real text. */
mark.placeholder {
  padding: 1px 7px; border-radius: 6px; color: var(--warn); background: var(--warn-bg);
  border: 1px dashed var(--warn); font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ------------------------------------------------------------------------------- legal pages (the fragment) -- */
/* The privacy policy and terms are written as plain HTML fragments: section, h2, h3, p, ul, ol, li, strong, em,
   a, code, table (thead, tbody, tr, th, td), one <aside class="draft-notice"> at the top and
   <mark class="placeholder"> for what only the owner can fill in. Everything they use is styled here; nothing in
   the fragment needs a class. Its "The key points" (#key-points) and "On this page" (#on-this-page) sections get
   their own look: a summary card, and a contents card that becomes a sticky side column on wide screens.
   Spacing never relies on margins collapsing, so the same rules work in the side-column grid. */
.legal-main { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
/* About 75 characters per line (measured): comfortable for long reading. */
.legal { max-width: 37.5rem; margin-inline: auto; font-size: 1.0625rem; line-height: 1.75; }
.legal-head { margin-bottom: 32px; }
.legal h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); line-height: 1.1; letter-spacing: -0.028em; font-weight: 700; }
.legal > section { margin-top: 2.6rem; }
.legal h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700;
  margin: 2.6rem 0 0.8rem; padding-top: 1.6rem; border-top: 1px solid var(--border);
}
.legal section > h2:first-child { margin-top: 0; }
.legal section > :last-child { margin-bottom: 0; }
/* After a jump from the contents (or another page), the section's heading lights up. A section inside a section
   (the Terms' referral program, inside section 8) starts with an h3. */
.legal section:target > :is(h2, h3) { color: var(--accent-text); }
/* A short cyan bar before each sub-heading, as on the extension's privacy page (lines that wrap stay aligned). */
.legal h3 { position: relative; padding-left: 16px; font-size: 1.125rem; line-height: 1.4; font-weight: 650; margin: 1.8rem 0 0.5rem; }
.legal h3::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 4px; height: 1em; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}
:where(.legal) p, :where(.legal) ul, :where(.legal) ol { margin: 0 0 1.05rem; }
:where(.legal) ul, :where(.legal) ol { padding-left: 1.45rem; }
.legal li + li { margin-top: 0.45rem; }
.legal li > ul, .legal li > ol { margin: 0.45rem 0 0; }
.legal li::marker { color: var(--accent-text); }
.legal a { overflow-wrap: anywhere; }
.legal strong { color: var(--text); }
/* The date line under the draft notice. */
.legal > .draft-notice + p { font-size: 0.9375rem; color: var(--text-2); }

/* "The key points": a summary card. */
.legal > #key-points {
  margin-top: 1.6rem; padding: 22px 24px; border-radius: var(--r-lg); background: var(--info-bg);
  border: 1px solid var(--accent-line); box-shadow: var(--shadow);
}
.legal > #key-points > h2 { border-top: 0; padding-top: 0; margin-bottom: 0.7rem; font-size: 1.25rem; }
.legal > #key-points li + li { margin-top: 0.35rem; }

/* "On this page": a contents card, in two columns from tablet width. */
.legal > #on-this-page {
  margin-top: 1.25rem; padding: 20px 24px; border-radius: var(--r-lg); background: var(--panel);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.legal > #on-this-page > h2 {
  border-top: 0; padding-top: 0; margin-bottom: 10px; font-family: var(--font); font-size: 0.75rem; line-height: 1.3;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.legal > #on-this-page ol { padding-left: 1.75rem; font-size: 0.9375rem; line-height: 1.45; }
.legal > #on-this-page li { padding: 3px 0; break-inside: avoid; }
.legal > #on-this-page li + li { margin-top: 0; }
.legal > #on-this-page a { color: var(--text-2); text-decoration: none; }
.legal > #on-this-page a:hover { color: var(--accent-text); text-decoration: underline; }
@media (min-width: 640px) { .legal > #on-this-page ol { columns: 2; column-gap: 2.75rem; } }
/* Wide screens: the contents move into a side column that stays in view while you read (not when printing). */
@media screen and (min-width: 1024px) {
  .legal {
    max-width: none; display: grid; grid-template-columns: 15rem minmax(0, 37.5rem); column-gap: clamp(48px, 5vw, 80px);
    justify-content: center; align-items: start;
  }
  .legal > * { grid-column: 2; min-width: 0; }
  .legal > #on-this-page {
    grid-column: 1; grid-row: 1 / span 60; position: sticky; top: calc(var(--header-h) + 28px);
    max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 13px 6px 4px 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .legal > #on-this-page ol { columns: auto; padding-left: 1.6rem; font-size: 0.875rem; line-height: 1.4; }
  .legal > #on-this-page li { padding: 4px 0; }
}
.legal code, .faq code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.875em; padding: 1px 5px;
  border-radius: 5px; background: var(--panel-2); border: 1px solid var(--border); overflow-wrap: anywhere;
}
.legal table { margin: 1.2rem 0 1.6rem; font-size: 0.9375rem; line-height: 1.55; }
/* Words stay whole in table cells (only a long web address may break anywhere). On a phone a wide table scrolls
   sideways inside itself instead of widening the page. */
.legal td, .legal th { overflow-wrap: break-word; }
.legal td a, .legal th a { overflow-wrap: anywhere; }
@media (max-width: 559.98px) {
  .legal table { display: block; max-width: 100%; overflow-x: auto; font-size: 0.875rem; }
  .legal thead th { letter-spacing: 0.05em; }
}
.draft-notice {
  position: relative; margin: 0 0 1.6rem; padding: 18px 20px 18px 56px; border-radius: var(--r-md);
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--text); line-height: 1.6;
}
.draft-notice::before {
  content: "!"; content: "!" / ""; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%; background: var(--warn); color: var(--warn-bg);
  font-weight: 800; font-size: 0.875rem; line-height: 1;
}
.draft-notice p:last-child, .draft-notice ul:last-child { margin-bottom: 0; }
.draft-notice strong { color: var(--warn); }
@media (max-width: 559.98px) {
  .draft-notice { padding: 16px 16px 16px 46px; }
  .draft-notice::before { left: 14px; top: 17px; width: 22px; height: 22px; }
  .legal > #key-points, .legal > #on-this-page { padding: 18px 18px; }
}

/* ------------------------------------------------------------------------------------------------------- 404 -- */
.notfound { text-align: center; padding: clamp(72px, 12vw, 152px) 0; }
.notfound .wave { width: min(100%, 360px); height: 80px; margin: 0 auto 30px; overflow: hidden; }
.notfound h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.75rem); letter-spacing: -0.03em; font-weight: 700; margin-bottom: 16px; }
:where(.notfound) p { max-width: 34rem; margin-inline: auto; color: var(--text-2); font-size: 1.125rem; }
.notfound .btn-row { justify-content: center; margin-top: 30px; }

/* ---------------------------------------------------------------------------------------------------- footer -- */
.site-footer { margin-top: auto; padding: 56px 0 28px; background: var(--panel); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; } }
:where(.footer-brand) p { margin: 16px 0 0; max-width: 26rem; color: var(--text-2); }
.footer-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.9375rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-head {
  margin: 0 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 32px; color: var(--text-2); text-decoration: none; font-weight: 500;
}
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--text); font-weight: 650; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom p:first-child { margin-right: auto; }

/* ------------------------------------------------------------------------------------------- less motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .wave i { animation: none !important; }
}

/* ---------------------------------------------------------------------------------------------------- print -- */
@media print {
  .site-header, .skip-link, .wave, .footer-nav, .chip-nav, .faq-toc { display: none !important; }
  body { background: #fff; color: #000; }
  .hero::before, .hero::after, .page-hero::before, .page-hero::after { display: none; }
  .faq details { break-inside: avoid; }
  /* A card or box stays whole on one page. Printers drop backgrounds by default, so the headline's gradient words and
     the primary button's white text would vanish: print them in the text color instead. */
  .card, .cta-band, .note, .plan-strip { break-inside: avoid; }
  /* Each use case on the Use cases page prints whole on one page, so its heading stays with its examples (each fits
     on a Letter or A4 page); the footer stays whole too, instead of leaving its last line alone on a page. */
  .usecase, .site-footer { break-inside: avoid; }
  /* A heading stays with what it introduces (2026-11-14, the owner's OK): no heading, label or section intro is left
     alone at the bottom of a page, no heading is split over two pages, and the demo-video box is never cut in two. On
     paper the sections have less space between them (the screen is unchanged), so the pages hold about as much as
     before. Checked on Letter and A4 at Chrome's default and Large text, and on A5 and US Legal. Known limits: in
     Letter landscape, "Inside the side panel" can sit alone on a page (its tall first screenshot does not fit beside
     it), and a screenshot's caption can start the next page. */
  .section { padding-block: 32px; }
  .section-tight { padding-block: 24px; }
  h1, h2, h3 { break-after: avoid; break-inside: avoid; }
  .eyebrow + :is(h1, h2, h3) { break-before: avoid; }
  .section-head { break-inside: avoid; break-after: avoid; }
  .poster { break-inside: avoid; }
  .grad { background: none; color: inherit; }
  .btn-primary { background: none; color: inherit; border-color: currentColor; box-shadow: none; }
}
/* On paper the three "How it works" steps are one column: printed as plain blocks rather than a grid, so a page can
   break between two steps. In a grid, Chrome moved all three on to the next page and left the heading block alone
   (A4, Large text). */
@media print and (max-width: 899.98px) { .steps { display: block; } .steps > li + li { margin-top: 18px; } }
