/* Layout concept: a neutral home page hands each audience to a page with its own accent.
   Hairline rules and mono clause labels carry the regulatory tone; larger type and
   open space carry the approachable one. */

:root {
  --font-display: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EDF0F5;
  --fg: #101828;
  --muted: #475467;
  --line: #D8DDE5;
  --line-strong: #98A2B3;

  --brand: #1F3358;
  --on-brand: #FFFFFF;
  --brand-tint: #E6EBF5;

  --med: #0E6B7E;
  --on-med: #FFFFFF;
  --med-tint: #E1F0F3;

  --ai: #A94A06;
  --on-ai: #FFFFFF;
  --ai-tint: #FBEBDC;
  --grid: rgba(31, 51, 88, 0.06);
  --warn: #B42318;
  --warn-tint: #FEECEB;
  --ok: #067647;

  --step-small: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --step-3: clamp(1.9rem, 1.2rem + 2.8vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.2rem + 4.6vw, 4rem);
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --radius-panel: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1220;
    --surface: #141B2D;
    --surface-2: #1A2338;
    --fg: #E8ECF4;
    --muted: #A5AFC3;
    --line: #2A3450;
    --line-strong: #5A6786;
    --brand: #A9BDF0;
    --on-brand: #0D1220;
    --brand-tint: #18223D;
    --med: #5CC4D8;
    --on-med: #08222A;
    --med-tint: #10303A;
    --ai: #F2A15C;
    --on-ai: #2A1404;
    --ai-tint: #3A2412;
    --grid: rgba(169, 189, 240, 0.06);
    --warn: #FF8A80;
    --warn-tint: #3A1816;
    --ok: #6CE9A6;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0D1220;
  --surface: #141B2D;
  --surface-2: #1A2338;
  --fg: #E8ECF4;
  --muted: #A5AFC3;
  --line: #2A3450;
  --line-strong: #5A6786;
  --brand: #A9BDF0;
  --on-brand: #0D1220;
  --brand-tint: #18223D;
  --med: #5CC4D8;
  --on-med: #08222A;
  --med-tint: #10303A;
  --ai: #F2A15C;
  --on-ai: #2A1404;
  --ai-tint: #3A2412;
  --grid: rgba(169, 189, 240, 0.06);
  --warn: #FF8A80;
  --warn-tint: #3A1816;
  --ok: #6CE9A6;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  --accent: var(--brand);
  --on-accent: var(--on-brand);
  --accent-tint: var(--brand-tint);
}
body.theme-med { --accent: var(--med); --on-accent: var(--on-med); --accent-tint: var(--med-tint); }
body.theme-ai { --accent: var(--ai); --on-accent: var(--on-ai); --accent-tint: var(--ai-tint); }

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

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; max-width: 65ch; }

.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 20;
}
.skip:focus { top: 8px; }

