/* =========================================================================
   BarrierZero — website styles
   Hand-written, no framework. Tokens first, then layout, then components.
   Target: WCAG 2.2 AA. Body text ≥ 4.5:1, UI ≥ 3:1, targets ≥ 44px.
   ========================================================================= */

:root {
  /* Brand */
  --ink: #0b2b24;
  --ink-2: #123a31;
  --brand: #0b6b4f;
  --brand-hover: #095641;
  --lime: #c8f76b;
  --lime-deep: #a9e13f;

  /* Neutrals */
  --bg: #ffffff;
  --bg-muted: #f4f7f5;
  --bg-sunk: #eaf0ec;
  --border: #dbe4df;
  --border-strong: #b9c8c1;

  /* Text */
  --fg: #0f2620;
  --fg-muted: #4a5c56;
  --fg-on-dark: #eef5f1;
  --fg-on-dark-muted: #b6cdc3;

  /* Status */
  --critical: #b3261e;
  --serious: #a2540b;
  --moderate: #7a5b00;

  /* Shape & motion */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(11, 43, 36, .06), 0 12px 32px -12px rgba(11, 43, 36, .18);
  --shadow-lg: 0 2px 4px rgba(11, 43, 36, .05), 0 32px 64px -24px rgba(11, 43, 36, .28);
  --tap: 44px;
  --shell: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

/* ----------------------------------------------------------------- reset */

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--brand-hover); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.list-reset { list-style: none; margin: 0; padding: 0; }

code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-sunk); padding: .1em .35em; border-radius: 5px; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
.section--dark :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

::selection { background: var(--lime); color: var(--ink); }

main:focus { outline: none; }

/* --------------------------------------------------------------- helpers */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: 1rem; top: -100%;
  z-index: 100;
  background: var(--ink); color: #fff;
  padding: .85rem 1.25rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1.1em; height: 1.1em; }

.linklike {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
  text-underline-offset: .18em;
}

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

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .4rem .85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-muted);
  font-size: .875rem; font-weight: 600; letter-spacing: .01em;
  color: var(--fg-muted);
}

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
}
.section--dark .eyebrow { color: var(--lime); }

.note { font-size: .9375rem; color: var(--fg-muted); }
.note--center { text-align: center; margin-top: 2rem; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .75rem 1.375rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); color: #fff; }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--bg-muted); color: var(--ink); border-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--fg); padding-inline: .875rem; }
.btn--ghost:hover { background: var(--bg-muted); color: var(--fg); }

.btn--invert { background: var(--lime); color: var(--ink); }
.btn--invert:hover { background: var(--lime-deep); color: var(--ink); }

.btn--ghost-invert { background: transparent; color: var(--fg-on-dark); border-color: rgba(255,255,255,.4); }
.btn--ghost-invert:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.btn--lg { min-height: 52px; padding: .9rem 1.75rem; font-size: 1.0625rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 32px;
  font-weight: 650; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform .18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }

.site-header__brand { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.1875rem; letter-spacing: -.03em; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; color: var(--ink); }
.logo__zero { color: var(--brand); }
.logo--inverse, .logo--inverse .logo__mark { color: #fff; --logo-tick: #0b2b24; }
.logo--inverse .logo__zero { color: var(--lime); }

.nav__toggle {
  display: none;
  align-items: center; gap: .5rem;
  margin-left: auto;
  min-height: var(--tap); padding: .5rem .875rem;
  background: transparent; border: 1px solid var(--border-strong); border-radius: 999px;
  font: inherit; font-weight: 600; color: var(--fg); cursor: pointer;
}
.nav__toggle-bars { display: grid; gap: 4px; }
.nav__toggle-bars span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--fg); font-weight: 550; text-decoration: none;
}
.nav__link:hover { background: var(--bg-muted); color: var(--fg); }
.nav__link.is-current { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__lang {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: var(--tap); padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--fg-muted); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.nav__lang:hover { background: var(--bg-muted); color: var(--fg); }

@media (max-width: 62rem) {
  .nav__toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 72px 0 auto;
    display: none;
    flex-direction: column; align-items: stretch; gap: .5rem;
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding-block: .75rem; }
  .nav__actions { flex-wrap: wrap; padding-top: .5rem; border-top: 1px solid var(--border); }
  .nav__actions .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------- hero */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); background: linear-gradient(180deg, var(--bg-muted), var(--bg)); }
