/* =========================================================
   AutEk: site stylesheet
   Design system: design-system/autek/MASTER.md
   Swiss / minimal, brand indigo for action only.
   ========================================================= */

/* ---------- Fonts (self-hosted, latin subset, OFL) ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/work-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F4F9;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #475569;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  --brand: #3B3FD8;
  --brand-hover: #2D30B8;
  --brand-ink: #3438C9;      /* brand used as text on light surfaces */
  --brand-tint: #EEF0FE;
  --on-brand: #FFFFFF;

  --band: #14163A;            /* dark CTA band */
  --band-ink: #F1F5F9;
  --band-muted: #B6BCE0;

  --ok: #15803D;
  --no: #B91C1C;

  --font-head: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 8pt spacing, spacious density */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .18);

  --wrap: 1160px;
  --header-h: 68px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur: 220ms;

  --z-header: 40;
  --z-menu: 39;
  --z-skip: 100;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D1A;
    --surface: #12152A;
    --surface-2: #171B33;
    --ink: #F1F5F9;
    --ink-2: #CBD5E1;
    --muted: #A3ADC2;
    --line: #262C47;
    --line-strong: #353C5E;

    --brand: #5B5FEA;
    --brand-hover: #6E72F0;
    --brand-ink: #A5A8FA;
    --brand-tint: #1C2050;
    --on-brand: #FFFFFF;

    --band: #171A3F;
    --band-ink: #F1F5F9;
    --band-muted: #B6BCE0;

    --ok: #4ADE80;
    --no: #F87171;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -18px rgba(0, 0, 0, .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s-4); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { color: var(--ink); font-weight: 600; }

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

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  z-index: var(--z-skip);
  background: var(--brand); color: var(--on-brand);
  padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-6); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em;
  min-height: 44px;
}
.brand-mark { width: 26px; height: 26px; color: var(--brand); flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.nav-links { display: none; list-style: none; align-items: center; gap: var(--s-1); }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--s-3);
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brand);
  border-radius: 0;
}
.nav-links .btn { margin-left: var(--s-3); padding: 0 var(--s-4); border-radius: var(--radius-sm); }
.nav-links .btn-primary,
.nav-links .btn-primary[aria-current="page"] { color: var(--on-brand); box-shadow: none; border-radius: var(--radius-sm); }
.nav-links .btn-primary:hover { color: var(--on-brand); background: var(--brand-hover); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--radius-sm);
  color: var(--ink); cursor: pointer; touch-action: manipulation;
}
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: var(--s-3) 0 var(--s-5);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a {
  display: flex; align-items: center; min-height: 52px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu li a[aria-current="page"] { color: var(--brand-ink); }
.mobile-menu .btn { width: 100%; margin-top: var(--s-5); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); font-size: .95rem; }
.btn-on-band { background: #FFFFFF; color: #14163A; }
.btn-on-band:hover { background: #E4E6FB; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--brand-ink); text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.text-link:hover svg { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; }

/* ---------- Sections & type helpers ---------- */
.section { padding-block: var(--s-8); }
.section-lg { padding-block: var(--s-8); }
@media (min-width: 768px) {
  .section { padding-block: var(--s-9); }
}
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }

.kicker {
  display: inline-block;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: var(--s-3);
}
.lede { font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 768px) { .lede { font-size: 1.25rem; } }
.muted { color: var(--muted); }

.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head h2 + p { margin-top: var(--s-4); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: var(--s-8) var(--s-7); }
@media (min-width: 768px) { .page-hero { padding-block: var(--s-9) var(--s-8); } }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: var(--s-5); }

/* ---------- Home hero ---------- */
.hero { padding-block: var(--s-8) var(--s-8); }
@media (min-width: 768px) { .hero { padding-block: var(--s-9); } }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); } }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-6); font-size: .9375rem; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); }

