/* aeocue design system — one stylesheet for every page.
   Tokens first (colour, type, space, radius), then base, layout, components.
   Report pages (public/r/*.html) reuse .data-table, .summary, .callout and .cta-panel.
   See /_design.html for every token and component rendered. */

/* ---- tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  --fs-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
  --fs-3xl: clamp(1.875rem, 1.35rem + 2.3vw, 2.75rem);
  --fs-4xl: clamp(2.25rem, 1.4rem + 3.8vw, 3.5rem);
  --lh-tight: 1.12;
  --lh-snug: 1.35;
  --lh-body: 1.65;
  --track-tight: -.022em;
  --track-caps: .08em;

  /* space (4px base) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* layout */
  --container: 72rem;
  --prose: 44rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* colour — light */
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eceff4;
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #5b6676;
  --rule: #e3e7ed;
  --rule-strong: #cdd4de;
  --accent: #1d4ed8;
  --accent-hover: #1e3fae;
  --accent-soft: #eef3ff;
  --accent-line: #c7d6fb;
  --on-accent: #ffffff;
  --positive: #047857;
  --positive-soft: #ecfdf5;
  --caution: #92400e;
  --caution-soft: #fff8eb;
  --band: #0f1b2d;
  --band-ink: #f1f5f9;
  --band-muted: #aeb9c9;
  --band-rule: #26344b;
  --band-accent: #9bb8ff;
  --select: #cfdcff;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px -12px rgba(15, 27, 45, .14);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #101a2c;
    --surface-2: #16223a;
    --ink: #e8edf5;
    --ink-2: #c5cedb;
    --muted: #97a3b6;
    --rule: #1f2b42;
    --rule-strong: #2d3b57;
    --accent: #86a8ff;
    --accent-hover: #a9c1ff;
    --accent-soft: #15213d;
    --accent-line: #2b3f6e;
    --on-accent: #0b1220;
    --positive: #4fd1a5;
    --positive-soft: #0f2a24;
    --caution: #f5c26b;
    --caution-soft: #2a2112;
    --band: #101a2c;
    --band-ink: #eef2f8;
    --band-muted: #a3afc2;
    --band-rule: #25324b;
    --band-accent: #9bb8ff;
    --select: #25407a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

/* ---- base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-base)/var(--lh-body) var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--select); color: var(--ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
p { text-wrap: pretty; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
code { font-family: var(--font-mono); font-size: .9em; word-break: break-word; }
img, svg { max-width: 100%; height: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 4rem;
}
.brand {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -.035em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  padding: .45rem .7rem; border-radius: var(--radius-sm);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.nav-cta {
  margin-left: var(--space-2); color: var(--on-accent); background: var(--accent);
  box-shadow: var(--shadow-sm);
}
.nav a.nav-cta:hover { background: var(--accent-hover); color: var(--on-accent); }
@media (max-width: 639px) {
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-block: var(--space-3) 0; min-height: 0; }
  .nav {
    width: 100%; margin-inline: calc(var(--gutter) * -1); padding: var(--space-2) var(--gutter);
    width: calc(100% + var(--gutter) * 2);
    overflow-x: auto; scrollbar-width: none; gap: 0;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .45rem .6rem; white-space: nowrap; }
  .nav a:first-child { margin-left: -.6rem; }
  .nav a.nav-cta { margin-left: auto; padding-inline: .8rem; }
}

/* ---- buttons ------------------------------------------------------------ */
.cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--on-accent);
  font: 600 var(--fs-base)/1.2 var(--font-sans); letter-spacing: -.005em;
  text-decoration: none; padding: .85rem 1.35rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; box-shadow: var(--shadow-sm);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cta:hover, .btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.cta-ghost, .btn-ghost {
  background: var(--bg); color: var(--ink); border-color: var(--rule-strong); box-shadow: none;
}
.cta-ghost:hover, .btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---- small type helpers -------------------------------------------------- */
.kicker, .eyebrow-label {
  display: block; margin: 0 0 var(--space-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--muted); }
.badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; line-height: 1;
  padding: .35rem .55rem; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}