.hero__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 60rem) { .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

.hero--simple .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero--simple .hero__copy { max-width: 54rem; }
.hero--simple .hero__title { max-width: 24ch; }
.hero--simple .hero__intro { max-width: 58ch; }

.hero__title { font-size: clamp(2.25rem, 5.2vw, 3.75rem); letter-spacing: -.035em; margin-bottom: .4em; }
.hero__intro { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--fg-muted); max-width: 40ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__note { margin-top: 1rem; font-size: .9375rem; color: var(--fg-muted); }
.hero__trust { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .625rem; }
.hero__trust li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9375rem; color: var(--fg-muted); }
.hero__trust .icon { color: var(--brand); margin-top: .15em; }

/* -------------------------------------------------------- product preview */

.preview {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.preview__chrome {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem;
  background: var(--bg-muted); border-bottom: 1px solid var(--border);
}
.preview__chrome > span:not(.preview__url) { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.preview__url { margin-left: .75rem; font-size: .75rem; color: var(--fg-muted); font-family: var(--font-mono); }

.preview__body { padding: 1.5rem; display: grid; gap: 1.25rem; }
.preview__score { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.ring {
  --value: 82;
  position: relative;
  width: 108px; height: 108px; flex: none;
  display: grid; place-content: center; text-align: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--brand) calc(var(--value) * 1%), var(--bg-sunk) 0);
}
.ring::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg);
}
.ring__value { position: relative; z-index: 1; font-size: 2rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.preview__gauge { display: grid; justify-items: center; gap: .5rem; flex: none; }
.ring__label { margin: 0; max-width: 9rem; text-align: center; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); }

.preview__deltas { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; flex: 1 1 180px; }
.preview__deltas li { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; border-bottom: 1px dashed var(--border); padding-bottom: .4rem; }
.preview__delta-label { color: var(--fg-muted); }
.preview__delta-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.preview__delta-value.up { color: var(--brand); }
.preview__delta-value.down { color: var(--fg); }

.preview__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.preview__row {
  display: grid; grid-template-columns: auto 1fr; gap: .5rem .75rem; align-items: start;
  padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-muted);
  font-size: .875rem;
}
.preview__row-meta { grid-column: 2; font-size: .75rem; color: var(--fg-muted); }
.preview__foot { font-size: .8125rem; color: var(--fg-muted); margin: 0; }
.preview__caption { padding: .75rem 1.5rem 1.25rem; font-size: .75rem; color: var(--fg-muted); }

.tag {
  display: inline-block; padding: .1rem .5rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid currentColor;
}
.tag--critical, .tag--kritisch { color: var(--critical); }
.tag--serious, .tag--schwer { color: var(--serious); }
.tag--moderate, .tag--mittel { color: var(--moderate); }

/* --------------------------------------------------------------- sections */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--muted { background: var(--bg-muted); }
.section--tight { padding-top: clamp(2rem, 4vw, 3rem); }
.section--tall { padding-block: clamp(4rem, 12vw, 8rem); }
.section--dark { background: var(--ink); color: var(--fg-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head__intro { color: var(--fg-on-dark-muted); }

.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__title { font-size: clamp(1.75rem, 3.4vw, 2.625rem); margin-bottom: .35em; }
.section-head__intro { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--fg-muted); margin: 0; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
}
.split .section-head { margin-bottom: 1.5rem; }
.split__aside { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.section--muted .split__aside { background: var(--bg); }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex; flex-direction: column; gap: .625rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg);
}
.card__icon {
  display: inline-grid; place-content: center;
  width: 44px; height: 44px; margin-bottom: .25rem;
  border-radius: 12px; background: var(--bg-sunk); color: var(--brand);
}
.card__title { font-size: 1.125rem; margin: 0; }
.card__text { margin: 0; color: var(--fg-muted); font-size: .9375rem; }
.card__text a { color: var(--brand); }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { display: grid; gap: .75rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-muted); border: 1px solid var(--border); }
.section--muted .step { background: var(--bg); }
.step__num {
  display: grid; place-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .9375rem;
}
.step__title { font-size: 1.0625rem; margin: 0 0 .25rem; }
.step__text { margin: 0; font-size: .9375rem; color: var(--fg-muted); }

