/* ==========================================================================
   Lex&Roll v2 — pixel-minimal tech
   Sections: tokens → fonts → base → utilities → layout → components → pages → motion → print
   Legacy class names from v1 are kept as selectors so migrated markup restyles itself.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #fbfbf9;
  --bg-elev: #ffffff;
  --bg-sunken: #f3f3f0;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --line: #e2e2de;
  --line-strong: #c9c9c4;
  --accent: #3730a3;
  --accent-strong: #2a2480;
  --accent-soft: rgba(55, 48, 163, 0.08);
  --on-accent: #ffffff;
  --ok: #0e7a57;
  --warn: #b45309;
  --bad: #b71c1c;
  --ok-soft: rgba(14, 122, 87, 0.12);
  --warn-soft: rgba(180, 83, 9, 0.12);
  --bad-soft: rgba(183, 28, 28, 0.10);
  --focus: #4f46e5;
  --grid-dot: rgba(29, 29, 31, 0.10);
  --term-bg: #16181f;
  --term-fg: #e6e8ee;
  --term-key: #9d99ff;
  --term-str: #7fd7a8;
  --term-num: #f5c26b;
  --term-muted: #8a90a0;

  /* legacy aliases */
  --gray: var(--muted);
  --light-gray: var(--bg-sunken);
  --accent-light: var(--focus);

  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, 'Courier New', monospace;

  --fs-hero: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --fs-h1: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  --fs-body: 1rem;
  --fs-article: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.8125rem;
  --lh-tight: 1.1;
  --lh-body: 1.55;
  --lh-article: 1.75;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-6: 1.5rem;
  --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem; --sp-24: 6rem; --sp-32: 8rem;

  --container: 1120px;
  --container-narrow: 760px;
  --container-width: var(--container);

  --r-sm: 3px; --r-md: 6px; --r-lg: 10px;
  --shadow-px: 3px 3px 0 0 var(--line);
  --shadow-px-hover: 4px 4px 0 0 var(--line-strong);
  --dur-fast: 150ms; --dur: 220ms; --dur-slow: 300ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --px: 4px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f1117; --bg-elev: #161a23; --bg-sunken: #1c2130;
  --text: #e6e8ee; --muted: #a0a6b3; --line: #2a303d; --line-strong: #3a4152;
  --accent: #9d99ff; --accent-strong: #c7c4ff; --accent-soft: rgba(157, 153, 255, 0.14); --on-accent: #0f1117;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --ok-soft: rgba(52, 211, 153, 0.14); --warn-soft: rgba(251, 191, 36, 0.14); --bad-soft: rgba(248, 113, 113, 0.14);
  --focus: #a5a1ff; --grid-dot: rgba(230, 232, 238, 0.08);
  --term-bg: #0b0d12; --term-fg: #e6e8ee;
  --shadow-px: 3px 3px 0 0 var(--line);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117; --bg-elev: #161a23; --bg-sunken: #1c2130;
    --text: #e6e8ee; --muted: #a0a6b3; --line: #2a303d; --line-strong: #3a4152;
    --accent: #9d99ff; --accent-strong: #c7c4ff; --accent-soft: rgba(157, 153, 255, 0.14); --on-accent: #0f1117;
    --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
    --ok-soft: rgba(52, 211, 153, 0.14); --warn-soft: rgba(251, 191, 36, 0.14); --bad-soft: rgba(248, 113, 113, 0.14);
    --focus: #a5a1ff; --grid-dot: rgba(230, 232, 238, 0.08);
    --term-bg: #0b0d12; --term-fg: #e6e8ee;
    color-scheme: dark;
  }
}

/* ---------- 2. Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/space-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/space-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.5px);
  background-size: 8px 8px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
main, .header, .footer { min-width: 0; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1rem; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
img, svg, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, code, pre, kbd, .mono { font-family: var(--font-mono); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
strong { font-weight: 600; }

/* ---------- 4. Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--sp-6); }
.container--narrow { max-width: var(--container-narrow); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.label, .resource-tag, .package-tag, .tier-label, .cs-section-label, .quiz-step-label, .lm-badge, .sprint-badge, .cs-sector, .quiz-result-badge, .tag {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); line-height: 1.4;
}
.resource-tag, .package-tag, .lm-badge, .sprint-badge, .cs-sector, .quiz-result-badge, .tag {
  padding: 0.3rem 0.6rem; border: 1px solid var(--accent); border-radius: var(--r-sm); background: var(--accent-soft);
}
.resource-tag.tool, .tag--ok { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.tag--warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.tag--bad { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.tier-label, .cs-section-label, .quiz-step-label { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--accent); color: var(--on-accent); padding: var(--sp-3) var(--sp-6); border-radius: 0 0 var(--r-md) 0; text-decoration: none; font-weight: 600; }
.skip-link:focus { left: 0; }

/* pixel icons */
.px { width: 32px; height: 32px; flex: 0 0 auto; fill: currentColor; shape-rendering: crispEdges; image-rendering: pixelated; }
.px--16 { width: 16px; height: 16px; }
.px--48 { width: 48px; height: 48px; }
.px--accent { color: var(--accent); }
.pillar-icon, .package-icon, .benefit-icon { color: var(--accent); margin-bottom: var(--sp-4); }
.pillar-icon .px, .package-icon .px, .benefit-icon .px { width: 32px; height: 32px; }

