/* ==========================================================================
   Sicurs — Design System
   1. Tokens  2. Reset/Base  3. Layout  4. Components  5. Sections
   6. Pages   7. Utilities  8. Motion & a11y
   Single stylesheet on purpose: one request, no @import waterfall.
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* Brand ramp — blue → indigo */
  --blue-50:#eff5ff; --blue-100:#dbe8fe; --blue-200:#bfd6fe; --blue-300:#93bbfd;
  --blue-400:#609afa; --blue-500:#3b82f6; --blue-600:#2563eb; --blue-700:#1d4ed8;
  --indigo-400:#818cf8; --indigo-500:#6366f1; --indigo-600:#4f46e5; --indigo-700:#4338ca;
  --violet-500:#8b5cf6;

  /* Neutral ramp */
  --n-0:#ffffff;  --n-25:#fbfcfe; --n-50:#f6f8fc; --n-100:#eef2f8; --n-200:#e2e8f2;
  --n-300:#cbd5e4; --n-400:#94a3b8; --n-500:#64748b; --n-600:#475569;
  --n-700:#334155; --n-800:#1e293b; --n-900:#0f172a; --n-950:#070b14;

  /* Semantic — light theme is the default */
  --bg:            var(--n-0);
  --bg-sunken:     var(--n-50);
  --surface:       var(--n-0);
  --surface-2:     var(--n-50);
  --surface-inset: var(--n-100);
  --text:          #0b1220;
  --text-soft:     var(--n-600);
  --text-muted:    var(--n-500);
  --border:        var(--n-200);
  --border-strong: var(--n-300);
  --brand:         var(--blue-600);
  --brand-ink:     var(--blue-700);
  --accent:        var(--indigo-600);
  --on-brand:      #ffffff;
  --ring:          color-mix(in oklab, var(--brand) 45%, transparent);

  --grad-brand: linear-gradient(115deg, var(--blue-600) 0%, var(--indigo-600) 55%, var(--violet-500) 100%);
  --grad-text:  linear-gradient(100deg, var(--blue-600), var(--indigo-600) 60%, var(--violet-500));
  --glow: radial-gradient(60% 60% at 50% 0%, color-mix(in oklab, var(--indigo-500) 22%, transparent), transparent 70%);

  --shadow-xs: 0 1px 2px rgb(15 23 42 / .06);
  --shadow-sm: 0 1px 3px rgb(15 23 42 / .07), 0 1px 2px rgb(15 23 42 / .04);
  --shadow-md: 0 8px 24px -6px rgb(15 23 42 / .12), 0 2px 6px -2px rgb(15 23 42 / .06);
  --shadow-lg: 0 24px 60px -18px rgb(30 41 59 / .22), 0 8px 20px -12px rgb(15 23 42 / .12);
  --shadow-brand: 0 12px 32px -10px color-mix(in oklab, var(--indigo-600) 45%, transparent);

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(2.6rem, 1.4rem + 4.6vw, 4.5rem);
  --fs-h1: clamp(2.15rem, 1.4rem + 3vw, 3.35rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .6vw, 1.45rem);
  --fs-lead: clamp(1.02rem, .96rem + .35vw, 1.18rem);
  --fs-base: 1rem;
  --fs-sm: .9rem;
  --fs-xs: .78rem;

  /* Space + shape */
  --sp-1:.25rem; --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem; --sp-5:1.5rem;
  --sp-6:2rem; --sp-7:3rem; --sp-8:4rem; --sp-9:6rem;
  --section-y: clamp(3.5rem, 2rem + 7vw, 7rem);
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.15rem, .6rem + 2.4vw, 2rem);

  --r-sm:8px; --r-md:12px; --r-lg:18px; --r-xl:26px; --r-full:999px;
  --nav-h: 68px;
  --t-fast: 140ms cubic-bezier(.2,.7,.3,1);
  --t-base: 260ms cubic-bezier(.2,.7,.3,1);
}

[data-theme="dark"] {
  --bg:            var(--n-950);
  --bg-sunken:     #05080f;
  --surface:       #0d1424;
  --surface-2:     #111a2c;
  --surface-inset: #162034;
  --text:          #e8eefb;
  --text-soft:     #b3c0d6;
  --text-muted:    #8595ae;
  --border:        rgb(255 255 255 / .09);
  --border-strong: rgb(255 255 255 / .16);
  --brand:         var(--blue-400);
  --brand-ink:     var(--blue-300);
  --accent:        var(--indigo-400);
  --on-brand:      #071022;

  --grad-brand: linear-gradient(115deg, var(--blue-500) 0%, var(--indigo-500) 55%, var(--violet-500) 100%);
  --grad-text:  linear-gradient(100deg, #7fb0ff, #a5b4fc 55%, #c4b5fd);
  --glow: radial-gradient(60% 60% at 50% 0%, color-mix(in oklab, var(--indigo-500) 30%, transparent), transparent 72%);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / .5);
  --shadow-md: 0 10px 28px -10px rgb(0 0 0 / .65);
  --shadow-lg: 0 30px 70px -24px rgb(0 0 0 / .8);
  --shadow-brand: 0 14px 40px -14px color-mix(in oklab, var(--indigo-500) 60%, transparent);
  color-scheme: dark;
}

/* 2. RESET / BASE ------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.15rem; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.022em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.012em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in oklab, var(--indigo-500) 30%, transparent); }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--brand); color: #fff; padding: .6rem 1.1rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 200; transition: transform var(--t-fast);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--sunken { background: var(--bg-sunken); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); }
                             .grid--4 { grid-template-columns: repeat(2, 1fr); }
                             .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.stack { display: grid; gap: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--reverse > :first-child { order: 2; } }

/* 4. COMPONENTS --------------------------------------------------------- */

