/* datty landing page. Direction "Calm Retail", see site/DESIGN.md (T25).
   Every colour is a token from DESIGN.md section 3. Text uses the visitor's system font
   (named in CSS only, nothing downloaded); numbers use the self-hosted JetBrains Mono (OFL). */

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #F4F5F7;
  --card: #FFFFFF;
  --ink: #18191C;
  --muted: #5F636B;
  --line: #D9DBE0;
  --field: #7A7E86;
  --accent: #0A62C9;
  --on-accent: #FFFFFF;
  --shadow: #10121414;
  --tint-ads: #E3ECF8;
  --tint-commerce: #E2F1E7;
  --tint-analytics: #F6ECDF;
  --tint-email: #ECE8F5;
  --tint-data: #E9EBEE;
  --hue-ads: #1F5FAD;
  --hue-commerce: #17703F;
  --hue-analytics: #9A4A07;
  --hue-email: #5638AE;
  --hue-data: #434E5E;
  --band: #0B2545;
  --band-ink: #FFFFFF;
  --band-muted: #C9D6EA;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius-card: 22px;
  --radius-small: 12px;
  --radius-pill: 999px;
  --radius-control: 8px;
  --gutter: 24px;
  --section-gap: clamp(4rem, 3rem + 4vw, 7rem);
  --ease: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0E0F11;
    --card: #1C1D21;
    --ink: #F2F3F5;
    --muted: #A4A8B0;
    --line: #34363C;
    --field: #80848C;
    --accent: #5AA7FF;
    --on-accent: #0E0F11;
    --shadow: #00000066;
    --tint-ads: #1D2A3B;
    --tint-commerce: #1B2E23;
    --tint-analytics: #33291D;
    --tint-email: #29253A;
    --tint-data: #2A2C31;
    --hue-ads: #8DBEFF;
    --hue-commerce: #6FD39A;
    --hue-analytics: #F2B36B;
    --hue-email: #B9A6FF;
    --hue-data: #B3BCC9;
    --band: #13315C;
    --band-ink: #F2F3F5;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  z-index: 20;
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.small {
  font-size: 0.875rem;
  color: var(--muted);
}

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

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: var(--radius-control);
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  text-decoration: underline;
}

.button-small {
  font-size: 0.875rem;
  padding: 0.45rem 0.95rem;
}

/* ---------- top bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
}

/* Brand mark (owner request 2026-10-31, DECISIONS.md): a "d" tile with an accent
   decimal dot, drawn with CSS and text only (no image, no SVG). Follows dark mode. */
.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: var(--card);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding-bottom: 0.1rem;
  box-sizing: border-box;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  bottom: 0.38rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-list a:not(.button) {
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
}

.site-header .nav-list a:not(.button):hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-header .nav-list li:not(:last-child) {
    display: none;
  }
}

/* ---------- sections ---------- */

main > section {
  margin-top: var(--section-gap);
}

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.section-title .soft {
  color: var(--muted);
  font-weight: 600;
}

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

.hero {
  margin-top: clamp(3rem, 2rem + 5vw, 6.5rem);
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.hero h1 .soft {
  color: var(--muted);
  font-weight: 600;
}

.lede {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  color: var(--muted);
  max-width: 44ch;
}

.hero-cta {
  margin-top: 2rem;
}

/* ---------- card rows ---------- */

.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.row-arrows {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.row-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-control);
  border: 1px solid var(--field);
  background: var(--card);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.row-arrow[hidden] {
  display: none;
}

.row-arrow:disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.row-figure {
  margin: 0;
}

.row-track {
  margin: 1.5rem 0 0;
  padding: 0.75rem var(--gutter) 2.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  border-radius: var(--radius-small);
}

/* Wide screens: the row starts in line with the page text, then runs to the screen edge. */
@media (min-width: 1248px) {
  .row-track {
    padding-left: calc((100vw - 1200px) / 2 + var(--gutter));
    scroll-padding-left: calc((100vw - 1200px) / 2 + var(--gutter));
  }
}

.row-list {
  display: flex;
  gap: 1rem;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter) 0 0;
}

.row-list > li {
  flex: 0 0 min(82vw, 340px);
  scroll-snap-align: start;
}

.row-track.answers .row-list > li {
  flex-basis: min(86vw, 380px);
}

