/* =========================================================
   Relaywise — demo landing page (fictional brand)
   Plain CSS. No build step, no external fonts or images.
   Direction: editorial "radical simplicity" — warm paper,
   near-black ink, one signal accent (orange).
   ========================================================= */

/* ---------- Tokens ----------------------------------------
   Contrast (WCAG 2.x, computed from the hex values):
   light  ink/bg 14.8 · ink-2/bg 7.8 · muted/bg 5.9 · muted/sunk 5.3
          accent-text/bg 5.7 · ink on accent 5.8 · focus/bg 5.0
          field border/surface 3.9
   dark   ink/bg 16.3 · ink-2/bg 11.2 · muted/bg 7.1 · muted/sunk 5.8
          accent-text/bg 8.3 · ink on accent 6.6 · focus/bg 7.3
          field border/surface 3.8
   ---------------------------------------------------------- */
:root {
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Fallback for browsers without light-dark(): plain hex + media query */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --bg: #f1ebe0; --surface: #faf7f1; --sunk: #e7dfd0;
    --ink: #1b1915; --ink-2: #4d473d; --muted: #5f584c;
    --line: #d6ccba; --field: #857c6d;
    --accent: #ff6119; --on-accent: #1b1915; --accent-soft: #ffd6bd;
    --accent-text: #a33600; --focus: #b23c00;
    --accent-hover: #ff7a3d;
    --shadow: 0 1px 2px rgba(27, 25, 21, .06), 0 12px 32px -16px rgba(27, 25, 21, .22);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121110; --surface: #1c1a17; --sunk: #272420;
      --ink: #f3eee4; --ink-2: #cfc7b8; --muted: #a69e90;
      --line: #35322c; --field: #7d7568;
      --accent: #ff6a24; --on-accent: #121110; --accent-soft: #4d2410;
      --accent-text: #ff8d55; --focus: #ff7a33;
      --accent-hover: #ff8547;
      --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -16px rgba(0, 0, 0, .8);
    }
  }
  :root[data-theme="dark"] {
    --bg: #121110; --surface: #1c1a17; --sunk: #272420;
    --ink: #f3eee4; --ink-2: #cfc7b8; --muted: #a69e90;
    --line: #35322c; --field: #7d7568;
    --accent: #ff6a24; --on-accent: #121110; --accent-soft: #4d2410;
    --accent-text: #ff8d55; --focus: #ff7a33;
    --accent-hover: #ff8547;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -16px rgba(0, 0, 0, .8);
  }
}