/* ------------------------------------------------------------------ stats */

.stats { display: grid; gap: 1.5rem; margin: 0 0 clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 60rem) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { border-top: 2px solid rgba(255,255,255,.25); padding-top: 1rem; }
.stat__value { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 750; letter-spacing: -.035em; color: var(--lime); }
.stat__label { order: 2; font-size: .875rem; color: var(--fg-on-dark-muted); }
.stat { display: flex; flex-direction: column-reverse; gap: .25rem; }

.quote { margin: 0; max-width: 46rem; }
.quote blockquote { margin: 0; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.45; }
.quote figcaption { margin-top: 1rem; font-weight: 650; color: #fff; }
.quote__role { display: block; font-weight: 400; font-size: .9375rem; color: var(--fg-on-dark-muted); }

/* ----------------------------------------------------------------- checks */

.checks { display: grid; gap: .875rem; }
@media (min-width: 48rem) { .checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks li { display: flex; align-items: flex-start; gap: .65rem; font-size: .9375rem; }
.checks .icon { color: var(--brand); margin-top: .25em; }
.section--dark .checks .icon { color: var(--lime); }

.chips { display: flex; flex-wrap: wrap; gap: .625rem; justify-content: center; }
.chip {
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); color: var(--fg-on-dark);
  font-size: .9375rem; font-weight: 550;
}

/* -------------------------------------------------------------------- faq */

.faq { max-width: 52rem; margin-inline: auto; }
.faq .section-head__title { text-align: center; margin-bottom: 2rem; }
.faq__list { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--tap); padding: 1rem 1.25rem;
  font-weight: 650; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: none;
  width: .65em; height: .65em;
  border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg) translateY(-.15em);
  transition: transform .2s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translateY(-.15em); }
.faq__q:hover { color: var(--brand); }
.faq__a { padding: 0 1.25rem 1.25rem; color: var(--fg-muted); font-size: .9375rem; }
.faq__a p:not(:last-child) { margin-bottom: .75em; }

/* ------------------------------------------------------------------ table */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 34rem; }
.table caption { text-align: left; padding: 1rem 1.25rem; font-weight: 650; border-bottom: 1px solid var(--border); }
.table th, .table td { padding: .875rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--bg-muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); }
.table tbody th { font-weight: 650; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ plans */

.plans { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 56rem) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  display: flex; flex-direction: column; gap: .75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg);
}
.plan--featured { border-color: var(--ink); border-width: 2px; box-shadow: var(--shadow); }
.plan__badge {
  align-self: flex-start; margin: 0;
  padding: .25rem .75rem; border-radius: 999px;
  background: var(--lime); color: var(--ink);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.plan__name { font-size: 1.25rem; margin: 0; }
.plan__price { margin: 0; }
.plan__amount { font-size: clamp(1.875rem, 3.5vw, 2.375rem); font-weight: 750; letter-spacing: -.04em; }
.plan__period { color: var(--fg-muted); font-size: .9375rem; }
.plan__for { margin: 0 0 .5rem; color: var(--fg-muted); font-size: .9375rem; }
.plan .btn { width: 100%; }
.plan__features { display: grid; gap: .625rem; margin-top: .5rem; font-size: .9375rem; }
.plan__features li { display: flex; align-items: flex-start; gap: .6rem; }
.plan__features .icon { color: var(--brand); margin-top: .25em; }

/* -------------------------------------------------------------------- cta */

.cta { background: var(--ink); color: var(--fg-on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .cta__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.cta__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); color: #fff; margin-bottom: .35em; }
.cta__text { color: var(--fg-on-dark-muted); margin: 0; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
@media (min-width: 60rem) { .cta__actions { justify-content: flex-end; } }
.cta__note { flex-basis: 100%; margin: 0; font-size: .875rem; color: var(--fg-on-dark-muted); }
@media (min-width: 60rem) { .cta__note { text-align: right; } }

.panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-muted); text-align: center;
  max-width: 48rem; margin-inline: auto;
}
.panel .section-head__intro { margin-bottom: 1.5rem; }

/* ----------------------------------------------------------- lead / forms */

.lead { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: linear-gradient(180deg, var(--bg-muted), var(--bg)); }
.lead__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 62rem) { .lead__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); } }
.lead__copy .hero__title { font-size: clamp(2rem, 4.4vw, 3rem); }
.lead__form {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: var(--shadow);
}
.form__title { font-size: 1.375rem; margin-bottom: .25rem; }
.form__intro { color: var(--fg-muted); font-size: .9375rem; margin-bottom: 1.5rem; }