.card {
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.card:hover,
.card:focus-within {
  box-shadow: 0 10px 30px var(--shadow);
}

.card h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.card p + p {
  margin-top: 0.75rem;
}

.row-caption {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* answer cards */

.answer-question {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

.answer {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.answer-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
}

.answer-line dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.answer-line dd {
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  text-align: right;
}

.answer-line.headline dd {
  font-size: 1.375rem;
  font-weight: 700;
}

.answer-text {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- correct numbers ---------- */

.proof-card {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

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

.worked {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.worked caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.875rem;
  padding-bottom: 0.75rem;
}

.worked th,
.worked td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}

.worked thead th {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.worked tbody th {
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.worked .num {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.9375rem;
  white-space: nowrap;
  padding-left: 1rem;
}

.worked .sums th {
  font-family: var(--sans);
  font-weight: 600;
}

.worked .sums .total th,
.worked .sums .total td {
  font-weight: 700;
  border-top: 2px solid var(--ink);
}

.proof-text {
  max-width: 62ch;
}

.proof-text p + p {
  margin-top: 1rem;
}

/* ---------- read-only ---------- */

.statement {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.never {
  margin: 1.75rem 0 0;
  padding-left: 1.25rem;
  max-width: 62ch;
}

.never li + li {
  margin-top: 0.4rem;
}

.readonly .small {
  margin-top: 1.25rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  padding: 1.1rem 0;
  list-style-position: outside;
}

.faq-list summary h3 {
  display: inline;
  font-size: 1.0625rem;
  font-weight: 600;
}

.faq-list details p {
  padding-bottom: 1.25rem;
  max-width: 62ch;
  color: var(--ink);
}

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

.waitlist-card {
  margin-top: 1.5rem;
  max-width: 640px;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.pricing {
  font-weight: 600;
}

.waitlist-form {
  margin-top: 1.5rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input {
  display: block;
  width: 100%;
  max-width: 420px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--field);
  border-radius: var(--radius-small);
  padding: 0.7rem 0.9rem;
}

.field input[aria-invalid="true"] {
  border-color: var(--accent);
  border-width: 2px;
}

.help {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.error {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.waitlist-form .button {
  margin-top: 1.25rem;
}

.form-note {
  margin-top: 1rem;
  font-weight: 600;
}

/* T44: Netlify honeypot. People never see it; a bot that fills it is rejected by Netlify. */
.hp-field {
  display: none;
}

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

.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
}

.site-footer .wordmark {
  font-size: 1.25rem;
}

.site-footer .brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.125rem;
}

.site-footer .brand-mark::after {
  right: 0.24rem;
  bottom: 0.3rem;
  width: 0.25rem;
  height: 0.25rem;
}

.site-footer .nav-list a {
  color: var(--muted);
}

/* ---------- T26: hero with the demo ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

.hero-note {
  margin-top: 0.75rem;
}

.demo {
  margin: 0;
}

.demo-screen {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  min-height: 22rem;
}

.chat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.msg {
  max-width: 92%;
  border-radius: var(--radius-small);
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
}

.msg[hidden] {
  display: none;
}

.msg-you {
  justify-self: end;
  background: var(--page);
}

.msg-ai {
  justify-self: start;
  border: 1px solid var(--line);
}

.msg .who {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.demo-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.demo-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.card h4 + p {
  margin-top: 0.5rem;
}

.demo-toggle,
.filter,
.tab {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--field);
  border-radius: var(--radius-control);
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  cursor: pointer;
  flex-shrink: 0;
}

.demo-toggle[hidden],
.catalog-tools[hidden],
.tablist[hidden] {
  display: none;
}

/* ---------- badges ---------- */

.badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--field);
  border-radius: var(--radius-control);
  padding: 0.1rem 0.6rem;
  margin-bottom: 0.75rem;
}

.badge-live {
  color: var(--hue-commerce);
  border-color: var(--hue-commerce);
  background: var(--tint-commerce);
}

/* ---------- grids of cards ---------- */

.grid-cards {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}

.grid-cards h3 {
  margin-bottom: 0.5rem;
}

.band-card {
  background: var(--band);
  color: var(--band-ink);
  border: 1px solid var(--band);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}

.band-card p {
  margin-top: 1rem;
  color: var(--band-muted);
  max-width: 52ch;
}

.band-card h2 {
  color: var(--band-ink);
}

.band-card :focus-visible {
  outline-color: var(--band-ink);
}

.band-card .button {
  background: var(--band-ink);
  color: var(--band);
  border-color: var(--band-ink);
}

.band-card p:last-child {
  margin-top: 1.5rem;
}

/* ---------- connectors ---------- */

.sub-title {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.connectors .row {
  margin-top: 2rem;
}

.card h4 {
  margin: 0;
  font-size: 1.3125rem;
  line-height: 1.2;
}

.catalog {
  margin-top: 1rem;
}

.catalog-note {
  margin-top: 0.5rem;
  max-width: 62ch;
}

.catalog-tools {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

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

.filter[aria-pressed="true"],
.tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.catalog-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 0.75rem;
}

.tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 0.75rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.85rem;
}

.tile[hidden] {
  display: none;
}

.monogram {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-small);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}

.tint-ads { background: var(--tint-ads); color: var(--hue-ads); }
.tint-commerce { background: var(--tint-commerce); color: var(--hue-commerce); }
.tint-analytics { background: var(--tint-analytics); color: var(--hue-analytics); }
.tint-email { background: var(--tint-email); color: var(--hue-email); }
.tint-data { background: var(--tint-data); color: var(--hue-data); }

.tile-name {
  font-weight: 600;
  line-height: 1.25;
}

.tile-category {
  font-size: 0.8125rem;
  color: var(--muted);
}

.tile .badge {
  justify-self: start;
  margin: 0.3rem 0 0;
}

.catalog-status {
  margin-top: 0.75rem;
  font-weight: 600;
}

.request-card {
  margin-top: 1.25rem;
  max-width: 640px;
}

.request-card p {
  margin-top: 0.5rem;
}

.button-quiet {
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ---------- step drawings (our own, decorative) ---------- */

.ill {
  display: block;
  width: 120px;
  height: 72px;
  margin-bottom: 1rem;
}

.ill-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-strong {
  stroke: var(--accent);
}

.ill-tile {
  fill: var(--tint-ads);
  stroke: var(--muted);
  stroke-width: 2;
}

.ill-dot {
  fill: var(--accent);
}

.step h3 {
  margin-bottom: 0.5rem;
}

/* One colour per step (owner request 2026-10-31: more colour). */
.row-list > li:nth-child(2) .step .ill-strong { stroke: var(--hue-commerce); }
.row-list > li:nth-child(2) .step .ill-dot { fill: var(--hue-commerce); }
.row-list > li:nth-child(2) .step .ill-tile { fill: var(--tint-commerce); }
.row-list > li:nth-child(3) .step .ill-strong { stroke: var(--hue-email); }
.row-list > li:nth-child(3) .step .ill-dot { fill: var(--hue-email); }

/* Benefit cards: a short coloured bar each. */
.benefits .card::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--hue-ads);
  margin-bottom: 1.25rem;
}

.benefits li:nth-child(2) .card::before {
  background: var(--hue-commerce);
}

.benefits li:nth-child(3) .card::before {
  background: var(--hue-analytics);
}

/* ---------- use-case tabs ---------- */

.tabs {
  margin-top: 1.5rem;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tabpanel + .tabpanel {
  margin-top: 1rem;
}

.tabpanel[hidden] {
  display: none;
}

.uc-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.uc-q {
  font-weight: 600;
  line-height: 1.3;
}

.uc-a {
  margin-top: 0.5rem;
  color: var(--muted);
}

.uc-list .badge {
  margin: 0.75rem 0 0;
}

.usecases-note {
  margin-top: 0.75rem;
}

/* ---------- trust strip and footer extras ---------- */

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

.trust li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.trust + .small {
  margin-top: 0.75rem;
}

.waitlist-form .field + .field {
  margin-top: 1.25rem;
}

.footer-soon {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  flex-basis: 100%;
}

/* ---------- T19: privacy and terms pages ---------- */

.legal {
  max-width: 46rem;
  padding-top: 3rem;
}

.legal h1 {
  margin-bottom: 1rem;
}

.legal > section {
  margin-top: 3rem;
}

.legal h2 {
  font-size: 1.375rem;
}

.legal h3 {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
}

.legal > * + p,
.legal section > * + * {
  margin-top: 0.75rem;
}

.legal section > * + h3 {
  margin-top: 1.75rem;
}

.legal-page .site-header .nav-list li {
  display: list-item;
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.5rem;
}

.legal .mono,
.legal a {
  overflow-wrap: anywhere;
}

.legal-draft {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 1rem 1.25rem;
}

.footer-soon a {
  color: var(--muted);
}

/* ---------- motion (only when the visitor has not asked for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .row-track {
    scroll-behavior: smooth;
  }

  .card {
    transition: transform 200ms var(--ease);
  }

  .card:hover,
  .card:focus-within {
    transform: translateY(-4px);
  }

  .button,
  .row-arrow {
    transition: transform 100ms var(--ease);
  }

  .button:active,
  .row-arrow:active,
  .demo-toggle:active,
  .filter:active,
  .tab:active {
    transform: scale(0.98);
  }

  /* T26: the demo messages rise in; the step drawings move gently. Transform only. */
  .demo-playing .msg:not([hidden]) {
    animation: rise-in 400ms var(--ease) both;
  }

  .ill-drop,
  .ill-travel,
  .ill-pulse {
    transform-box: fill-box;
    transform-origin: center;
  }

  /* Each drawing plays for under 5 seconds once it scrolls into view, then rests
     (WCAG 2.2.2: no pause control needed under 5 seconds). */
  .in-view .ill-drop {
    animation: drop 2400ms var(--ease) 2;
  }

  .in-view .ill-travel {
    animation: travel 2400ms var(--ease) 2 alternate;
  }

  .in-view .ill-pulse {
    animation: pulse 1400ms var(--ease) 3;
  }

  .in-view .ill-pulse-b {
    animation-delay: 150ms;
  }

  .in-view .ill-pulse-c {
    animation-delay: 300ms;
  }

  @keyframes rise-in {
    from { transform: translateY(8px); }
    to { transform: translateY(0); }
  }

  @keyframes drop {
    0%, 100% { transform: translateY(-4px); }
    50% { transform: translateY(4px); }
  }

  @keyframes travel {
    from { transform: translateX(0); }
    to { transform: translateX(32px); }
  }

  @keyframes pulse {
    0%, 100% { transform: scale(0.7); }
    50% { transform: scale(1); }
  }
}