/* Main tokens: oklch inside light-dark(), driven by color-scheme */
@supports (color: light-dark(#000, #fff)) {
  :root {
    --bg:          light-dark(oklch(94.2% 0.016 82.8), oklch(17.8% 0.003 67.7));
    --surface:     light-dark(oklch(97.7% 0.009 84.6), oklch(21.9% 0.007 78.2));
    --sunk:        light-dark(oklch(90.6% 0.022 83.3), oklch(26.2% 0.009 75.2));
    --ink:         light-dark(oklch(21.4% 0.008 84.6), oklch(95.0% 0.014 84.6));
    --ink-2:       light-dark(oklch(40.1% 0.018 80.6), oklch(83.2% 0.022 83.3));
    --muted:       light-dark(oklch(46.3% 0.021 81.2), oklch(70.2% 0.022 81.8));
    --line:        light-dark(oklch(84.8% 0.027 82.4), oklch(31.8% 0.011 84.6));
    --field:       light-dark(oklch(59.0% 0.025 80.6), oklch(56.6% 0.022 80.0));
    --accent:      light-dark(oklch(69.0% 0.206 40.3), oklch(70.2% 0.197 41.8));
    --on-accent:   light-dark(oklch(21.4% 0.008 84.6), oklch(17.8% 0.003 67.7));
    --accent-soft: light-dark(oklch(90.5% 0.057 53.1), oklch(31.3% 0.069 45.0));
    --accent-text: light-dark(oklch(48.7% 0.153 39.9), oklch(75.7% 0.155 45.6));
    --focus:       light-dark(oklch(52.0% 0.163 40.0), oklch(72.5% 0.181 45.3));
    --accent-hover: color-mix(in oklch, var(--accent), white 14%);
    /* light-dark() only takes colours, so the shadow switches separately below */
    --shadow: 0 1px 2px rgb(27 25 21 / .06), 0 12px 32px -16px rgb(27 25 21 / .22);
  }
  :root[data-theme="dark"] { --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 16px 40px -16px rgb(0 0 0 / .8); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 16px 40px -16px rgb(0 0 0 / .8); }
  }
}
/* Hover colour from relative colour syntax where supported */
@supports (color: oklch(from red l c h)) {
  :root { --accent-hover: oklch(from var(--accent) calc(l + 0.05) c h); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
mark { background: var(--accent-soft); color: var(--ink); border-radius: 3px; padding: 0 .1em; }
::placeholder { color: var(--muted); opacity: 1; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; white-space: nowrap; text-decoration: none;
  border: 1.5px solid transparent; background: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: var(--field);
}
.text-link:hover { text-decoration-color: var(--ink); }
.text-link-inline { display: inline; min-height: 0; padding: 0; font-weight: 500; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.bm-bg { fill: var(--ink); }
.bm-path { fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bm-dot { fill: var(--accent); }

.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: .9688rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 999px;
}
.primary-nav a:hover { color: var(--ink); background: var(--sunk); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html:not(.js) .theme-toggle, html:not(.js) .menu-toggle { display: none; }
.menu-toggle { display: none; }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 0 20px; }
.mobile-menu ul { display: grid; margin-bottom: 12px; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 48px; font-size: 1.0625rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 32px; }
.hero-kicker { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.02em;
  max-width: 16ch;
}
.h-quiet { display: block; color: var(--muted); }
.hero-row {
  display: grid; gap: 24px; margin-top: 28px;
  grid-template-columns: minmax(0, 1fr);
}
.hero-sub { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-note { flex-basis: 100%; font-size: .9375rem; color: var(--muted); }

/* ---------- Product UI (shared look) ---------- */
.product-ui {
  container: ui / inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: .8125rem; line-height: 1.45;
  color: var(--ink);
}

/* Inner UI styles are scoped so marketing styles never leak in (and vice versa). */
@scope (.product-ui) {
  :scope { box-shadow: var(--shadow); }
  p { margin: 0; }
  b { font-weight: 600; }
  small { display: block; color: var(--muted); font-size: .75rem; }

  .ui-tag {
    display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px;
    border: 1px solid var(--field); border-radius: 999px;
    font-family: var(--font-mono); font-size: .71875rem; color: var(--ink); white-space: nowrap;
  }
  .ui-team {
    display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px;
    background: var(--sunk); border-radius: 6px; font-weight: 600; font-size: .75rem; white-space: nowrap;
  }
  .ui-chip { font-family: var(--font-mono); font-size: .71875rem; color: var(--muted); }
  .ui-shape { display: inline-block; width: 9px; height: 9px; background: var(--ink-2); flex: none; }
  .s-circle { border-radius: 50%; }
  .s-square { border-radius: 1px; }
  .s-triangle { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
  .s-diamond { transform: rotate(45deg) scale(.85); }
  .ui-switch { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--line); flex: none; }
  .ui-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); }
  .ui-switch.on { background: var(--ink); }
  .ui-switch.on::after { left: 15px; }
}

/* ---------- Hero product UI ---------- */
.demo-track { --demo-range: cover 20% cover 60%; view-timeline-name: --demo; margin-top: 56px; }
.demo-spacer { display: none; }
.demo-caption { margin-top: 14px; font-size: .9375rem; color: var(--muted); text-align: center; }
.cap-anim { display: none; }

@scope (.ui-hero) {
  .ui-bar {
    display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 44px;
    border-bottom: 1px solid var(--line);
  }
  .ui-dots { display: flex; gap: 6px; }
  .ui-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--field); }
  .ui-title { font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .ui-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .71875rem; color: var(--muted); white-space: nowrap; }
  .ui-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

  .ui-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ui-col { padding: 14px; min-width: 0; }
  .ui-col + .ui-col { border-top: 1px solid var(--line); }
  .ui-h {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    font-size: .75rem; font-weight: 600; color: var(--muted);
  }
  .ui-count { margin-left: auto; }
  .ui-count { display: inline-grid; font-family: var(--font-mono); font-weight: 500; }
  .ui-count > span { grid-area: 1 / 1; text-align: right; }
  .c-before { opacity: 0; }

  .ui-mail {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px; max-height: 64px; overflow: hidden;
  }
  .ui-mail + .ui-mail { margin-top: 2px; }
  .ui-av {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--sunk); font-size: .65625rem; font-weight: 700; color: var(--ink-2);
  }
  .ui-mail-main { display: grid; min-width: 0; }
  .ui-mail-main b { font-size: .78125rem; }
  .ui-subj { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ui-mail time { font-family: var(--font-mono); font-size: .6875rem; color: var(--muted); }
  .is-target { display: none; background: var(--sunk); box-shadow: inset 3px 0 0 var(--ink); }

  .ui-read .ui-h { display: grid; }
  .ui-read .ui-h > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; }
  .st-reading { opacity: 0; }
  .st-done { color: var(--ink); }
  .ui-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

  .ui-letter {
    position: relative; overflow: hidden;
    padding: 12px 14px; border-radius: 10px; background: var(--bg);
    font-size: .8125rem; color: var(--ink-2);
  }
  .ui-letter p + p { margin-top: 8px; }
  .ui-from { color: var(--muted); font-size: .75rem; }
  .ui-from b { color: var(--ink); }
  .ui-scan { position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--accent); opacity: 0; }
  mark { background: var(--accent-soft); color: var(--ink); }

  .ui-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .ui-conf {
    --rw-conf: 97;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; margin-top: 12px;
  }
  .ui-conf-label { font-size: .75rem; color: var(--muted); }
  .ui-num { justify-self: end; font-family: var(--font-mono); font-weight: 600; counter-reset: conf var(--rw-conf); }
  .ui-num::after { content: counter(conf) "%"; }
  .ui-meter { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
  .ui-meter span { display: block; height: 100%; width: 97%; background: var(--ink); border-radius: inherit; transform-origin: left center; }

  .ui-teams { display: grid; gap: 8px; align-content: start; }
  .ui-lane { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
  .ui-lane .ui-h { margin-bottom: 8px; color: var(--ink); }
  .ui-lane-sm { padding-block: 9px; }
  .ui-lane-sm .ui-h { margin: 0; }
  .ui-arrived { background: var(--bg); }
  .ui-routed {
    display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); font-size: .6875rem; font-weight: 700;
  }

  /* Narrow (phones): one column, fewer rows so the whole flow fits */
  @container ui (max-width: 559px) {
    .ui-inbox .ui-mail:nth-of-type(n + 4) { display: none; }
    .ui-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lane-billing { grid-column: 1 / -1; }
    .ui-lane-sm { padding: 8px; }
    .ui-lane-sm .ui-h { font-size: .6875rem; gap: 5px; }
    .ui-title { font-size: .75rem; }
  }
  /* Wide: three columns — inbox | reading | teams */
  @container ui (min-width: 760px) {
    .ui-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr) minmax(0, 1fr); }
    .ui-col { padding: 20px; }
    .ui-col + .ui-col { border-top: 0; border-left: 1px solid var(--line); }
    .ui-letter { font-size: .9375rem; padding: 16px 18px; }
    .ui-mail { padding-block: 10px; }
    .ui-mail-main b { font-size: .875rem; }
    .ui-subj { font-size: .8125rem; }
    .ui-h { font-size: .8125rem; }
  }
}