/* LEDs */
.led { display: inline-block; width: 12px; height: 12px; flex: 0 0 auto; background: var(--line-strong); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.22), inset 3px 3px 0 rgba(255, 255, 255, 0.35); vertical-align: middle; }
.led--ok { background: var(--ok); }
.led--warn { background: var(--warn); }
.led--bad { background: var(--bad); }
.led--off { background: var(--line-strong); }
.led--accent { background: var(--accent); }
.led--blink { animation: led-blink 1.2s steps(2, start) infinite; }
.led--breathe { animation: led-breathe 2.4s ease-in-out infinite; }
@keyframes led-blink { 50% { opacity: 0.35; } }
@keyframes led-breathe { 50% { opacity: 0.55; } }

/* pixel divider */
.px-divider { height: 4px; border: 0; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); margin: 0; }
.px-divider--accent { background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); }

/* ---------- 5. Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .header { background: var(--bg); } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; min-height: 44px; }
.logo:hover { color: var(--text); }
.logo span { color: var(--accent); }
.logo-mark { width: 24px; height: 24px; color: var(--accent); fill: currentColor; shape-rendering: crispEdges; }
.nav-right { display: flex; align-items: center; gap: var(--sp-2); }
.nav-links { display: flex; align-items: center; list-style: none; gap: var(--sp-1); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; font-family: var(--font-head); font-size: 0.92rem; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.lang-switch, .nav-links a.lang-switch { font-family: var(--font-mono); font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.06em; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 0.5rem; min-height: 32px; margin-left: var(--sp-2); }
.lang-switch:hover { border-color: var(--accent); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--r-md); background: transparent; color: var(--text); transition: border-color var(--dur-fast), background var(--dur-fast); }
.icon-btn:hover { border-color: var(--line-strong); background: var(--bg-elev); }
.icon-btn .px { width: 16px; height: 16px; }
.theme-toggle .px--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .px--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .px--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .px--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .px--moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .px--close { display: none; }
body.nav-open .nav-toggle .px--close { display: block; }
body.nav-open .nav-toggle .px--menu { display: none; }
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-2) var(--sp-6) var(--sp-4); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
  body.nav-open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { width: 100%; min-height: 48px; padding: 0 var(--sp-1); font-size: 1rem; border-bottom: 0; }
  .nav-links a.active, .nav-links a[aria-current="page"] { border-bottom: 0; }
  .lang-switch, .nav-links a.lang-switch { display: inline-flex; width: auto; margin: var(--sp-3) 0 0; min-height: 40px; padding: 0 var(--sp-3); }
}

/* ---------- 6. Buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-white, .btn-outline-white, .btn-accent-outline, .card-btn, .quiz-btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.7rem 1.4rem;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid var(--text); border-radius: var(--r-md); background: var(--bg-elev); color: var(--text);
  box-shadow: var(--shadow-px); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn-white:hover, .btn-outline-white:hover, .btn-accent-outline:hover, .card-btn:hover, .quiz-btn:hover, .btn-ghost:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-px-hover); }
.btn:active, .btn-primary:active, .btn-secondary:active, .btn-white:active, .btn-outline-white:active, .btn-accent-outline:active, .card-btn:active, .quiz-btn:active, .btn-ghost:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 var(--line); }
.btn-primary, .btn.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { color: var(--bg); }
.btn-secondary, .btn-ghost { background: transparent; }
.btn-accent-outline, .btn-outline-white, .btn-white, .quiz-btn-no { border-color: var(--accent); color: var(--accent); background: var(--bg-elev); }
.btn-accent-outline:hover, .btn-outline-white:hover, .btn-white:hover, .quiz-btn-no:hover { color: var(--accent-strong); }
.card-btn, .quiz-btn-yes { display: flex; width: 100%; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.card-btn:hover, .quiz-btn-yes:hover { color: var(--on-accent); }
.btn-block { display: flex; width: 100%; margin-top: var(--sp-8); }
.btn-sm { min-height: 36px; padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn[disabled], button[disabled] { opacity: 0.6; cursor: wait; }
.link-accent, .resource-link, .cta-secondary-link { display: inline-flex; align-items: center; gap: 0.35em; color: var(--accent); font-weight: 600; text-decoration: none; min-height: 44px; }
.link-accent:hover, .resource-link:hover, .cta-secondary-link:hover { text-decoration: underline; }
.hero-actions, .hero-cta-group, .quiz-result-cta, .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; align-items: center; }
.btn-row--left { justify-content: flex-start; }

/* ---------- 7. Cards ---------- */
.card, .pillar-card, .resource-card, .package-card, .cs-card, .benefit-card, .process-step, .pricing-card, .lm-contents, .lm-form-card, .quiz-box, .story-box, .service-aside, .tool-card, .result-card, .regime {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-px); padding: var(--sp-8);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
a.card:hover, .pillar-card:hover, .resource-card:hover, .tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-px-hover); border-color: var(--line-strong); }
.card--accent, .package-card.featured, .pricing-card.pro { border: 2px solid var(--accent); box-shadow: 3px 3px 0 0 var(--accent); }
.card--sunken { background: var(--bg-sunken); box-shadow: none; }
.card--flat { box-shadow: none; }
.card-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }

