/* ================================================================
   REMUNDO DESIGN SYSTEM — Figma-Aligned Stylesheet
   Tokens from tokens.json / Figma Variables
   ================================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/inter/Inter-VariableFont_slnt,wght.woff2") format("woff2");
}

@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cardo/cardo_normal_400.woff2") format("woff2");
}

@font-face {
  font-family: "Cardo";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cardo/cardo_italic_400.woff2") format("woff2");
}

@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cardo/cardo_normal_700.woff2") format("woff2");
}

/* ----------------------------------------------------------------
   1. DESIGN TOKENS (Figma Variables)
   ---------------------------------------------------------------- */

:root {
  /* Brand Colors */
  --brand: #0B5D3B;
  --brand-hover: #094E32;
  --brand-active: #073F29;
  --accent: #16A34A;

  /* Status Colors */
  --risk: #EF4444;
  --warning: #F59E0B;
  --success: #16A34A;
  --info: #3B82F6;

  /* Semantic Colors — Dark Mode (default) */
  --bg: #050A08;
  --surface: #0B1210;
  --surface-2: #0F1916;
  --surface-3: #142018;

  --text: #EAF2EE;
  --text-muted: #A6B4AD;
  --border: #1A2A25;
  --border-strong: #2A4038;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-heading: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing — 8pt grid */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Radius — Figma tokens */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows — Figma tokens */
  --sh-sm: 0 1px 2px rgba(2, 12, 8, 0.06);
  --sh-md: 0 8px 24px rgba(2, 12, 8, 0.08);
  --sh-lg: 0 14px 36px rgba(2, 12, 8, 0.10);
  --sh-focus: 0 0 0 4px rgba(11, 93, 59, 0.12);

  /* Dark-mode shadows (stronger for contrast) */
  --sh-sm-d: 0 2px 6px rgba(0, 0, 0, 0.20);
  --sh-md-d: 0 8px 24px rgba(0, 0, 0, 0.28);
  --sh-lg-d: 0 14px 36px rgba(0, 0, 0, 0.36);

  /* Motion — Figma tokens */
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 260ms;
  --dur-reveal: 400ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emph: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layout */
  --container: min(1120px, calc(100% - 2.5rem));

  /* Z-index */
  --z-base: 0;
  --z-header: 20;
  --z-modal: 50;
  --z-toast: 60;
}

/* Light Mode */
[data-theme="light"] {
  --bg: #F7FBF9;
  --surface: #FFFFFF;
  --surface-2: #F0F6F3;
  --surface-3: #E8F0EC;

  --text: #0B1220;
  --text-muted: #5B667A;
  --border: #E6EEF0;
  --border-strong: #C8D6D0;

  --sh-sm-d: var(--sh-sm);
  --sh-md-d: var(--sh-md);
  --sh-lg-d: var(--sh-lg);
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

/* Dark-mode ambient background */
:root:not([data-theme="light"]) body {
  background:
    radial-gradient(48rem 26rem at 10% -2%, rgba(11, 93, 59, 0.15), transparent 70%),
    radial-gradient(40rem 24rem at 92% 6%, rgba(11, 93, 59, 0.08), transparent 72%),
    linear-gradient(rgba(26, 42, 37, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 42, 37, 0.10) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

/* ----------------------------------------------------------------
   3. TYPOGRAPHY — Figma Scale
   ---------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* H1: 56px desktop / 48px mobile (via clamp) */
h1 {
  font-size: clamp(3rem, 4.5vw + 1rem, 3.5rem);
  line-height: 1.08;
}

/* H2: 32px */
h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.25rem, 2rem);
  line-height: 1.15;
}

/* H3: 22px */
h3 {
  font-size: clamp(1.125rem, 1.5vw + 0.25rem, 1.375rem);
  line-height: 1.28;
}

/* Body: 16px */
p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Meta: 12px */
.meta {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard),
    background-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
}

/* ----------------------------------------------------------------
   4. SKIP LINK
   ---------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: var(--z-toast);
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 1rem;
}

/* ----------------------------------------------------------------
   5. LAYOUT
   ---------------------------------------------------------------- */

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ----------------------------------------------------------------
   6. NAVBAR — Figma: Left Logo / Center Nav / Right Lang+CTA
   ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 10, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .site-header {
  background: rgba(247, 251, 249, 0.92);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: auto;
  height: 1.75rem;
  border-radius: 0;
  display: block;
  object-fit: contain;
}

