/* ============ LAB BERLIN — DESIGN TOKENS ============ */
:root {
  /* Brand */
  --sand: #aaa18e;
  --sand-deep: #918874;
  --sand-50: #f2eee5;
  --sand-100: #e6dfd0;
  --graphite: #5b636a;
  --graphite-deep: #3a4148;

  /* Neutrals */
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --paper: #fafaf7;
  --paper-deep: #f5f2ec;
  --rule: #e5e2db;
  --rule-strong: #d0ccc2;
  --white: #ffffff;

  /* Semantic */
  --text: var(--ink);
  --text-muted: #6c6c6c;    /* 5.7:1 on white ✓ AA */
  --text-quiet: #8a8a84;

  /* Type */
  --ff-display: "Fraunces", "Instrument Serif", Georgia, serif;
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Spacing */
  --pad-x: clamp(1.25rem, 4vw, 2rem);
  --pad-xl: clamp(2.5rem, 6vw, 5rem);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link */
.skip {
  position: absolute; top: -100px; left: 1rem;
  background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; font-size: .9rem; font-weight: 600;
  text-decoration: none; z-index: 9999; border-radius: var(--r-sm);
}
.skip:focus { top: 1rem; }

/* Typography primitives */
.display-xl {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 30, "opsz" 100;
}
.display-lg {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 30, "opsz" 80;
}
.display-md {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--graphite-deep);
  font-weight: 400;
}
/* ============ ACCENT FONT SYSTEM ============
   Default: Instrument Serif italic — classical, refined, NOT Fraunces.
   Switchable via body class (Tweaks panel).
============ */
:root {
  --ff-accent-family: 'Instrument Serif', Georgia, serif;
  --ff-accent-style: italic;
  --ff-accent-weight: 400;
  --ff-accent-vars: normal;
  --ff-accent-letter: -0.005em;
}
body.accent-fraunces-italic {
  --ff-accent-family: 'Fraunces', Georgia, serif;
  --ff-accent-style: italic;
  --ff-accent-weight: 400;
  --ff-accent-vars: "SOFT" 0, "opsz" 144;
  --ff-accent-letter: -0.015em;
}
body.accent-inter-italic {
  --ff-accent-family: 'Inter', system-ui, sans-serif;
  --ff-accent-style: italic;
  --ff-accent-weight: 500;
  --ff-accent-vars: normal;
  --ff-accent-letter: -0.02em;
}

.accent {
  font-family: var(--ff-accent-family, 'Instrument Serif', Georgia, serif);
  font-style: var(--ff-accent-style, italic);
  font-weight: var(--ff-accent-weight, 400);
  font-variation-settings: var(--ff-accent-vars, normal);
  letter-spacing: var(--ff-accent-letter, -0.005em);
  color: var(--sand-deep);
}
/* Legacy alias — any italic-swoon still referenced routes to same system */
.italic-swoon {
  font-family: var(--ff-accent-family, 'Instrument Serif', Georgia, serif);
  font-style: var(--ff-accent-style, italic);
  font-weight: var(--ff-accent-weight, 400);
  font-variation-settings: var(--ff-accent-vars, normal);
  letter-spacing: var(--ff-accent-letter, -0.005em);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.5rem;
  font-family: var(--ff-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover { background: var(--graphite-deep); transform: translateY(-1px); }
.btn--sand {
  background: var(--sand);
  color: var(--white);
}
.btn--sand:hover { background: var(--sand-deep); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--outline:hover { border-color: var(--ink); background: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: .95rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
}
.btn--ghost:hover { color: var(--sand-deep); border-color: var(--sand-deep); }

.btn-arrow {
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Layout */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding: var(--pad-xl) 0; }
.section-divider-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sand);
  display: inline-block; margin-right: .75rem;
}

/* Placeholder image */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--sand-100) 0 1px, transparent 1px 9px),
    var(--sand-50);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--graphite);
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ph::after {
  content: attr(data-label);
  background: var(--paper);
  padding: .35rem .6rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Hide scrollbars on swipe rows */
.hs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1rem;
}
.hs::-webkit-scrollbar { display: none; }
.hs > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--rule); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--ff-sans);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.logo-slash { color: var(--sand); margin-left: 1px; }
.logo-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand); margin-left: 4px;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
@media (max-width: 900px) { .nav { display: none; } }
.nav a {
  font-size: 0.9rem;
  color: var(--graphite-deep);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  transition: all .2s var(--ease);
  font-weight: 450;
}
.nav a:hover { background: var(--sand-50); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
.header-phone {
  font-size: .88rem; color: var(--ink); text-decoration: none;
  padding: .5rem .85rem; border-radius: var(--r-pill);
  transition: background .2s;
  font-variant-numeric: tabular-nums;
}
.header-phone:hover { background: var(--sand-50); }
@media (max-width: 700px) { .header-phone { display: none; } }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  background: transparent; border-radius: var(--r-pill);
  cursor: pointer;
  align-items: center; justify-content: center;
}
@media (max-width: 900px) { .menu-btn { display: inline-flex; } }
.menu-btn span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink); position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* ============ HERO ============ */
.hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
}