/* ---------- 8. Hero & sections ---------- */
.hero, .packages-hero, .cs-hero, .ai-hero, .quiz-hero, .lm-hero, .resources-hero, .tool-hero, .page-hero { padding: var(--sp-16) 0 var(--sp-12); text-align: center; }
.hero { padding-top: var(--sp-24); }
.hero-prompt { display: inline-flex; align-items: center; gap: 0.35em; min-height: 1.6em; margin-bottom: var(--sp-6); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.hero-prompt .prompt-sign { color: var(--accent); }
html:not(.js) .typed::after { content: attr(data-typed); }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; background: currentColor; vertical-align: text-bottom; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-title { font-size: var(--fs-hero); margin: 0 auto var(--sp-6); max-width: 18ch; letter-spacing: -0.03em; }
.section-title { font-size: var(--fs-h2); margin-bottom: var(--sp-6); }
.hero-subtitle, .section-subtitle, .packages-intro, .resources-intro, .subtitle, .ai-hero .subtitle, .quiz-hero .subtitle, .lm-hero .subtitle { font-size: var(--fs-lead); color: var(--muted); max-width: 46rem; margin: 0 auto var(--sp-8); }
.hero-subtitle.is-left { text-align: left; margin-left: 0; }
.hero-note { margin-top: var(--sp-6); font-size: 0.95rem; }
.hero-status { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-8); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.hero-status span { display: inline-flex; align-items: center; gap: 0.5em; }
.section { padding: var(--sp-16) 0; }
.section--tight { padding: var(--sp-12) 0; }
.section--sunken { background: var(--bg-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin: 0 auto var(--sp-12); text-align: center; }
.section-head .label { margin-bottom: var(--sp-3); }
.why-us { padding: var(--sp-24) 0 var(--sp-12); text-align: center; border-top: 1px solid var(--line); }
.why-content { display: flex; flex-direction: column; align-items: center; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); padding: var(--sp-12) 0; }
.pillar-card h3 { margin-bottom: var(--sp-2); }
.pillar-card p { color: var(--muted); }
.pillar-card .link-accent { margin-top: var(--sp-3); min-height: 32px; }
.social-proof { text-align: center; padding: var(--sp-16) 0; }
.proof-text { font-family: var(--font-head); font-size: var(--fs-lead); font-weight: 600; color: var(--accent); max-width: 40rem; margin: 0 auto; }
.page { padding: var(--sp-16) var(--sp-6) var(--sp-24); }
.page > .hero-title, .page > h1 { margin-bottom: var(--sp-6); }
.page-hero h1 { margin: 0 auto var(--sp-4); max-width: 24ch; }
.page-hero--left { text-align: left; }
.page-hero--left h1, .page-hero--left .hero-subtitle { margin-left: 0; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-4); margin: var(--sp-8) 0; }
.stat { padding: var(--sp-4) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-elev); }
.stat-value { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- 9. Pricing ---------- */
.packages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); padding: var(--sp-4) 0 var(--sp-16); align-items: start; }
.package-card h2 { font-size: 1.6rem; margin: var(--sp-2) 0; }
.package-tag { margin-bottom: var(--sp-4); }
.package-desc, .card-desc { color: var(--muted); margin-bottom: var(--sp-6); }
.package-features, .pricing-card ul, .lm-contents ul, .check-list, .cs-outcomes ul { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: flex; flex-direction: column; gap: 0.7rem; }
/* blok zamiast flex: przy flex każdy węzeł tekstu i <strong> stawał się osobną kolumną (pogrubiony początek punktu „zawijał się” obok treści) */
.package-features li, .pricing-card ul li, .lm-contents li, .check-list li, .cs-outcomes ul li { display: block; position: relative; padding-left: calc(16px + 0.6rem); font-size: 0.95rem; line-height: 1.5; }
.package-features li::before, .pricing-card ul li::before, .lm-contents li::before, .check-list li::before, .cs-outcomes ul li::before {
  content: ""; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 0.2em; background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 2h2v2h-2zM12 4h2v2h-2zM11 6h2v2h-2zM10 8h2v2h-2zM9 10h2v2h-2zM8 12h2v2h-2zM2 7h2v2H2zM3 9h2v2H3zM4 11h2v2H4zM6 12h2v2H6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 2h2v2h-2zM12 4h2v2h-2zM11 6h2v2h-2zM10 8h2v2h-2zM9 10h2v2h-2zM8 12h2v2h-2zM2 7h2v2H2zM3 9h2v2H3zM4 11h2v2H4zM6 12h2v2H6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.package-features li::before, .pricing-card ul li::before, .lm-contents li::before, .check-list li::before, .cs-outcomes ul li::before { position: absolute; left: 0; top: 0; }
.cs-outcomes ul li::before { background-color: var(--ok); }
.price-block { border-top: 1px solid var(--line); padding-top: var(--sp-6); margin-top: var(--sp-4); }
.price-main, .price { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: var(--sp-1); }
.price-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--sp-3); }
.dpo-tiers { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.dpo-tier { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunken); font-size: 0.9rem; }
.dpo-tier .tier-name { font-weight: 600; }
.dpo-tier .tier-size { font-weight: 400; color: var(--muted); }
.dpo-tier .tier-price { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.dpo-tier.highlight { border-color: var(--accent); background: var(--accent-soft); }
.pricing-section { padding: var(--sp-16) 0; }
.pricing-section h2, .benefits-section h2, .process-section h2 { text-align: center; margin-bottom: var(--sp-3); }
.pricing-subtitle { text-align: center; color: var(--muted); margin-bottom: var(--sp-12); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: var(--sp-2); }
.pricing-card ul { flex: 1; }
.pricing-card ul li { color: var(--muted); font-size: 0.9rem; }
.pricing-card .price-note { margin-bottom: var(--sp-6); }

/* ---------- 10. FAQ ---------- */
.faq { max-width: var(--container-narrow); margin: 0 auto; padding: var(--sp-12) var(--sp-6) var(--sp-24); }
.faq h2 { margin-bottom: var(--sp-8); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); min-height: 44px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-mono); font-size: 1.4rem; font-weight: 400; color: var(--accent); line-height: 1; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: var(--sp-3); color: var(--muted); line-height: 1.7; max-width: 62ch; }