/* ---------- Logos ---------- */
.logos { padding: 56px 0 24px; }
.logos-title { text-align: center; font-size: .9375rem; font-weight: 500; color: var(--muted); margin-bottom: 22px; }
.logos-title span { white-space: nowrap; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; }
.logo-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink-2); }
.logo-row svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.logo-row .wm-serif { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 1.375rem; }
.logo-row .wm-caps { letter-spacing: .14em; font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2, .final h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.125rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -.015em;
}
.section-sub { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); }

/* ---------- Values ---------- */
.values { display: grid; gap: 40px; }
.value { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.value-num { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); }
.value h3 { font-family: var(--font-serif); font-size: 1.625rem; line-height: 1.15; }
.value > p:not(.value-num) { color: var(--ink-2); }
.fragment { margin-top: 12px; padding: 16px; border-radius: var(--radius); }
.value .fragment.product-ui { font-size: .875rem; }
.fr-mail { color: var(--ink-2); line-height: 1.6; }
.fr-out { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.fr-arrow { color: var(--muted); }

.threshold, .rules { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .875rem; }
.th-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.th-head label { font-weight: 600; }
.th-head output { font-family: var(--font-mono); font-weight: 700; font-size: 1.125rem; }
.threshold input[type="range"] { width: 100%; margin: 10px 0 12px; accent-color: var(--ink); height: 24px; }
.th-list { display: grid; gap: 4px; }
.th-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: 8px;
}
.th-list li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-pct { font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.th-state {
  min-width: 60px; text-align: center; padding: 2px 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; border: 1px dashed var(--field); color: var(--muted);
}
.th-state.is-auto { border: 1px solid var(--ink); background: var(--ink); color: var(--bg); }
.th-summary { margin-top: 12px; font-size: .8125rem; color: var(--ink-2); }

.rule { display: flex; align-items: center; gap: 12px; padding: 8px 4px; min-height: 44px; cursor: pointer; }
.rule + .rule { border-top: 1px solid var(--line); }
.rule input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--sunk); border: 1.5px solid var(--field); transition: background-color .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--field); transition: left .2s var(--ease), background-color .2s; }
.rule input:checked + .sw { background: var(--ink); border-color: var(--ink); }
.rule input:checked + .sw::after { left: 19px; background: var(--bg); }
.rule input:focus-visible + .sw { outline: 3px solid var(--focus); outline-offset: 2px; }
.rules-count { margin-top: 8px; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }

