/* ============================================================
   SCHLEIF & GNIOT – Design v3
   Eckig · Stahlblau · Dark-first · Inter via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --header-h: 80px;

  /* Radius: scharf, minimal */
  --r-sm:  3px;
  --r-md:  5px;
  --r-lg:  6px;

  /* Dark (default) */
  --bg:      #0a0f1a;
  --bg1:     #0f1624;
  --bg2:     #131c2e;
  --surface: rgba(19,28,46,.88);
  --border:  rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.14);

  --text:    #eef2f7;
  --text2:   #8b97ab;
  --text3:   #5e6e83;

  /* Stahlblau-Palette */
  --blue:    #2563a8;
  --blue-l:  #3a7bc8;
  --blue-d:  #1a4880;
  --blue-bg: rgba(37,99,168,.14);
  --blue-border: rgba(37,99,168,.40);

  --accent:  #2563a8;
  --accent-h:#3a7bc8;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.40);
  --shadow:    0 4px 20px rgba(0,0,0,.50);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.60);

  --ring: 0 0 0 3px rgba(37,99,168,.45);
}

/* Light theme */
html[data-theme="light"] {
  --bg:      #f5f7fa;
  --bg1:     #edf0f5;
  --bg2:     #e4e9f0;
  --surface: rgba(255,255,255,.96);
  --border:  rgba(0,0,0,.09);
  --border2: rgba(0,0,0,.15);

  --text:    #0d1520;
  --text2:   #3d5069;
  --text3:   #7a8fa6;

  --blue:    #1a4f8f;
  --blue-l:  #2563a8;
  --blue-d:  #103872;
  --blue-bg: rgba(37,99,168,.08);
  --blue-border: rgba(37,99,168,.30);

  --accent:  #1a4f8f;
  --accent-h:#2563a8;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.10);
  --shadow:    0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --ring: 0 0 0 3px rgba(37,99,168,.25);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

section[id] { scroll-margin-top: var(--header-h); }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grid texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,168,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,168,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .6;
}

/* Blue accent glow top-left */
body::after {
  content: "";
  position: fixed;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,168,.18) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1300px, 94vw); margin: 0 auto; }

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 12px; top: 12px; width: auto; height: auto;
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  z-index: 9999;
  font-size: 14px;
  font-weight: 600;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 14px 0;
  gap: 12px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; object-fit: contain; }
/* Light mode: turn white logo into dark navy with CSS filter */
html[data-theme="light"] .brand img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(57%) saturate(600%) hue-rotate(192deg) brightness(0.85);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlinks a {
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 13px;
  color: var(--text2);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.navlinks a:hover {
  color: var(--text);
  background: var(--blue-bg);
  border-color: var(--blue-border);
}
.navlinks a:focus-visible { outline: none; box-shadow: var(--ring); }
.navlinks a.active {
  color: var(--blue-l);
  background: var(--blue-bg);
  border-color: var(--blue-border);
}

/* ── Theme Toggle ───────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  color: var(--text2);
  font: 500 13px 'Inter', sans-serif;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--blue-border); }
.theme-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.theme-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.theme-toggle__text { font-size: 13px; font-weight: 500; }
@media (max-width: 520px) {
  .theme-toggle__text { display: none; }
  .theme-toggle { padding: 7px 9px; }
}

/* ── Buttons / CTA ──────────────────────────────────────────── */
button { font: inherit; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue-d);
  box-shadow: 0 2px 8px rgba(37,99,168,.35);
}
.btn-primary:hover {
  background: var(--blue-l);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,99,168,.45);
}

.btn-secondary {
  background: var(--blue-bg);
  color: var(--blue-l);
  border-color: var(--blue-border);
}
.btn-secondary:hover {
  background: rgba(37,99,168,.22);
  border-color: var(--blue-l);
}

/* Legacy .cta alias (used in subpages) */
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; border-radius: var(--r-sm); border: 1px solid var(--blue-d); background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(37,99,168,.35); transition: background .15s, transform .1s; white-space: nowrap; }
.cta:hover { background: var(--blue-l); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.cta.cta-secondary { background: var(--blue-bg); color: var(--blue-l); border-color: var(--blue-border); box-shadow: none; }
.cta.cta-secondary:hover { background: rgba(37,99,168,.22); border-color: var(--blue-l); }
button.cta { font: inherit; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.card:hover { border-color: var(--border2); }

/* ── Section layout ─────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 70px 0; }

.section-header { margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: 10px;
}
.section-header p { color: var(--text2); font-size: 17px; max-width: 62ch; }

/* Label above section headings */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-l);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* ── Grids ──────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ── Divider ────────────────────────────────────────────────── */
.sep { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Typography helpers ─────────────────────────────────────── */
.muted { color: var(--text2); }
.small { font-size: 13px; }
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero { padding: 100px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-l);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.8px;
  color: var(--text);
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--blue-l);
  position: relative;
}

.hero-lead {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero Stats Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-d), var(--blue), var(--blue-l));
}

.hero-card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-card-header .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.hero-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text2);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px;
  gap: 12px;
}
.stat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}
.stat-val {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--text);
  line-height: 1;
}
.stat-lbl {
  font-size: 13px;
  color: var(--text2);
  margin-top: 5px;
  line-height: 1.4;
}