/* ---- sections (home) ----------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(60rem 24rem at 85% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg));
}
.hero-in { padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem) clamp(3rem, 2rem + 5vw, 6rem); }
.hero h1 {
  font-size: var(--fs-4xl); font-weight: 650; line-height: 1.06;
  letter-spacing: -.032em; margin: 0 0 var(--space-5); max-width: 16ch;
}
.hero .lede {
  font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2);
  max-width: 40rem; margin: 0;
}
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .hero-actions { margin-top: var(--space-6); }

.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--rule); }
.section-alt { background: var(--surface); }
.section-title {
  font-size: var(--fs-2xl); font-weight: 650; line-height: var(--lh-tight);
  letter-spacing: var(--track-tight); margin: 0 0 var(--space-6); max-width: 28ch;
}
.section-note { max-width: var(--prose); color: var(--muted); margin: var(--space-5) 0 0; }
@media (min-width: 960px) {
  .split { display: grid; grid-template-columns: 17rem minmax(0, 1fr); column-gap: var(--space-8); align-items: start; }
  .split > .section-title { margin: 0; position: sticky; top: 6rem; }
  .split > .section-note { grid-column: 2; }
}

/* how it works: numbered cards */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: s;
  display: grid; gap: var(--space-4);
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
.steps li {
  counter-increment: s; background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 2rem; height: 2rem; margin-bottom: var(--space-4);
  border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line); font-weight: 600; font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.steps b { display: block; font-weight: 600; font-size: var(--fs-md); letter-spacing: -.01em; margin-bottom: var(--space-2); }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* price panel (current single-price offer) */
.offer {
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  font-variant-numeric: tabular-nums;
}
.offer p { margin: 0; }
.prices { display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
@media (min-width: 640px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prices > div {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--space-5);
}
.prices h3 {
  margin: 0 0 var(--space-3); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted);
}
.fig {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); font-weight: 650; line-height: 1;
  letter-spacing: -.035em; color: var(--ink);
}
.fig .per { font-size: var(--fs-base); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: .15rem; }
.offer .note { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--space-3); }
.offer .now { font-size: var(--fs-md); color: var(--ink-2); max-width: 46rem; }
.offer .now strong { color: var(--ink); }
.offer .terms {
  margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .95rem; max-width: 46rem;
}
.offer .terms a { font-weight: 600; white-space: nowrap; }

/* label / value rows */
.rows { list-style: none; margin: 0; padding: 0; max-width: 56rem; }
.rows li { display: grid; gap: var(--space-1); padding: var(--space-5) 0; border-top: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .rows li { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-6); } }
.rows b { font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.rows p { margin: 0; color: var(--ink-2); }

/* faq */
.faq { max-width: 52rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-5); padding: var(--space-5) 0; cursor: pointer;
  font-weight: 600; font-size: var(--fs-md); letter-spacing: -.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .55rem; height: .55rem; margin: .45rem .25rem 0 0;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .7rem; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: calc(var(--space-2) * -1) 0 var(--space-5); color: var(--ink-2); max-width: 60ch; }

/* closing call-to-action band */
.cta-band { background: var(--band); color: var(--band-ink); }
.section.cta-band { border-top: 0; }
.cta-band .section-title { color: var(--band-ink); }
.cta-band p { color: var(--band-muted); font-size: var(--fs-lg); max-width: 44rem; margin: 0 0 var(--space-6); }
.cta-band .cta { background: var(--band-ink); color: var(--band); }
.cta-band .cta:hover { background: #ffffff; color: var(--band); }
.cta-band .cta-ghost { background: transparent; color: var(--band-ink); border-color: var(--band-rule); }
.cta-band .cta-ghost:hover { border-color: var(--band-muted); background: transparent; color: #fff; }
.cta-band :focus-visible { outline-color: var(--band-accent); }

/* ---- callout / summary (shared with reports) ----------------------------- */
.callout {
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: var(--space-5); max-width: 52rem;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout p { color: var(--ink-2); margin: 0 0 var(--space-3); }
.callout-positive { border-left-color: var(--positive); background: var(--positive-soft); }
.callout-caution { border-left-color: var(--caution); background: var(--caution-soft); }
.callout-title { font-weight: 600; color: var(--ink); margin: 0 0 var(--space-2); font-size: var(--fs-md); }

.summary {
  border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg);
  box-shadow: var(--shadow); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); margin: 0 0 var(--space-6);
}
.summary-title { margin: 0 0 var(--space-4); font-size: var(--fs-xl); font-weight: 650; letter-spacing: var(--track-tight); }
.summary p { color: var(--ink-2); margin: 0 0 var(--space-3); }
.stats { display: grid; gap: var(--space-3); margin: var(--space-5) 0 0; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-4); }
.stat-value { display: block; font-size: var(--fs-2xl); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--muted); }