/* Invert logo for dark mode readability */
:root:not([data-theme="light"]) .brand-mark {
  filter: brightness(1.2) contrast(1.05);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-3);
  transition: color var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 3px;
}

.lang-chip {
  min-width: 2.2rem;
  text-align: center;
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}

.lang-chip:hover {
  color: var(--text);
}

.lang-chip.active,
.lang-chip[aria-current="true"] {
  color: #FFFFFF;
  background: var(--brand);
}

/* ----------------------------------------------------------------
   7. BUTTONS — Figma: Primary / Secondary / Ghost
   Height 44, Padding 16/24
   ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary */
.btn.btn-primary {
  color: #FFFFFF;
  background: var(--brand);
  box-shadow: var(--sh-sm-d);
}

.btn.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: var(--sh-md-d);
}

.btn.btn-primary:active {
  background: var(--brand-active);
  box-shadow: var(--sh-sm-d);
}

/* Secondary */
.btn.btn-secondary {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

.btn.btn-secondary:hover {
  border-color: var(--brand);
  background: var(--surface-2);
}

/* Ghost */
.btn.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* Disabled */
button[disabled],
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   8. SECTIONS
   ---------------------------------------------------------------- */

.section {
  padding: clamp(var(--sp-12), 5vw, var(--sp-24)) 0;
}

.section-head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.section-head > p:not(.eyebrow),
.lead,
.tools-intro-note,
.tool-card p,
.tool-panel p,
.tools-summary p,
.cta-band p {
  text-wrap: pretty;
}

.section-head > p:not(.eyebrow) {
  max-width: 62ch;
}

.section-soft {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

/* ----------------------------------------------------------------
   9. HERO — 820px Desktop, 7/5 Column Grid
   ---------------------------------------------------------------- */

.hero {
  padding-top: clamp(var(--sp-12), 6vw, var(--sp-24));
  min-height: min(820px, 80vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-6);
  align-items: start;
}

.hero-grid > *,
.split > *,
.card-grid > * {
  min-width: 0;
}

.hero-copy {
  display: grid;
  gap: var(--sp-6);
  max-width: 44rem;
}

.hero-infra h1 {
  max-width: 16ch;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: var(--sp-2);
  min-height: 1.875rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--sp-1) var(--sp-3);
  line-height: 1;
}

.lead {
  max-width: 62ch;
  font-size: 1.125rem;
  line-height: 1.65;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.actions-tight {
  margin-top: var(--sp-2);
}

/* Stat Grid (KPI) */
.stat-grid {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.stat-grid li {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-1);
}

.stat-grid strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}

.stat-grid span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   10. CARDS — Figma: Radius 18, Border Neutral, Soft Shadow
   ---------------------------------------------------------------- */

.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm-d);
  padding: clamp(var(--sp-4), 2vw, var(--sp-6));
  display: grid;
  gap: var(--sp-3);
  transition: box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--sh-md-d);
}

/* Hero Media — Video Background */
.hero-media {
  position: relative;
  min-height: 29.5rem;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: block;
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 10, 8, 0.7) 0%, rgba(5, 10, 8, 0.15) 40%, rgba(5, 10, 8, 0.5) 100%),
    radial-gradient(18rem 8rem at 75% 75%, rgba(11, 93, 59, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(to top, rgba(247, 251, 249, 0.6) 0%, rgba(247, 251, 249, 0.1) 40%, rgba(247, 251, 249, 0.5) 100%);
}

/* Page Hero Image (for service/subpages) */
.page-hero-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.hero-media img,
.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-media img {
  position: absolute;
  inset: 0;
}

.page-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 10, 8, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="light"] .page-hero-img::after {
  background: linear-gradient(to top, rgba(247, 251, 249, 0.3) 0%, transparent 50%);
}

/* Inline section image */
.section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}

.hero-storyboard {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.hero-storyboard li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  align-items: start;
  gap: var(--sp-2);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
}

:root:not([data-theme="light"]) .hero-storyboard li {
  background: rgba(5, 10, 8, 0.52);
  border-color: rgba(42, 64, 56, 0.5);
}