/* 4.1 Buttons */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.15rem; border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; }
.btn--primary { --btn-bg: var(--grad-brand); --btn-fg: #fff; --btn-bd: transparent; box-shadow: var(--shadow-brand); }
[data-theme="dark"] .btn--primary { --btn-fg: #fff; }
.btn--primary:hover { box-shadow: 0 16px 44px -12px color-mix(in oklab, var(--indigo-600) 60%, transparent); }
.btn--secondary { --btn-bg: var(--surface); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { --btn-bd: var(--brand); color: var(--brand); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn--ghost:hover { background: var(--surface-inset); }
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--sm { padding: .5rem .9rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { transform: none; }

/* 4.2 Badge / eyebrow / pill */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .75rem .3rem .55rem; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-soft);
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-brand); flex: none; }
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  display: block; margin-bottom: var(--sp-3);
}
.pill { font-family: var(--font-mono); font-size: var(--fs-xs); padding: .22rem .6rem; border-radius: var(--r-sm);
  background: var(--surface-inset); color: var(--text-soft); border: 1px solid var(--border); }

/* 4.3 Cards */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
.card--flush { padding: 0; overflow: hidden; }
.card__icon {
  width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center;
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  color: var(--brand); margin-bottom: var(--sp-4);
}
.card__icon .icon { width: 21px; height: 21px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-soft); font-size: var(--fs-sm); }
.card--feature { display: block; }
.card--outline { background: transparent; box-shadow: none; }

/* 4.4 Section header */
.section-head { max-width: 620px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-3); color: var(--text-soft); font-size: var(--fs-lead); }

/* 4.5 Header + nav */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.header.is-stuck { border-bottom-color: var(--border); background: color-mix(in oklab, var(--bg) 90%, transparent); }
.nav { display: flex; align-items: center; gap: var(--sp-4); height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.03em; }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__dot { color: var(--brand); }

.nav__menu { display: none; }
.nav__spacer { flex: 1; }
.nav__link {
  position: relative; color: var(--text-soft); font-size: var(--fs-sm); font-weight: 500;
  padding: .45rem .1rem;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current] { color: var(--text); font-weight: 600; }
.nav__link[aria-current]::after {
  content:""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px; background: var(--grad-brand);
}
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__cta { display: none; }

.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-full); display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn .icon { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.nav__burger .bar { display: block; width: 17px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform var(--t-base), opacity var(--t-fast); }
.nav__burger .bar + .bar { margin-top: 4px; }
.nav__burger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.nav__drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg);
  border-bottom: 1px solid var(--border); padding: var(--sp-5) var(--gutter) var(--sp-6);
  display: grid; gap: .2rem; transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base); z-index: 99; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
}
.nav__drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
.nav__drawer a[aria-current] { color: var(--brand); }
.nav__drawer a:not(.btn) {
  color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: 1.12rem;
  padding: .7rem 0; border-bottom: 1px solid var(--border);
}
.nav__drawer .btn { margin-top: var(--sp-4); }

@media (min-width: 940px) {
  .nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); margin-left: var(--sp-6); }
  .nav__burger { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__drawer { display: none; }
}

/* 4.6 Footer */
.footer { background: var(--bg-sunken); border-top: 1px solid var(--border); padding-block: var(--sp-7) var(--sp-5); margin-top: auto; }
.footer__top { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-6); }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.15fr 2fr; gap: var(--sp-8); } }
.footer__about p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-3); max-width: 34ch; }
.footer h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-3); font-weight: 500; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer li a { color: var(--text-soft); font-size: var(--fs-sm); }
.footer li a:hover { color: var(--brand); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--text-muted);
}
.footer__social { display: flex; gap: .4rem; }
.footer__social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-full); border: 1px solid var(--border); color: var(--text-muted); }
.footer__social a:hover { color: var(--brand); border-color: var(--brand); }
.footer__social .icon { width: 16px; height: 16px; }

/* 4.7 Forms */
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }
.input, .textarea, .select {
  width: 100%; padding: .78rem .95rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-size: var(--fs-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.textarea { min-height: 148px; resize: vertical; }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: var(--bad); }
.error { color: var(--bad); font-size: var(--fs-xs); min-height: 1em; }
.form-note { font-size: var(--fs-xs); color: var(--text-muted); }
.form-status { font-size: var(--fs-sm); font-weight: 500; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--bad); }

/* 4.8 Accordion */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 1.15rem 0; text-align: left; font-family: var(--font-display);
  font-size: 1.03rem; font-weight: 500; color: var(--text);
}
.accordion__btn:hover { color: var(--brand); }
.accordion__btn .icon { width: 18px; height: 18px; flex: none; color: var(--text-muted); transition: transform var(--t-base), color var(--t-fast); }
.accordion__btn[aria-expanded="true"] .icon { transform: rotate(45deg); color: var(--brand); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-base); }
.accordion__panel > div { overflow: hidden; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel p { color: var(--text-soft); font-size: var(--fs-sm); padding-bottom: 1.15rem; max-width: 68ch; }

/* 4.9 Prose (legal + article) */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); margin-top: 2.6rem; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { margin-top: 1.9rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul, .prose ol { display: grid; gap: .5rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.2rem; }

/* 4.10 Table of contents (legal pages) */
.legal { display: grid; gap: var(--sp-6); }
@media (min-width: 1000px) { .legal { grid-template-columns: 230px 1fr; gap: var(--sp-8); align-items: start; } .toc { position: sticky; top: calc(var(--nav-h) + 24px); } }
.toc ul { list-style: none; padding: 0; display: grid; gap: .35rem; border-left: 1px solid var(--border); }
.toc a { display: block; font-size: var(--fs-sm); color: var(--text-muted); padding: .2rem 0 .2rem .9rem; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.is-active { color: var(--brand); border-left-color: var(--brand); }

/* 5. SECTIONS ----------------------------------------------------------- */

/* 5.1 Hero */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 6vw, 6rem) clamp(3rem, 2rem + 5vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: var(--glow); pointer-events: none; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 55% at 50% 15%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 55% at 50% 15%, #000 20%, transparent 78%);
  opacity: .6;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 780px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: var(--fs-display); font-weight: 700; letter-spacing: -.035em; }
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: var(--sp-4); font-size: var(--fs-lead); color: var(--text-soft); max-width: 56ch; margin-inline: auto; }
.hero__actions { margin-top: var(--sp-5); justify-content: center; }
.hero__meta { margin-top: var(--sp-4); justify-content: center; font-size: var(--fs-xs); color: var(--text-muted); gap: var(--sp-4); }
.hero__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.hero__meta .icon { width: 14px; height: 14px; color: var(--brand); }