/* Workflow card (hero visual) */
.flow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.flow-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.flow-card-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem; }
.flow-card-tag {
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.flow-before {
  padding: var(--s-4) var(--s-5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.flow-label {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2);
}
.flow-before p { font-size: .9375rem; color: var(--muted); }
.flow-before .x { color: var(--no); font-weight: 600; }
.flow-after { padding: var(--s-4) var(--s-5) var(--s-5); }
.flow-after .flow-label { color: var(--brand-ink); }
.flow-steps { list-style: none; position: relative; }
.flow-steps::before {
  content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px;
  width: 2px; background: var(--line);
}
.flow-step {
  position: relative; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3);
  align-items: start; padding-block: var(--s-2);
}
.flow-dot {
  position: relative; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line-strong);
  font-family: var(--font-head); font-size: .8125rem; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.flow-step-text strong { display: block; font-size: .9375rem; line-height: 1.35; }
.flow-step-text span { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.flow-step.is-done .flow-dot,
.flow-step.is-active .flow-dot { border-color: var(--brand); color: var(--brand-ink); }
.flow-step.is-active .flow-dot { background: var(--brand); color: var(--on-brand); }
.flow-foot {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--muted);
}
.flow-foot svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof-list {
  list-style: none; display: grid; gap: var(--s-5);
  grid-template-columns: 1fr; padding-block: var(--s-6);
}
@media (min-width: 600px) { .proof-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .proof-list { grid-template-columns: repeat(4, 1fr); } }
.proof-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.proof-item svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.proof-item strong { display: block; font-size: .9375rem; line-height: 1.35; }
.proof-item span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* ---------- Service index (home) ---------- */
.index-list { list-style: none; border-top: 1px solid var(--line); }
.index-row { border-bottom: 1px solid var(--line); }
.index-link {
  display: grid; gap: var(--s-2) var(--s-5);
  grid-template-columns: 40px 1fr 24px;
  align-items: start;
  padding: var(--s-5) 0;
  color: inherit; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.index-num {
  font-family: var(--font-head); font-weight: 500; font-size: .9375rem;
  color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px;
}
.index-body h3 { transition: color var(--dur-fast) var(--ease-out); }
.index-body p { margin-top: var(--s-2); color: var(--ink-2); max-width: 62ch; }
.index-arrow { width: 22px; height: 22px; color: var(--muted); margin-top: 4px; transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.index-link:hover h3 { color: var(--brand-ink); }
.index-link:hover .index-arrow { color: var(--brand); transform: translateX(4px); }
@media (min-width: 900px) {
  .index-link { grid-template-columns: 64px minmax(220px, 1fr) 1.6fr 24px; padding: var(--s-6) 0; }
  .index-body { display: contents; }
  .index-body p { margin-top: 0; padding-top: 2px; }
}

/* ---------- Tags (non-interactive) ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .9375rem; color: var(--ink); white-space: nowrap;
}
.tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0;
}
.split { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.25fr; gap: var(--s-8); } }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.step {
  position: relative; padding-top: var(--s-5);
  border-top: 2px solid var(--line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-head); font-weight: 600; font-size: .875rem;
  color: var(--brand-ink); font-variant-numeric: tabular-nums; margin-bottom: var(--s-3);
}
.step:first-child { border-top-color: var(--brand); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5);
}
@media (min-width: 768px) { .card { padding: var(--s-6); } }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--ink-2); }
.grid-2, .grid-3 { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.icon-tile {
  width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-ink);
  margin-bottom: var(--s-4);
}
.icon-tile svg { width: 20px; height: 20px; }

/* ---------- Checklists ---------- */
.checklist { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; color: var(--ink-2); }
.checklist svg { width: 20px; height: 20px; margin-top: 3px; color: var(--brand); }
.checklist.is-no svg { color: var(--no); }
.checklist.is-yes svg { color: var(--ok); }

/* ---------- On-page nav (services) ---------- */
.jump {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-6); list-style: none;
}
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem;
  background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.jump a:hover { border-color: var(--brand); color: var(--brand-ink); }

/* ---------- Service detail ---------- */
.service { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .service { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); } }
.service-num {
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--brand-ink);
  font-variant-numeric: tabular-nums; display: block; margin-bottom: var(--s-3);
}
.service h2 { margin-bottom: var(--s-5); }
.service-copy p { max-width: 62ch; }
.included h3 { font-size: 1rem; margin-bottom: var(--s-4); }
.example {
  margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--muted);
}
.example strong { color: var(--ink); }