.hero-storyboard span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-storyboard p {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Problem Panel */
.split-problem {
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: clamp(var(--sp-5), 4vw, var(--sp-10));
  align-items: center;
}

.split-copy {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  max-width: 42rem;
}

.split-copy p:not(.eyebrow) {
  max-width: 60ch;
}

.split-problem .page-hero-img {
  width: 100%;
  max-width: 32rem;
  justify-self: end;
}

.scope-split {
  gap: clamp(var(--sp-4), 3vw, var(--sp-8));
}

.scope-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-color: var(--border-strong);
  background:
    radial-gradient(18rem 10rem at 100% 0%, rgba(11, 93, 59, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(15, 25, 22, 0.96), rgba(9, 16, 14, 1));
}

.scope-card-media {
  position: relative;
  min-height: 12rem;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(20, 38, 31, 0.96), rgba(10, 19, 16, 0.98)),
    var(--surface-2);
}

.scope-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 10, 8, 0.78), rgba(5, 10, 8, 0.08) 58%),
    radial-gradient(16rem 8rem at 100% 0%, rgba(34, 197, 94, 0.18), transparent 72%);
  pointer-events: none;
}

.scope-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scope-card-pv .scope-card-video {
  object-position: center 58%;
}

.scope-card-bess .scope-card-video {
  object-position: center 42%;
}

.scope-card-badge,
.scope-card-meta {
  position: absolute;
  z-index: 1;
  margin: 0;
}

.scope-card-badge {
  top: var(--sp-4);
  left: var(--sp-4);
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(9, 19, 16, 0.82);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.scope-card-meta {
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(241, 245, 243, 0.92);
}

.scope-card-body {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  padding: clamp(var(--sp-5), 2vw, var(--sp-8));
}

.scope-card-intro {
  display: grid;
  gap: var(--sp-3);
}

.scope-card-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.scope-card h2 {
  max-width: 14ch;
  font-size: clamp(1.45rem, 0.85vw + 1.05rem, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.scope-card .notice {
  max-width: 54ch;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(15, 28, 24, 0.72);
}

.scope-card .feature-list {
  font-size: 0.95rem;
  line-height: 1.72;
}

.problem-panel {
  position: relative;
  min-height: 16rem;
  border-color: var(--border-strong);
  overflow: hidden;
  background:
    radial-gradient(14rem 8rem at 65% 22%, rgba(166, 180, 173, 0.12), transparent 70%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}

.problem-panel::before {
  content: "";
  position: absolute;
  inset: -4% -2%;
  background:
    radial-gradient(16rem 9rem at 18% 80%, rgba(166, 180, 173, 0.10), transparent 70%),
    repeating-linear-gradient(120deg, transparent, transparent 16px, rgba(166, 180, 173, 0.08) 17px, transparent 20px);
  filter: blur(1.4px);
}

.problem-panel .notice {
  position: relative;
  z-index: 1;
  max-width: 38ch;
  color: var(--text-muted);
}

.risk-marker {
  position: absolute;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.risk-a { top: 26%; left: 24%; }
.risk-b { top: 55%; right: 19%; }
.risk-c { bottom: 17%; left: 58%; }

/* Solution Card */
.solution-card {
  align-content: start;
}

.icon-shell {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
}

.icon-shell svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  width: fit-content;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--dur-base) var(--ease-standard);
}

.text-link:hover {
  color: var(--brand);
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: var(--sp-6);
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Trust Card */
.trust-grid {
  margin-top: var(--sp-2);
}

.trust-card {
  position: relative;
  overflow: hidden;
  min-height: 10.5rem;
}

.trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(12rem 6rem at 80% 18%, rgba(11, 93, 59, 0.10), transparent 72%),
    repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(11, 93, 59, 0.06) 9px, transparent 10px);
  opacity: 0.7;
  filter: blur(0.5px);
}

.trust-card > * {
  position: relative;
}

/* Funnel Card */
.funnel-card {
  border-color: var(--border-strong);
  background: var(--surface);
}

.routing-shell {
  max-width: 56rem;
  margin-inline: auto;
}

/* ----------------------------------------------------------------
   11. TIMELINE — Horizontal Desktop, Vertical Mobile
   ---------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.timeline li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-1);
  transition:
    border-color var(--dur-slow) var(--ease-standard),
    box-shadow var(--dur-slow) var(--ease-standard);
}

.timeline strong {
  color: var(--text);
  font-size: 0.875rem;
}

.timeline span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.timeline-track {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  padding-top: 1.45rem;
}

.timeline-track::before,
.timeline-track::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  top: 0.42rem;
  transform-origin: left center;
}

.timeline-track::before {
  background: var(--border-strong);
}

.timeline-track::after {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transition: transform 2s var(--ease-standard);
}

.timeline-track.is-active::after {
  transform: scaleX(1);
}

.timeline-track li {
  position: relative;
  min-height: 7.5rem;
  transition:
    opacity var(--dur-reveal) var(--ease-standard),
    transform var(--dur-reveal) var(--ease-standard),
    border-color var(--dur-reveal) var(--ease-standard);
}

.timeline-track li::before {
  content: "";
  position: absolute;
  top: -1.38rem;
  left: 0.84rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--bg);
  transition: background-color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}

.js .timeline-track li {
  opacity: 0.4;
  transform: translateY(6px);
}

.js .timeline-track li.is-on {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--brand);
}

.js .timeline-track li.is-on::before {
  background: var(--accent);
  border-color: var(--accent);
}

/* ----------------------------------------------------------------
   12. FORMS
   ---------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: var(--sp-2);
}

label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--sh-focus);
}

textarea {
  min-height: 122px;
  resize: vertical;
}

.notice {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.notice code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.form {
  display: grid;
  gap: var(--sp-4);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  min-height: 1.2rem;
  font-size: 0.875rem;
}

.form-feedback.is-success {
  color: var(--success);
}

.form-feedback.is-error {
  color: var(--risk);
}

/* ----------------------------------------------------------------
   13. CTA BAND — Centered Block, Max-Width 560, Subtle Green BG
   ---------------------------------------------------------------- */

.cta-band {
  max-width: 560px;
  margin-inline: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-md-d);
  padding: clamp(var(--sp-6), 3vw, var(--sp-12));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-6);
}