/* 5.2 Signature element — the console */
.console {
  margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--r-xl);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.console::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--indigo-500) 55%, transparent), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.console__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.console__dots { display: flex; gap: .35rem; }
.console__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.console__path { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); margin-inline: auto; }
.console__body { display: grid; gap: 0; }
@media (min-width: 820px) { .console__body { grid-template-columns: 220px 1fr; } }
.console__side { display: none; border-right: 1px solid var(--border); padding: var(--sp-4); background: var(--surface-2); }
@media (min-width: 820px) { .console__side { display: block; } }
.console__side h5 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: .7rem; }
.console__side ul { list-style: none; padding: 0; display: grid; gap: .15rem; }
.console__side li { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); color: var(--text-soft); padding: .42rem .55rem; border-radius: var(--r-sm); }
.console__side li .icon { width: 15px; height: 15px; color: var(--text-muted); }
.console__side li.is-active { background: var(--surface-inset); color: var(--text); font-weight: 500; }
.console__side li.is-active .icon { color: var(--brand); }
.console__main { padding: clamp(1.1rem, 3vw, 1.9rem); text-align: left; }
.console__prompt {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: var(--r-md);
  background: var(--surface-inset); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text);
}
.console__prompt .icon { width: 16px; height: 16px; color: var(--brand); flex: none; }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--brand); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console__out { display: grid; gap: .6rem; margin-top: var(--sp-4); }
.console__row {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  opacity: 0; transform: translateY(6px); animation: rowIn .5s var(--t-base) forwards;
}
.console__row:nth-child(1) { animation-delay: .15s; }
.console__row:nth-child(2) { animation-delay: .35s; }
.console__row:nth-child(3) { animation-delay: .55s; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.console__row .icon { width: 17px; height: 17px; color: var(--brand); flex: none; }
.console__row b { font-weight: 600; font-size: var(--fs-sm); }
.console__row span { font-size: var(--fs-xs); color: var(--text-muted); }
.console__row .pill { margin-left: auto; }
.console__foot { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-mono); }

/* 5.3 Logo strip */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.5rem, 5vw, 3.5rem); opacity: .72; }
.logos span { font-family: var(--font-display); font-weight: 600; font-size: clamp(.95rem, 2.4vw, 1.15rem); letter-spacing: -.02em; color: var(--text-muted); }
.logos-label { text-align: center; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-5); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* 5.4 Steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: var(--sp-5); border-top: 2px solid var(--border); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand);
  position: absolute; top: -.85rem; background: var(--bg); padding-right: .6rem; letter-spacing: .1em;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--text-soft); font-size: var(--fs-sm); }

/* 5.5 Stats */
.stats { display: grid; gap: var(--sp-5); text-align: center; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); font-weight: 700; letter-spacing: -.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: var(--fs-sm); color: var(--text-muted); }

/* 5.6 Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card--featured { border-color: color-mix(in oklab, var(--brand) 55%, var(--border)); box-shadow: var(--shadow-md); }
.price-card__tag { position: absolute; top: -11px; left: var(--sp-5); font-size: var(--fs-xs); font-weight: 600;
  background: var(--grad-brand); color: #fff; padding: .18rem .65rem; border-radius: var(--r-full); }
.price { display: flex; align-items: baseline; gap: .3rem; margin: var(--sp-4) 0 var(--sp-2); }
.price b { font-family: var(--font-display); font-size: 2.35rem; font-weight: 700; letter-spacing: -.035em; }
.price span { color: var(--text-muted); font-size: var(--fs-sm); }
.price-card ul { list-style: none; padding: 0; display: grid; gap: .6rem; margin: var(--sp-5) 0; font-size: var(--fs-sm); color: var(--text-soft); }
.price-card li { display: flex; gap: .55rem; align-items: flex-start; }
.price-card li .icon { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: .28rem; }
.price-card .btn { margin-top: auto; }

/* 5.7 Testimonials */
.quote blockquote { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; letter-spacing: -.012em; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: .7rem; margin-top: var(--sp-4); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad-brand); color: #fff; font-weight: 600; font-size: var(--fs-sm); font-family: var(--font-display); }
.quote cite { font-style: normal; font-size: var(--fs-sm); font-weight: 600; display: block; }
.quote figcaption span { font-size: var(--fs-xs); color: var(--text-muted); }

/* 5.8 CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 4rem);
  background: var(--grad-brand); color: #fff; text-align: center; box-shadow: var(--shadow-brand);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .1) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .1) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .85); margin: var(--sp-3) auto 0; max-width: 48ch; }
.cta-band .cluster { justify-content: center; margin-top: var(--sp-5); }
.cta-band .btn--primary { background: #fff; color: var(--indigo-700); box-shadow: none; }
.cta-band .btn--secondary { background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .35); }
.cta-band .btn--secondary:hover { background: rgb(255 255 255 / .18); color: #fff; border-color: #fff; }

/* 5.9 Page header (inner pages) */
.page-head { padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -60% -20% auto -20%; height: 420px; background: var(--glow); opacity: .7; pointer-events: none; }
.page-head .container { position: relative; }
.page-head p { margin-top: var(--sp-3); color: var(--text-soft); font-size: var(--fs-lead); max-width: 60ch; }
.breadcrumb { display: flex; gap: .45rem; align-items: center; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }

/* 5.10 Blog */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__thumb { aspect-ratio: 16/9; background: var(--grad-brand); position: relative; display: grid; place-items: center; }
.post-card__thumb span { font-family: var(--font-mono); font-size: var(--fs-xs); color: rgb(255 255 255 / .9); letter-spacing: .12em; text-transform: uppercase; }
.post-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--text-soft); font-size: var(--fs-sm); }
.post-meta { display: flex; gap: .6rem; align-items: center; font-size: var(--fs-xs); color: var(--text-muted); margin-top: auto; padding-top: var(--sp-3); }
.post-featured { display: grid; gap: 0; overflow: hidden; }
@media (min-width: 860px) { .post-featured { grid-template-columns: 1.05fr 1fr; } .post-featured .post-card__thumb { aspect-ratio: auto; height: 100%; min-height: 300px; } }
.post-featured .post-card__body { padding: clamp(1.5rem, 4vw, 2.6rem); justify-content: center; }
.post-featured h2 a { color: var(--text); }
.post-featured h2 a:hover { color: var(--brand); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--sp-6); }
.filter { padding: .42rem .9rem; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface);
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-soft); transition: all var(--t-fast); }
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.newsletter { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: var(--sp-5); }
.newsletter .input { flex: 1 1 220px; }

/* 5.11 404 */
.error-page { min-height: calc(100dvh - var(--nav-h) - 120px); display: grid; place-items: center; text-align: center; padding-block: var(--sp-8); position: relative; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 3rem + 16vw, 11rem); line-height: 1; letter-spacing: -.06em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 5.12 Contact */
.contact-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 380px; gap: var(--sp-8); align-items: start; } }
.info-card { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-card .card__icon { margin-bottom: 0; }
.info-card h3 { font-size: 1rem; }
.info-card p, .info-card a { font-size: var(--fs-sm); color: var(--text-soft); }

/* 6. UTILITIES ---------------------------------------------------------- */
[hidden] { display: none !important; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.mt-0{margin-top:0}.mt-3{margin-top:var(--sp-3)}.mt-4{margin-top:var(--sp-4)}.mt-5{margin-top:var(--sp-5)}.mt-6{margin-top:var(--sp-6)}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page { display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1; }

/* 7. MOTION + A11Y ------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--t-base), transform .6s var(--t-base); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .console__row { opacity: 1; transform: none; }
}

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

/* ==========================================================================
   8. HOMEPAGE MODULES
   Search, categories, tool + template cards, marquee, counters, testimonials,
   newsletter. All built from the section-4 primitives; nothing here redefines
   a colour outside the token set.
   ========================================================================== */

/* 8.1 Hero search ------------------------------------------------------- */
.searchbox { position: relative; max-width: 620px; margin: var(--sp-5) auto 0; text-align: left; z-index: 5; }
.searchbox__field {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .5rem .5rem 1.05rem;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-full);
  box-shadow: var(--shadow-md); transition: border-color var(--t-fast), box-shadow var(--t-base);
}
.searchbox__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring), var(--shadow-md); }
.searchbox__field > .icon { width: 19px; height: 19px; color: var(--text-muted); flex: none; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; background: none; padding: .6rem 0;
  font-size: var(--fs-sm); color: var(--text);
}
.searchbox input:focus { outline: none; }
.searchbox input::placeholder { color: var(--text-muted); }
.searchbox .btn { flex: none; }
.searchbox__hint { display: none; font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: .1rem .35rem; }
@media (min-width: 560px) { .searchbox__hint { display: inline-block; } }

.searchbox__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + .55rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: .45rem; max-height: 340px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.searchbox__panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.searchbox__group { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); padding: .55rem .75rem .3rem; }
.searchbox__item {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .55rem .75rem; border-radius: var(--r-md); color: var(--text); font-size: var(--fs-sm);
}
.searchbox__item:hover, .searchbox__item.is-active { background: var(--surface-inset); }
.searchbox__item .icon { width: 17px; height: 17px; color: var(--brand); flex: none; }
.searchbox__item small { margin-left: auto; color: var(--text-muted); font-size: var(--fs-xs); }
.searchbox__empty { padding: 1rem .85rem; font-size: var(--fs-sm); color: var(--text-muted); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: var(--sp-4); }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  font-size: var(--fs-xs); font-weight: 500; transition: all var(--t-fast);
}
.chip:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.chip .icon { width: 14px; height: 14px; }

/* 8.2 Marquee ----------------------------------------------------------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(1.8rem, 5vw, 3.5rem); animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-weight: 600; font-size: clamp(.95rem, 2.2vw, 1.12rem);
  letter-spacing: -.02em; color: var(--text-muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* 8.3 Category cards ---------------------------------------------------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (min-width: 720px)  { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
  display: flex; flex-direction: column; gap: .55rem; padding: var(--sp-5) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--text); box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.cat-card::after {
  content: ""; position: absolute; inset: auto -30% -60% -30%; height: 120px; background: var(--glow);
  opacity: 0; transition: opacity var(--t-base); pointer-events: none;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); color: var(--text); }
.cat-card:hover::after { opacity: 1; }
.cat-card__icon { width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center;
  background: color-mix(in oklab, var(--brand) 12%, transparent); color: var(--brand); }
.cat-card__icon .icon { width: 19px; height: 19px; }
.cat-card b { font-family: var(--font-display); font-size: .98rem; font-weight: 600; letter-spacing: -.015em; }
.cat-card span { font-size: var(--fs-xs); color: var(--text-muted); }

/* 8.4 Tool cards -------------------------------------------------------- */
.tool-card { display: flex; flex-direction: column; gap: .55rem; }
.tool-card__top { display: flex; align-items: center; gap: .7rem; }
.tool-card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.tool-card__icon .icon { width: 18px; height: 18px; }
.tool-card h3 { font-size: 1rem; }
.tool-card p { font-size: var(--fs-sm); color: var(--text-soft); flex: 1; }
.tool-card__foot { display: flex; align-items: center; gap: .5rem; margin-top: var(--sp-3);
  padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.tool-card__foot .pill { margin-left: auto; }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); color: var(--text-muted); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.status--soon i { background: var(--indigo-400); }
.tools-empty { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--text-muted); font-size: var(--fs-sm); }