.cta-panel {
  display: grid; gap: var(--space-4); align-items: center;
  background: var(--band); color: var(--band-ink); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin: var(--space-7) 0 0;
}
@media (min-width: 760px) { .cta-panel { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); } }
.cta-panel h2, .cta-panel h3 { color: var(--band-ink); margin: 0 0 var(--space-2); font-size: var(--fs-xl); font-weight: 650; letter-spacing: var(--track-tight); }
.cta-panel p { color: var(--band-muted); margin: 0; }
.cta-panel .cta { background: var(--band-ink); color: var(--band); }
.cta-panel .cta:hover { background: #fff; color: var(--band); }
.cta-panel :focus-visible { outline-color: var(--band-accent); }

/* ---- plans: four-level pricing table ------------------------------------- */
.plans { display: grid; gap: var(--space-4); margin: 0 0 var(--space-6); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.plan.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .badge { position: absolute; top: calc(-.7rem - 1px); left: var(--space-5); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.plan-name { margin: 0; font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em; }
.plan-price { margin: 0; font-variant-numeric: tabular-nums; }
.plan-price .amount { font-size: var(--fs-3xl); font-weight: 650; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.plan-price .per { font-size: var(--fs-sm); color: var(--muted); margin-left: .2rem; }
.plan-desc { margin: 0; color: var(--ink-2); font-size: .95rem; }
.plan-features { list-style: none; margin: 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--rule); display: grid; gap: var(--space-2); font-size: .95rem; color: var(--ink-2); }
.plan-features li { position: relative; padding-left: 1.5rem; }
.plan-features li::before {
  content: ""; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .38rem;
  border-left: 2px solid var(--positive); border-bottom: 2px solid var(--positive); transform: rotate(-45deg);
}
.plan .cta { margin-top: auto; width: 100%; }
.plan:not(.is-featured) .cta { background: var(--bg); color: var(--ink); border-color: var(--rule-strong); box-shadow: none; }
.plan:not(.is-featured) .cta:hover { background: var(--surface); }
.plans-note { color: var(--muted); font-size: var(--fs-sm); max-width: var(--prose); }
/* inside an article column the table breaks out to the full container width */
.prose .plans {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(calc(var(--container) - var(--gutter) * 2), calc(100vw - var(--gutter) * 2));
  margin-block: var(--space-6) var(--space-7);
}

/* ---- portfolio: screenshot cards of sites we've built and run ------------ */
.portfolio-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.portfolio-card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.portfolio-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.portfolio-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--rule); background: var(--surface); }
.portfolio-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.portfolio-body .badge { align-self: flex-start; }
.portfolio-name { margin: 0; font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
/* on /portfolio the card names are h2 (no h1→h3 skip); keep .prose h2's rule and margins off them */
.prose .portfolio-name { margin: 0; padding-top: 0; border-top: 0; font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em; line-height: inherit; }
.portfolio-card:hover .portfolio-name { color: var(--accent); }
.portfolio-body p { margin: 0; color: var(--ink-2); font-size: .95rem; flex: 1; }
.portfolio-visit { margin-top: var(--space-1); font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
/* the intro paragraph above the grid stays prose-width; the grid itself breaks out */
.prose .portfolio-grid {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(calc(var(--container) - var(--gutter) * 2), calc(100vw - var(--gutter) * 2));
  margin-block: var(--space-6) var(--space-7);
}

/* ---- document pages ------------------------------------------------------ */
.page-head { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--rule); }
.page-head .wrap { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2.5vw, 3.25rem); }
.page-head h1 {
  font-size: var(--fs-3xl); font-weight: 650; line-height: var(--lh-tight);
  letter-spacing: -.03em; margin: 0; max-width: 24ch;
}
.page-head .stamp {
  display: flex; align-items: flex-start; gap: .5rem; margin: var(--space-4) 0 0;
  font-size: var(--fs-sm); color: var(--muted);
}
.page-head .stamp::before { content: ""; width: .45rem; height: .45rem; margin-top: .55em; border-radius: 50%; background: var(--positive); flex: none; }
.page-head .stamp strong { font-weight: 500; }

.doc-body { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section-y); }
/* article column: the page head and body share one centred measure */
.page-head .wrap, .doc-body { max-width: calc(var(--prose) + var(--gutter) * 2); }