:root:not([data-theme="light"]) .cta-band {
  background:
    radial-gradient(24rem 12rem at 50% 20%, rgba(11, 93, 59, 0.08), transparent 70%),
    var(--surface);
}

.cta-band p {
  max-width: 48ch;
}

.cta-band-wide {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  text-align: left;
  gap: clamp(var(--sp-4), 3vw, var(--sp-8));
}

.cta-band-copy {
  display: grid;
  gap: var(--sp-3);
  max-width: 44rem;
}

.cta-band-wide .btn {
  justify-self: start;
}

/* ----------------------------------------------------------------
   14. PAGE TOP
   ---------------------------------------------------------------- */

.page-top {
  padding-top: clamp(var(--sp-8), 5vw, var(--sp-16));
  padding-bottom: clamp(var(--sp-4), 3vw, var(--sp-8));
}

.page-top .container {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  max-width: 58rem;
}

.page-top h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 3.6vw + 0.9rem, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.tools-intro-section {
  padding-top: clamp(var(--sp-12), 7vw, calc(var(--sp-24) + var(--sp-4)));
  padding-bottom: clamp(var(--sp-8), 4vw, var(--sp-12));
}

.tools-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: clamp(var(--sp-5), 4vw, var(--sp-10));
  align-items: start;
}

.tools-intro {
  max-width: 42rem;
  display: grid;
  gap: var(--sp-5);
}

.tools-intro h1 {
  max-width: 12ch;
}

.tools-intro .lead {
  max-width: 34ch;
  font-size: clamp(1.2rem, 1.1vw + 0.95rem, 1.45rem);
  line-height: 1.55;
}

.tools-intro-note-wrap {
  max-width: 42rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--sp-2);
}