.form__grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .375rem; }
.label { font-weight: 650; font-size: .9375rem; }
.optional { font-weight: 400; color: var(--fg-muted); }
.req { color: var(--critical); }
.hint { margin: 0; font-size: .8125rem; color: var(--fg-muted); }

.input {
  width: 100%; min-height: var(--tap);
  padding: .7rem .875rem;
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.input:hover { border-color: var(--fg-muted); }
.input:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
textarea.input { min-height: 7rem; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%), linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }

.input[aria-invalid="true"] { border-color: var(--critical); border-width: 2px; }
.field__error { margin: 0; font-size: .875rem; font-weight: 600; color: var(--critical); }

.field--consent { margin-top: 1.25rem; }
.checkbox { display: flex; align-items: flex-start; gap: .65rem; font-size: .875rem; color: var(--fg-muted); cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { width: 100%; margin-top: 1.5rem; }
.form__note { margin-top: 1rem; font-size: .8125rem; color: var(--fg-muted); }

.form__error-summary {
  margin-bottom: 1.5rem; padding: 1rem 1.25rem;
  border: 2px solid var(--critical); border-radius: var(--radius-sm);
  background: #fdf3f2;
}
.form__error-summary h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--critical); }
.form__error-summary ul { margin: 0; padding-left: 1.25rem; font-size: .9375rem; }
.form__error-summary a { color: var(--critical); }

.form__status:not(:empty) {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  border-radius: var(--radius-sm); font-size: .9375rem;
  border: 2px solid var(--brand); background: #eefaf4;
}
.form__status.is-error { border-color: var(--critical); background: #fdf3f2; }
.form__status strong { display: block; }

/* ------------------------------------------------------------- prose /doc */

.doc { max-width: 46rem; margin-inline: auto; }
.prose { font-size: 1.0625rem; }
.prose__head h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.prose__meta { font-size: .875rem; color: var(--fg-muted); }
.prose__intro { font-size: 1.125rem; color: var(--fg-muted); }
.prose section { margin-top: 2.5rem; }
.prose h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose .table-wrap { margin: 1.5rem 0; }
.prose .table { min-width: 30rem; }

.toc {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius);
}
.toc__title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); margin-bottom: .75rem; }
.toc ol { margin: 0; padding-left: 1.25em; font-size: .9375rem; }
.toc li { margin-bottom: .35em; }

/* --------------------------------------------------------------- notfound */

.notfound { max-width: 40rem; margin-inline: auto; text-align: center; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: var(--fg-on-dark-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .9375rem; }
.site-footer a { color: var(--fg-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer__top { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.footer__pitch { margin: 1rem 0; max-width: 32ch; }
.footer__contact { margin: 0; }

.footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer__heading { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .75rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer__list a { display: inline-flex; align-items: center; min-height: 36px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .875rem;
}
.footer__bottom p { margin: 0; }
.footer__meta { display: flex; align-items: center; gap: .75rem; }
.footer__meta .linklike { min-height: var(--tap); display: inline-flex; align-items: center; color: var(--fg-on-dark); }

/* ---------------------------------------------------------------- consent */

.consent {
  position: fixed; inset: auto 0 0; z-index: 60;
  padding: 1rem;
  display: flex; justify-content: center;
}
.consent[hidden] { display: none; }
.consent__panel {
  width: 100%; max-width: 34rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.consent__title { font-size: 1.125rem; margin-bottom: .5rem; }
.consent__text { font-size: .9375rem; color: var(--fg-muted); margin-bottom: 1.25rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent__actions .btn { flex: 1 1 10rem; }
.consent__links { margin: 1rem 0 0; font-size: .8125rem; color: var(--fg-muted); }

/* --------------------------------------------------------- print & motion */

@media print {
  .site-header, .site-footer, .consent, .cta, .skip-link { display: none !important; }
  body { font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

@media (prefers-contrast: more) {
  :root { --border: #6b7c76; --border-strong: #38504a; --fg-muted: #33443f; }
}