.hero-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .8rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-size: .78rem;
  color: var(--graphite-deep);
}
.hero-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ba06b; box-shadow: 0 0 0 3px rgba(75,160,107,0.2);
}
.hero-since {
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--text-muted); letter-spacing: .1em;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero h1 .accent {
  /* Force-override any cached/inherited variation settings */
  font-variation-settings: var(--ff-accent-vars, normal) !important;
  font-family: var(--ff-accent-family, 'Instrument Serif', Georgia, serif) !important;
}
.hero h1 .underline-sketch {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline-sketch::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: 0.05em;
  height: 0.18em;
  background: var(--sand);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  max-width: 48ch;
  margin-bottom: 2rem;
  color: var(--graphite-deep);
}
.hero-ctas {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 1rem;
}
.proof-cell {
  background: var(--paper);
  padding: 1.25rem 0.5rem 1.25rem 0;
}
.proof-num {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.proof-lbl {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Beitragsrechner */
.calc {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(26,26,26,0.4);
}
.calc::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, transparent 60%, rgba(170,161,142,0.15));
  pointer-events: none;
  border-radius: var(--r-lg);
}
.calc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.calc-label {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.calc-badge {
  font-size: .7rem;
  padding: .25rem .55rem;
  background: rgba(170,161,142,0.2);
  color: #d5ceba;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.calc-income-label {
  font-family: var(--ff-sans);
  font-size: .95rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: .25rem;
}
.calc-income {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.calc-slider {
  position: relative;
  width: 100%;
  height: 40px;
  margin-bottom: 0.5rem;
}
.calc-slider input[type=range] {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: grab;
  z-index: 3;
}
.calc-slider input[type=range]:active { cursor: grabbing; }
.calc-track {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.calc-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--sand), var(--sand-deep));
  transition: width .15s linear;
}
.calc-thumb {
  position: absolute;
  top: 50%;
  width: 22px; height: 22px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  pointer-events: none;
  transition: transform .15s linear;
}
.calc-thumb::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: var(--sand);
}
.calc-ticks {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.calc-result {
  border-top: 1px dashed rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.calc-result-text {
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
  max-width: 60%;
}
.calc-result-text strong { color: var(--white); font-weight: 500; }
.calc-price {
  text-align: right;
}
.calc-price-num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--sand);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc-price-unit { font-size: .8rem; color: rgba(255,255,255,0.55); margin-top: .25rem; }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--graphite);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.marquee-item .italic-swoon { color: var(--sand-deep); }
.marquee-item-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand); flex-shrink: 0;
}

/* ============ SECTIONS ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: end;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
}
.section-head .right { max-width: 42ch; color: var(--graphite-deep); }
.section-eyebrow-line {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.section-eyebrow-line::before {
  content: '';
  width: 40px; height: 1px; background: var(--sand);
}

/* Zielgruppen — swipe cards */
.aud-rail {
  /* Align LEFT edge with container; let overflow bleed right */
  margin-right: calc(-1 * var(--pad-x));
  padding-right: var(--pad-x);
}
.aud-card {
  width: min(380px, 78vw);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.aud-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(26,26,26,0.12); }
.aud-card-img {
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: var(--sand-50);
  overflow: hidden;
}
.aud-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.aud-card-cat {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin-bottom: .5rem;
}
.aud-card h3 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: .75rem;
  color: var(--ink);
}
.aud-card p {
  color: var(--graphite-deep);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}
.aud-card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  transition: color .2s;
}
.aud-card-link:hover { color: var(--sand-deep); }
.aud-card-link svg { transition: transform .25s var(--ease-out); }
.aud-card-link:hover svg { transform: translateX(3px); }

