/* GENERATED FILE. Edit design/*.css and run `npm run styles:build`.
 * Compiled from: tokens.css, base.css, components.css, product.css. */

/* Kybriq design tokens: "shield" identity (navy, amber, warm paper).
 *
 * Light is the default. Dark arrives two ways and both must agree:
 * an explicit [data-theme="dark"] chosen by the visitor, and the system
 * preference for anyone who never touched the toggle. Every documented
 * text pair in both themes is asserted by tests/design-tokens.test.ts,
 * which parses THIS file, so a token edited here is re-verified there.
 *
 * Amber is decorative on light backgrounds (rules, chips, grid accents)
 * and never carries body text there; --accent-text is the readable amber.
 */
:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --surface-2: #f3efe6;
  --ink: #0f1a2e;
  --ink-2: #2f3d55;
  --muted: #5a6577;
  --brand: #1e3153;
  --brand-strong: #0f1a2e;
  --accent: #f2a33c;
  --accent-text: #8a5300;
  --on-brand: #ffffff;
  --line: #e3ded3;
  --line-2: #7c8494;
  --danger: #b42318;
  --danger-text: #a11e14;
  --amber: #b54708;
  --amber-text: #8a4a0b;
  --success: #0f7b3f;
  --success-text: #0e6b37;
  --brand-soft: rgba(30, 49, 83, 0.07);
  --danger-soft: #fbeae8;
  --amber-soft: #fdf3e4;
  --success-soft: #eaf5ee;
  --focus: #1e3153;
  --focus-glow: rgba(30, 49, 83, 0.18);
  --nav-bg: rgba(251, 249, 245, 0.92);
  --shadow-1: 0 1px 2px rgba(15, 26, 46, 0.05);
  --shadow-2: 0 6px 24px rgba(15, 26, 46, 0.08);

  --font-display: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --maxw: 1120px;
  --measure: 68ch;
  --radius-s: 7px;
  --radius: 10px;
  --radius-l: 14px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section-pad: clamp(52px, 8vw, 96px);
  --hero-pad: clamp(56px, 9vw, 104px);

  color-scheme: light;
}

/* The dark palette, written once and applied by both selectors below. */
[data-theme="dark"] {
  --bg: #0f1a2e;
  --surface: #182741;
  --surface-2: #1e3153;
  --ink: #eee9df;
  --ink-2: #cfcac0;
  --muted: #a6aebd;
  --brand: #f2a33c;
  --brand-strong: #f6b75f;
  --accent: #f2a33c;
  --accent-text: #f5b65e;
  --on-brand: #0f1a2e;
  --line: #2e4160;
  --line-2: #74839b;
  --danger: #f08c82;
  --danger-text: #f4a59d;
  --amber: #e8a75a;
  --amber-text: #f0bc7e;
  --success: #5fc68f;
  --success-text: #84d4a8;
  --brand-soft: rgba(242, 163, 60, 0.14);
  --danger-soft: #3a1d1a;
  --amber-soft: #3a2a15;
  --success-soft: #14301f;
  --focus: #f6b75f;
  --focus-glow: rgba(242, 163, 60, 0.28);
  --nav-bg: rgba(15, 26, 46, 0.92);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 6px 24px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a2e;
    --surface: #182741;
    --surface-2: #1e3153;
    --ink: #eee9df;
    --ink-2: #cfcac0;
    --muted: #a6aebd;
    --brand: #f2a33c;
    --brand-strong: #f6b75f;
    --accent: #f2a33c;
    --accent-text: #f5b65e;
    --on-brand: #0f1a2e;
    --line: #2e4160;
    --line-2: #74839b;
    --danger: #f08c82;
    --danger-text: #f4a59d;
    --amber: #e8a75a;
    --amber-text: #f0bc7e;
    --success: #5fc68f;
    --success-text: #84d4a8;
    --brand-soft: rgba(242, 163, 60, 0.14);
    --danger-soft: #3a1d1a;
    --amber-soft: #3a2a15;
    --success-soft: #14301f;
    --focus: #f6b75f;
    --focus-glow: rgba(242, 163, 60, 0.28);
    --nav-bg: rgba(15, 26, 46, 0.92);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 6px 24px rgba(0, 0, 0, 0.55);

    color-scheme: dark;
  }
}