/* ---------- 11. CTA strip ---------- */
.cta-strip, .cs-cta-strip { position: relative; border: 2px solid var(--accent); border-radius: var(--r-lg); background: var(--accent-soft); padding: var(--sp-12) var(--sp-8); text-align: center; margin: var(--sp-16) auto var(--sp-24); box-shadow: 4px 4px 0 0 var(--accent); }
.cta-strip h2, .cs-cta-strip h2 { margin-bottom: var(--sp-3); }
.cta-strip p, .cs-cta-strip p { color: var(--muted); max-width: 46rem; margin: 0 auto var(--sp-8); }
.cta-strip .btn-white, .cs-cta-strip .btn-white { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 3px 3px 0 0 var(--text); }
.cta-strip .btn-white:hover { color: var(--on-accent); }
.cta-strip .cta-secondary-link { margin-left: var(--sp-4); }

/* ---------- 12. Resources hub ---------- */
.resource-grid, .tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-6); padding: var(--sp-4) 0 var(--sp-16); }
.resource-card, .tool-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.resource-card:hover, .tool-card:hover { color: var(--text); }
.resource-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: var(--sp-4); }
.resource-card h2, .tool-card h2 { font-size: 1.2rem; margin-bottom: var(--sp-3); }
.resource-card p, .tool-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.resource-link { margin-top: var(--sp-4); }
.tool-card .card-head .px { color: var(--accent); }

/* ---------- 13. Article ---------- */
.article-header { max-width: var(--container-narrow); margin: 0 auto; padding: var(--sp-16) var(--sp-6) var(--sp-4); }
.article-header h1 { font-size: var(--fs-h1); margin: var(--sp-4) 0 var(--sp-4); }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.article { max-width: var(--container-narrow); margin: 0 auto; padding: var(--sp-4) var(--sp-6) var(--sp-12); font-size: var(--fs-article); line-height: var(--lh-article); }
.article .article-lead { font-size: var(--fs-lead); color: var(--muted); margin-bottom: var(--sp-8); line-height: 1.55; }
.article h2 { margin: var(--sp-12) 0 var(--sp-4); }
.article h3 { margin: var(--sp-8) 0 var(--sp-3); }
.article p { margin-bottom: var(--sp-4); }
.article ul, .article ol { margin: 0 0 var(--sp-6) var(--sp-6); }
.article li { margin-bottom: 0.5rem; }
.article a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.article a:hover { text-decoration-color: var(--accent); }
.article .article-note, .article-note { background: var(--bg-sunken); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-6); font-size: 0.95rem; color: var(--muted); margin: var(--sp-8) 0; }
.article-note--update { border-left-color: var(--warn); color: var(--text); }
.article-note--update strong { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--warn); display: block; margin-bottom: var(--sp-2); }
.article-disclaimer { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--sp-6); margin-top: var(--sp-8); }
.related-articles { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-6) var(--sp-16); }
.related-articles h2 { font-size: 1.2rem; margin-bottom: var(--sp-4); }
.related-articles ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.related-articles a { color: var(--accent); font-weight: 600; text-decoration: none; }
.related-articles a:hover { text-decoration: underline; }
.article .cta-strip, .related-articles + .cta-strip { margin-top: var(--sp-8); }