/* Rail controls */
.rail-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}
.rail-progress {
  flex: 1;
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  max-width: 260px;
}
.rail-progress-bar {
  height: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: width .3s var(--ease), transform .3s var(--ease);
  width: 33%;
}
.rail-btns { display: flex; gap: .5rem; }
.rail-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  background: var(--white);
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.rail-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rail-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============ LEISTUNGEN / PROCESS ============ */
.process {
  background: var(--cream, #f2eee5);
  background: linear-gradient(180deg, var(--paper) 0%, var(--sand-50) 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 960px) { .process-grid { grid-template-columns: 1fr; gap: 2rem; } }

.process-steps { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule); }
.process-step {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  transition: background .25s;
  cursor: pointer;
}
.process-step:hover { background: var(--paper); }
.process-step[aria-current="step"] { background: var(--ink); color: var(--white); }
.process-step[aria-current="step"] .process-n { color: var(--sand); border-color: rgba(255,255,255,0.15); }
.process-step[aria-current="step"] .process-step-sub { color: rgba(255,255,255,0.65); }
.process-step[aria-current="step"] .process-step-chev { color: var(--sand); transform: rotate(90deg); }

.process-n {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sand-deep);
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  transition: all .25s;
}
.process-step-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.process-step-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .2rem;
  line-height: 1.4;
}
.process-step-chev { color: var(--sand-deep); transition: transform .25s; }

.process-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(91,99,106,0.25);
}
/* Documents stack illustration */
.docstack {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem;
}
.doc {
  position: absolute;
  width: 62%;
  aspect-ratio: 3 / 4;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px -10px rgba(26,26,26,0.12);
  transition: transform .6s var(--ease-out);
  display: flex; flex-direction: column;
  padding: 1.25rem;
}
.doc-rule {
  height: 6px;
  border-radius: 2px;
  background: var(--sand-100);
  margin-bottom: .5rem;
}
.doc-rule.short { width: 40%; background: var(--sand); }
.doc-rule.mid { width: 70%; }
.doc-rule.long { width: 95%; }
.doc-seal {
  margin-top: auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1.5px dashed var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: .55rem; letter-spacing: .1em;
  color: var(--sand-deep); text-align: center; line-height: 1.1;
  align-self: flex-end;
}

.doc-1 { transform: rotate(-8deg) translate(-18%, 4%); }
.doc-2 { transform: rotate(3deg) translate(0, 0); z-index: 2; }
.doc-3 { transform: rotate(10deg) translate(18%, -4%); z-index: 3; }
.process-visual:hover .doc-1 { transform: rotate(-12deg) translate(-22%, 6%); }
.process-visual:hover .doc-3 { transform: rotate(14deg) translate(22%, -6%); }

.process-visual-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: .7rem 1rem;
  border-radius: var(--r-md);
  font-size: .78rem;
  display: flex; align-items: center; gap: .5rem;
  z-index: 10;
}
.process-visual-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ba06b;
  box-shadow: 0 0 0 3px rgba(75,160,107,0.25);
  animation: pulse 2s ease-in-out infinite;
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
  background: var(--white);
  padding: 1.5rem;
  transition: background .3s;
  cursor: pointer;
}
.team-card:hover { background: var(--paper); }
.team-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}
.team-card h4 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: .2rem;
}
.team-card .team-role {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.team-card .team-lang {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--sand-deep);
  text-transform: uppercase;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--ink);
  color: var(--white);
}
.testimonials .eyebrow { color: rgba(255,255,255,0.65); }
.testi-rail {
  /* Align LEFT edge with container; let overflow bleed right */
  margin-right: calc(-1 * var(--pad-x));
  padding-right: var(--pad-x);
}
.testi-card {
  width: min(460px, 85vw);
  background: #242424;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testi-quote {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #f0eee8;
  flex: 1;
}
.testi-stars { color: var(--sand); font-size: .9rem; letter-spacing: 0.15em; }
.testi-meta { display: flex; align-items: center; gap: .85rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.testi-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--white);
  font-family: var(--ff-sans);
  font-size: .9rem;
}
.testi-name { font-size: .92rem; font-weight: 500; color: var(--white); }
.testi-detail { font-size: .78rem; color: rgba(255,255,255,0.6); margin-top: .15rem; }