.also { margin-top: 64px; display: grid; gap: 16px; }
.also-title { font-size: 1rem; font-weight: 600; }
.also-list { display: grid; gap: 0 32px; }
.also-list li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.also-list li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 1.5px; background: var(--ink); }

/* ---------- Try it ---------- */
.try { display: grid; gap: 24px; }
.sim-label {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 18px; border-radius: 10px;
  background: var(--sunk); font-size: .9375rem; color: var(--ink-2);
}
.sim-label b { color: var(--ink); display: block; }
.sim-label svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.try textarea, .field input, .field select, .field textarea, .start-form input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1.5px solid var(--field); color: var(--ink);
}
.try textarea { min-height: 150px; resize: vertical; font-size: 1rem; line-height: 1.55; }
.try textarea:focus-visible, .field :is(input, select, textarea):focus-visible, .start-form input:focus-visible { outline-offset: 0; border-color: var(--ink); }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; }
.sample {
  min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: .875rem; font-weight: 500;
  background: transparent; border: 1.5px solid var(--line); color: var(--ink-2);
}
.sample:hover, .sample[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.nojs-note { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.js .nojs-note { display: none; }
html:not(.js) .try-row { display: none; }

.try-output {
  align-self: start; padding: 22px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--line);
}
.out-label { font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 22px; }
.out-grid dt { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.out-grid dd { font-weight: 600; margin-top: 2px; }
.out-team {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
}
.out-team.is-review { background: transparent; color: var(--ink); border: 1.5px dashed var(--field); }
.out-conf dd { display: grid; gap: 6px; font-family: var(--font-mono); }
.meter { display: block; height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width .3s var(--ease); }
.out-signals { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.out-signals li { padding: 2px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); font-family: var(--font-mono); font-size: .8125rem; }
.out-signals li.none { background: transparent; padding: 0; color: var(--muted); font-family: var(--font-sans); }

.q {
  display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--field); background: transparent;
  font-size: .75rem; font-weight: 700; line-height: 1; color: var(--ink); vertical-align: middle;
}
.q:hover { border-color: var(--ink); }

/* ---------- Tabs ---------- */
.tab-list {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 28px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); max-width: 100%;
}
.tab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: .9375rem; color: var(--ink-2);
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
html:not(.js) .tab-list { display: none; }
.tab-panel { display: grid; gap: 28px; align-items: center; }
html:not(.js) .tab-panel + .tab-panel { margin-top: 48px; }
.tab-panel[hidden] { display: none; }
.panel-copy h3 { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.15; margin-bottom: 10px; }
.panel-copy p { color: var(--ink-2); }
.checks { margin-top: 18px; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: "✓"; font-weight: 700; color: var(--ink); }
.panel-visual { padding: 16px; font-size: .875rem; }
@scope (.panel-visual) {
  .pv-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .pv-row { display: grid; gap: 8px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .pv-row:last-child { border-bottom: 0; }
  .pv-pick { display: flex; flex-wrap: wrap; gap: 6px; }
  .pv-rule { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .pv-rule:last-child { border-bottom: 0; }
  .pv-rule p { color: var(--ink-2); }
  .pv-rule em { font-style: normal; font-weight: 600; color: var(--ink); }
  .pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 4px; }
  .pv-stats b { font-family: var(--font-mono); font-size: 1.375rem; }
  .pv-chart { width: 100%; height: 130px; margin-top: 4px; }
  .pv-chart .grid { stroke: var(--line); stroke-width: 1; fill: none; }
  .pv-chart .bars rect { fill: var(--ink-2); }
  .pv-chart .bars rect.hi { fill: var(--accent); }
  .pv-legend { margin-top: 8px; font-size: .75rem; color: var(--muted); }
  @container ui (min-width: 460px) {
    .pv-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 32px; counter-reset: none; }
.steps li { display: grid; gap: 8px; align-content: start; }
.step-num { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1; color: var(--ink); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--ink-2); }

/* ---------- Metrics ---------- */
.metrics { padding: 80px 0; }
.metrics-title { font-size: 1rem; font-weight: 600; margin-bottom: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.metric-grid li { padding-top: 16px; border-top: 1.5px solid var(--ink); display: grid; gap: 6px; align-content: start; }
.metric-grid b { font-family: var(--font-mono); font-weight: 600; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -.03em; }
.metric-grid span { color: var(--ink-2); font-size: .9375rem; }
.metric-note { margin-top: 24px; font-size: .875rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 32px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
html:not(.js) .billing-toggle { display: none; }
.bt-option {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: .9375rem; color: var(--ink-2);
}
.bt-option[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.save { font-size: .75rem; font-weight: 600; font-family: var(--font-mono); }
.pricing-grid { display: grid; gap: 28px 20px; }
.plan {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.plan h3 { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.1; }
.plan-desc { color: var(--ink-2); font-size: .9688rem; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; font-variant-numeric: tabular-nums; }
.amount { display: inline-block; font-family: var(--font-mono); font-size: 2.75rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.amount-text { font-family: var(--font-serif); letter-spacing: -.01em; }
.per { color: var(--muted); font-size: .9375rem; }
.billed { font-size: .875rem; color: var(--muted); margin-bottom: 18px; min-height: 1.5em; }
.plan-list { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9688rem; }
.plan-list li { display: flex; align-items: center; gap: 10px; }
.plan-list li::before { content: ""; width: 10px; height: 1.5px; background: var(--ink); flex: none; }
.plan-list .q { margin-left: 2px; }
.plan-featured { border: 2px solid var(--ink); }
.plan-badge {
  position: absolute; top: -14px; left: 22px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .8125rem; font-weight: 700;
}

/* ---------- Quotes ---------- */
.quote-lead { max-width: 900px; }
.quote-lead blockquote p {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.625rem, 3.4vw, 2.5rem); line-height: 1.25; letter-spacing: -.01em;
}
figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: .9375rem; color: var(--ink-2); }
figcaption b { color: var(--ink); }
.avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sunk); color: var(--ink); font-size: .8125rem; font-weight: 700;
}
.quote-pair { display: grid; gap: 32px; margin-top: 56px; }
.quote { padding-top: 20px; border-top: 1px solid var(--line); }
.quote blockquote p { font-size: 1.125rem; line-height: 1.6; }
.quote-note { margin-top: 32px; font-size: .875rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line); font-family: var(--font-mono); font-weight: 400; font-size: 1.125rem;
}
.faq details[open] summary::after { content: "−"; border-color: var(--ink); }
.faq-body { padding: 0 48px 20px 0; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final { border-top: 1.5px solid var(--ink); }
.final-inner { text-align: center; display: grid; justify-items: center; }
.final h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.final-sub { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); max-width: 44ch; }
.start-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; width: 100%; max-width: 520px; }
.start-form input { flex: 1 1 240px; min-height: 52px; border-radius: 999px; padding-inline: 20px; }
.start-form input:user-invalid { border-color: var(--accent-text); }
.final-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-top { display: grid; gap: 32px; }
.footer-brand p { margin-top: 10px; color: var(--ink-2); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h2 { font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--ink-2); }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.footer-bottom strong { color: var(--ink); }

