/* ============================================================
   NorCal Mobile HDTC — Design System
   Palette: deep navy/slate primary, warm off-white surface,
   signal-green accent ("clean air"), amber secondary accent.
   Type: Clash Display (headlines) + Satoshi (body) via Fontshare.
   ============================================================ */

:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Clash Display', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', system-ui, sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Light (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f6f4ef;            /* warm off-white */
  --color-surface: #fbfaf6;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ece8df;
  --color-border: #dcd6ca;
  --color-divider: #e6e1d6;

  --color-text: #16202e;          /* deep navy/slate */
  --color-text-muted: #55606f;
  --color-text-faint: #8b93a0;
  --color-text-inverse: #f6f4ef;

  --color-primary: #16283f;       /* deep navy */
  --color-primary-hover: #1f3855;
  --color-primary-active: #0e1c2d;

  --color-accent: #2f8f52;        /* signal / clean-air green */
  --color-accent-hover: #267743;
  --color-accent-active: #1d5c33;
  --color-accent-soft: #e2efe6;

  --color-amber: #d99425;         /* warm secondary accent */
  --color-amber-soft: #f6ead1;

  --shadow-sm: 0 1px 2px rgba(22, 32, 46, 0.08);
  --shadow-md: 0 6px 20px rgba(22, 32, 46, 0.10);
  --shadow-lg: 0 20px 48px rgba(22, 32, 46, 0.16);
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --color-bg: #0f1620;
  --color-surface: #151e2a;
  --color-surface-2: #1b2634;
  --color-surface-offset: #1e2a3a;
  --color-border: #2a3949;
  --color-divider: #24313f;

  --color-text: #e7ecf2;
  --color-text-muted: #9aa6b4;
  --color-text-faint: #6a7686;
  --color-text-inverse: #0f1620;

  --color-primary: #dfe6ee;
  --color-primary-hover: #ffffff;
  --color-primary-active: #c7d0da;

  --color-accent: #4fb877;
  --color-accent-hover: #63c98a;
  --color-accent-active: #79d69c;
  --color-accent-soft: #17301f;

  --color-amber: #eab04d;
  --color-amber-soft: #33280f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1620;
    --color-surface: #151e2a;
    --color-surface-2: #1b2634;
    --color-surface-offset: #1e2a3a;
    --color-border: #2a3949;
    --color-divider: #24313f;
    --color-text: #e7ecf2;
    --color-text-muted: #9aa6b4;
    --color-text-faint: #6a7686;
    --color-text-inverse: #0f1620;
    --color-primary: #dfe6ee;
    --color-primary-hover: #ffffff;
    --color-primary-active: #c7d0da;
    --color-accent: #4fb877;
    --color-accent-hover: #63c98a;
    --color-accent-active: #79d69c;
    --color-accent-soft: #17301f;
    --color-amber: #eab04d;
    --color-amber-soft: #33280f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p, li { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--color-accent-soft); color: var(--color-text); }

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

button { cursor: pointer; background: none; border: none; }

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

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

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

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.wrap--narrow { max-width: var(--content-narrow); }
.wrap--default { max-width: var(--content-default); }

.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--color-accent); border-radius: 2px;
}

.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm); font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { background: var(--color-accent-active); transform: translateY(0); }
[data-theme='dark'] .btn--primary { color: #0f1620; }
:root:not([data-theme]) .btn--primary { }

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

.btn--light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--light:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
Header / Nav
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}

