/* AdultDevLab design system — tokens and components. See docs/design-system.md */
:root {
  --ink: #12141d; --ink-2: #2b2e3b; --muted: #5a5d6c; --faint: #8a8d9a;
  --line: #e4e0d7; --line-2: #d2ccbf;
  --paper: #f7f5f0; --surface: #ffffff; --tint: #efebe2;
  --accent: #e5482a; --accent-ink: #b5341a; --accent-soft: #fde8e1;
  --cobalt: #3044cf; --cobalt-soft: #e7eaff;
  --green: #0d7556; --green-soft: #dcf2e9;
  --amber: #8f5b00; --amber-soft: #fbefd4;
  --violet: #6a3dcf; --violet-soft: #eee7ff;
  --night: #0e1018; --night-2: #171a26; --night-3: #1f2332; --night-line: #2c3142; --night-text: #c6c9d6; --night-muted: #8c90a3;
  --radius: 16px; --radius-sm: 10px; --radius-xs: 6px;
  --shadow: 0 1px 2px rgba(18,20,29,.05), 0 8px 24px -12px rgba(18,20,29,.18);
  --shadow-lg: 0 2px 4px rgba(18,20,29,.06), 0 24px 60px -24px rgba(18,20,29,.35);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1200px; --gutter: 20px;
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--cobalt);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: inherit; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--tint); color: var(--ink); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); display: inline-flex; gap: .35em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,240,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.2rem/1 var(--display); letter-spacing: -0.02em; flex-shrink: 0; }
.brand b { color: var(--accent); font-weight: 800; }
.brand svg { width: 30px; height: 30px; }
.nav { display: none; margin-left: auto; }
.nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a.nav-link, .nav button.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 .95rem/1 var(--font); background: none; border: 0; cursor: pointer; }
.nav .nav-link:hover, .nav .nav-link[aria-expanded="true"] { background: var(--tint); }
.nav .nav-link[aria-current="page"] { color: var(--accent-ink); }
.nav button.nav-link::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.menu-panel { position: absolute; top: calc(100% + 8px); left: -12px; width: min(640px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; display: none; }
.menu-panel.is-open { display: block; }
.menu-panel--right { left: auto; right: -12px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.menu-grid a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.menu-grid a:hover { background: var(--paper); }
.menu-grid a strong { display: block; font-size: .93rem; font-weight: 600; }
.menu-grid a span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.menu-foot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.header-cta { display: none; }
.menu-toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-nav.is-open { display: block; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { list-style: none; padding: 16px var(--gutter); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0 var(--gutter) 12px; }
.mobile-nav li a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; }
.mobile-nav > a { display: block; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-nav .mobile-cta { padding: 16px var(--gutter) 24px; display: grid; gap: 10px; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--tint { background: var(--tint); }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--night { background: var(--night); color: var(--night-text); }
.section--night h1, .section--night h2, .section--night h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--night .section-head p { color: var(--night-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.section--night .eyebrow { color: var(--night-muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-text); padding: 56px 0 64px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); opacity: .55; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(229,72,42,.28), transparent 62%); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--night-text); max-width: 58ch; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-statement { display: inline-block; font: 600 .95rem/1.4 var(--font); color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--night-line); padding: 8px 14px; border-radius: 10px; margin-bottom: 22px; }
.claims { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 30px 0 30px; max-width: 560px; }
.claim { border-left: 2px solid var(--accent); padding-left: 12px; }
.claim strong { display: block; font: 800 clamp(1.05rem, 4.6vw, 1.8rem)/1.05 var(--display); color: #fff; letter-spacing: -0.02em; }
@media (min-width: 980px) { .claim strong { font-size: clamp(1.3rem, 2.2vw, 1.8rem); } }
.claim { min-width: 0; }
.claim span { display: block; font-size: .8rem; line-height: 1.35; color: var(--night-muted); margin-top: 4px; }
.claims-note { font-size: .78rem; color: var(--night-muted); margin-top: -18px; margin-bottom: 24px; }
@media (min-width: 980px) { .hero { padding: 80px 0 96px; } .hero-grid { grid-template-columns: 1.05fr 1fr; } }

/* Product preview (real demo UI miniature) */
.preview { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); overflow: hidden; font-size: .8rem; color: var(--night-text); }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--night-line); background: var(--night-3); }
.preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--night-line); display: block; }
.preview-bar span { margin-left: 8px; font-family: var(--mono); font-size: .72rem; color: var(--night-muted); }
.preview-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.preview-side { border-right: 1px solid var(--night-line); padding: 12px 10px; display: grid; gap: 4px; align-content: start; }
.preview-side b { display: block; padding: 6px 8px; border-radius: 6px; font-weight: 500; color: var(--night-muted); }
.preview-side b.on { background: rgba(229,72,42,.14); color: #fff; }
.preview-main { padding: 14px; display: grid; gap: 10px; align-content: start; }
.preview-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.preview-stats div { background: var(--night-3); border: 1px solid var(--night-line); border-radius: 8px; padding: 8px 10px; }
.preview-stats strong { display: block; font: 700 1.05rem/1.2 var(--display); color: #fff; }
.preview-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: var(--night-3); border: 1px solid var(--night-line); border-radius: 8px; padding: 8px; }
.preview-row .thumb { height: 28px; border-radius: 5px; background: linear-gradient(135deg, #3a2e4f, #6b3b3b); }
.preview-row .meta b { display: block; color: #fff; font-weight: 600; }
.preview-row .meta small { color: var(--night-muted); font-size: .7rem; }
.bar { height: 4px; border-radius: 99px; background: var(--night-line); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font: 600 .68rem/1.3 var(--font); white-space: nowrap; }
.pill--ok { background: rgba(13,117,86,.2); color: #6ee0b5; }
.pill--run { background: rgba(48,68,207,.25); color: #a9b4ff; }
.pill--wait { background: rgba(143,91,0,.25); color: #ffd18a; }
.preview-caption { font-size: .8rem; color: var(--night-muted); margin-top: 12px; }
.preview-caption a { color: #fff; }
@media (max-width: 520px) { .preview-body { grid-template-columns: 1fr; } .preview-side { display: none; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card .card-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; }
.card .card-foot a { position: relative; z-index: 2; }
.card-kicker { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.card--flat { box-shadow: none; }
.card--dark { background: var(--night-2); border-color: var(--night-line); color: var(--night-text); }
.card--dark p { color: var(--night-muted); }
.card--dark h3 { color: #fff; }
.icon-box { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.icon-box svg { width: 22px; height: 22px; }

/* Badges — product status (single shared vocabulary) */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 .74rem/1.3 var(--font); white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--released { background: var(--green-soft); color: var(--green); }
.badge--concept-demo { background: var(--cobalt-soft); color: var(--cobalt); }
.badge--custom { background: var(--violet-soft); color: var(--violet); }
.badge--planned { background: var(--amber-soft); color: var(--amber); }
.badge--neutral { background: var(--tint); color: var(--ink-2); }
.badge--neutral::before { display: none; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--tint); color: var(--ink-2); font-size: .78rem; font-weight: 500; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.crosses { list-style: none; padding: 0; }
.crosses li { position: relative; padding-left: 28px; margin-bottom: .6em; color: var(--muted); }
.crosses li::before { content: "×"; position: absolute; left: 3px; top: -.05em; font-size: 1.25rem; color: var(--faint); }
.dots li::marker { color: var(--accent); }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 600 .82rem/40px var(--mono); text-align: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }
.kv { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.kv div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); }
.kv div:first-child { border-top: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .kv div { grid-template-columns: 200px 1fr; gap: 16px; } }

/* Workflow timeline */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.flow li { position: relative; padding: 0 0 22px 44px; margin: 0; }
.flow li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line-2); }
.flow li:last-child::before { display: none; }
.flow li > b { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); font: 600 .75rem/24px var(--mono); text-align: center; color: var(--accent-ink); }
.flow h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.flow p { margin: 0; color: var(--muted); }

/* ---------- Page header ---------- */
.page-head { padding: 40px 0 44px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }
.page-head .lead { max-width: 68ch; }
.page-head--dark { background: var(--night); color: var(--night-text); border-bottom: 0; }
.page-head--dark h1 { color: #fff; }
.page-head--dark .lead { color: var(--night-text); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head--dark .crumbs, .page-head--dark .crumbs a { color: var(--night-muted); }
.head-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }

/* Two-column layout with sticky side nav */
.layout { display: grid; gap: 40px; }
.layout-side { order: -1; }
.toc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 14px 16px; font-size: .9rem; }
.toc strong { display: block; font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: var(--paper); }
.side-cta { margin-top: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--night); color: var(--night-text); font-size: .9rem; }
.side-cta strong { display: block; color: #fff; font-family: var(--display); font-size: 1.05rem; margin-bottom: 6px; }
.side-cta .btn { margin-top: 10px; width: 100%; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
  .layout-side { order: 0; }
  .layout-side > div { position: sticky; top: 92px; }
}
.block { margin-bottom: 52px; }
.block:last-child { margin-bottom: 0; }
.block > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.callout { border-left: 3px solid var(--amber); background: var(--amber-soft); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #4a3500; }
.callout--info { border-color: var(--cobalt); background: var(--cobalt-soft); color: #1b2570; }
.two-col { display: grid; gap: 22px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { font-size: 1.05rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper); font-weight: 600; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
.table-wrap table { min-width: 560px; }

/* ---------- Prose (guides) ---------- */
.prose { font-size: 1.04rem; max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose .lead { font-size: 1.18rem; }
.prose .note { font-size: .88rem; color: var(--muted); }
.prose .checklist { list-style: none; padding: 0; }
.prose .checklist li { position: relative; padding-left: 30px; }
.prose .checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--surface); }

/* ---------- Filters / catalogue ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filters input[type="search"], .filters select { min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--surface); color: var(--ink); }
.filters input[type="search"] { flex: 1 1 220px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: 500 .88rem var(--font); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 32px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.result-count { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
[hidden] { display: none !important; }

/* ---------- Route chooser ---------- */
.routes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.route { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.route:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow); }
.route b { font: 700 1.02rem/1.25 var(--display); display: block; margin-bottom: 2px; }
.route span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
.route .num { font: 600 .8rem/48px var(--mono); text-align: center; height: 48px; border-radius: 12px; background: var(--tint); color: var(--ink); }

/* Delivery comparison */
.compare { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.compare .panel h3 { display: flex; gap: 8px; align-items: center; }
.compare dl { margin: 0; font-size: .92rem; }
.compare dt { font-weight: 600; margin-top: 10px; }
.compare dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--night); color: var(--night-text); border-radius: 22px; padding: 36px 28px; display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -200px; background: radial-gradient(circle, rgba(229,72,42,.35), transparent 65%); }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: 0; color: var(--night-muted); }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; padding: 44px 48px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-card { padding: 34px; } }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--tint); border-radius: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button { flex: 1 1 auto; min-height: 42px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: 600 .9rem var(--font); cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="password"], .field input[type="date"], .field input[type="datetime-local"], .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 14px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent-ink); }
.field-error { color: var(--accent-ink); font-size: .86rem; margin-top: 6px; display: flex; gap: 6px; }
.field-error:empty { display: none; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.radio-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); border: 0; padding: 0; margin: 0; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; font-weight: 500; font-size: .92rem; background: #fff; margin: 0; }
.radio-cards input { margin-top: 3px; accent-color: var(--accent); }
.radio-cards label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-steps { display: flex; gap: 8px; margin-bottom: 22px; list-style: none; padding: 0; counter-reset: fs; }
.form-steps li { flex: 1; margin: 0; counter-increment: fs; font-size: .82rem; color: var(--muted); border-top: 3px solid var(--line); padding-top: 8px; }
.form-steps li::before { content: counter(fs) ". "; font-family: var(--mono); }
.form-steps li[aria-current="step"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.form-steps li.done { border-color: var(--ink); color: var(--ink-2); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; }
.form-alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .93rem; }
.form-alert--error { background: var(--accent-soft); color: #6d1c0b; border: 1px solid #f6c2b3; }
.form-alert--ok { background: var(--green-soft); color: #0a4d39; border: 1px solid #b6e3d1; }
.form-alert--info { background: var(--cobalt-soft); color: #1b2570; }
.context-box { border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; font-size: .9rem; background: var(--paper); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.success-box { text-align: center; padding: 20px 0; }
.success-box .ref { display: inline-block; font: 700 1.6rem/1 var(--mono); background: var(--paper); border: 1px solid var(--line-2); padding: 14px 20px; border-radius: 12px; margin: 10px 0 18px; letter-spacing: .04em; }
.disclaimer { font-size: .84rem; color: var(--muted); }

/* ---------- Finder ---------- */
.finder-q { border: 0; padding: 0; margin: 0 0 22px; }
.finder-q legend { font: 700 1.1rem var(--display); margin-bottom: 10px; }
.finder-result { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: 64px 0 28px; margin-top: 0; font-size: .92rem; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 420px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.site-footer h2 { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--night-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--night-line); margin-top: 44px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .84rem; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-brand { grid-column: auto; } }

/* Consent bar (attribution memory, opt-in) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px; font-size: .88rem; display: grid; gap: 10px; }
.consent p { margin: 0; }
@media (min-width: 640px) { .consent { left: 20px; bottom: 20px; } }

/* Misc */
.stack > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 40px 0; border: 0; }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.diagram svg { width: 100%; height: auto; }
.stat-inline { display: flex; flex-wrap: wrap; gap: 28px; }
.stat-inline div strong { display: block; font: 800 1.9rem/1 var(--display); color: var(--ink); }
.stat-inline div span { color: var(--muted); font-size: .9rem; }
.logo-free { font-size: .85rem; color: var(--muted); }
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .consent, .no-print, .layout-side { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; font-size: 11pt; }
  .page-head { border: 0; padding: 0 0 12pt; }
  .section { padding: 12pt 0; }
  a { color: inherit; text-decoration: none; }
  .table-wrap { border: 0; overflow: visible; }
  .table-wrap table { min-width: 0; }
  .block { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