/* ---------- 14. About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; padding: var(--sp-24) 0; }
.about-image img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 6px 6px 0 0 var(--accent); }
.about-content h1 { margin-bottom: var(--sp-4); }
.about-content .hero-subtitle { margin-left: 0; margin-bottom: var(--sp-6); }
.about-body { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }
.about-body p { margin-bottom: var(--sp-4); }

/* ---------- 15. Service pages ---------- */
.service-content { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-12); align-items: start; padding-bottom: var(--sp-12); }
.service-body { font-size: 1.1rem; line-height: 1.7; }
.story-box { margin-top: var(--sp-12); background: var(--bg-sunken); box-shadow: none; }
.story-title { font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--sp-3); }
.story-quote { font-style: italic; color: var(--muted); }
.service-aside { position: sticky; top: 88px; }
.aside-title { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 var(--sp-4); }
.aside-title + .aside-title, .btn-block + .aside-title { margin-top: var(--sp-8); }
.check-list { color: var(--text); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.service-list { display: grid; gap: var(--sp-6); padding: var(--sp-4) 0 var(--sp-12); }
.service-item { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-6); align-items: start; padding: var(--sp-8); }
.service-item .px { width: 48px; height: 48px; color: var(--accent); }
.service-item h2 { font-size: 1.5rem; margin-bottom: var(--sp-2); }
.service-item h2 a { color: inherit; text-decoration: none; }
.service-item h2 a:hover { color: var(--accent); }
.service-lead { color: var(--muted); font-size: 1.1rem; }
.tag-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag-list li { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.3rem 0.6rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--muted); }