/* ---------- Product ---------- */
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.product-head { padding: var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .product-head { padding: var(--s-7); } }
.product-name {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.product-name h2 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-ink);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.product-features { display: grid; }
@media (min-width: 900px) { .product-features { grid-template-columns: repeat(3, 1fr); } }
.product-feature { padding: var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .product-feature { padding: var(--s-6) var(--s-7); } }
@media (min-width: 900px) {
  .product-feature { border-bottom: 0; border-right: 1px solid var(--line); padding: var(--s-6); }
  .product-feature:last-child { border-right: 0; }
}
.product-feature h3 { font-size: 1.0625rem; margin-bottom: var(--s-2); }
.product-feature p { font-size: .9375rem; }
.product-foot {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-5); background: var(--surface-2); border-top: 1px solid var(--line);
  font-size: .9375rem;
}
@media (min-width: 768px) { .product-foot { padding: var(--s-5) var(--s-7); } }
.product-foot svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .founder { grid-template-columns: 300px 1fr; gap: var(--s-8); } }
.founder-photo {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 300px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--brand-tint); border: 1px solid var(--line);
}
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-5);
}
.founder-fallback .brand-mark { width: 44px; height: 44px; margin-bottom: auto; }
.founder-fallback strong { font-family: var(--font-head); font-size: 1.25rem; }
.founder-fallback span { font-size: .875rem; color: var(--muted); }
.founder-name { margin-bottom: var(--s-1); }
.founder-role { color: var(--muted); margin-bottom: var(--s-5); }
.founder-bio p { max-width: 62ch; }
.creds { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 600px) { .creds { grid-template-columns: repeat(2, 1fr); } }
.creds li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); font-size: .9375rem; }
.creds svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.35fr 1fr; gap: var(--s-7); }
}
.form-shell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.form-shell-head { padding: var(--s-5); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .form-shell-head { padding: var(--s-6); } }
.form-shell-head h2 { font-size: 1.375rem; margin-bottom: var(--s-2); }
.form-shell-head p { font-size: .9375rem; color: var(--muted); }

.aside-stack { display: grid; gap: var(--s-4); }
.email-card a.email {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  font-family: var(--font-head); font-size: 1.375rem; font-weight: 600;
  color: var(--ink); text-decoration: none; word-break: break-all;
}
.email-card a.email:hover { color: var(--brand-ink); text-decoration: underline; }
.email-card a.email svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.aside-stack h2 { font-size: 1.125rem; margin-bottom: var(--s-4); }
.num-list { list-style: none; counter-reset: n; display: grid; gap: var(--s-4); }
.num-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); counter-increment: n; }
.num-list li::before {
  content: counter(n);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--font-head); font-size: .8125rem; font-weight: 600; color: var(--brand-ink);
}
.dash-list { list-style: none; display: grid; gap: var(--s-2); }
.dash-list li { padding-left: var(--s-5); position: relative; }
.dash-list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 2px; background: var(--line-strong); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--band); color: var(--band-muted); }
.cta-band .wrap { padding-block: var(--s-8); }
@media (min-width: 768px) { .cta-band .wrap { padding-block: var(--s-9); } }
.cta-inner { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: var(--band-ink); max-width: 20ch; }
.cta-band p { margin-top: var(--s-4); font-size: 1.125rem; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.cta-band a.plain { color: var(--band-ink); }
.cta-band :focus-visible { outline-color: #FFFFFF; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid p { margin-top: var(--s-3); color: var(--muted); font-size: .9375rem; max-width: 36ch; }
.footer-grid h2 {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3);
}
.footer-grid ul { list-style: none; }
.footer-grid li a {
  display: inline-flex; align-items: center; min-height: 36px;
  color: var(--ink-2); text-decoration: none; font-size: .9375rem;
}
.footer-grid li a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  padding-block: var(--s-5); border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--muted);
}

/* ---------- 404 ---------- */
.notfound { padding-block: var(--s-9); }
.notfound .hero-actions { margin-top: var(--s-6); }

/* ---------- Reveal motion (JS adds .js on <html>) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta-band, .menu-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Small helpers used by page markup ---------- */
.plain-list { list-style: none; }
.hero-meta { list-style: none; padding: 0; }
.flow-card { margin: 0; }
.problems-lede { margin-top: var(--s-4); }
.section-tight-top { padding-top: 0; }
@media (min-width: 768px) { .section-tight-top { padding-top: 0; } }
.page-hero + .section-tight-top { border-top: 0; }
.notfound .lede { margin-top: var(--s-5); }
main:focus { outline: none; }
.email-card .kicker { display: block; margin-bottom: var(--s-1); }
.card h3 + .checklist { margin-top: var(--s-4); }
.page-hero h1 { max-width: 20ch; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: var(--s-6); padding: var(--s-5); }
@media (min-width: 768px) { .contact-form { padding: var(--s-6); } }
.form-shell > .callout {
  margin: var(--s-5) var(--s-5) 0; padding: var(--s-4); border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--ink); font-size: .9375rem;
}
@media (min-width: 768px) { .form-shell > .callout { margin: var(--s-6) var(--s-6) 0; } }