/* The navy band. Hero and bottom CTA keep the shield colours in BOTH themes,
 * so the dark-theme text tokens are re-declared locally rather than inherited.
 */
.band {
  --bg: #1e3153;
  --surface: #182741;
  --surface-2: #1e3153;
  --ink: #eee9df;
  --ink-2: #cfcac0;
  --muted: #a6aebd;
  --brand: #f2a33c;
  --brand-strong: #f6b75f;
  --accent-text: #f5b65e;
  --on-brand: #0f1a2e;
  --line: #2e4160;
  --line-2: #74839b;
  --focus: #f6b75f;
  --focus-glow: rgba(242, 163, 60, 0.28);
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, #1e3153, #0f1a2e);
  color: var(--ink);
}

/* Faint 32px grid, decorative only. */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Nobody should be moved by our decoration. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: an accessibility or print override must beat every author rule */
    animation-duration: 0.01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: an accessibility or print override must beat every author rule */
    animation-iteration-count: 1 !important;
    /* biome-ignore lint/complexity/noImportantStyles: an accessibility or print override must beat every author rule */
    transition-duration: 0.01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: an accessibility or print override must beat every author rule */
    scroll-behavior: auto !important;
  }
}

/* Visitors who ask for more contrast get ink where we normally use grey. */
@media (prefers-contrast: more) {
  :root {
    --muted: var(--ink-2);
    --line: var(--ink-2);
    --line-2: var(--ink);
    --shadow-1: none;
    --shadow-2: none;
  }
}

/* Windows high-contrast: let the OS own the colours, keep the shapes. */
@media (forced-colors: active) {
  .btn,
  .theme-toggle,
  .menu-toggle,
  .card,
  .badge,
  .chip,
  input,
  select,
  textarea {
    border: 1px solid CanvasText;
  }

  :focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }

  .band::before {
    display: none;
  }
}

/* Reset, typography scale, links, focus, layout primitives, print base. */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(27px, 3.5vw, 40px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 19px;
}

h4 {
  font-size: 17px;
}

p {
  color: var(--ink-2);
}

small,
.small {
  font-size: 14px;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Navigation, buttons and cards are recognisable by shape, not by underline. */
.nav-link,
.brand,
.btn,
.footer-group a,
.offer a,
.badge {
  text-decoration: none;
}

.nav-link:hover,
.brand:hover,
.footer-group a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Never remove an outline without putting a better one back. */
:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -200%;
  left: 20px;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: none;
}

.prose {
  max-width: var(--measure);
}

/* Static prose pages: one readable column, section rhythm built in. */
.page-prose {
  max-width: calc(var(--measure) + 48px);
  margin: 0 auto;
  padding: var(--section-pad) 24px var(--space-8);
}

/* Wide reference pages (decision tables) keep the full container width. */
.page-wide {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-pad) 24px var(--space-8);
}

.page-prose > h1,
.page-wide > h1 {
  margin-bottom: var(--space-5);
}

.prose h2,
.page-prose h2,
.page-wide h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

/* A document heading, not a landing-page headline. */
.page-prose h2,
.page-wide h2 {
  font-size: clamp(24px, 2.6vw, 31px);
}

.prose h3,
.page-prose h3,
.page-wide h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.page-prose > p,
.page-prose > ul,
.page-prose > ol,
.page-wide > p,
.page-wide > ul,
.page-wide > ol {
  margin-bottom: var(--space-4);
}

.prose ul,
.prose ol,
.page-prose > ul,
.page-prose > ol,
.page-wide > ul,
.page-wide > ol {
  padding-left: 1.3rem;
}

.prose li,
.page-prose li,
.page-wide li {
  color: var(--ink-2);
  margin-bottom: var(--space-1);
}

main {
  display: block;
}

main:focus {
  outline: none;
}