/* 8.5 Template cards ---------------------------------------------------- */
.tpl-card { display: flex; flex-direction: column; height: 100%; }
.tpl-card__preview {
  aspect-ratio: 4/3; background: var(--surface-2); border-bottom: 1px solid var(--border);
  padding: var(--sp-4); display: flex; flex-direction: column; gap: .45rem; justify-content: flex-start;
  position: relative; overflow: hidden;
}
.tpl-card__preview::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--surface-2));
}
.tpl-line { height: 7px; border-radius: 3px; background: var(--border-strong); opacity: .75; }
.tpl-line--title { height: 11px; width: 62%; background: var(--grad-brand); opacity: 1; margin-bottom: .3rem; }
.tpl-line--w80 { width: 80%; } .tpl-line--w65 { width: 65%; } .tpl-line--w90 { width: 90%; } .tpl-line--w45 { width: 45%; }
.tpl-card:hover .tpl-line--title { width: 76%; transition: width var(--t-base); }
.tpl-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tpl-card__body p { font-size: var(--fs-sm); color: var(--text-soft); flex: 1; }
.tpl-card__formats { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: var(--sp-3); }

/* 8.6 Counters ---------------------------------------------------------- */
.counter { font-variant-numeric: tabular-nums; }

/* 8.7 Testimonial rail -------------------------------------------------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: var(--sp-5);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-4); scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding-bottom: 0; } }
.rating { display: flex; gap: .15rem; color: var(--brand); margin-bottom: var(--sp-3); }
.rating svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* 8.8 Newsletter panel --------------------------------------------------- */
.news-panel {
  position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--border);
  background: var(--surface); padding: clamp(1.8rem, 4vw, 3.2rem); box-shadow: var(--shadow-md);
}
.news-panel::before { content: ""; position: absolute; inset: -70% -10% auto -10%; height: 340px; background: var(--glow); pointer-events: none; }
.news-panel > * { position: relative; }
.news-panel .newsletter { max-width: 480px; }

/* 8.9 Premium footer additions ------------------------------------------- */
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--sp-4); }
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: .9rem; }
.footer__bottom-links a { color: var(--text-muted); font-size: var(--fs-xs); }
.footer__bottom-links a:hover { color: var(--brand); }

/* 8.10 Motion --------------------------------------------------------- */
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ==========================================================================
   9. TOOL PAGES (Career suite)
   A shared workbench layout: inputs on the left, a sticky live preview on the
   right. Every career tool reuses these classes, so a new tool is markup only.
   ========================================================================== */

