/* elodiehq.com. One stylesheet, system fonts only, no external request. Colors are tokens; dark mode redefines them.
   Text colors are verified against WCAG AA in both themes by tests/deploy/test_site.py. */

:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #64646e;
  --rule: #e4e4e7;
  --rule-strong: #c8c8cf;
  --accent: #b83e00;
  --on-accent: #ffffff;
  --brand-vivid: #ff6b00;
  --brand-display: #e05a00;
  --site-muted: #f5f5f7;
  --band: #18181b;
  --band-ink: #ffffff;
  --band-ink-2: #d1d1d6;
  --band-accent: #ff6b00;
  --band-rule: #343438;
  --shadow: 0 1px 2px rgb(24 24 27 / 0.03), 0 24px 60px -28px rgb(24 24 27 / 0.18);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 36rem;
  --radius: 1.25rem;

  /* the type scale: about 1.25 on a phone, opening to about 1.333 on a wide screen */
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.22rem + 0.75vw, 1.75rem);
  --step-3: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.9vw, 3.5rem);
  --step-5: clamp(2.375rem, 1.35rem + 4.6vw, 5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151514;
    --surface: #1e1e1c;
    --ink: #f3ece3;
    --ink-2: #bdb1a5;
    --ink-3: #a3968a;
    --rule: #34342e;
    --rule-strong: #52524a;
    --accent: #e58a5c;
    --on-accent: #14100e;
    --band: #6f2c15;
    --band-ink: #f5e6da;
    --band-ink-2: #e2bfa8;
    --band-accent: #f2a37a;
    --band-rule: #8a4428;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.5), 0 28px 56px -28px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

/* ---- base ---------------------------------------------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  font-kerning: normal;
  /* the footer sits at the bottom of a short page (the 404) */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.brief-title,
.origin-text {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

a:hover {
  text-decoration-color: var(--accent);
}

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

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.wrap {
  width: min(100% - 2 * var(--gutter), 74rem);
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

.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-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Quiet labels keep the hierarchy clear without competing with the headline. */
.label {
  font: 600 var(--step--1) / 1.3 var(--sans);
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

/* ---- the wordmark -------------------------------------------------------------------------------------------------------- */

.wordmark {
  height: 1.5rem;
  width: auto;
  color: var(--ink);
}

.wordmark .dot,
.dot {
  fill: var(--accent);
  color: var(--accent);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 500 0.9375rem / 1.2 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button--primary {
  background: var(--ink);
  color: var(--paper);
}

.button--primary:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.button--quiet {
  border-color: var(--rule-strong);
  color: var(--ink);
}

.button--quiet:hover {
  border-color: var(--ink);
}

.button--small {
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.button .arrow {
  transition: transform 160ms ease;
}

.button:hover .arrow {
  transform: translateX(2px);
}

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

.site-header {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; padding-block: 0.5rem; border-radius: 4px; text-decoration: none; flex: none; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: none; gap: 1.75rem; font-size: 0.875rem; }
.nav-links a, .nav-signin { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-signin:hover { color: var(--ink); }
.nav-signin { font-size: 0.875rem; padding: 0.625rem 0.25rem; }
.mobile-menu { position: relative; font-size: 0.875rem; }
.mobile-menu summary { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { font-size: 1.25rem; line-height: 1; }
.mobile-menu[open] summary span { transform: rotate(45deg); }
.mobile-menu ul { position: absolute; top: calc(100% + 0.5rem); right: -0.75rem; width: max-content; min-width: 13rem; padding: 0.5rem; border: 1px solid var(--rule); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.mobile-menu a { display: block; min-height: 2.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem; text-decoration: none; }
.mobile-menu a:hover { background: var(--paper); }
.site-header--home .nav-signin { display: none; }
@media (max-width: 40rem) {
  .site-header .wordmark { height: 1.25rem; }
  .nav { gap: 0.875rem; }
  .site-header .button--small { padding-inline: 0.75rem; font-size: 0.8125rem; }
}
@media (min-width: 60rem) {
  .nav-links { display: flex; }
  .mobile-menu { display: none; }
  .site-header--home .nav-signin { display: block; }
}

/* ---- hero: the product and its purpose, in one view ---------------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.hero-head { max-width: 56rem; margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.625rem; }
.eyebrow::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-top: 1.5rem; font: 500 clamp(2.5rem, 6.5vw, 4.75rem) / 1.06 var(--sans); letter-spacing: -0.06em; }
.hero-emphasis { color: var(--ink); }
.lead { max-width: var(--measure); font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }
.hero .lead { max-width: 34rem; margin: 1.5rem auto 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2.25rem; }
.hero .actions { justify-content: center; }
.hero .button { min-height: 3rem; padding-inline: 1.5rem; }
.hero .button--quiet { border-color: transparent; color: var(--ink-2); }
.hero .button--quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.fineprint { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--ink-3); }

/* ---- the example brief --------------------------------------------------------------------------------------------------- */

.brief { position: relative; width: 100%; max-width: 68rem; margin-inline: auto; }
.product-preview { border-block: 1px solid var(--rule); background: transparent; }
.preview-toolbar { display: flex; align-items: center; gap: 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--rule); font-size: 0.8125rem; }
.preview-brand { font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.03em; }
.preview-context { flex: 1; color: var(--ink-3); }
.preview-content { display: grid; }
.preview-overview { padding: 2rem 0; display: flex; flex-direction: column; }
.preview-title { margin-top: 1rem; font: 500 clamp(1.75rem, 3vw, 2.5rem) / 1.15 var(--sans); letter-spacing: -0.045em; }
.preview-description { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-2); }
.preview-chart { margin-top: 2.5rem; }
.preview-chart svg { width: 100%; overflow: visible; }
.chart-guide { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-primary { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.chart-secondary { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.chart-key { display: flex; gap: 1.25rem; margin-top: 1rem; font-size: 0.8125rem; color: var(--ink-2); }
.chart-key span { display: flex; align-items: center; gap: 0.5rem; }
.chart-key span::before { content: ""; width: 0.75rem; height: 0.1875rem; border-radius: 2px; background: var(--accent); }
.chart-key span + span::before { height: 0; border-top: 2px dashed var(--ink-3); background: transparent; }
.preview-note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--ink-3); }
.brief-card { border-top: 1px solid var(--rule); padding: 1.5rem 0; font-size: 0.875rem; }
@media (min-width: 48rem) {
  .preview-content { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .preview-overview { padding: 2.5rem 3rem 2.5rem 0; }
  .brief-card { border-top: 0; border-left: 1px solid var(--rule); padding: 2.5rem 0 2.5rem 2rem; }
}
@media (max-width: 30rem) {
  .preview-toolbar { padding-block: 1rem; gap: 0.75rem; }
  .preview-context { font-size: 0.75rem; }
  .preview-overview { padding-block: 1.5rem; }
}

.brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--rule);
}

.brief-title {
  margin-top: 0.5rem;
  font: 500 1.25rem / 1.25 var(--sans);
  letter-spacing: -0.01em;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font: 500 0.6875rem / 1 var(--sans);
  letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
}

.tag--accent {
  border-color: currentColor;
  color: var(--accent);
}

.brief-item {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.25rem 0.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brief-num {
  padding-top: 0.15rem;
  font: 500 var(--step--1) / 1.4 var(--mono);
  color: var(--ink-3);
}

.brief-item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.375rem 0.75rem;
  font: 600 0.875rem / 1.4 var(--sans);
}

.brief-item-text {
  margin-top: 0.375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.chip {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font: 500 0.8125rem / 1 var(--sans);
  color: var(--ink);
  user-select: none;
}

.chip--approve {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.brief-foot {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
  padding-top: 1.125rem;
  font-size: var(--step--1);
  color: var(--ink-3);
}

.brief-foot::before {
  content: "";
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.1rem);
}

.brief figcaption {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--ink-3);
}

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

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 62rem) {
  .section-head {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: baseline;
  }
}

.section h2 {
  max-width: 18ch;
  font: 500 var(--step-4) / 1.12 var(--sans);
  letter-spacing: -0.045em;
}

.section-intro {
  max-width: var(--measure);
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
}

/* how it works: four steps on a ruled line */
.steps {
  display: grid;
  gap: 0 2rem;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 66rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  padding-block: 1.5rem 2.25rem;
  border-top: 1px solid var(--rule-strong);
}

.step-meta {
  display: flex;
  gap: 0.75rem;
}

.step-num {
  color: var(--accent);
}

.step h3 {
  margin: 1.25rem 0 0.75rem;
  font: 500 1.375rem / 1.25 var(--sans);
  letter-spacing: -0.035em;
}

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

/* Short leads stay visible; named native disclosures retain the full explanation. */
.site-detail { margin-top: 1rem; }
.site-detail summary,
.principle-disclosure summary {
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
}
.site-detail summary::-webkit-details-marker,
.principle-disclosure summary::-webkit-details-marker { display: none; }
.site-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}
.site-detail summary::after,
.principle-disclosure summary::after { content: "+"; font-weight: 400; }
.site-detail[open] > summary::after,
.principle-disclosure[open] > summary::after { content: "−"; }
.site-detail[open] > p { padding-top: 0.75rem; }
.site-detail summary:focus-visible,
.principle-disclosure summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

/* what makes it different: ruled rows, heading left and text right */
.principles {
  border-top: 1px solid var(--rule);
}

.principle {
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}

.principle-disclosure summary { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.principle-disclosure h3 { display: grid; gap: 0.75rem 2rem; flex: 1; }
.principle-disclosure > p { padding-top: 1rem; }

.principle .step-num {
  display: block;
}

/* on a wider screen the number sits above, and the heading and its text share a baseline */
@media (min-width: 48rem) {
  .principle-disclosure h3 {
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: baseline;
  }

  .principle .step-num {
    grid-column: auto;
  }

  .principle-disclosure > p { margin-left: 5rem; }
}

.principle h3 {
  font: 500 1.375rem / 1.25 var(--sans);
  letter-spacing: -0.035em;
}

.principle p {
  max-width: var(--measure);
  color: var(--ink-2);
}

/* a section whose heading is set as a small label (where it comes from) */
.section h2.label {
  max-width: none;
  font: 600 var(--step--1) / 1.3 var(--sans);
  letter-spacing: 0.01em;
}

/* who it is for */
.audience {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .audience {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.panel {
  padding-block: 1.5rem 0;
  border-top: 1px solid var(--rule-strong);
}

.panel--quiet {
  background: transparent;
}

.panel h3 {
  padding-bottom: 1rem;
}

.marks li {
  position: relative;
  padding: 1rem 0 1rem 1.75rem;
  border-top: 1px solid var(--rule);
}

.marks li::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: 0;
  width: 0.875rem;
  height: 2px;
  background: var(--accent);
}

.panel--quiet .marks li::before {
  background: var(--ink-3);
}

/* where it comes from */
.origin {
  display: grid;
  gap: 1.5rem 2rem;
}

@media (min-width: 62rem) {
  .origin {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.origin-text {
  max-width: 44rem;
  font: 500 var(--step-3) / 1.25 var(--sans);
  letter-spacing: -0.04em;
}

.origin-text + p {
  max-width: var(--measure);
  margin-top: 1.5rem;
  color: var(--ink-2);
}

.origin-detail { max-width: var(--measure); margin-top: 1.5rem; }
.origin-detail p { color: var(--ink-2); }

/* the closing band */
.band {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--band-rule);
}

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

.band-grid {
  display: grid;
  gap: 1rem 2rem;
}

@media (min-width: 62rem) {
  .band-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: end;
  }
}

.band h2 {
  max-width: 16ch;
  margin-top: 1.25rem;
  font: 500 var(--step-5) / 1.08 var(--sans);
  letter-spacing: -0.045em;
}

.band p:not(.label) {
  max-width: var(--measure);
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--band-ink-2);
}

.band .actions {
  margin-top: 2.5rem;
}

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

.band .button--primary:hover {
  background: var(--band-accent);
  color: var(--band);
}

.band .button--quiet {
  border-color: var(--band-rule);
  color: var(--band-ink);
}

.band .button--quiet:hover {
  border-color: var(--band-ink);
}

.band a:not(.button) {
  text-decoration-color: var(--band-ink-2);
}

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

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.site-footer .wordmark {
  height: 1.125rem;
}

/* ---- the 404 page -------------------------------------------------------------------------------------------------------- */

.notfound {
  padding-block: clamp(4rem, 12vw, 9rem);
}

.notfound .lead {
  margin-top: 1.5rem;
}

.notfound h1 {
  max-width: 16ch;
  margin-top: 1.5rem;
  font: 500 var(--step-5) / 1.08 var(--sans);
  letter-spacing: -0.045em;
}

/* ---- the legal pages (Oct 18): the terms, the privacy policy and the beta agreement, built from docs/legal/ by site/tools/legal_pages.py - */

.legal {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}

/* the text keeps a reading measure and lines up with the header's wordmark */
.legal-wrap > * {
  max-width: 44rem;
}

.legal-banner {
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.legal-banner-title {
  color: var(--ink);
  font-weight: 700;
}

.legal-banner p + p {
  margin-top: 0.25rem;
}

.legal .eyebrow {
  margin-top: 2.25rem;
}

.legal h1 {
  margin-top: 0.875rem;
  font: 400 var(--step-4) / 1.06 var(--sans);
  letter-spacing: -0.015em;
}

.legal-meta {
  margin-top: 0.75rem;
  font: 500 var(--step--1) / 1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.legal-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.legal-pages a {
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-2);
  text-decoration: none;
}

.legal-pages a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.legal-pages a[aria-current="page"] {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.legal-body {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.legal-body h2 {
  margin-top: 2.25rem;
  font: 600 1.25rem / 1.25 var(--sans);
  scroll-margin-top: 1.5rem;
}

.legal-body > :first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin-top: 0.875rem;
}

.legal-body ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-body ol {
  padding-left: 1.5rem;
  list-style: decimal;
}

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

.legal-body li::marker {
  color: var(--ink-3);
}

.legal-body code {
  padding: 0.0625rem 0.3125rem;
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  background: var(--surface);
  font: 0.875em var(--mono);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-legal a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---- motion: one quiet entrance, and none at all for a reader who asked for less ----------------------------------------- */

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

  .rise {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .rise--late {
    animation-delay: 140ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

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

@media (forced-colors: active) {
  .chip--approve,
  .button--primary {
    border: 1px solid CanvasText;
  }
}

@media print {
  .site-header .nav,
  .actions,
  .band,
  .legal-pages {
    display: none;
  }
}

/* A crisp light palette: vivid orange marks controls and visual cues; the deeper
   orange carries small labels, and the large headline has its own accessible orange. */
@media (prefers-color-scheme: light) {
  .wordmark .dot,
  .dot { fill: var(--brand-vivid); color: var(--brand-vivid); }
  .hero .hero-emphasis { color: var(--brand-display); }
  .hero .eyebrow,
  .section-head > .label,
  .origin > .label { color: var(--accent); }
  .eyebrow::before,
  .marks li::before,
  .brief-foot::before { background: var(--brand-vivid); }

  .nav-links a:hover,
  .site-header .nav-signin:hover,
  .mobile-menu summary { color: var(--accent); }
  .mobile-menu a:hover { background: var(--site-muted); }

  .button { border-radius: 12px; }
  .button--primary { border-color: var(--accent); background: var(--brand-vivid); color: var(--ink); }
  .button--primary:hover { background: #f05e00; color: var(--ink); }
  .hero .button--quiet { border-color: var(--rule-strong); background: var(--surface); color: var(--ink); }
  .hero .button--quiet:hover { border-color: var(--ink); background: var(--site-muted); color: var(--ink); }
  .hero .actions:not(:has(.button--primary)) .button--quiet { background: var(--brand-vivid); border-color: var(--accent); color: var(--ink); }
  .hero .actions:not(:has(.button--primary)) .button--quiet:hover { background: #f05e00; }

  .product-preview {
    padding-inline: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--brand-vivid);
    border-radius: 20px;
    background: var(--site-muted);
    box-shadow: var(--shadow);
  }
  .preview-brand { color: var(--ink); }
  .preview-toolbar .tag { border-color: var(--rule-strong); background: var(--surface); color: var(--ink-2); }
  .chart-primary { stroke: var(--brand-display); }
  .chart-key span::before { background: var(--brand-display); }
  .chart-key span + span::before { background: transparent; }
  .step { border-top-color: var(--rule-strong); }
  .step-num { color: var(--accent); }
  .site-detail summary::after,
  .principle-disclosure summary::after { color: var(--accent); }

  .band .label { color: var(--brand-vivid); }
  .band .button--primary { background: var(--brand-vivid); color: var(--ink); }
  .band .button--primary:hover { background: #f05e00; color: var(--ink); }
}

/* The public waitlist is the page's only form. Existing page styles stay unchanged. Its rules start with .band so they win over
   ".band p:not(.label)" (the closing band's paragraph size and top margin), which would otherwise size the hints like the intro (SITE-4). */
.waitlist-form { display: grid; gap: 8px; min-width: 0; max-width: 36rem; margin-block: 24px; scroll-margin-top: 24px; }
.waitlist-form label { color: var(--band-ink); margin-top: 12px; }
.waitlist-form :is(input, select) { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 6px; }
.waitlist-form :is(input, select, button):focus-visible { outline: 3px solid var(--band-accent); outline-offset: 3px; }
.band .waitlist-form .waitlist-hint { max-width: none; margin-top: 0; color: var(--band-ink-2); font-size: var(--step--1); line-height: 1.5; }
.band .waitlist-form .waitlist-needs-script { margin-bottom: 4px; color: var(--band-ink); }
.waitlist-form button { min-width: 44px; min-height: 48px; margin-top: 12px; font: inherit; cursor: pointer; }
.waitlist-form button:disabled { cursor: not-allowed; }
.waitlist-form[aria-busy="true"] button:disabled { cursor: wait; }
.band .waitlist-form [role="status"] { max-width: none; margin: 0; }
.waitlist-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* the tall form: the band's two columns start level, so the heading stays beside the form a "Request access" link lands on (SITE-5) */
@media (min-width: 62rem) {
  .band-grid:has(.waitlist-form) { align-items: start; }
}
/* dark mode: a field's edge 3:1 or more against the band and against its own fill (WCAG 1.4.11; SITE-3) */
@media (prefers-color-scheme: dark) {
  .waitlist-form :is(input, select) { border-color: var(--band-ink-2); }
}