/* Header */
header.site {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 12px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.nav a:not(.btn) {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding-block: 8px;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-quiet { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-inverse { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.btn-outline-inverse { background: transparent; color: var(--on-accent); border-color: var(--on-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-copy .eyebrow { margin: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 40rem; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { margin: 0; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: clamp(20px, 3vw, 32px);
  min-width: 0;
}
.panel h2, .panel h3 { margin-bottom: 4px; }
.panel-note { font-size: var(--step-small); color: var(--muted); margin-top: 16px; }

/* Entry cards on the home page */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.entry {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  min-width: 0;
}
.entry.med { --accent: var(--med); --on-accent: var(--on-med); --accent-tint: var(--med-tint); }
.entry.ai { --accent: var(--ai); --on-accent: var(--on-ai); --accent-tint: var(--ai-tint); }
.entry .eyebrow { margin: 0; }
.entry p { color: var(--muted); }
.entry .btn { align-self: flex-start; margin-top: auto; }

.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 10px;
  border-top: 1px solid var(--line-strong);
  font-weight: 500;
}
.offer-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.offer-list span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  align-self: center;
}

/* Offers on the service pages */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px 32px;
}
.offer { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--accent); padding-top: 20px; min-width: 0; }
.offer .meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.offer p { color: var(--muted); font-size: 1rem; }

/* Four-up text blocks */
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 32px;
}
.point { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-strong); padding-top: 20px; min-width: 0; }
.point p { color: var(--muted); font-size: 1rem; }

/* Ordered process */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li { display: flex; flex-direction: column; gap: 10px; counter-increment: step; min-width: 0; }
.steps li::before {
  content: "Step " counter(step);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 12px;
}
.steps p { color: var(--muted); font-size: 1rem; }

/* Clause ladder */
.ladder { list-style: none; margin: 16px 0 0; padding: 0; }
.ladder li {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.ladder b { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; color: var(--accent); }

/* Scorecard table */
.table-wrap { overflow-x: auto; margin-top: 16px; }
table.score { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
table.score th, table.score td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.score th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 0;
  white-space: nowrap;
}
table.score td { font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.tag-go { background: var(--accent-tint); border-color: var(--accent); color: var(--fg); }

/* Two-column text */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checks li { padding-block: 12px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks strong { display: block; font-weight: 600; }
.checks span { color: var(--muted); font-size: 1rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Call to action band */
.cta-band { background: var(--accent); color: var(--on-accent); padding-block: clamp(48px, 7vw, 88px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; flex: 1 1 360px; }
.cta-inner p { color: var(--on-accent); font-size: var(--step-1); line-height: 1.45; }
.cta-band h2 { color: var(--on-accent); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: var(--step-small); color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form-note { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 0.9375rem; max-width: none; }
.form-note[data-kind="ok"] { border-color: var(--accent); background: var(--accent-tint); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }

/* Prose pages */
.prose { max-width: 44rem; display: flex; flex-direction: column; gap: 20px; }
.prose h2 { font-size: var(--step-2); margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.prose p { color: var(--muted); }
.draft-banner { background: var(--ai-tint); border: 1px solid var(--ai); border-radius: var(--radius); padding: 12px 16px; font-size: 0.9375rem; max-width: none; color: var(--fg); }

/* Footer */
footer.site { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: 48px; }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.foot > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.foot-h { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot a { color: var(--fg); }
.foot p { font-size: 0.9375rem; }

/* ---------- v2 components ---------- */
.hero-grid-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 20ch; }

/* Credentials strip */
.creds { border-bottom: 1px solid var(--line); background: var(--surface); }
.creds ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.creds li { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.creds strong { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -0.01em; }
.creds span { color: var(--muted); font-size: 0.9375rem; }

/* Sample deliverable mockups */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 32px -12px rgba(16, 24, 40, 0.18);
  overflow: hidden;
  min-width: 0;
}
.mock-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em;
}
.mock-head b { color: var(--fg); font-weight: 500; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.sample-label {
  font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px;
}

table.trace { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 460px; }
table.trace th {
  text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px 0;
}
table.trace td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.trace td.id { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); white-space: nowrap; }
table.trace td.need { color: var(--fg); }
.status { display: inline-block; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.status-ok { background: var(--accent-tint); color: var(--fg); border: 1px solid var(--accent); }
.status-gap { background: var(--warn-tint); color: var(--warn); border: 1px solid var(--warn); }
.missing { color: var(--warn); font-family: var(--font-mono); font-size: 0.75rem; }

.alert {
  border: 1px solid var(--warn); background: var(--warn-tint); border-radius: var(--radius);
  padding: 10px 12px; font-size: 0.875rem; color: var(--fg); max-width: none;
}
.alert b { color: var(--warn); font-weight: 600; }

/* Bar chart */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr 2.75rem; gap: 12px; align-items: center; font-size: 0.8125rem; }
.bar-row .lbl { min-width: 0; }
.bar-row .lbl small { display: block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 5px; }
.fill.low { background: var(--warn); }
.bar-row .val { font-family: var(--font-mono); font-size: 0.75rem; text-align: right; font-variant-numeric: tabular-nums; }
.axis { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr 2.75rem; gap: 12px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.axis .ticks { display: flex; justify-content: space-between; }

/* Workflow flow */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; position: relative; padding-bottom: 14px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.node {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  background: var(--surface-2); border: 1.5px solid var(--line-strong); color: var(--fg);
}
.flow li.person .node { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.flow .what { font-size: 0.875rem; min-width: 0; padding-top: 3px; }
.flow .what small { display: block; color: var(--muted); font-size: 0.8125rem; }
.kind { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; margin-top: 4px; white-space: nowrap; }
.flow li.person .kind { border-color: var(--accent); color: var(--fg); }

/* KPI tiles inside mock */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.kpi span { display: block; font-size: 0.75rem; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cols { display: flex; align-items: flex-end; gap: 14px; height: 120px; padding-top: 8px; border-bottom: 1px solid var(--line-strong); }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.col i { display: block; width: 100%; max-width: 44px; background: var(--accent); border-radius: 3px 3px 0 0; }
.col em { font-style: normal; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.col-labels { display: flex; gap: 14px; }
.col-labels span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }

/* Pain cards */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pain .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.pain h3 { font-size: 1.125rem; }
.pain p { color: var(--muted); font-size: 0.9375rem; }

/* Offer cards with deliverables */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.featured { border: 2px solid var(--accent); }
.plan .meta { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.plan p { color: var(--muted); font-size: 0.9375rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.price b { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -0.01em; }
.price span { font-size: 0.8125rem; color: var(--muted); }

/* Feature split with visual */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }

/* Fit lists */
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.fit .panel h3 { margin-bottom: 12px; }
.fit ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 0.9375rem; }

/* Founder */
.founder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; max-width: 360px; width: 100%; border-radius: var(--radius-panel);
  background: linear-gradient(160deg, var(--brand-tint), var(--surface-2));
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .ph { display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--muted); font-size: 0.8125rem; padding: 16px; }
.portrait .ph b { font-family: var(--font-display); font-size: 3.5rem; color: var(--brand); line-height: 1; }
.founder blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; max-width: 30ch; }
.creds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.creds-list li { padding-block: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 0.9375rem; }
.creds-list li span { color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; align-self: center; }

.entry .mock { box-shadow: none; }
.mini table.trace { min-width: 0; }
.mini .flow li { padding-bottom: 10px; }
.plans { grid-template-columns: 1fr; }
@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)); } }
.brand-sub {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-left: 8px; white-space: nowrap;
}

/* Root landing: service tiles that can grow */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.tile {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius-panel); padding: clamp(24px, 3.5vw, 36px);
}
.tile.med { --accent: var(--med); --on-accent: var(--on-med); --accent-tint: var(--med-tint); }
.tile.ai { --accent: var(--ai); --on-accent: var(--on-ai); --accent-tint: var(--ai-tint); }
.tile .eyebrow { margin: 0; }
.tile h3 { font-size: var(--step-2); }
.tile p { color: var(--muted); }
.tile .mock { box-shadow: none; }
.tile .btn { align-self: flex-start; margin-top: auto; }

.focus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 24px; }
.focus li { padding-block: 12px; border-top: 1px solid var(--line-strong); font-weight: 500; }

/* Recommendations */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 24px; min-width: 0; }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--fg); }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.quote figcaption b { font-weight: 600; }
.quote figcaption span { font-size: 0.875rem; color: var(--muted); }
.quotes { grid-template-columns: 1fr; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.svc {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius-panel); color: var(--fg); text-decoration: none;
}
.svc:hover { border-color: var(--accent); }
.svc b { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; }
.svc span { color: var(--muted); font-size: 0.9375rem; }
[id] { scroll-margin-top: 96px; }