.tools-intro-note-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.tools-intro-note {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.tools-summary {
  position: relative;
  align-self: start;
  padding: clamp(var(--sp-5), 2.2vw, var(--sp-8));
  align-content: start;
  gap: var(--sp-4);
  border-color: var(--border-strong);
  overflow: hidden;
  background:
    radial-gradient(20rem 10rem at 100% 0%, rgba(11, 93, 59, 0.1), transparent 72%),
    linear-gradient(180deg, rgba(15, 25, 22, 0.92), rgba(11, 18, 16, 1));
}

.tools-summary h2 {
  font-size: clamp(1.8rem, 1vw + 1.2rem, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.tools-summary p {
  max-width: 30ch;
  color: var(--text-muted);
}

.tools-summary-visual {
  position: relative;
  margin-top: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid rgba(42, 64, 56, 0.8);
  border-radius: var(--r-lg);
  background:
    radial-gradient(14rem 8rem at 100% 0%, rgba(11, 93, 59, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(8, 15, 13, 0.84), rgba(11, 18, 16, 0.94));
  overflow: hidden;
  display: grid;
  gap: var(--sp-3);
}

.tools-summary-visual::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 55%;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 68%);
  opacity: 0.55;
  animation: summaryGlow 8s ease-in-out infinite;
  pointer-events: none;
}

.summary-flow-line {
  position: absolute;
  left: calc(var(--sp-4) + 0.95rem);
  top: var(--sp-5);
  bottom: var(--sp-5);
  width: 1px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.9), rgba(34, 197, 94, 0.16));
  opacity: 0.8;
}

.summary-flow-line::after {
  content: "";
  position: absolute;
  left: -0.23rem;
  top: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.32rem rgba(34, 197, 94, 0.16);
  animation: summaryTraverse 4.2s ease-in-out infinite;
}

.summary-visual-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-3);
  border: 1px solid rgba(42, 64, 56, 0.72);
  border-radius: var(--r-md);
  background: rgba(8, 15, 13, 0.74);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(10px);
}

.summary-visual-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.9) brightness(0.82);
  transform: scale(1.02);
}

.summary-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 8, 0.92) 0%, rgba(4, 10, 8, 0.82) 42%, rgba(4, 10, 8, 0.64) 100%),
    linear-gradient(180deg, rgba(11, 93, 59, 0.08), transparent 70%);
}

.summary-visual-card:nth-child(2) {
  animation: summaryCardFloat 6.4s ease-in-out infinite;
}

.summary-visual-card:nth-child(3) {
  animation: summaryCardFloat 6.4s ease-in-out 0.4s infinite;
}

.summary-visual-card:nth-child(4) {
  animation: summaryCardFloat 6.4s ease-in-out 0.8s infinite;
}

.summary-visual-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.98rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}

.summary-visual-card span:not(.summary-visual-step) {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.28rem;
  max-width: 20ch;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.summary-visual-step {
  position: relative;
  z-index: 2;
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(13, 30, 23, 0.9);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 0.32rem rgba(34, 197, 94, 0.08);
}

.summary-visual-card::after {
  content: "";
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

.summary-visual-docs .summary-visual-video {
  object-position: center center;
}

.summary-visual-review .summary-visual-video {
  object-position: center 42%;
}

.summary-visual-memo .summary-visual-video {
  object-position: center center;
}

.summary-visual-docs::after {
  width: 2.6rem;
  height: 3rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(220, 252, 231, 0.9) 0 2px, transparent 2px 9px, rgba(220, 252, 231, 0.72) 9px 11px, transparent 11px 18px, rgba(220, 252, 231, 0.56) 18px 20px, transparent 20px);
  box-shadow:
    -0.4rem 0.4rem 0 0 rgba(13, 30, 23, 0.72),
    -0.4rem 0.4rem 0 1px rgba(74, 222, 128, 0.16);
}

.summary-visual-review::after {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(circle at center, rgba(74, 222, 128, 0.9) 0 0.22rem, transparent 0.22rem 0.7rem, rgba(74, 222, 128, 0.26) 0.7rem 0.78rem, transparent 0.78rem 1.02rem, rgba(74, 222, 128, 0.14) 1.02rem 1.08rem, transparent 1.08rem);
  box-shadow: 0 0 0 0.55rem rgba(34, 197, 94, 0.06);
}

.summary-visual-memo::after {
  width: 3rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(74, 222, 128, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.16), transparent 70%),
    linear-gradient(90deg, transparent 0 0.45rem, rgba(220, 252, 231, 0.85) 0.45rem 0.78rem, transparent 0.78rem 1.15rem, rgba(220, 252, 231, 0.72) 1.15rem 1.48rem, transparent 1.48rem 1.85rem, rgba(220, 252, 231, 0.56) 1.85rem 2.18rem, transparent 2.18rem),
    linear-gradient(180deg, transparent 0 1.45rem, rgba(74, 222, 128, 0.48) 1.45rem 1.58rem, transparent 1.58rem);
}