/* ============ FAQ ============ */
.faq {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.faq-head {
  margin-bottom: 2.5rem;
  align-items: end;
}
.faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-self: end;
}
.faq-chip {
  appearance: none;
  border: 1px solid var(--rule-strong);
  background: var(--white);
  color: var(--graphite-deep);
  padding: .7rem 1.15rem;
  border-radius: var(--r-pill);
  font-family: var(--ff-sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: -.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .22s var(--ease-out);
  white-space: nowrap;
}
.faq-chip:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
  transform: translateY(-1px);
}
.faq-chip:focus-visible {
  outline: 2px solid var(--sand-deep);
  outline-offset: 2px;
}
.faq-chip.is-on {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.35);
}
.faq-chip-n {
  font-family: var(--ff-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border-radius: var(--r-pill);
  background: var(--paper-deep);
  color: var(--graphite);
  transition: all .22s;
}
.faq-chip:hover .faq-chip-n {
  background: var(--sand-50);
  color: var(--sand-deep);
}
.faq-chip.is-on .faq-chip-n {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

@media (max-width: 820px) {
  .faq-filter {
    justify-self: start;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x);
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: calc(100% + (2 * var(--pad-x)));
    scrollbar-width: none;
  }
  .faq-filter::-webkit-scrollbar { display: none; }
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  align-items: start;
}
@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-head { display: block; }
  .faq-filter { margin-top: 1.5rem; }
}

.faq-item {
  border-top: 1px solid var(--rule-strong);
  break-inside: avoid;
  transition: opacity .2s;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq-grid .faq-item:nth-child(2) { border-top: 1px solid var(--rule-strong); }
@media (max-width: 820px) { .faq-grid .faq-item:nth-child(2) { border-top: none; } }

.faq-item.is-hidden { display: none; }

.faq-item summary {
  padding: 1.4rem 0;
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--sand-deep); }
.faq-item summary:hover .faq-num { color: var(--sand-deep); }
.faq-item[open] summary { color: var(--ink); }

.faq-num {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: .45rem;
  transition: color .2s;
}
.faq-q { line-height: 1.35; }

.faq-plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  flex-shrink: 0;
  position: relative;
  transition: all .3s var(--ease-out);
}
.faq-plus::before, .faq-plus::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform .3s var(--ease-out);
}
.faq-plus::before { top: 50%; left: 30%; right: 30%; height: 1.5px; transform: translateY(-50%); }
.faq-plus::after { left: 50%; top: 30%; bottom: 30%; width: 1.5px; transform: translateX(-50%); }
.faq-item[open] .faq-plus { background: var(--ink); border-color: var(--ink); }
.faq-item[open] .faq-plus::before { background: var(--white); }
.faq-item[open] .faq-plus::after { transform: translateX(-50%) rotate(90deg); background: var(--white); }

.faq-body {
  padding: 0 calc(36px + 1rem) 1.75rem calc(38px);
  color: var(--graphite-deep);
  font-size: .98rem;
  line-height: 1.65;
  max-width: 56ch;
}
@media (max-width: 820px) {
  .faq-body { padding-left: calc(38px); padding-right: 0; }
}

.faq-cta {
  margin-top: 3.5rem;
  padding: 2rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.faq-cta-text {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.faq-cta p {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.01em;
}
.faq-cta small {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .faq-cta {
    padding: 1.5rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============ CTA FINAL ============ */
.cta-final {
  background:
    radial-gradient(ellipse at top right, rgba(170,161,142,0.2), transparent 60%),
    var(--sand-50);
  position: relative;
  overflow: hidden;
}
.cta-final-inner {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  margin-bottom: 1rem;
}
.cta-final .lead { margin: 0 auto 2rem; max-width: 50ch; }
.cta-final-ctas { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* ============ FOOTER ============ */
/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 1.5rem;
}

/* Top compact contact bar */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-top-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.45);
}
.footer-top-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ba06b;
  box-shadow: 0 0 0 3px rgba(75,160,107,0.2);
  animation: pulse-dot 2.4s var(--ease-out) infinite;
}
.footer-top-hours { font-variant-numeric: tabular-nums; }
.footer-top-ctas {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .2s;
}
.footer-top-link:hover { color: var(--sand); }
.footer-top-link svg { opacity: .6; }
.footer-top-link:hover svg { opacity: 1; }
.footer-top-sep {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.15);
}
.footer-top-btn { margin-left: .5rem; }
.btn--sand {
  background: var(--sand);
  color: var(--ink);
  border: 1px solid var(--sand);
}
.btn--sand:hover { background: var(--sand-deep); border-color: var(--sand-deep); color: var(--white); }
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline-light:hover { border-color: var(--sand); color: var(--sand); }
@media (max-width: 640px) {
  .footer-top-sep { display: none; }
  .footer-top-btn { margin-left: 0; }
}