[data-theme='dark'] .brand__mark {
  color: var(--color-accent);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand__tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

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

.nav__link[aria-current='page'] {
  color: var(--color-text);
  font-weight: 600;
}

.nav__link[aria-current='page']::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.header__cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.header--scrolled .header__inner {
  height: 3.5rem;
}

.header--scrolled .brand__mark {
  width: 30px;
  height: 30px;
}

.header--scrolled .brand__name {
  font-size: 0.92rem;
}

.header--scrolled .brand__tag {
  font-size: 0.62rem;
}

.header--scrolled .btn {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

.header--scrolled .theme-toggle {
  width: 34px;
  height: 34px;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav,
  .header__cta {
    display: none;
  }

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

  .brand__name {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .nav--open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 4.5rem 0 auto 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4) var(--space-6) var(--space-8);
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
  }

  .nav--open .nav__link {
    padding: var(--space-3) var(--space-2);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-divider);
  }

  .nav--open .nav__link:last-of-type {
    border-bottom: none;
  }

  .nav--open .btn {
    margin-top: var(--space-4);
  }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand__name { font-size: 0.95rem; white-space: nowrap; }
  .brand__mark { width: 34px; height: 34px; }
  .nav--open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; inset: 4.5rem 0 auto 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4) var(--space-6) var(--space-8);
    gap: var(--space-1); box-shadow: var(--shadow-lg);
  }
  .nav--open .nav__link { padding: var(--space-3) var(--space-2); font-size: var(--text-base); border-bottom: 1px solid var(--color-divider); }
  .nav--open .nav__link:last-of-type { border-bottom: none; }
  .nav--open .btn { margin-top: var(--space-4); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    rgba(15,22,32,0.94) 0%, rgba(15,22,32,0.82) 38%, rgba(15,22,32,0.4) 70%, rgba(15,22,32,0.15) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(var(--space-24), 14vw, 10rem);
  max-width: 760px;
}
.hero h1 {
  color: #fff; font-size: var(--text-3xl); font-weight: 600;
  margin-block: var(--space-5) var(--space-5);
}
.hero__sub { color: rgba(255,255,255,0.85); font-size: var(--text-lg); max-width: 52ch; margin-bottom: var(--space-8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero .eyebrow { color: #7fe0a2; }
.hero .eyebrow::before { background: #7fe0a2; }

/* ============================================================
   Value props
   ============================================================ */
.grid { display: grid; gap: var(--space-6); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.vprop {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.vprop__icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.vprop__icon svg { width: 24px; height: 24px; }
.vprop h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); font-family: var(--font-body); font-weight: 700; }
.vprop p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ============================================================
   Section header
   ============================================================ */
.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-2xl); margin-block: var(--space-4) var(--space-4); }
.section-head p { color: var(--color-text-muted); font-size: var(--text-base); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ============================================================
   Split (image + text)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__body h2 { font-size: var(--text-xl); margin-block: var(--space-4) var(--space-5); }
.split__body p { color: var(--color-text-muted); margin-bottom: var(--space-4); }

/* Feature list */
.flist { list-style: none; display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.flist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.flist svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.flist strong { display: block; font-weight: 700; }
.flist span { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ============================================================
   Service cards
   ============================================================ */
.scard {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.scard__num { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-accent); font-weight: 600; }
.scard h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; }
.scard p { color: var(--color-text-muted); font-size: var(--text-sm); }
.scard ul { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.scard ul li { position: relative; padding-left: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.scard ul li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--color-accent); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: var(--space-6); }
.step { display: flex; gap: var(--space-5); align-items: flex-start; }
.step__n {
  counter-increment: step; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  display: grid; place-items: center; background: var(--color-primary); color: var(--color-text-inverse);
  font-family: var(--font-display); font-weight: 600;
}
[data-theme='dark'] .step__n { background: var(--color-accent); color: #0f1620; }
.step__n::before { content: counter(step); }
.step h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-1); }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Pricing note */
.note {
  background: var(--color-amber-soft); border: 1px solid color-mix(in oklab, var(--color-amber) 40%, transparent);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; gap: var(--space-4); align-items: flex-start;
}
.note svg { width: 24px; height: 24px; color: var(--color-amber); flex-shrink: 0; }
.note strong { display: block; margin-bottom: var(--space-1); }
.note p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* ============================================================
   Coverage
   ============================================================ */
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.city {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); font-weight: 500;
}
.city svg { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }
.city--hub { background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary); }
.city--hub svg { color: var(--color-amber); }
[data-theme='dark'] .city--hub { background: var(--color-accent); color: #0f1620; }
[data-theme='dark'] .city--hub svg { color: #0f1620; }

.map-figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-md); }
.map-figure svg { width: 100%; height: auto; display: block; }

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial {
  text-align: center; max-width: 780px; margin-inline: auto;
}
.testimonial blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-xl); line-height: 1.25; color: var(--color-text);
}
.testimonial figcaption { margin-top: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.stars { display: inline-flex; gap: 4px; margin-bottom: var(--space-5); color: var(--color-amber); }
.stars svg { width: 20px; height: 20px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--color-primary); color: var(--color-text-inverse); border-radius: var(--radius-xl); padding: clamp(var(--space-10), 6vw, var(--space-20)); text-align: center; }
[data-theme='dark'] .cta-band { background: var(--color-surface-2); border: 1px solid var(--color-border); }
.cta-band h2 { font-size: var(--text-2xl); color: var(--color-text-inverse); margin-bottom: var(--space-4); }
.cta-band p { color: color-mix(in oklab, var(--color-text-inverse) 78%, transparent); max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-8); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }

/* ============================================================
   Page hero (interior)
   ============================================================ */
.page-hero { background: var(--color-surface-offset); border-bottom: 1px solid var(--color-divider); }
.page-hero__inner { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); max-width: 720px; }
.page-hero h1 { font-size: var(--text-2xl); margin-block: var(--space-4) var(--space-5); }
.page-hero p { color: var(--color-text-muted); font-size: var(--text-lg); }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); }
.info-row { display: flex; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--color-divider); align-items: flex-start; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row__icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-accent); display: grid; place-items: center; }
.info-row__icon svg { width: 20px; height: 20px; }
.info-row__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-faint); font-weight: 600; }
.info-row__value { font-size: var(--text-base); font-weight: 600; }
.info-row a.info-row__value:hover { color: var(--color-accent); }
.info-row__value span { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--color-text-muted); }

.form { display: grid; gap: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field label .req { color: var(--color-accent); }
.field input, .field select, .field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface-2); color: var(--color-text);
  font-size: var(--text-sm);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.form__note { font-size: var(--text-xs); color: var(--color-text-faint); }
.field--checkbox {
  margin-top: 0.25rem;
}

.field--checkbox .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.field--checkbox input[type='checkbox'] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.field--checkbox a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
/* ============================================================
   About stats
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 620px) { .stat-row { grid-template-columns: 1fr; } }
.stat { border-left: 3px solid var(--color-accent); padding-left: var(--space-5); }
.stat__num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1; }
.stat__label { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-2); }

.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  background: var(--color-accent-soft); color: var(--color-accent-active);
  font-size: var(--text-sm); font-weight: 600;
}
[data-theme='dark'] .badge { color: var(--color-accent); }
.badge svg { width: 16px; height: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--color-primary); color: var(--color-text-inverse); padding-block: var(--space-16) var(--space-8); margin-top: var(--space-8); }
[data-theme='dark'] .footer { background: var(--color-surface); border-top: 1px solid var(--color-border); color: var(--color-text); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.footer .brand { color: var(--color-text-inverse); margin-bottom: var(--space-4); }
[data-theme='dark'] .footer .brand { color: var(--color-text); }
.footer .brand__mark { color: var(--color-text-inverse); }
[data-theme='dark'] .footer .brand__mark { color: var(--color-accent); }
.footer .brand__tag { color: color-mix(in oklab, var(--color-text-inverse) 65%, transparent); }
.footer__blurb { color: color-mix(in oklab, var(--color-text-inverse) 78%, transparent); font-size: var(--text-sm); max-width: 40ch; }
[data-theme='dark'] .footer__blurb { color: var(--color-text-muted); }
.footer h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--space-4); letter-spacing: 0.04em; }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer a, .footer li { color: color-mix(in oklab, var(--color-text-inverse) 78%, transparent); font-size: var(--text-sm); }
[data-theme='dark'] .footer a, [data-theme='dark'] .footer li { color: var(--color-text-muted); }
.footer a:hover { color: var(--color-text-inverse); }
[data-theme='dark'] .footer a:hover { color: var(--color-text); }
.footer__cert { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-weight: 600; color: #7fe0a2; font-size: var(--text-sm); }
.footer__cert svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid color-mix(in oklab, var(--color-text-inverse) 20%, transparent); margin-top: var(--space-12); padding-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: var(--text-xs); color: color-mix(in oklab, var(--color-text-inverse) 60%, transparent); }
[data-theme='dark'] .footer__bottom { border-top-color: var(--color-border); color: var(--color-text-faint); }

/* reveal on scroll — only hides once JS marks the document as capable,
   so no-JS users and reduced-motion users always see content. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