.tools-feature-section {
  padding-top: clamp(var(--sp-6), 3vw, var(--sp-10));
}

.tools-section-head {
  max-width: 46rem;
  display: grid;
  gap: var(--sp-3);
}

.tools-section-head p {
  max-width: 60ch;
}

.tool-card-grid {
  gap: var(--sp-4);
  align-items: stretch;
}

.tool-card {
  min-height: 18rem;
  padding: clamp(var(--sp-5), 2.2vw, var(--sp-8));
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: var(--sp-4);
  border-color: var(--border-strong);
  background:
    radial-gradient(18rem 10rem at 100% 0%, rgba(11, 93, 59, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(15, 25, 22, 0.92), rgba(11, 18, 16, 1));
}

.tool-card-label,
.tool-panel-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.tool-card h3 {
  max-width: 14ch;
  font-size: clamp(1.28rem, 0.72vw + 0.98rem, 1.62rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.tool-card p {
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.tool-panel-split {
  align-items: stretch;
  gap: var(--sp-6);
}

.tool-panel {
  min-height: 100%;
  padding: clamp(var(--sp-5), 2.2vw, var(--sp-8));
  align-content: start;
  gap: var(--sp-4);
  border-color: var(--border-strong);
}

.tool-panel h2 {
  max-width: 14ch;
  font-size: clamp(1.75rem, 0.95vw + 1.15rem, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tool-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
  color: var(--text);
}

.tool-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.tool-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.services-support-grid {
  gap: var(--sp-4);
}

.services-support-grid .card {
  min-height: 100%;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-list li + li {
  margin-top: var(--sp-2);
}

.divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--sp-3) 0;
}

/* ----------------------------------------------------------------
   15. FOOTER — 2-Column, Quiet Styling
   ---------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(var(--sp-12), 4vw, var(--sp-24));
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-8);
}

.footer-brand {
  margin-bottom: var(--sp-4);
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.footer-links {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-links a {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}

.footer-links a:hover {
  color: var(--text);
  border-color: var(--brand);
}

.footer-copy {
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ----------------------------------------------------------------
   16. SCROLL REVEAL ANIMATION
   ---------------------------------------------------------------- */

.reveal-on-scroll {
  transition:
    opacity var(--dur-reveal) var(--ease-emph),
    transform var(--dur-reveal) var(--ease-emph);
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children */
.js .card-grid .reveal-on-scroll:nth-child(2) {
  transition-delay: 80ms;
}

.js .card-grid .reveal-on-scroll:nth-child(3) {
  transition-delay: 160ms;
}

/* ----------------------------------------------------------------
   17. KEYFRAMES
   ---------------------------------------------------------------- */

@keyframes infra-pan {
  from { transform: translateX(-2.5%) translateY(-1%); }
  to { transform: translateX(2.5%) translateY(1%); }
}

@keyframes kpi-count-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes summaryTraverse {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(calc(100% - 0.5rem)); opacity: 1; }
}

@keyframes summaryGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate3d(-6%, 4%, 0) scale(1.08); opacity: 0.72; }
}

@keyframes summaryCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}


/* --------------------------------------------------------------
   NAV TOGGLE (Mobile)
   -------------------------------------------------------------- */

.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;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* ----------------------------------------------------------------
   18. RESPONSIVE — Figma Breakpoints
   ---------------------------------------------------------------- */

/* Tablet: Nav wrapping */
@media (max-width: 1024px) {
  .nav-shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
  :root {
    --container: min(1120px, calc(100% - var(--sp-6)));
  }

  .hero-grid,
  .split,
  .tools-intro-layout,
  .cta-band-wide,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .stat-grid,
  .footer-grid,
  .timeline-track {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .timeline-track {
    padding-top: 0;
  }

  .timeline-track::before,
  .timeline-track::after,
  .timeline-track li::before {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: var(--sp-2);
    padding: var(--sp-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
  }

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

  .main-nav a {
    width: 100%;
    justify-content: space-between;
    padding: var(--sp-3);
  }


  .header-cta {
    flex: 1;
  }

  .hero-media {
    min-height: 20rem;
  }

  .hero-storyboard li {
    grid-template-columns: 3.5rem 1fr;
  }

  .cta-band {
    max-width: 100%;
  }

  /* Full-width CTA buttons on mobile */
  .hero .actions-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Small mobile: 390px target */
@media (max-width: 480px) {
  :root {
    --container: min(1120px, calc(100% - var(--sp-4)));
  }

  h1 {
    font-size: 2.25rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-storyboard li {
    grid-template-columns: 1fr;
  }

  .hero-storyboard span {
    font-size: 0.6875rem;
  }
}

/* ----------------------------------------------------------------
   19. REDUCED MOTION
   ---------------------------------------------------------------- */

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

  .summary-visual-video {
    display: none;
  }

  .scope-card-video {
    display: none;
  }
}

/* ----------------------------------------------------------------
   20. REFINEMENTS
   ---------------------------------------------------------------- */

/* H4 — sub-section labels inside cards */
h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* H4 section separator: border above all but the first H4 in a card */
.card h4:not(:first-of-type) {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

/* Lead — use primary text color, not muted */
.lead {
  color: var(--text);
}

/* Checklist — styled with accent checkmarks */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  display: grid;
  gap: var(--sp-2);
}

.checklist li {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875em;
  margin-top: 0.1em;
  line-height: 1;
}

/* Card — slightly more internal spacing */
.card {
  gap: var(--sp-4);
}

/* Equal-column split for side-by-side content cards (not hero split) */
.split:not(.split-problem) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.split:not(.split-problem) > .card,
.card-grid > .card {
  min-height: 100%;
}

/* Section head — more breathing room below */
.section-head {
  margin-bottom: var(--sp-10);
}

/* 4th card staggered reveal */
.js .card-grid .reveal-on-scroll:nth-child(4) {
  transition-delay: 240ms;
}

/* Tablet: card grid 2 columns between 769px and 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-card-media {
    min-height: 10rem;
  }
}

/* ----------------------------------------------------------------
   21. MOBILE REFINEMENTS
   ---------------------------------------------------------------- */

/* H1: prevent overflow for long compound words (especially German) */
h1 {
  overflow-wrap: normal;
  hyphens: none;
}

@media (max-width: 768px) {
  /* H1 slightly smaller on mobile */
  h1 {
    font-size: clamp(1.9rem, 3vw + 1.1rem, 2.2rem);
    overflow-wrap: normal;
    hyphens: none;
  }

  /* Section head: less bottom gap on mobile */
  .section-head {
    margin-bottom: var(--sp-8);
  }

  /* CTA band: reduce padding on mobile */
  .cta-band {
    padding: var(--sp-6) var(--sp-4);
  }

  .tools-intro h1,
  .tool-card h3,
  .tool-card p {
    max-width: none;
  }

  .cta-band-wide {
    text-align: left;
  }

  .cta-band-wide .btn {
    width: 100%;
    justify-content: center;
  }

  .tool-card,
  .tool-panel,
  .tools-summary {
    min-height: auto;
  }

  .tools-summary-visual {
    padding: var(--sp-3);
    gap: var(--sp-2);
  }

  .summary-visual-card {
    grid-template-columns: 2rem 1fr;
    padding: var(--sp-2) var(--sp-3);
  }

  .summary-visual-card::after {
    right: var(--sp-2);
    transform: translateY(-50%) scale(0.86);
    transform-origin: center;
  }

  .summary-visual-card span:not(.summary-visual-step) {
    max-width: none;
  }

  .tool-list li {
    font-size: 1rem;
  }

  /* Feature and checklist items: tighter on mobile */
  .feature-list,
  .checklist {
    font-size: 0.875rem;
  }

  /* Timeline items: more compact */
  .timeline li {
    padding: var(--sp-3);
  }

  /* Card: reduce padding on mobile */
  .card {
    padding: var(--sp-4);
  }
}

/* ----------------------------------------------------------------
   22. PRINT / PDF EXPORT
   ---------------------------------------------------------------- */

@page {
  size: A4 portrait;
  margin: 12mm;
}

@media print {
  html,
  body {
    background: var(--bg);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    font-size: 10.5pt;
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: auto;
    padding: 0 0 var(--sp-3);
    gap: var(--sp-3);
  }

  .main-nav,
  .header-actions {
    gap: var(--sp-2);
  }

  .main-nav,
  .header-actions,
  .nav-toggle {
    display: none !important;
  }

  .main-nav a,
  .lang-chip,
  .btn {
    font-size: 0.75rem;
  }

  .btn {
    min-height: auto;
    padding: 0.6rem 0.95rem;
  }

  .section {
    padding: 8mm 0;
  }

  .page-top,
  .tools-intro-section,
  .tools-feature-section {
    padding-top: 5mm;
    padding-bottom: 4mm;
  }

  .hero {
    min-height: auto;
    padding-top: 5mm;
  }

  .hero-grid,
  .split,
  .cta-band-wide,
  .tool-panel-split {
    grid-template-columns: 1fr;
    gap: 5mm;
  }

  .tools-intro-layout {
    display: block;
  }

  .card-grid-3,
  .card-grid-4,
  .timeline-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
  }

  .tool-card-grid .tool-card:last-child {
    grid-column: 1 / -1;
  }

  .hero-copy,
  .tools-intro,
  .section-head {
    gap: var(--sp-3);
  }

  .tools-summary {
    margin-top: 4mm;
    min-height: 0;
    display: block;
    height: auto !important;
    overflow: visible;
  }

  .tools-summary-visual {
    display: none;
  }

  .tools-summary-visual {
    margin-top: 3mm;
    padding: 3mm;
    gap: 2.4mm;
  }

  .scope-card-video {
    display: none;
  }

  .scope-card-media {
    min-height: 0;
    aspect-ratio: auto;
    padding-top: 5mm;
    border-bottom: 1px solid var(--border);
    background: none;
  }

  .scope-card-badge,
  .scope-card-meta {
    position: static;
  }

  .scope-card-badge {
    margin-bottom: 2mm;
  }

  .scope-card-meta {
    margin-bottom: 3mm;
  }

  .scope-card-body {
    padding: 4mm 0 0;
  }

  .summary-flow-line {
    left: calc(3mm + 0.82rem);
    top: 4.5mm;
    bottom: 4.5mm;
  }

  .summary-visual-card {
    grid-template-columns: 8mm 1fr;
    gap: 3mm;
    padding: 3mm;
  }

  .summary-visual-step {
    width: 6.5mm;
    height: 6.5mm;
    font-size: 0.56rem;
  }

  .summary-visual-card strong {
    font-size: 0.88rem;
  }

  .summary-visual-card span:not(.summary-visual-step) {
    font-size: 0.72rem;
  }

  .summary-visual-card::after {
    right: 2.5mm;
    transform: translateY(-50%) scale(0.86);
    transform-origin: center;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: 1.65rem;
    line-height: 1.1;
  }

  h3 {
    font-size: 1.2rem;
    line-height: 1.18;
  }

  .hero h1,
  .page-top h1,
  .tools-intro h1 {
    max-width: 14ch;
  }

  h1,
  h2,
  h3 {
    hyphens: none;
    overflow-wrap: normal;
  }

  .lead {
    max-width: 46ch;
    font-size: 1rem;
    line-height: 1.45;
  }

  p,
  .checklist li,
  .feature-list li,
  .tool-list li,
  .timeline span {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .hero-media,
  .page-hero-img {
    min-height: 68mm;
    max-height: 78mm;
  }

  .card,
  .cta-band,
  .site-footer,
  .section-head,
  .tools-intro,
  .tool-panel,
  .tool-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cta-band {
    max-width: none;
    gap: var(--sp-4);
  }

  .site-footer {
    margin-top: 8mm;
    padding: 8mm 0 4mm;
  }

  .js .reveal-on-scroll,
  .js .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller H1 on very small screens */
  h1 {
    font-size: 1.875rem;
  }

  /* Stat grid: compact 3-column row on small mobile */
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
  }

  .stat-grid li {
    padding: var(--sp-2);
    text-align: center;
  }

  .stat-grid strong {
    font-size: 1.125rem;
  }

  .stat-grid span {
    font-size: 0.6rem;
  }
}