:root {
  --ok:#059669; --warn:#b45309; --bad:#dc2626;
  --ok-bg: color-mix(in oklab, #059669 12%, transparent);
  --warn-bg: color-mix(in oklab, #b45309 14%, transparent);
  --bad-bg: color-mix(in oklab, #dc2626 12%, transparent);
}
[data-theme="dark"] { --ok:#34d399; --warn:#fbbf24; --bad:#f87171; }

/* 9.1 Tool hero ---------------------------------------------------------- */
.tool-hero { padding-block: clamp(2rem, 1.5rem + 3vw, 3.4rem) clamp(1.2rem, 2vw, 1.8rem); position: relative; overflow: hidden; }
.tool-hero::before { content:""; position:absolute; inset:-70% -20% auto -20%; height:420px; background:var(--glow); opacity:.7; pointer-events:none; }
.tool-hero .container { position: relative; }
.tool-hero h1 { font-size: var(--fs-h1); max-width: 20ch; }
.tool-hero p { margin-top: var(--sp-3); color: var(--text-soft); font-size: var(--fs-lead); max-width: 62ch; }
.tool-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: var(--sp-4); }

/* 9.2 Workbench ---------------------------------------------------------- */
.workbench { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 1000px) {
  .workbench { grid-template-columns: minmax(0,1fr) minmax(360px, 440px); gap: var(--sp-6); }
  .workbench__out { position: sticky; top: calc(var(--nav-h) + 20px); }
  .workbench--wide { grid-template-columns: minmax(0,1fr) minmax(400px, 520px); }
}
.workbench__form { display: grid; gap: var(--sp-4); min-width: 0; }
.workbench__out { display: grid; gap: var(--sp-4); min-width: 0; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel__head {
  display: flex; align-items: center; gap: .65rem; padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.panel__head h2, .panel__head h3 { font-size: .95rem; letter-spacing: -.01em; }
.panel__head .icon { width: 17px; height: 17px; color: var(--brand); flex: none; }
.panel__head .pill, .panel__head .btn { margin-left: auto; }
.panel__body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.panel__foot { padding: .85rem 1.1rem; border-top: 1px solid var(--border); background: var(--surface-2);
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.panel__foot .muted { font-size: var(--fs-xs); }

.form-row { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: repeat(3,1fr); } }

/* 9.3 Notice ------------------------------------------------------------- */
.notice {
  display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem;
  border-radius: var(--r-md); border: 1px dashed var(--border-strong);
  background: var(--surface-inset); font-size: var(--fs-sm); color: var(--text-soft);
}
.notice .icon { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: .18rem; }
.notice strong { color: var(--text); }

/* 9.4 Tabs / step strip -------------------------------------------------- */
.tabs { display: flex; gap: .3rem; overflow-x: auto; padding: .35rem; background: var(--surface-inset);
  border-radius: var(--r-full); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem;
  border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted);
  white-space: nowrap; transition: all var(--t-fast);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.tab i { font-family: var(--font-mono); font-style: normal; font-size: .68rem; color: var(--brand); }
[data-tab-panel][hidden] { display: none !important; }

/* 9.5 The paper (resume / letter preview) -------------------------------- */
.paper {
  background: #fff; color: #14181f; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: var(--shadow-md);
  font-size: .78rem; line-height: 1.55; max-height: 620px; overflow-y: auto;
}
.paper h4, .paper h5 { color: #0b1220; font-family: var(--font-display); }
.paper__name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.paper__role { font-size: .84rem; color: #3f4a5c; font-weight: 500; margin-top: .15rem; }
.paper__contact { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .5rem; font-size: .7rem; color: #5b6678; }
.paper__rule { border: 0; border-top: 1px solid #dfe4ec; margin: .9rem 0; }
.paper__label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: #2563eb; font-weight: 500; margin-bottom: .35rem; }
.paper__item { margin-bottom: .8rem; }
.paper__item b { font-size: .82rem; }
.paper__item span { display: block; font-size: .68rem; color: #5b6678; }
.paper ul { padding-left: 1rem; margin-top: .3rem; }
.paper li { margin-bottom: .18rem; }
.paper__tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.paper__tags span { border: 1px solid #dfe4ec; border-radius: 999px; padding: .1rem .5rem; font-size: .66rem; color: #3f4a5c; }
.paper p + p { margin-top: .6rem; }
.paper--letter { line-height: 1.7; }
.paper--letter p { font-size: .76rem; }

/* Accent variants used by the template picker */
.paper[data-style="classic"] .paper__label { color: #14181f; }
.paper[data-style="classic"] .paper__name { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.paper[data-style="bold"] .paper__name { color: #2563eb; }
.paper[data-style="bold"] .paper__rule { border-top: 2px solid #2563eb; }
.paper[data-style="minimal"] .paper__label { color: #5b6678; letter-spacing: .2em; }
.paper[data-style="minimal"] .paper__rule { border-top-color: #eef2f8; }

/* 9.6 Score gauge -------------------------------------------------------- */
.score { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.score__ring {
  --value: 0; width: 116px; height: 116px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--value) * 1%), var(--surface-inset) 0);
  position: relative; transition: background 1s var(--t-base);
}
.score__ring::before { content:""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.score__num { position: relative; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.score__num small { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.score__meta { min-width: 180px; flex: 1; }
.score__meta h3 { font-size: 1.05rem; }
.score__meta p { font-size: var(--fs-sm); color: var(--text-soft); margin-top: .3rem; }

.checks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-soft); }
.checks .icon { width: 16px; height: 16px; flex: none; margin-top: .22rem; }
.checks b { color: var(--text); font-weight: 600; display: block; font-size: var(--fs-sm); }
.checks .is-ok .icon { color: var(--ok); }
.checks .is-warn .icon { color: var(--warn); }
.checks .is-bad .icon { color: var(--bad); }

.meter { height: 7px; border-radius: 99px; background: var(--surface-inset); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width 1s var(--t-base); }
.meter-row { display: grid; gap: .35rem; }
.meter-row .cluster { justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); }

/* 9.7 Output variants + copy -------------------------------------------- */
.variant { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); background: var(--surface);
  display: grid; gap: .6rem; transition: border-color var(--t-fast), box-shadow var(--t-base); }
.variant:hover { border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); box-shadow: var(--shadow-sm); }
.variant__top { display: flex; align-items: center; gap: .5rem; }
.variant__top .pill { margin-right: auto; }
.variant p { font-size: var(--fs-sm); color: var(--text); }
.variant--muted p { color: var(--text-muted); font-style: italic; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-muted); padding: .3rem .55rem; border-radius: var(--r-sm); border: 1px solid var(--border); }
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn.is-done { color: var(--ok); border-color: var(--ok); }
.copy-btn .icon { width: 14px; height: 14px; }

/* 9.8 Character counter --------------------------------------------------- */
.chars { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); color: var(--text-muted); }
.chars .meter { flex: 1; }
.chars b { font-variant-numeric: tabular-nums; color: var(--text-soft); }
.chars.is-over b { color: var(--bad); }
.chars.is-over .meter i { background: var(--bad); }

/* 9.9 Range slider -------------------------------------------------------- */
.range { width: 100%; accent-color: var(--brand); }
.range-scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-mono); }
.figure-out { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 700;
  letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; }

/* 9.10 Dropzone ----------------------------------------------------------- */
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-4);
  text-align: center; background: var(--surface-2); transition: border-color var(--t-fast), background var(--t-fast);
  cursor: pointer; display: grid; gap: .4rem; justify-items: center;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--brand); background: var(--surface-inset); }
.dropzone .icon { width: 26px; height: 26px; color: var(--brand); }
.dropzone b { font-size: var(--fs-sm); }
.dropzone span { font-size: var(--fs-xs); color: var(--text-muted); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* 9.11 Template picker ---------------------------------------------------- */
.picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 560px) { .picker { grid-template-columns: repeat(4, 1fr); } }
.picker button {
  border: 1px solid var(--border); border-radius: var(--r-md); padding: .55rem; background: var(--surface);
  display: grid; gap: .35rem; transition: all var(--t-fast);
}
.picker button:hover { border-color: var(--brand); }
.picker button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.picker__thumb { aspect-ratio: 3/4; border-radius: 5px; background: #fff; padding: .4rem; display: grid; gap: .18rem; align-content: start; }
.picker__thumb i { display: block; height: 2.5px; border-radius: 2px; background: #cbd5e4; }
.picker__thumb i:first-child { height: 5px; width: 62%; background: #2563eb; margin-bottom: .18rem; }
.picker span { font-size: .66rem; color: var(--text-muted); text-align: center; }

/* 9.12 Resume template gallery -------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gal-card { display: flex; flex-direction: column; }
.gal-card__sheet {
  aspect-ratio: 3/4; background: #fff; border-bottom: 1px solid var(--border); padding: .9rem;
  display: grid; gap: .28rem; align-content: start; position: relative; overflow: hidden;
}
.gal-card__sheet i { display: block; height: 3px; border-radius: 2px; background: #d7dee9; }
.gal-card__sheet .h { height: 7px; width: 58%; background: #14181f; margin-bottom: .3rem; }
.gal-card__sheet .a { background: #2563eb; width: 34%; height: 4px; margin-top: .35rem; }
.gal-card__sheet .w80 { width: 80%; } .gal-card__sheet .w60 { width: 60%; } .gal-card__sheet .w92 { width: 92%; }
.gal-card__sheet--two { grid-template-columns: 34% 1fr; gap: .28rem .6rem; }
.gal-card__sheet--two .h, .gal-card__sheet--two .full { grid-column: 1 / -1; }
.gal-card__sheet--center { justify-items: center; }
.gal-card__sheet--center i { width: 70%; }
.gal-card__sheet--center .h { width: 45%; }
.gal-card__body { padding: var(--sp-4); display: grid; gap: .35rem; flex: 1; }
.gal-card__body b { font-family: var(--font-display); font-size: .92rem; letter-spacing: -.015em; }
.gal-card__body .cluster { gap: .3rem; margin-top: .2rem; }

/* 9.13 Related tools ------------------------------------------------------ */
.related { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; gap: .7rem; align-items: center; padding: var(--sp-4); border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--surface); color: var(--text); transition: all var(--t-fast); }
.related a:hover { border-color: var(--brand); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related .icon { width: 18px; height: 18px; color: var(--brand); flex: none; }
.related b { font-size: var(--fs-sm); font-weight: 600; display: block; }
.related span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ==========================================================================
   10. BUSINESS HUB MODULES
   Loading skeletons, empty states, document tables and line-item editors.
   Additive only — everything here composes with the section 9 workbench.
   ========================================================================== */

/* 10.1 Loading skeletons -------------------------------------------------- */
.sk {
  display: block; border-radius: 6px; height: 10px;
  background: linear-gradient(90deg, var(--surface-inset) 25%, var(--surface-2) 37%, var(--surface-inset) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
.sk + .sk { margin-top: .5rem; }
.sk--title { height: 17px; width: 52%; margin-bottom: .8rem; }
.sk--w90 { width: 90%; } .sk--w75 { width: 75%; } .sk--w60 { width: 60%; } .sk--w40 { width: 40%; }
.sk--block { height: 132px; border-radius: var(--r-md); }
.sk--pill { height: 22px; width: 84px; border-radius: 99px; }
.sk--sheet { height: 230px; border-radius: var(--r-md); }
.sk-group { display: grid; gap: .5rem; padding: var(--sp-2) 0; }
.sk-row { display: flex; gap: .6rem; align-items: center; }
.sk-row .sk { margin-top: 0; }
.sk-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* 10.2 Empty states -------------------------------------------------------- */
.empty { display: grid; gap: .45rem; justify-items: center; text-align: center; padding: var(--sp-7) var(--sp-4); }
.empty__icon {
  width: 54px; height: 54px; border-radius: var(--r-lg); display: grid; place-items: center;
  background: var(--surface-inset); color: var(--text-muted); margin-bottom: var(--sp-2);
}
.empty__icon .icon { width: 24px; height: 24px; }
.empty h3 { font-size: 1rem; }
.empty p { font-size: var(--fs-sm); color: var(--text-muted); max-width: 36ch; }
.empty .btn { margin-top: var(--sp-3); }
.empty--sm { padding: var(--sp-6) var(--sp-4); }

/* 10.3 Document tables (invoice, quote, minutes) ---------------------------- */
.doc-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.doc-table th {
  text-align: left; font-family: var(--font-mono); font-size: .57rem; letter-spacing: .12em;
  text-transform: uppercase; color: #5b6678; border-bottom: 1px solid #dfe4ec; padding: .4rem 0; font-weight: 500;
}
.doc-table td { padding: .45rem 0; border-bottom: 1px solid #eef2f8; vertical-align: top; }
.doc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-table th.num { text-align: right; }
.doc-totals { margin-top: .7rem; display: grid; gap: .25rem; justify-items: end; }
.doc-total { display: flex; gap: 1.6rem; justify-content: flex-end; font-size: .73rem; color: #3f4a5c; min-width: 190px; }
.doc-total b { font-variant-numeric: tabular-nums; color: #14181f; margin-left: auto; }
.doc-total--grand { font-size: .92rem; font-weight: 700; color: #14181f; border-top: 2px solid #14181f; margin-top: .35rem; padding-top: .45rem; }
.doc-total--grand b { font-weight: 700; }

/* 10.4 Line-item editor ------------------------------------------------------ */
.lineitems { display: grid; gap: .7rem; }
.lineitem { display: grid; gap: .5rem; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 620px) { .lineitem { grid-template-columns: 1fr 78px 108px 38px; } }
.lineitem .field { gap: .25rem; }
.lineitem label { font-size: var(--fs-xs); }
.lineitem .input { padding: .55rem .7rem; }
.li-remove {
  width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--border);
  color: var(--text-muted); display: grid; place-items: center; justify-self: start;
}
.li-remove:hover { color: var(--bad); border-color: var(--bad); }
.li-remove .icon { width: 16px; height: 16px; }
.lineitem:only-child .li-remove { opacity: .4; pointer-events: none; }

/* 10.5 Inline search bar (galleries) ----------------------------------------- */
.searchline {
  display: flex; align-items: center; gap: .55rem; padding: .4rem .5rem .4rem .95rem;
  border: 1px solid var(--border-strong); border-radius: var(--r-full); background: var(--surface);
  max-width: 420px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.searchline:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.searchline input { flex: 1; min-width: 0; border: 0; background: none; padding: .45rem 0; font-size: var(--fs-sm); }
.searchline input:focus { outline: none; }
.searchline > .icon { width: 17px; height: 17px; color: var(--text-muted); flex: none; }
.searchline .pill { flex: none; }
.filterbar { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }

/* 10.6 Name generator results ------------------------------------------------ */
.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: .65rem; }
.name-card {
  border: 1px solid var(--border); border-radius: var(--r-md); padding: .8rem .9rem;
  background: var(--surface); display: grid; gap: .35rem; transition: all var(--t-fast);
}
.name-card:hover { border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); transform: translateY(-2px); }
.name-card b { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.022em; }
.name-card .cluster { gap: .35rem; font-size: var(--fs-xs); color: var(--text-muted); }
.name-card .status { font-size: .68rem; }
.status--free i { background: var(--ok); }
.status--taken i { background: var(--bad); }

/* 10.7 Completeness meter ---------------------------------------------------- */
.progress-list { display: grid; gap: .7rem; }
.progress-list .cluster { justify-content: space-between; font-size: var(--fs-sm); }
.progress-list .cluster span:last-child { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   11. LEGAL HUB MODULES
   Clause builder, jurisdiction bar and review callouts. Additive only —
   these compose with the section 9 workbench and section 10 empty states.
   ========================================================================== */

/* 11.1 Nav breathing room — the menu now carries three hub links */
@media (min-width: 940px) and (max-width: 1039px) { .nav__menu { gap: .95rem; font-size: .93em; } }

/* 11.2 Review callout — heavier than .notice, used where stakes are real */
.review-note {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem;
  border-radius: var(--r-md); border: 1px solid color-mix(in oklab, var(--warn) 40%, var(--border));
  background: var(--warn-bg); font-size: var(--fs-sm); color: var(--text-soft);
}
.review-note .icon { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: .15rem; }
.review-note strong { color: var(--text); }
.review-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* 11.3 Jurisdiction bar */
.jurisdiction {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-end;
  padding: var(--sp-4); border-radius: var(--r-md);
  background: var(--surface-inset); border: 1px solid var(--border);
}
.jurisdiction .field { flex: 1 1 190px; gap: .3rem; }
.jurisdiction label { font-size: var(--fs-xs); font-weight: 600; }

/* 11.4 Clause toggles */
.toggle-row {
  display: flex; gap: .8rem; align-items: flex-start; padding: .75rem .2rem;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-row input[type="checkbox"] {
  width: 18px; height: 18px; flex: none; margin-top: .15rem; accent-color: var(--brand); cursor: pointer;
}
.toggle-row label { font-size: var(--fs-sm); font-weight: 600; cursor: pointer; display: block; }
.toggle-row p { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .15rem; max-width: 56ch; }
.toggle-row .pill { margin-left: auto; flex: none; align-self: center; }
.toggle-group { display: grid; }

/* 11.5 Clause list inside the paper preview */
.clause-list { counter-reset: clause; display: grid; gap: .75rem; }
.doc-clause { counter-increment: clause; display: grid; gap: .18rem; }
.doc-clause__head { display: flex; gap: .5rem; align-items: baseline; }
.doc-clause__head::before {
  content: counter(clause) "."; font-family: var(--font-mono); font-size: .62rem;
  color: #2563eb; flex: none; min-width: 16px;
}
.doc-clause__head b { font-size: .76rem; font-weight: 700; color: #14181f; }
.doc-clause p { font-size: .7rem; color: #3f4a5c; padding-left: 1.35rem; }
.doc-clause__fill { color: #14181f; font-weight: 600; }
.doc-sign { display: flex; gap: 1.5rem; margin-top: .7rem; font-size: .66rem; color: #5b6678; }
.doc-sign > div { flex: 1; }
.doc-sign .line { border-bottom: 1px solid #14181f; height: 26px; }

/* 11.6 Clause counter chip */
.clause-count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.clause-count b { color: var(--brand); }


/* ==========================================================================
   11. LEGAL HUB MODULES
   A stronger notice treatment, clause toggles and risk flags. Legal documents
   carry consequences the other hubs don't, so the interface says so plainly.
   ========================================================================== */

/* 11.1 Prominent legal banner ------------------------------------------- */
.legal-banner {
  display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.15rem;
  border: 1px solid color-mix(in oklab, var(--warn) 35%, var(--border));
  border-left-width: 3px; border-left-color: var(--warn);
  border-radius: var(--r-md); background: var(--warn-bg);
}
.legal-banner .icon { width: 19px; height: 19px; color: var(--warn); flex: none; margin-top: .12rem; }
.legal-banner p { font-size: var(--fs-sm); color: var(--text-soft); }
.legal-banner strong { color: var(--text); }
.legal-banner p + p { margin-top: .45rem; }

/* 11.2 Clause toggles ---------------------------------------------------- */
.clause {
  display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .95rem;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast);
}
.clause:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
.clause input[type="checkbox"] { width: 16px; height: 16px; flex: none; margin-top: .22rem; accent-color: var(--brand); }
.clause__text { min-width: 0; }
.clause b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.clause span { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: .1rem; }
.clause__flag {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .3rem;
  font-size: var(--fs-xs); font-weight: 600; color: var(--warn); white-space: nowrap;
}
.clause__flag .icon { width: 14px; height: 14px; }
.clause--risk { border-color: color-mix(in oklab, var(--warn) 40%, var(--border)); background: var(--warn-bg); }

/* 11.3 Legal document preview ------------------------------------------- */
.paper__clause { margin-bottom: .75rem; }
.paper__clause > b { display: block; font-size: .74rem; margin-bottom: .18rem; }
.paper__clause p { font-size: .71rem; }
.paper__sign { display: flex; gap: 1.5rem; margin-top: .8rem; font-size: .66rem; color: #5b6678; }
.paper__sign > div { flex: 1; }
.paper__sign .line { border-bottom: 1px solid #14181f; height: 26px; margin-bottom: .25rem; }

/* 11.4 Review call-out ---------------------------------------------------- */
.review-card {
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  padding: var(--sp-5); background: var(--surface-2); display: grid; gap: .6rem;
}
.review-card h3 { font-size: 1rem; }
.review-card p { font-size: var(--fs-sm); color: var(--text-soft); }

/* 11.5 Favourite toggle — reuses .icon-btn, adds only the pressed state */
.icon-btn[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; stroke: none; }

/* ==========================================================================
   12. PRICING COMPARISON TABLE
   The one component the system didn't already have. Everything else on the
   pricing page reuses .price-card, .quote, .accordion, .marquee and .tabs.
   ========================================================================== */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: var(--fs-sm); }
.cmp caption { caption-side: top; text-align: left; padding: var(--sp-4) var(--sp-5) 0; color: var(--text-muted); font-size: var(--fs-xs); }
.cmp th, .cmp td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp thead th { background: var(--surface-2); font-family: var(--font-display); font-weight: 600; letter-spacing: -.012em; white-space: nowrap; }
.cmp thead th span { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); }
.cmp th.val, .cmp td.val { text-align: center; }
.cmp tbody tr:hover { background: var(--surface-2); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td .icon { width: 17px; height: 17px; color: var(--ok); }
.cmp td.no { color: var(--text-muted); }
.cmp__group th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-inset); font-weight: 500; }