/* ---------- 16. Case studies ---------- */
.cs-hero { text-align: left; }
.cs-hero h1 { max-width: 24ch; }
.cs-intro { max-width: 40rem; color: var(--muted); font-size: 1.1rem; margin: var(--sp-6) 0 0; }
.cs-hero .article-disclaimer { margin-top: var(--sp-6); }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); padding: var(--sp-8) 0 var(--sp-16); align-items: start; }
.cs-card h2 { font-size: 1.35rem; margin: var(--sp-4) 0 var(--sp-6); }
.cs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.cs-meta dt, .cs-meta-item h4 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.35rem; }
.cs-meta dd, .cs-meta-item p { font-size: 0.95rem; font-weight: 500; line-height: 1.5; }
.cs-steps { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); counter-reset: step-counter; }
.cs-steps li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 0.95rem; counter-increment: step-counter; }
.cs-steps li::before { content: counter(step-counter); flex: 0 0 26px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); }
.cs-outcomes { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-6); margin-top: var(--sp-4); }
.cs-outcomes ul { margin: 0; }
.cs-divider { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

/* ---------- 17. Forms ---------- */
.contact-form, .lm-form, .nl-form { display: grid; gap: var(--sp-6); max-width: 600px; margin-top: var(--sp-8); }
.lm-form { margin-top: 0; }
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-group label { font-weight: 600; font-size: 0.95rem; }
.form-group .opt { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; padding: 0.8rem 1rem; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-elev); color: var(--text); font: inherit; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
input::placeholder, textarea::placeholder { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 140px; }
.form-status { display: none; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.form-status.success { display: block; background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.form-status.error { display: block; background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.form-status.sending { display: block; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.ts-box { min-height: 65px; }
.form-noscript { padding: var(--sp-3) var(--sp-4); border: 1px dashed var(--line-strong); border-radius: var(--r-md); font-size: 0.9rem; }
.nl-card { max-width: 640px; }
.contact-form + .contact-hint, .nl-card + .contact-hint { margin-top: var(--sp-12); }
.consent-bar { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 60; max-width: 560px; margin-left: auto; padding: var(--sp-4) var(--sp-5, 1.25rem); background: var(--bg-elev); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 3px 3px 0 0 var(--line-strong); font-size: 0.88rem; }
.consent-bar p { margin: 0 0 var(--sp-3); }
.consent-bar a { color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.consent-actions .btn { flex: 1 1 10rem; justify-content: center; }
.footer-bottom button.link-like, .footer a[data-stats-settings] { cursor: pointer; }
.doc-version { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin: 0 0 var(--sp-8); }
.nl-token { max-width: 640px; padding: var(--sp-8) 0 var(--sp-16); }
.nl-token .form-actions { margin-top: var(--sp-6); }
.rodo-note, .form-intro { font-size: 0.85rem; color: var(--muted); }
.form-intro { font-size: 0.95rem; margin-bottom: var(--sp-6); }
.form-consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 0.85rem; color: var(--muted); }
.form-consent input { width: 18px; height: 18px; margin-top: 0.15em; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ---------- 18. Lead magnet & quiz ---------- */
.lm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); padding: var(--sp-8) 0 var(--sp-16); align-items: start; }
.lm-contents h2, .lm-form-card h2 { font-size: 1.25rem; margin-bottom: var(--sp-4); }
.lm-contents li { color: var(--text); }
.quiz-box { max-width: 680px; margin: var(--sp-8) auto var(--sp-8); padding: var(--sp-8) var(--sp-8) var(--sp-12); }
.quiz-progress { height: 8px; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-bottom: var(--sp-8); }
.quiz-progress-bar { height: 100%; width: 0%; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 8px); transition: width var(--dur-slow) var(--ease); }
.quiz-question { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin: var(--sp-3) 0; }
.quiz-hint { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin-bottom: var(--sp-8); }
.quiz-answers { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.quiz-btn { flex: 1; min-width: 140px; }
.quiz-restart { margin-top: var(--sp-6); background: none; border: 0; color: var(--muted); font-size: 0.9rem; text-decoration: underline; min-height: 44px; }
.quiz-result h2 { font-size: 1.4rem; margin: var(--sp-4) 0; }
.quiz-result p { color: var(--muted); line-height: 1.7; margin-bottom: var(--sp-4); }
.quiz-result-cta { justify-content: flex-start; margin-top: var(--sp-6); }
.badge-prohibited { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.badge-high { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.badge-limited { color: var(--accent); }
.badge-minimal { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.quiz-disclaimer, .disclaimer { max-width: 680px; margin: 0 auto var(--sp-16); font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- 19. Tools UI (configurator / calculator) ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-8); align-items: start; padding-bottom: var(--sp-16); }
.tool-layout--api { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-bottom: 0; }
.tool-layout > * { min-width: 0; }
.tool-panel { display: grid; gap: var(--sp-4); }
.toggle-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.toggle-row .toggle-text { flex: 1 1 200px; }
.toggle-row .seg, .toggle-row .toggle, .input-money .seg { flex: 0 0 auto; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .toggle-text { display: grid; gap: 0.15rem; }
.toggle-row .toggle-text strong { font-family: var(--font-head); font-weight: 600; }
.toggle-row .toggle-text small { color: var(--muted); font-size: 0.82rem; }
.toggle { position: relative; flex: 0 0 auto; width: 48px; height: 26px; border: 2px solid var(--text); border-radius: var(--r-sm); background: var(--bg-elev); padding: 0; transition: background var(--dur-fast), border-color var(--dur-fast); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--text); transition: transform var(--dur-fast) var(--ease), background var(--dur-fast); }
.toggle[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(22px); background: var(--on-accent); }
.seg { display: inline-flex; border: 2px solid var(--text); border-radius: var(--r-md); overflow: hidden; background: var(--bg-elev); }
.seg button { min-height: 40px; padding: 0 0.9rem; border: 0; border-right: 2px solid var(--text); background: transparent; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg--wrap { flex-wrap: wrap; gap: var(--sp-2); border: 0; border-radius: 0; overflow: visible; background: transparent; }
.seg--wrap button { border: 2px solid var(--line-strong); border-radius: var(--r-sm); min-height: 36px; padding: 0 0.7rem; }
.seg--wrap button:hover { border-color: var(--text); }
.field-row { display: grid; gap: var(--sp-2); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.field-row label { font-weight: 600; }
.field-row .field-hint { color: var(--muted); font-size: 0.82rem; }
.input-money { display: flex; gap: var(--sp-2); align-items: stretch; }
.input-money input { font-family: var(--font-mono); font-size: 1.05rem; }
.result-card { display: grid; gap: var(--sp-4); }
.result-card h2 { font-size: 1.25rem; }
.result-list { display: grid; gap: var(--sp-3); }
.result-item { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2) var(--sp-4); align-items: baseline; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunken); }
.result-item strong { font-family: var(--font-head); }
.result-item .why { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; }
.result-item .price-tag { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.result-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); padding-top: var(--sp-4); border-top: 2px solid var(--text); font-family: var(--font-head); font-weight: 700; }
.result-total .mono { font-family: var(--font-mono); font-weight: 600; }
.disclaimer--strong { text-align: left; max-width: none; margin: 0; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--warn); border-left-width: 4px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--text); font-size: 0.85rem; }
.calc { display: grid; gap: var(--sp-3); }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-4); align-items: end; }
.calc-row .calc-law { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.calc-row .calc-name { font-weight: 600; }
.calc-row .calc-value { font-family: var(--font-mono); font-weight: 600; text-align: right; white-space: nowrap; }
.calc-row .calc-sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-align: right; }
.calc-bar { grid-column: 1 / -1; height: 12px; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.calc-bar::before { content: ""; display: block; height: 100%; width: var(--w, 0%); background: repeating-linear-gradient(90deg, var(--accent) 0 6px, color-mix(in srgb, var(--accent) 70%, transparent) 6px 8px); border-radius: 0 var(--r-sm) var(--r-sm) 0; transition: width var(--dur-slow) var(--ease); }
.calc-group { margin-top: var(--sp-3); padding-bottom: var(--sp-1); border-bottom: 1px solid var(--line); }
.calc-group:first-child { margin-top: 0; }
.calc-ratio { display: grid; gap: var(--sp-1); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunken); }
.calc-ratio .big { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }

/* terminal block */
.term { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--term-bg); color: var(--term-fg); box-shadow: var(--shadow-px); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: var(--sp-3); padding: 0.55rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--font-mono); font-size: 0.75rem; color: var(--term-muted); }
.term-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-copy { min-height: 28px; padding: 0.2rem 0.5rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--r-sm); background: transparent; color: var(--term-fg); font-family: var(--font-mono); font-size: 0.72rem; }
.term-copy:hover { border-color: var(--term-key); color: var(--term-key); }
.term-body { margin: 0; padding: var(--sp-4) var(--sp-4) var(--sp-6); font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; min-height: 8rem; }
.term-body .tok-key { color: var(--term-key); }
.term-body .tok-str { color: var(--term-str); }
.term-body .tok-num { color: var(--term-num); }
.term-body .tok-punct { color: var(--term-muted); }
.term-body .tok-cmd { color: var(--term-fg); font-weight: 600; }
.term-body .tok-cmt { color: var(--term-muted); font-style: italic; }
.term-body .cursor { color: var(--term-key); }