.hero-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-card-footer svg { width: 14px; height: 14px; color: var(--blue-l); flex-shrink: 0; }

/* ── Services grid ──────────────────────────────────────────── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  width: 40px; height: 40px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--blue-l);
}
.service-icon svg { width: 20px; height: 20px; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  font-size: 15.5px;
  color: var(--text2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.service-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue-l);
  letter-spacing: .02em;
}
.service-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-l);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.service-more svg { width: 14px; height: 14px; transition: transform .15s; }
.service-card:hover .service-more svg { transform: translateX(3px); }

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-col { display: flex; flex-direction: column; gap: 12px; }

.feature-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s;
}
.feature-row:hover { border-color: var(--border2); }
.feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 7px;
  flex-shrink: 0;
}
.feature-row p { font-size: 15.5px; color: var(--text2); margin-top: 4px; }
.feature-row strong { color: var(--text); font-weight: 600; }

/* ── Prozess/Ablauf ─────────────────────────────────────────── */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: var(--border2);
}
.process-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}
.process-num {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-l);
  position: relative;
  z-index: 1;
}
.process-content h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.process-content p { font-size: 15.5px; color: var(--text2); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border2); }
.faq-item.open { border-color: var(--blue-border); }

.faq-q {
  width: 100%;
  background: var(--surface);
  border: 0;
  padding: 16px 20px;
  text-align: left;
  font: 600 16px 'Inter', sans-serif;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .15s;
}
.faq-q:hover { background: var(--bg2); }
.faq-q svg {
  width: 18px; height: 18px;
  color: var(--blue-l);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  font-size: 15.5px;
  color: var(--text2);
  line-height: 1.75;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding: 16px 20px; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; }

.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-icon {
  width: 32px; height: 32px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--blue-l);
}
.contact-icon svg { width: 15px; height: 15px; }
.contact-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); margin-bottom: 2px; }
.contact-val { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-val a { color: var(--blue-l); }
.contact-val a:hover { text-decoration: underline; }

/* Form */
.form-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 6px; display: block; }
.input, textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  color: var(--text);
  font: 14px 'Inter', sans-serif;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, textarea::placeholder { color: var(--text3); }
.input:focus, textarea:focus { border-color: var(--blue); box-shadow: var(--ring); }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }

/* ── Icon helper ────────────────────────────────────────────── */
.icon {
  width: 32px; height: 32px;
  display: inline-grid;
  place-items: center;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  color: var(--blue-l);
  flex-shrink: 0;
}
.icon svg { width: 16px; height: 16px; }

/* ── List ───────────────────────────────────────────────────── */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text2);
}
.list li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ── Callout box ────────────────────────────────────────────── */
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--blue);
  padding: 14px 16px;
}
.callout-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.callout-text { font-size: 15px; color: var(--text2); }

/* ── Section title legacy ───────────────────────────────────── */
.section-title { margin-bottom: 24px; }
.section-title h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.section-title.stack { display: flex; flex-direction: column; align-items: flex-start; }
.section-title p, .section-title .muted { font-size: 17px; color: var(--text2); max-width: 66ch; }

/* ── KPI boxes ──────────────────────────────────────────────── */
.kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi .box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.kpi .num { font-size: 18px; font-weight: 800; letter-spacing: -.2px; color: var(--text); }
.kpi .lbl { font-size: 11.5px; color: var(--text2); margin-top: 3px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.footer-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.footer-brand { font-weight: 600; color: var(--text2); }
.footer-links { display: flex; gap: 0; align-items: center; flex-wrap: wrap; }
.footer-link {
  color: var(--text3);
  font-size: 13px;
  padding: 4px 10px;
  border-right: 1px solid var(--border);
  transition: color .15s;
}
.footer-link:first-child { padding-left: 0; }
.footer-link:last-child { border-right: 0; padding-right: 0; }
.footer-link:hover { color: var(--text); }

/* Legacy footer-inline with ::before pipes (kontakt/rechtliches pages) */
.footer-inline .footer-link::before { content: ""; }

/* ── Subpage hero ───────────────────────────────────────────── */
.page-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -.6px; margin-bottom: 12px; }
.page-hero p { font-size: 15px; color: var(--text2); max-width: 64ch; }

/* Subpage service section */
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.service h2, .service h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.service p { font-size: 14px; color: var(--text2); }

/* ── Reveal animation ───────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal { opacity: 1 !important; transform: none !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; } /* hide on mobile */
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navlinks a { font-size: 12.5px; padding: 6px 8px; }
  .hero { padding: 48px 0 36px; }
  .section { padding: 44px 0; }
  .footer-inline { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { gap: 0; }
}

/* ── Legal pages ────────────────────────────────────────────── */
.legal-prose { max-width: 72ch; }
.legal-prose h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal-prose h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: var(--text2); }
.legal-prose p { font-size: 14px; color: var(--text2); margin-bottom: 12px; line-height: 1.75; }
.legal-prose a { color: var(--blue-l); text-decoration: underline; }
.legal-list { margin: .5rem 0 1rem 1.2rem; }
.legal-list li { font-size: 14px; color: var(--text2); margin: 4px 0; }

/* Form status box */
[data-form-status] { font-size: 14px; color: var(--text2); padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg2); }