/* 6-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; row-gap: 2.5rem; }
  .fg-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fg-brand { grid-column: 1 / -1; }
}

.fg-brand { max-width: 34ch; }
.footer .logo { color: var(--white); }
.footer .logo-slash { color: var(--sand); }
.footer-about { font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,0.55); margin-top: 1rem; margin-bottom: 1.5rem; }

/* Socials */
.footer-socials { display: flex; gap: .5rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: all .2s var(--ease-out);
}
.footer-socials a:hover {
  background: var(--sand);
  color: var(--ink);
  border-color: var(--sand);
  transform: translateY(-2px);
}

.footer h5 { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .55rem; }
.footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: .88rem; transition: color .2s; display: inline-flex; align-items: center; gap: .5rem; }
.footer a:hover { color: var(--sand); }
.fg-icon { opacity: .5; flex-shrink: 0; transition: opacity .2s; }
.footer a:hover .fg-icon { opacity: 1; color: var(--sand); }
.fg-meta {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
}
.fg-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: .15rem .45rem;
  border-radius: 4px;
  margin-left: .35rem;
}
.fg-badge--live {
  background: rgba(75,160,107,0.2);
  color: #8ed4a1;
}
.fg-badge-row { position: relative; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: .78rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-sep { color: rgba(255,255,255,0.35); }
.footer-bottom-lang { display: inline-flex; gap: .5rem; align-items: center; }
.footer-bottom-lang a { font-size: .78rem; color: rgba(255,255,255,0.5); }
.footer-bottom-lang a.is-active { color: var(--white); }

/* Small button variant */
.btn--sm { padding: .65rem 1.1rem; font-size: .85rem; }

/* ============ MOBILE NAV / FAB ============ */
.fab {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0) + 88px);
  right: 1rem;
  z-index: 40;
  background: var(--ink);
  color: var(--white);
  padding: .95rem 1.3rem;
  border-radius: var(--r-pill);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  box-shadow: 0 10px 30px -8px rgba(26,26,26,0.45);
  transition: transform .3s var(--ease), opacity .3s;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
}
.fab.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.fab:hover { transform: translateY(-2px); }
@media (min-width: 901px) { .fab { display: none; } }

.mobile-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 39;
  background: rgba(250,250,247,0.92);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-top: 1px solid var(--rule);
  padding: .5rem .5rem calc(env(safe-area-inset-bottom, 0) + .5rem);
  display: none;
}
@media (max-width: 900px) { .mobile-nav { display: block; } }
.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .7rem .25rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: all .2s;
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--ink); background: var(--sand-50); }
.mobile-nav a svg { flex-shrink: 0; }

@media (max-width: 900px) {
  body { padding-bottom: 80px; }
}

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 280px;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  z-index: 999;
  padding: 1rem;
  font-family: var(--ff-sans);
  font-size: .85rem;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: .75rem;
}
.tweak-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid var(--rule);
}
.tweak-row:last-child { border-bottom: none; }
.tweak-row label { color: var(--ink); }
.tweak-seg { display: inline-flex; background: var(--paper); border-radius: var(--r-pill); padding: 2px; gap: 2px; }
.tweak-seg--3 button { padding: .3rem .5rem; font-size: .7rem; }
.tweak-seg button {
  border: none;
  background: transparent;
  padding: .3rem .6rem;
  font-size: .75rem;
  color: var(--graphite);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.tweak-seg button.on { background: var(--ink); color: var(--white); }

/* A11y large-text modifier */
body.a11y-large { font-size: 18px; }
body.a11y-large .hero h1 { font-size: clamp(3rem, 8vw, 7rem); }
body.a11y-large .lead, body.a11y-large .faq-body { font-size: 1.1rem; }

/* Mobile responsive tweaks */
@media (max-width: 640px) {
  .hero-proof { grid-template-columns: 1fr; }
  .proof-cell { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .proof-cell:last-child { border-bottom: none; }
  .section-head { margin-bottom: 2rem; }
  .btn { padding: .85rem 1.35rem; }
}