/* ---------- Popovers (anchor positioned, centred fallback) ---------- */
.tip {
  width: min(300px, calc(100vw - 32px)); padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow); font-size: .9375rem; line-height: 1.5;
}
.tip::backdrop { background: transparent; }
@supports (anchor-name: --a) {
  .tip {
    inset: auto; margin: 8px;
    position-area: top;
    position-try-fallbacks: flip-block, top span-left, top span-right, bottom span-left, bottom span-right;
  }
}

/* ---------- Dialog ---------- */
.modal {
  width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgb(18 17 16 / .55); }
.modal-form { display: grid; gap: 16px; padding: 24px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h2 { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.15; }
.modal-sub { margin-top: -8px; color: var(--ink-2); }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select { min-height: 48px; }
.field textarea { min-height: 88px; max-height: 240px; resize: vertical; field-sizing: content; }
.field-error { display: none; margin-top: 6px; font-size: .875rem; color: var(--accent-text); }
.field input:user-invalid { border-color: var(--accent-text); }
.field input:user-invalid + .field-error { display: block; }
.modal-note { font-size: .875rem; color: var(--muted); text-align: center; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .also-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-pair { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1.4fr; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .hero { padding-top: 88px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .hero-kicker { grid-column: 1 / -1; }
  .hero-row { margin-top: 0; padding-bottom: 10px; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .value .fragment { margin-top: 12px; }
  @supports (grid-template-rows: subgrid) {
    .values { grid-template-rows: repeat(4, auto); row-gap: 0; }
    .value { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
    .value .fragment { align-self: start; }
  }
  .also { grid-template-columns: 200px 1fr; align-items: start; }
  .also-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .try { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
  .tab-panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
  .section { padding: 120px 0; }
}
@media (max-width: 899px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 639px) {
  .hide-sm { display: none; }
  .hero { padding-top: 48px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .out-grid { grid-template-columns: 1fr; }
  .try-output { padding: 18px; }
  .faq-body { padding-right: 0; }
  .billing-toggle, .tab-list { display: flex; width: 100%; }
  .bt-option, .tab { flex: 1; justify-content: center; padding: 0 10px; }
  .start-form .btn { flex: 1 1 100%; }
}

/* =========================================================
   Motion — three moments only, all behind reduced-motion:
   1. scroll-driven hero demo   2. view transitions (tabs, pricing)
   3. FAQ height (Chromium polish)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* 1. Scroll-driven demo. Without support the final state shows statically. */
  @supports (animation-timeline: view()) {
    .cap-anim { display: inline; }
    .cap-static { display: none; }

    @media (min-width: 800px) and (min-height: 680px) {
      .demo-stage { position: sticky; top: max(calc(var(--header-h) + 20px), calc(50vh - 200px)); }
      .demo-spacer { display: block; height: 120vh; }
      .demo-track { --demo-range: contain 0% contain 100%; }
    }

    .ui-hero :is(.is-target, .ui-scan, mark, .ui-tag, .ui-conf, .ui-meter span, .st-reading, .st-done, .c-before, .c-after, .ui-arrived, .ui-routed) {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --demo;
      animation-range: var(--demo-range);
    }
    .ui-hero .is-target { display: grid; animation-name: rw-target; }
    .ui-hero .ui-scan { animation-name: rw-scan; }
    .ui-hero .m1 { animation-name: rw-mark-1; }
    .ui-hero .m2 { animation-name: rw-mark-2; }
    .ui-hero .m3 { animation-name: rw-mark-3; }
    .ui-hero .tg1 { animation-name: rw-tag-1; }
    .ui-hero .tg2 { animation-name: rw-tag-2; }
    .ui-hero .tg3 { animation-name: rw-tag-3; }
    .ui-hero .ui-conf { animation-name: rw-conf; }
    .ui-hero .ui-meter span { animation-name: rw-meter; }
    .ui-hero .st-reading { animation-name: rw-reading; }
    .ui-hero .st-done { animation-name: rw-done; }
    .ui-hero .ui-inbox .c-before { animation-name: rw-count-out-a; }
    .ui-hero .ui-inbox .c-after { animation-name: rw-count-in-a; }
    .ui-hero .lane-billing .c-before { animation-name: rw-count-out-b; }
    .ui-hero .lane-billing .c-after { animation-name: rw-count-in-b; }
    .ui-hero .ui-arrived { animation-name: rw-arrive; }
    .ui-hero .ui-routed { animation-name: rw-routed; }
  }

  /* 2. View transitions (JS calls startViewTransition; CSS shapes it) */
  .tab-panel { view-transition-name: tour-panel; }
  ::view-transition-group(tour-panel) { animation-duration: .32s; animation-timing-function: var(--ease); }
  ::view-transition-old(tour-panel) { animation: .18s ease-out both vt-fade-out; }
  ::view-transition-new(tour-panel) { animation: .32s var(--ease) both vt-rise-in; }
  .plan:nth-child(1) .amount { view-transition-name: price-starter; }
  .plan:nth-child(2) .amount { view-transition-name: price-growth; }
  .plan:nth-child(1) .billed { view-transition-name: billed-starter; }
  .plan:nth-child(2) .billed { view-transition-name: billed-growth; }
  ::view-transition-old(price-starter), ::view-transition-old(price-growth) { animation: .22s ease-in both vt-out-up; }
  ::view-transition-new(price-starter), ::view-transition-new(price-growth) { animation: .3s var(--ease) both vt-in-up; }
  ::view-transition-group(root) { animation-duration: .2s; }

  /* Dialog: short fade (no movement) */
  .modal { transition: opacity .2s, display .2s allow-discrete, overlay .2s allow-discrete; opacity: 0; }
  .modal[open] { opacity: 1; }
  @starting-style { .modal[open] { opacity: 0; } }

  /* 3. FAQ open/close height — Chromium only, others open instantly */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content {
      height: 0; overflow: clip;
      transition: height .3s var(--ease), content-visibility .3s allow-discrete;
    }
    .faq details[open]::details-content { height: auto; }
  }
}

/* Typed custom property so the confidence number can count up */
@property --rw-conf { syntax: "<integer>"; inherits: true; initial-value: 97; }

@keyframes rw-target {
  0%   { background: transparent; box-shadow: inset 0 0 0 transparent; }
  6%   { background: var(--sunk); box-shadow: inset 3px 0 0 var(--ink); }
  70%  { translate: 0 0; opacity: 1; max-height: 64px; }
  84%  { translate: 50% 0; opacity: 0; max-height: 64px; padding-block: 8px; margin-top: 0; }
  92%, 100% { translate: 50% 0; opacity: 0; max-height: 0; padding-block: 0; }
}
@keyframes rw-scan {
  0%, 8% { top: 0; opacity: 0; }
  11% { opacity: 1; }
  44% { top: 100%; opacity: 1; }
  47%, 100% { top: 100%; opacity: 0; }
}
@keyframes rw-mark-1 { 0%, 17% { background: transparent; } 21%, 100% { background: var(--accent-soft); } }
@keyframes rw-mark-2 { 0%, 25% { background: transparent; } 29%, 100% { background: var(--accent-soft); } }
@keyframes rw-mark-3 { 0%, 33% { background: transparent; } 37%, 100% { background: var(--accent-soft); } }
@keyframes rw-tag-1 { 0%, 45% { opacity: 0; translate: 0 6px; } 50%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rw-tag-2 { 0%, 50% { opacity: 0; translate: 0 6px; } 55%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rw-tag-3 { 0%, 55% { opacity: 0; translate: 0 6px; } 60%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rw-conf { 0%, 52% { --rw-conf: 0; } 68%, 100% { --rw-conf: 97; } }
@keyframes rw-meter { 0%, 52% { scale: 0 1; } 68%, 100% { scale: 1 1; } }
@keyframes rw-reading { 0%, 68% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes rw-done { 0%, 70% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes rw-count-out-a { 0%, 82% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes rw-count-in-a { 0%, 82% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes rw-count-out-b { 0%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes rw-count-in-b { 0%, 90% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes rw-arrive {
  0%, 78% { opacity: 0; translate: -40% 0; max-height: 0; padding-block: 0; }
  86% { opacity: 0; translate: -40% 0; max-height: 64px; padding-block: 8px; }
  94%, 100% { opacity: 1; translate: 0 0; max-height: 64px; padding-block: 8px; }
}
@keyframes rw-routed {
  0%, 93% { opacity: 0; scale: .6; }
  97% { opacity: 1; scale: 1.08; }
  100% { opacity: 1; scale: 1; }
}
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise-in { from { opacity: 0; translate: 0 10px; } }
@keyframes vt-out-up { to { opacity: 0; translate: 0 -.4em; } }
@keyframes vt-in-up { from { opacity: 0; translate: 0 .4em; } }