/* Wide content scrolls inside its own box, never the page. */
.table-scroll {
  overflow-x: auto;
  margin-bottom: var(--space-4);
  -webkit-overflow-scrolling: touch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.muted {
  color: var(--muted);
}

.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media print {
  html {
    font-size: 12pt;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .skip-link,
  .site-header,
  .site-footer,
  .theme-toggle,
  .menu-toggle {
    /* biome-ignore lint/complexity/noImportantStyles: an accessibility or print override must beat every author rule */
    display: none !important;
  }

  .band,
  .band h1,
  .band h2,
  .band h3,
  .band p,
  .band li,
  .band .eyebrow,
  .band .muted,
  .band .hint {
    /* biome-ignore lint/complexity/noImportantStyles: an accessibility or print override must beat every author rule */
    background: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: an accessibility or print override must beat every author rule */
    color: #000000 !important;
  }

  .band::before {
    display: none;
  }
}

/* Shared chrome and UI components: header, footer, buttons, cards, badges,
 * callouts, form fields, steps, tables, offers, notices.
 */

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 6px 2px;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 0 var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-7) 0 var(--space-8);
  background: var(--surface-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-6);
}

.footer-brand-word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  margin-top: var(--space-3);
  max-width: 34ch;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-group li {
  margin-bottom: var(--space-1);
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 14px;
  max-width: var(--measure);
}

.footer-bottom p + p {
  margin-top: var(--space-2);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--ink);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-full {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- Cards, chips, badges ---------------------------------------------- */
.card {
  scroll-margin-top: 84px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 3.4vw, 30px);
  margin: var(--space-5) 0;
}

.card h2:first-child,
.card h3:first-child {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-s);
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-brand);
  background: var(--brand);
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
}

.chip-active {
  border-color: var(--accent);
  color: var(--accent-text);
}

.stat {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

/* --- Callouts and notices ---------------------------------------------- */
.callout,
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px 18px;
  margin: var(--space-4) 0;
  color: var(--ink-2);
  font-size: 15px;
}

.callout-info {
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

.callout-warn {
  border-left-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber-text);
}

.callout-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.callout-success {
  border-left-color: var(--success);
  background: var(--success-soft);
  color: var(--success-text);
}

/* --- Form fields -------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  max-width: 26rem;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-s);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-glow);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--brand);
  flex-shrink: 0;
  cursor: pointer;
}

label {
  color: var(--ink);
}

fieldset {
  border: none;
  min-width: 0;
}

legend {
  color: var(--ink);
  font-weight: 700;
}

/* Bot trap: off screen, out of the tab order, hidden from assistive tech. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Steps -------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The header is sticky, so anything scrolled to must clear it. */
.step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.step:last-child {
  border-bottom: none;
}