/* ---------- 20. Radar ---------- */
.radar-legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); justify-content: center; margin: 0 auto var(--sp-8); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.radar-legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.radar { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-16); }
.regime { padding: 0; overflow: hidden; }
.regime-head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3) var(--sp-4); align-items: center; padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
.regime-head h2 { font-size: 1.15rem; }
.regime-head .regime-next { grid-column: 2 / -1; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.regime-head .regime-cta { justify-self: end; }
.regime-body { padding: var(--sp-6); display: grid; gap: var(--sp-6); }
.regime-blurb { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }
.tl-ruler { position: relative; height: 44px; margin: var(--sp-2) 0 0; }
.tl-ruler-line { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line-strong); }
.tl-year { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.tl-year::after { content: ""; position: absolute; left: 50%; top: 18px; width: 2px; height: 10px; background: var(--line-strong); }
.tl-dot { position: absolute; top: 24px; left: var(--pos); width: 14px; height: 14px; transform: translateX(-50%); background: var(--line-strong); border: 2px solid var(--bg-elev); box-shadow: 0 0 0 1px var(--line-strong); }
.tl-dot--ok { background: var(--ok); } .tl-dot--warn { background: var(--warn); } .tl-dot--bad { background: var(--bad); } .tl-dot--off { background: var(--line-strong); }
.tl-now { position: absolute; top: 18px; left: var(--pos); width: 2px; height: 26px; background: var(--accent); transform: translateX(-50%); }
.tl-now::after { content: attr(data-label); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.62rem; color: var(--accent); white-space: nowrap; }
.tl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.tl-item { display: grid; grid-template-columns: 16px 1fr; gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-elev); }
.tl-item--past { opacity: 0.85; }
.tl-item--soon { border-color: var(--bad); background: var(--bad-soft); }
.tl-item--warn { border-color: var(--warn); }
.tl-marker { width: 16px; height: 16px; margin-top: 0.2em; background: var(--line-strong); }
.tl-marker--ok { background: var(--ok); } .tl-marker--warn { background: var(--warn); } .tl-marker--bad { background: var(--bad); } .tl-marker--off { background: var(--line-strong); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); }
.tl-date { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.tl-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-count--soon { color: var(--bad); font-weight: 600; }
.tl-label { font-weight: 600; grid-column: 2; }
.tl-applies { grid-column: 2; color: var(--muted); font-size: 0.85rem; }
.tl-source { grid-column: 2; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.radar-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.radar-teaser .tl-item { grid-template-columns: 16px 1fr; }
.radar-teaser .tl-label { font-size: 0.95rem; }
.radar-teaser .tl-days { grid-column: 2; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.radar-teaser .tl-days small { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; color: var(--muted); margin-left: 0.4em; }

/* ---------- 21. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--sp-12) 0 var(--sp-8); margin-top: auto; font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-8); margin-bottom: var(--sp-8); }
.footer-brand .logo { margin-bottom: var(--sp-3); }
.footer-brand p { max-width: 36ch; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer-col a, .footer-links a { color: var(--text); text-decoration: none; }
.footer-col a:hover, .footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.75rem; }
.footer-content { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
mark.todo { background: #fde68a; color: #1d1d1f; font-family: var(--font-mono); font-size: 0.8em; padding: 0 0.3em; border-radius: var(--r-sm); }

/* ---------- 22. Benefits / process (AI readiness) ---------- */
.benefits-section { padding: var(--sp-16) 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.benefit-card { text-align: left; }
.benefit-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.benefit-card p { font-size: 0.9rem; color: var(--muted); }
.process-section { padding: var(--sp-16) 0; }
.process-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: var(--sp-4); max-width: 900px; margin: 0 auto; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); margin-bottom: var(--sp-4); }
.process-step h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.process-step p { font-size: 0.9rem; color: var(--muted); }
.process-arrow { display: flex; align-items: center; color: var(--muted); }
.process-arrow .px { width: 24px; height: 24px; }

/* ---------- 23. Legal pages ---------- */
.legal { max-width: var(--container-narrow); margin: 0 auto; padding: var(--sp-16) var(--sp-6) var(--sp-24); line-height: 1.7; }
.legal h1 { margin-bottom: var(--sp-6); }
.legal h2 { font-size: 1.35rem; margin: var(--sp-12) 0 var(--sp-4); }
.legal h3 { font-size: 1.1rem; margin: var(--sp-8) 0 var(--sp-3); }
.legal p, .legal li { margin-bottom: var(--sp-3); }
.legal ul, .legal ol { margin-left: var(--sp-6); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: var(--sp-6) 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-sunken); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table-wrap { overflow-x: auto; }
.legal-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: var(--sp-8); }

/* ---------- 24. Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js [data-reveal][data-reveal-delay="1"].is-in { transition-delay: 80ms; }
.js [data-reveal][data-reveal-delay="2"].is-in { transition-delay: 160ms; }
.js [data-reveal][data-reveal-delay="3"].is-in { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cursor, .led--blink, .led--breathe { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 25. Responsive ---------- */
@media (max-width: 1023px) {
  .tool-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .service-content { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-8); padding: var(--sp-16) 0; }
  .about-image { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .pillar-grid, .packages-grid, .cs-grid, .lm-grid, .cs-meta { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-arrow { display: none; }
  .service-item { grid-template-columns: 1fr; gap: var(--sp-3); }
  .regime-head { grid-template-columns: auto 1fr; }
  .regime-head .regime-cta { grid-column: 1 / -1; justify-self: start; }
  .hero { padding-top: var(--sp-16); }
  .container { padding-inline: var(--sp-4); }
  .page { padding-inline: var(--sp-4); }
  .card, .pillar-card, .resource-card, .package-card, .cs-card, .benefit-card, .process-step, .pricing-card, .lm-contents, .lm-form-card, .quiz-box, .story-box, .service-aside, .tool-card, .result-card { padding: var(--sp-6); }
  .cta-strip, .cs-cta-strip { padding: var(--sp-8) var(--sp-6); }
  .cta-strip .cta-secondary-link { margin-left: 0; display: flex; justify-content: center; }
}
@media (max-width: 520px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .hero-cta-group .btn, .hero-cta-group .btn-secondary { width: 100%; }
  .tl-item { grid-template-columns: 12px 1fr; }
}

/* ---------- 26. Print ---------- */
@media print {
  .header, .footer, .skip-link, .cta-strip, .cs-cta-strip, .theme-toggle, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
  a { color: #000; text-decoration: underline; }
}

.contact-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: var(--sp-8) 0 var(--sp-12); }
.contact-actions--tight { margin: var(--sp-6) 0 0; }
.contact-hint { max-width: 62ch; padding-bottom: var(--sp-16); }
.contact-hint h2 { font-size: 1.25rem; margin-bottom: var(--sp-4); }

.article-note--summary ul { margin: var(--sp-2) 0 0; padding-left: 1.1rem; }
.article-note--summary li { margin: 0 0 0.35rem; }
.article-faq { margin: var(--sp-12) 0 var(--sp-8); }
.article-faq details { border-bottom: 1px solid var(--line); padding: var(--sp-3) 0; }
.article-faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.article-faq details p { margin: var(--sp-2) 0 0; color: var(--text); }