.prose { max-width: var(--prose); color: var(--ink-2); font-size: var(--fs-md); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 var(--space-5); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose p.lede { font-size: var(--fs-lg); color: var(--ink); line-height: 1.6; }
.prose h2 {
  font-size: var(--fs-xl); font-weight: 650; line-height: var(--lh-snug);
  letter-spacing: -.018em; margin: var(--space-7) 0 var(--space-4);
  padding-top: var(--space-6); border-top: 1px solid var(--rule);
}
.prose h3 { font-size: var(--fs-md); font-weight: 600; margin: var(--space-6) 0 var(--space-3); }
.prose ul, .prose ol { margin: 0 0 var(--space-5); padding-left: 1.25rem; }
.prose li { margin-bottom: var(--space-3); padding-left: .25rem; }
.prose li::marker { color: var(--muted); }
.prose code { color: var(--ink); background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.prose .cta { margin-top: var(--space-2); }
.prose p.cta-line { border-top: 1px solid var(--rule); padding-top: var(--space-5); color: var(--ink); }
.prose .callout { margin: 0 0 var(--space-5); }

.back {
  display: inline-block; margin-top: var(--space-5); font-size: var(--fs-sm); font-weight: 500;
  color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--accent); }

/* ---- tables (prose tables and report data tables) ------------------------- */
.tbl {
  overflow-x: auto; max-width: 100%; margin: 0 0 var(--space-6);
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg);
}
.tbl table, .data-table { margin: 0; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.prose table, .data-table { font-size: var(--fs-sm); }
.prose table:not(.tbl table) { margin: 0 0 var(--space-6); }
caption {
  text-align: left; caption-side: top; padding: var(--space-3) var(--space-4);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
th, td { text-align: left; vertical-align: top; padding: .7rem var(--space-4); border-bottom: 1px solid var(--rule); }
@media (max-width: 639px) { th, td { padding: .6rem .75rem; } caption { padding-inline: .75rem; } }
thead th {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); white-space: nowrap;
}
tbody td { color: var(--ink-2); }
tbody td:first-child { color: var(--ink); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.n, td.n, th.n { text-align: right; white-space: nowrap; }

/* ranked data table for reports */
.data-table .rank { width: 3rem; color: var(--muted); font-weight: 600; text-align: right; padding-right: var(--space-2); }
.data-table tr.is-you td, tr.us td { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.data-table tr.is-you td:first-child, tr.us td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.data-table tr.is-empty td { color: var(--muted); font-style: italic; }
.meter { display: inline-block; width: 5rem; height: .45rem; border-radius: var(--radius-pill); background: var(--surface-2); vertical-align: middle; margin-right: .5rem; overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--v, 0%); background: var(--accent); border-radius: inherit; }

/* ---- proof page ---------------------------------------------------------- */
.proof-big {
  font-size: clamp(2.75rem, 2rem + 4vw, 4rem); font-weight: 650; letter-spacing: -.04em;
  line-height: 1; color: var(--ink); margin: 0 0 var(--space-3) !important;
  font-variant-numeric: tabular-nums;
}
.proof-big small { display: block; margin-top: var(--space-3); font-size: var(--fs-base); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.spark {
  display: flex; gap: 6px; align-items: flex-end; height: 88px; max-width: 40rem;
  margin: 0 0 var(--space-6); padding: 22px var(--space-4) var(--space-3);
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  box-sizing: content-box;
}
.spark div { flex: 1; background: var(--rule-strong); border-radius: 3px 3px 0 0; position: relative; min-height: 4px; }
.spark div.hit { background: var(--accent); }
.spark div span { position: absolute; bottom: 100%; left: -4px; right: -4px; text-align: center; font-size: .68rem; color: var(--muted); padding-bottom: 3px; }
#leaders td.n, #history td.n { width: 6rem; }

/* ---- footer -------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--muted); }
.site-footer .wrap { display: grid; gap: var(--space-5); padding-block: var(--space-7) var(--space-6); }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.footer-brand p { margin: var(--space-2) 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: var(--space-5); border-top: 1px solid var(--rule); }

/* ---- design page only ---------------------------------------------------- */
.swatches { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); margin: 0 0 var(--space-6); }
.swatch { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; font-size: var(--fs-xs); background: var(--bg); }
.swatch i { display: block; height: 3.5rem; border-bottom: 1px solid var(--rule); }
.swatch span { display: block; padding: var(--space-2) var(--space-3); color: var(--ink-2); font-family: var(--font-mono); }
.type-sample { margin: 0 0 var(--space-3); color: var(--ink); line-height: 1.2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .cta, .cta-panel .cta { display: none !important; }
  body { background: #fff; color: #000; }
}