.step-no {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.step-body {
  flex: 1;
  min-width: 0;
}

/* --- Tables ------------------------------------------------------------- */
.table-scroll table {
  min-width: 34rem;
}

th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    margin-left: 0;
    padding: var(--space-4) 24px var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: flex;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* Kybriq product surfaces: hero band, scope wizard, verdict, obligation
 * calendar, gap stage, offers, the self-assessment funnel and prose pages.
 * Every class the renderers emit is styled here (tests/ui-layout.test.ts).
 */

/* --- Hero and bottom CTA bands ----------------------------------------- */
.hero {
  padding: var(--hero-pad) 0 clamp(40px, 6vw, 68px);
}

.hero-inner {
  max-width: 780px;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  margin: var(--space-4) 0 0;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: var(--space-5);
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-rule {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: var(--space-5);
}

.hero-trust {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  max-width: 60ch;
}

.cta-band {
  padding: var(--hero-pad) 0;
  text-align: center;
}

.cta-band h2 {
  max-width: 22ch;
  margin: 0 auto;
}

.cta-band p {
  color: var(--ink-2);
  margin: var(--space-4) auto var(--space-6);
  max-width: 56ch;
}

/* --- Legacy chrome aliases --------------------------------------------- */
/* `.topbar` and `.tag` predate the design system; the header carries both
 * class names so tests/ui-layout.test.ts and old bookmarks keep working.
 */
.topbar {
  display: block;
}

.tag {
  display: none;
}

/* --- Scope wizard ------------------------------------------------------- */
.wizard {
  scroll-margin-top: 84px;
}

.wizard-head {
  margin-bottom: var(--space-4);
}

.step-body > label:first-of-type,
.step-legend {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.step-wide .step-body {
  padding-left: 0;
}

.choice {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.bool {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 14px 6px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 15px;
  cursor: pointer;
}

.bool:hover {
  border-color: var(--ink);
}

.bool:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 600;
}

.step-wide .bool {
  display: flex;
  margin-top: var(--space-2);
}

.size-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  max-width: 40rem;
  margin-top: var(--space-3);
}

.size-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.chip-unknown {
  border-color: var(--amber);
  color: var(--amber-text);
  background: var(--amber-soft);
}

/* --- Verdict ------------------------------------------------------------ */
.result {
  border-top: 4px solid var(--accent);
  scroll-margin-top: 84px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.badge-higher {
  background: var(--danger);
  color: var(--on-brand);
}

.badge-lower {
  background: var(--brand);
  color: var(--on-brand);
}

.badge-out {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.badge-review {
  background: var(--amber);
  color: var(--on-brand);
}

.badge-carveout {
  background: var(--success);
  color: var(--on-brand);
}

.reasons,
.next,
.incident-ref,
.gap-list {
  padding-left: 1.3rem;
  margin: var(--space-4) 0;
}

.reasons li,
.next li,
.incident-ref li,
.gap-list li {
  color: var(--ink-2);
  margin-bottom: var(--space-2);
}

.penalty {
  background: var(--amber-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: var(--space-4) 0;
}

.penalty p {
  color: var(--amber-text);
  font-size: 15px;
}

.penalty p + p {
  margin-top: var(--space-2);
}

.warning {
  color: var(--amber-text);
  font-size: 15px;
  margin: var(--space-2) 0;
}

.missing {
  background: var(--amber-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: var(--space-4) 0;
  color: var(--amber-text);
}

.missing.muted {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}

.result.error {
  border-top-color: var(--danger);
  border-left: 4px solid var(--danger);
}

.permalink-box {
  margin-top: var(--space-5);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.permalink-box summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
}

.permalink-box code {
  display: block;
  overflow-wrap: anywhere;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: var(--space-2);
}

/* --- Obligation calendar ----------------------------------------------- */
.timeline .date {
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
}

.timeline tr.practice td {
  color: var(--muted);
}

.incident-ref li strong {
  color: var(--ink);
}

/* --- Delivery actions --------------------------------------------------- */
.delivery {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin: var(--space-4) 0;
}

.delivery button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.delivery button:hover {
  border-color: var(--ink);
}

.delivery button.linklike {
  border-color: transparent;
  background: none;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 8px;
  padding-right: 8px;
}

#print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.checkout-notice {
  margin: 0;
  padding: 14px 24px;
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}

/* --- Gap stage ---------------------------------------------------------- */
.gap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}

.gap-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
  color: var(--ink-2);
}

.gap-item select {
  max-width: none;
}

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.offers .offer {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--accent);
}

.offer h3 {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.offer p {
  font-size: 15px;
}

.offer .btn {
  margin-top: auto;
  align-self: flex-start;
}

.price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: var(--space-3) 0 var(--space-4);
}

.gate-honesty {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 14px;
  margin: var(--space-5) 0;
}

/* --- Self-assessment funnel (hodnoceni.html) ---------------------------- */
.identity,
.domain-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 3.4vw, 30px);
  margin: var(--space-5) 0;
}

.identity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--space-4) var(--space-5);
}

.identity h2,
.domain-group h2 {
  font-size: 22px;
  margin: 0 0 var(--space-2);
}

.identity h2,
.identity .consent,
.identity .hp-field {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
  color: var(--ink-2);
}

.field input,
.field select {
  max-width: none;
}

.field.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.55;
}

.field.consent input {
  margin-top: 4px;
}

.consent-copy {
  flex: 1;
}

.question {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: var(--space-4) 0;
}

.question legend {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: var(--space-2);
}

.answer-options {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.answer-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 14px 6px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 15px;
  cursor: pointer;
}

.answer-option:hover {
  border-color: var(--ink);
}

.answer-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 600;
}

.disclaimer {
  max-width: var(--measure);
  margin: var(--space-5) 0;
}

.score-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.domain-scores {
  margin: var(--space-4) 0;
}

.domain-scores td:last-child {
  white-space: nowrap;
  font-family: var(--font-mono);
  color: var(--ink);
}

.next-steps {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-nav,
  .topbar nav,
  #print-btn,
  .delivery,
  .permalink-box,
  .header-actions,
  .cta-band {
    /* biome-ignore lint/complexity/noImportantStyles: an accessibility or print override must beat every author rule */
    display: none !important;
  }

  .card,
  .identity,
  .domain-group,
  .offers .offer {
    break-inside: avoid;
    border: none;
    box-shadow: none;
    padding: 8px 0;
  }
}
