/* ABOUTME: Styles for the Kansa "Clarity" landing variant — Swiss minimal, near-monochrome, 12-col grid.
   ABOUTME: Restraint is the signature: hairline dividers, baseline rhythm, orange used very sparingly. */

/* ============ TOKENS ============ */
:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --bg-soft: #f4f3f1;
  --surface: #ffffff;

  /* ink */
  --ink: #14161b;
  --ink-2: #585b64;
  --ink-3: #6b6e77;

  /* accent — used VERY sparingly */
  --accent: #ff6500;
  /* readable orange for small text / button fill on light surfaces (WCAG AA) */
  --accent-ink: #b84800;
  --accent-fill: #c24a00;

  /* status */
  --success: #10b981;
  --warning: #e5a000;
  --error: #f31700;

  /* lines */
  --rule: #e6e4e1;
  --rule-strong: #d4d1cc;
  --hairline: rgba(20, 22, 27, 0.08);

  /* type */
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* modular scale (1.25) */
  --t-micro: 0.75rem;
  --t-small: 0.875rem;
  --t-body: 1rem;
  --t-lead: 1.1875rem;
  --t-h3: clamp(1.0625rem, 1.4vw, 1.25rem);
  --t-h2: clamp(1.75rem, 3.2vw, 2.625rem);
  --t-h1: clamp(2.3rem, 4.4vw, 3.4rem);

  /* layout */
  --shell-max: 1200px;
  --shell-pad: clamp(1.25rem, 4vw, 3rem);
  --gutter: clamp(1.25rem, 2.4vw, 2rem);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;

  /* rhythm */
  --section-y: clamp(5rem, 9vw, 8.5rem);
}