.group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-4); }
.group legend {
  padding: 0; margin-bottom: var(--s-4);
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-weight: 600; color: var(--ink); font-size: .9375rem; }
.opt { font-weight: 400; color: var(--muted); }
.hint { margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.hint-row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.count { flex-shrink: 0; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.count.is-over { color: var(--no); font-weight: 600; }

.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 168px; resize: vertical; }
.field select { cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--no); }
.field input[aria-invalid="true"]:focus-visible, .field textarea[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--no) 22%, transparent);
}
.field-error {
  margin: 0; display: flex; gap: 6px; align-items: flex-start;
  font-size: .875rem; font-weight: 500; color: var(--no); line-height: 1.45;
}
.field-error::before {
  content: "!"; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center; background: var(--no); color: var(--surface);
  font-size: .6875rem; font-weight: 700; line-height: 1;
}
.field-error[hidden] { display: none; }

/* Service choice cards: a real radio group, styled */
.choices { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative; display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start;
  min-height: 48px; padding: 14px 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.choice:hover { border-color: var(--muted); }
.choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); cursor: pointer; }
.choice input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice:has(input:focus-visible) { border-color: var(--brand); }
.choice-title { display: block; font-weight: 600; color: var(--ink); font-size: .9375rem; line-height: 1.35; }
.choice-desc { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.choices.is-invalid .choice { border-color: color-mix(in srgb, var(--no) 55%, var(--line-strong)); }
@media (min-width: 640px) { .choices .choice:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Error summary */
.error-summary {
  padding: var(--s-4) var(--s-5); border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--no) 40%, transparent);
  border-left: 4px solid var(--no);
  background: color-mix(in srgb, var(--no) 6%, var(--surface));
}
.error-summary:focus { outline: 2px solid var(--no); outline-offset: 2px; }
.error-summary h3 { font-size: 1rem; margin-bottom: var(--s-2); }
.error-summary ul { list-style: none; display: grid; gap: 4px; }
.error-summary a { color: var(--no); font-weight: 500; font-size: .9375rem; }
.error-summary[hidden] { display: none; }

/* Honeypot: off-screen, never shown to people */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.form-actions .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.form-actions .btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.form-alt { margin: 0; font-size: .9375rem; color: var(--muted); }
.form-status { margin: calc(-1 * var(--s-4)) 0 0; font-size: .9375rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--no); font-weight: 500; }

/* Sent state */
.form-sent { padding: var(--s-7) var(--s-5); text-align: left; }
@media (min-width: 768px) { .form-sent { padding: var(--s-8) var(--s-6); } }
.form-sent:focus { outline: none; }
.form-sent[hidden] { display: none; }
.sent-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); margin-bottom: var(--s-5);
}
.sent-icon svg { width: 24px; height: 24px; }
.form-sent h3 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.form-sent p { max-width: 52ch; margin-bottom: var(--s-6); }

.privacy-card { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); font-size: .9375rem; color: var(--muted); }
.privacy-card svg { width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }
.ask-link { margin-top: var(--s-5); }

/* ---------- Maintenance splash (public/maintenance/) ---------- */
.splash-body { justify-content: center; }
.splash { display: grid; place-items: center; min-height: 100dvh; padding: var(--s-6) var(--s-5); }
.splash-card { width: 100%; max-width: 620px; }
.splash-brand { display: flex; width: max-content; margin-bottom: var(--s-7); pointer-events: none; }
.splash-status {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 12px; border-radius: 999px; margin-bottom: var(--s-5);
  background: var(--brand-tint); color: var(--brand-ink);
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.splash-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: splash-pulse 2.4s ease-in-out infinite; }
@keyframes splash-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.splash h1 { max-width: 16ch; }
.splash .lede { margin-top: var(--s-5); }
.splash .hero-actions { margin-top: var(--s-6); }
.splash-foot { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