/* ============ 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; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv05";
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* ============ A11Y ============ */
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-size: var(--t-small); transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============ LAYOUT PRIMITIVES ============ */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section-lead { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-title { font-size: var(--t-h2); line-height: 1.08; color: var(--ink); }
.section-sub {
  margin-top: 1.25rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1;
  padding: 0.875rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  min-height: 44px;
}
.btn-sm { padding: 0.625rem 1.1rem; min-height: 40px; }

.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { background: #a84200; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-alt); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: var(--header-h);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.wordmark-mark {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.primary-nav { margin-right: auto; }
.nav-list { display: flex; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-list a {
  font-size: var(--t-small);
  color: var(--ink-2);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.16s ease;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.2s ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.link-login { font-size: var(--t-small); color: var(--ink); transition: color 0.16s ease; }
.link-login:hover { color: var(--accent-ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle-bar { width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.22s ease, opacity 0.22s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav { border-bottom: 1px solid var(--rule); background: var(--surface); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { padding: 0.5rem var(--shell-pad) 0; }
.mobile-nav li { border-top: 1px solid var(--rule); }
.mobile-nav li:first-child { border-top: none; }
.mobile-nav a { display: block; padding: 0.95rem 0; font-size: 1.05rem; color: var(--ink); }
.mobile-nav-actions {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1rem var(--shell-pad) 1.5rem;
  border-top: 1px solid var(--rule);
}
.mobile-nav-actions .link-login { padding: 0.5rem 0; }
.mobile-nav-actions .btn { width: 100%; }

/* ============ HERO ============ */
.hero {
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center;
  min-height: calc(100dvh - var(--header-h));
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero-copy { max-width: 38rem; }
.hero-title {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
/* the controlled break keeps the headline to two lines on desktop */
.hero-title br { display: none; }
@media (min-width: 769px) {
  .hero-title br { display: inline; }
}
.accent-word {
  position: relative;
  white-space: nowrap;
}
.accent-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em;
  height: 0.09em; background: var(--accent);
}
.hero-sub {
  margin-top: 1.6rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.trust-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.trust-chips li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-chips li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
}

/* ============ PRODUCT PREVIEW ============ */
.hero-preview { justify-self: end; width: 100%; max-width: 30rem; }
.panel {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 1px 0 rgba(20,22,27,0.02);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.panel-meta { display: flex; align-items: center; gap: 0.75rem; }
.panel-tag {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.panel-fw {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--ink);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
}
.panel-progress {
  display: inline-block; width: 64px; height: 4px; border-radius: 999px;
  background: var(--bg-soft); overflow: hidden;
}
.panel-progress-fill {
  display: block; height: 100%; width: 68%;
  background: var(--ink); border-radius: 999px;
}

.panel-req { padding: 1.1rem 0 0.25rem; }
.panel-req-id {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--accent-ink);
}
.panel-req-text {
  margin-top: 0.4rem;
  font-size: 0.9375rem; line-height: 1.45; color: var(--ink); font-weight: 450;
}

.panel-evidence {
  margin-top: 1rem;
  padding: 0.9rem 0.95rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.evidence-label {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.evidence-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  margin-top: 0.45rem;
}
.evidence-doc { font-size: 0.8125rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.evidence-loc { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-2); flex: none; }
.evidence-quote {
  margin-top: 0.5rem;
  font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2);
  font-style: italic;
}

.verdict-list { margin-top: 1.1rem; display: grid; gap: 0; }
.verdict {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.verdict:first-child { border-top: none; }
.verdict-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.verdict-name { font-size: 0.8125rem; color: var(--ink); }
.verdict-state {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem; border-radius: 5px;
}
.verdict-ok .verdict-dot { background: var(--success); }
.verdict-ok .verdict-state { color: #047857; background: rgba(16,185,129,0.12); }
.verdict-warn .verdict-dot { background: var(--warning); }
.verdict-warn .verdict-state { color: #8a5e00; background: rgba(229,160,0,0.14); }
.verdict-err .verdict-dot { background: var(--error); }
.verdict-err .verdict-state { color: #c01200; background: rgba(243,23,0,0.10); }

/* ============ FRAMEWORK STRIP ============ */
.strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2rem, 3.5vw, 3rem);
  overflow: hidden;
}
.strip-label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.strip-track {
  display: flex; flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
}
.strip-track li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
}

/* ============ PILLARS ============ */
.pillars-lead { max-width: 50rem; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
}
.pillar {
  padding: 2.25rem 1.75rem 2.25rem 0;
  border-top: 2px solid transparent;
  margin-top: -1px;
  border-right: 1px solid var(--rule);
  padding-left: 1.75rem;
  transition: border-color 0.2s ease;
}
.pillars-grid .pillar:first-child { padding-left: 0; }
.pillars-grid .pillar:last-child { border-right: none; padding-right: 0; }
.pillar:hover { border-top-color: var(--accent); }
.pillar h3 {
  font-size: var(--t-h3); color: var(--ink); margin-bottom: 0.75rem;
  padding-top: 0.5rem;
}
.pillar h3::before {
  content: ""; display: block; width: 22px; height: 2px;
  background: var(--accent); margin-bottom: 1.1rem;
}
.pillar p { font-size: var(--t-body); color: var(--ink-2); line-height: 1.55; }

/* ============ HOW IT WORKS ============ */
.how { background: var(--bg-alt); border-block: 1px solid var(--rule); }
.how-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.how-lead { position: sticky; top: calc(var(--header-h) + 2rem); }
.how-lead .section-title { font-size: var(--t-h2); }
.how-lead .section-sub { margin-top: 1.25rem; }
.how-steps { border-top: 1px solid var(--rule-strong); }
.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.how-n {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding-top: 0.15rem;
}
.how-body h3 { font-size: var(--t-h3); color: var(--ink); margin-bottom: 0.55rem; }
.how-body p { font-size: var(--t-body); color: var(--ink-2); line-height: 1.55; max-width: 34rem; }

/* ============ CAPABILITIES ============ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}
.cap {
  padding: 2.25rem 2.25rem 2.5rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background-color 0.2s ease;
}
.cap:hover { background: var(--bg-alt); }
.cap-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  display: block; margin-bottom: 1.5rem;
}
.cap h3 { font-size: var(--t-h3); color: var(--ink); margin-bottom: 0.7rem; }
.cap p { font-size: var(--t-body); color: var(--ink-2); line-height: 1.55; max-width: 30rem; }

/* ============ IMPACT ============ */
.impact { background: var(--bg-soft); border-block: 1px solid var(--rule); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
}
.stat {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--rule);
  margin: 0;
}
.stats-row .stat:last-child { border-right: none; }
.stats-row .stat:not(:first-child) { padding-left: 1.5rem; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  display: flex; align-items: baseline; gap: 0.05em;
}
.stat-suffix { color: var(--accent-ink); font-size: 0.7em; }
.stat-label { margin-top: 0.85rem; font-size: var(--t-small); color: var(--ink-2); line-height: 1.4; }

.reasons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.reason {
  padding: 0 1.25rem 0 0;
  border-right: 1px solid var(--rule);
}
.reason:last-child { border-right: none; padding-right: 0; }
.reason h3 { font-size: var(--t-body); color: var(--ink); margin-bottom: 0.4rem; }
.reason p { font-size: var(--t-small); color: var(--ink-2); line-height: 1.45; }

/* ============ COVERAGE ============ */
.coverage-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.coverage-lead { max-width: 26rem; }
.coverage-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule-strong);
  padding-top: 2rem;
}
.cov-group-title {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  padding-bottom: 0.9rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.cov-list li {
  font-size: 0.9375rem;
  color: var(--ink-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.35;
}
.cov-list li:last-child { border-bottom: none; }
.coverage-note {
  grid-column: 1 / -1;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--ink-3);
}

/* ============ SECURITY ============ */
.security { background: var(--bg-alt); border-block: 1px solid var(--rule); }
.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.security-lead { position: sticky; top: calc(var(--header-h) + 2rem); max-width: 26rem; }
.security-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.75rem;
}
.security-badges li {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink);
  padding: 0.4rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
}
.security-tagline {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: var(--t-body);
  font-style: italic;
  color: var(--ink-2);
}
.security-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  border-top: 1px solid var(--rule-strong);
}
.sec-point {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.sec-point h3 { font-size: var(--t-body); color: var(--ink); margin-bottom: 0.5rem; }
.sec-point h3::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); margin-right: 0.6rem; vertical-align: middle;
}
.sec-point p { font-size: var(--t-small); color: var(--ink-2); line-height: 1.5; }

/* ============ DIFFERENTIATOR (MATRIX) ============ */
.matrix {
  border-top: 2px solid var(--ink);
}
.matrix-row {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr 1.2fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.matrix-cell {
  padding: 1.15rem 1.25rem 1.15rem 0;
  font-size: var(--t-small);
  color: var(--ink-2);
  line-height: 1.45;
  display: flex; align-items: center;
}
.matrix-dim {
  font-weight: 600;
  color: var(--ink);
  padding-left: 0;
}
.matrix-head .matrix-cell {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-block: 0.9rem;
}
.matrix-kansa { color: var(--ink); font-weight: 450; }
.matrix-head .matrix-kansa {
  color: var(--accent-ink);
  font-weight: 500;
}
.matrix-row .matrix-kansa {
  position: relative;
  background: rgba(255,101,0,0.05);
  padding-left: 1rem;
}
.matrix-head .matrix-kansa { padding-left: 1rem; }
.matrix-row .matrix-cell:not(.matrix-dim):not(.matrix-kansa) { padding-left: 1.25rem; }
.matrix-head .matrix-cell:not(.matrix-dim):not(.matrix-kansa) { padding-left: 1.25rem; }

/* ============ INDUSTRIES ============ */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}
.ind {
  padding: 2rem 2.25rem 2.25rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.ind h3 { font-size: var(--t-h3); color: var(--ink); margin-bottom: 0.65rem; }
.ind p { font-size: var(--t-body); color: var(--ink-2); line-height: 1.5; max-width: 28rem; }
.ind-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.ind-tags li {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.03em;
  color: var(--ink-2);
  padding: 0.3rem 0.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(4.5rem, 8vw, 7rem);
}
.cta-inner { max-width: 44rem; }
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: #fff;
}
.cta-sub {
  margin-top: 1.25rem;
  font-size: var(--t-lead);
  color: #c7c8cc;
  line-height: 1.5;
  max-width: 36rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--rule); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.wordmark-footer { font-size: 1rem; }
.footer-tagline {
  margin-top: 1.25rem;
  font-size: var(--t-small);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 22rem;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a {
  font-size: var(--t-small); color: var(--ink-2);
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--accent-ink); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}
.footer-legal { font-size: var(--t-micro); color: var(--ink-3); }
.footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer-legal-links a, .footer-built {
  font-size: var(--t-micro); color: var(--ink-3);
}
.footer-legal-links a { transition: color 0.16s ease; }
.footer-legal-links a:hover { color: var(--ink); }
.footer-built { font-family: var(--font-mono); }

/* ============ REVEAL MOTION ============ */
/* Content is fully visible by default; the hidden start-state is only applied
   when JS is present (html.js), so a failed script never leaves sections blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* stagger inside grids */
.js .pillars-grid .pillar:nth-child(2),
.js .cap-grid .cap:nth-child(2),
.js .ind-grid .ind:nth-child(2) { transition-delay: 0.06s; }
.js .pillars-grid .pillar:nth-child(3),
.js .cap-grid .cap:nth-child(3),
.js .ind-grid .ind:nth-child(3) { transition-delay: 0.12s; }
.js .cap-grid .cap:nth-child(4),
.js .ind-grid .ind:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-list a::after { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .matrix-row { grid-template-columns: 0.9fr 1.4fr 1.2fr 1fr; }
}

@media (max-width: 900px) {
  .how-grid, .security-grid, .coverage-grid { grid-template-columns: 1fr; }
  .how-lead, .security-lead { position: static; }
  .coverage-index { padding-top: 1.5rem; }
  .reasons { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .reason { padding-right: 1.25rem; border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; }
  .reason:nth-child(odd) { padding-left: 0; }
  .reasons .reason:nth-last-child(1) { border-bottom: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .primary-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding-block: 3rem 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-copy { max-width: none; }
  .hero-preview { justify-self: stretch; max-width: none; }

  .pillars-grid { grid-template-columns: 1fr; border-top: none; }
  .pillar {
    padding: 1.75rem 0;
    border-right: none;
    border-top: 1px solid var(--rule);
    border-bottom: none;
  }
  .pillar:hover { border-top-color: var(--accent); }

  .cap-grid { grid-template-columns: 1fr; border-left: none; border-top: none; }
  .cap { border-right: none; padding: 1.85rem 0; }

  .stats-row { grid-template-columns: repeat(2, 1fr); border-bottom: none; }
  .stat {
    padding: 1.5rem 1.25rem 1.5rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .stats-row .stat:nth-child(even) { padding-left: 1.25rem; border-right: none; }
  .stats-row .stat:nth-child(odd) { padding-left: 0; }

  .ind-grid { grid-template-columns: 1fr; border-left: none; border-top: none; }
  .ind { border-right: none; padding: 1.85rem 0; }

  /* matrix becomes stacked cards */
  .matrix { border-top: none; }
  .matrix-row.matrix-head { display: none; }
  .matrix-row {
    display: block;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 1.25rem 1.25rem 0.5rem;
  }
  .matrix-cell {
    display: block;
    padding: 0 0 1rem !important;
    background: none !important;
  }
  .matrix-dim {
    font-size: var(--t-lead);
    color: var(--ink);
    padding-bottom: 1rem !important;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
  }
  .matrix-row .matrix-cell:not(.matrix-dim)::before {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.3rem;
  }
  .matrix-row .matrix-kansa::before { content: "Kansa"; color: var(--accent-ink); }
  .matrix-row .matrix-cell:nth-child(3)::before { content: "Compliance platforms"; }
  .matrix-row .matrix-cell:nth-child(4)::before { content: "LLMs / AI tools"; }
  .matrix-row .matrix-kansa { color: var(--ink); font-weight: 500; }

  .security-points { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stats-row .stat { padding-left: 0 !important; border-right: none; }
  .reasons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
