/* Design system from UI UX Pro Max: "Trust & Authority + Conversion" pattern,
   "Accessible & Ethical" style, navy + blue CTA palette, Outfit/Rubik pairing.
   Layout: credibility hero with a live before/after workflow card, services as ruled rows. */

:root {
  /* Color (light) */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --tint: #EEF3F8;
  --fg: #0F172A;
  --fg-soft: #475569;
  --border: #E2E8F0;
  --accent: #0369A1;
  --accent-hover: #075985;
  --on-accent: #FFFFFF;
  --accent-soft: #E0F2FE;
  --navy: #0F172A;
  --on-navy: #F1F5F9;
  --on-navy-soft: #A7B4C7;
  --good: #047857;
  --good-soft: #D1FAE5;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --danger: #DC2626;
  --ring: #0369A1;
  --logo-tile: #FFFFFF;
  --grid: rgba(3, 105, 161, 0.07);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.18);

  /* Type */
  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --t-xl: clamp(2.35rem, 1.4rem + 3.6vw, 4rem);

  /* Space */
  --max: 1180px;
  --gutter: 24px;
  --section: clamp(4rem, 3rem + 4vw, 6.5rem);
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A111D; --surface: #111A29; --tint: #0E1625; --fg: #E8EEF6; --fg-soft: #9CA9BC; --border: #1F2C40;
    --accent: #38A3DB; --accent-hover: #6BBDE7; --on-accent: #061422; --accent-soft: #0C2A3F;
    --navy: #050A13; --on-navy: #E8EEF6; --on-navy-soft: #93A1B5;
    --good: #34D399; --good-soft: #0B2E24; --warn: #F5B453; --warn-soft: #33240C; --danger: #F87171;
    --ring: #38A3DB; --logo-tile: #F3F6F8; --grid: rgba(56, 163, 219, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A111D; --surface: #111A29; --tint: #0E1625; --fg: #E8EEF6; --fg-soft: #9CA9BC; --border: #1F2C40;
  --accent: #38A3DB; --accent-hover: #6BBDE7; --on-accent: #061422; --accent-soft: #0C2A3F;
  --navy: #050A13; --on-navy: #E8EEF6; --on-navy-soft: #93A1B5;
  --good: #34D399; --good-soft: #0B2E24; --warn: #F5B453; --warn-soft: #33240C; --danger: #F87171;
  --ring: #38A3DB; --logo-tile: #F3F6F8; --grid: rgba(56, 163, 219, 0.07);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.eyebrow, .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.label { color: var(--fg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--fg-soft); background: var(--surface); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); min-height: 44px; }
/* The BAS logo has dark-blue parts, so it always sits on a light tile (as on the original site) */
.brand-mark {
  width: 52px; height: 52px; flex: none; padding: 4px;
  display: grid; place-items: center;
  background: var(--logo-tile); border: 1px solid var(--border); border-radius: 11px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name span { color: var(--fg-soft); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--fg-soft); text-decoration: none; font-weight: 500; font-size: 0.97rem; border-radius: var(--radius-sm);
  transition: color .2s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--fg); }
.site-nav a.is-active { color: var(--fg); }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 4vw, 5.5rem);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, var(--bg));
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.03em; }
.lead { font-size: 1.15rem; color: var(--fg-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-promises { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--fg-soft); font-size: 0.95rem; }
.hero-promises li { display: inline-flex; align-items: center; gap: 8px; }
.hero-promises .icon { width: 18px; height: 18px; color: var(--good); }

/* Workflow card */
.flow {
  margin: 0; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 20px;
}
.flow-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.flow-title { font-size: 1.3rem; font-weight: 600; margin-top: 4px; }
.switch { display: inline-flex; padding: 4px; background: var(--tint); border: 1px solid var(--border); border-radius: 10px; }
.switch-btn {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent;
  color: var(--fg-soft); font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.switch-btn:hover { color: var(--fg); }
.switch-btn[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.switch-btn[data-mode="after"][aria-pressed="true"] { color: var(--accent); }

.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow-step {
  position: relative;
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
}
.flow-step:first-child { border-top: 0; }
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: 6px; top: 30px; bottom: -12px; width: 2px; background: var(--border);
}
.step-dot { width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--warn); background: var(--surface); position: relative; z-index: 1; }
.flow[data-mode="after"] .step-dot { border-color: var(--accent); background: var(--accent); }
.step-text { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 500; line-height: 1.4; }
.step-min { font-family: var(--font-mono); font-size: 0.9rem; color: var(--fg-soft); font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 1px; }
.tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.tag-manual { background: var(--warn-soft); color: var(--warn); }
.tag-auto { background: var(--accent-soft); color: var(--accent); }
.flow-step.is-entering { animation: step-in .45s var(--ease) both; }
@keyframes step-in { from { transform: translateY(8px); } to { transform: none; } }

.flow-total { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.flow-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.flow-time { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; font-variant-numeric: tabular-nums; color: var(--warn); transition: color .3s var(--ease); }
.flow[data-mode="after"] .flow-time { color: var(--good); }
.meter { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; border: 1px solid var(--border); }
.meter span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--warn); transition: width .6s var(--ease), background-color .3s var(--ease); }
.flow[data-mode="after"] .meter span { background: var(--good); }

/* ---------- Commitments ---------- */
.commitments { padding-block: 0; }
.commit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.commit { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 8px; }
.commit + .commit { padding-left: 24px; border-left: 1px solid var(--border); }
.commit h3 { font-size: 1.08rem; font-weight: 600; }
.commit p { color: var(--fg-soft); font-size: 0.97rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--tint); border-block: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section h2 { font-size: var(--t-lg); font-weight: 700; }
.section-lead { color: var(--fg-soft); font-size: 1.08rem; max-width: 40em; }

/* Services: ruled rows */
.services { border-top: 1px solid var(--border); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.15fr) minmax(0, 0.75fr);
  gap: 28px; align-items: start;
  padding: 30px 12px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background-color .2s var(--ease);
}
.service:hover { background: var(--surface); }
.service-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.service-name h3 { font-size: 1.3rem; font-weight: 600; }
.service-icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}
.service-icon .icon { width: 22px; height: 22px; }
.service-desc { color: var(--fg-soft); min-width: 0; }
.service-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.96rem; min-width: 0; }
.service-list li { display: flex; gap: 10px; align-items: baseline; }
.service-list li::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 2px; background: var(--accent); transform: translateY(-2px); }
.service-meta { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.service-meta dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); }
.service-meta dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.step {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num { font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem; color: var(--accent); }
.step h3 { font-size: 1.15rem; font-weight: 600; }
.step p { color: var(--fg-soft); font-size: 0.95rem; flex: 1; }
.step-time { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg-soft); padding-top: 10px; border-top: 1px solid var(--border); }
.step-time .icon { width: 15px; height: 15px; }

/* Procurement */
.proc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.proc-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.proc-copy > p { color: var(--fg-soft); font-size: 1.06rem; }
.checks { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; color: var(--good); margin-top: 3px; }

.quote { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.quote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.quote-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-top: 4px; }
.quote-ref { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-soft); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 22px; vertical-align: top; }
th { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); background: var(--tint); }
td { border-top: 1px solid var(--border); }
td:first-child { font-weight: 500; }
td:last-child { color: var(--fg-soft); }
.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; width: 3.5rem; }
.quote-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 14px 22px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg-soft); background: var(--tint); }

/* Who */
.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.who > div { display: flex; flex-direction: column; gap: 14px; }
.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sectors li {
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.98rem;
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--fg-soft); border-bottom: 2px solid var(--fg-soft);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 4px 22px; color: var(--fg-soft); max-width: 40em; }

/* Contact */
.contact-band { background: var(--navy); color: var(--on-navy); }
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.contact-copy > p { color: var(--on-navy-soft); font-size: 1.06rem; }
.eyebrow-light { color: #7DD3FC; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-list li { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--on-navy); }
.contact-list li:last-child { color: var(--on-navy-soft); }
.contact-list a { color: var(--on-navy); text-decoration: underline; text-decoration-color: rgba(125, 211, 252, .5); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s var(--ease); }
.contact-list a:hover { color: #7DD3FC; }
.contact-list address { font-style: normal; }
.contact-list .icon { color: #7DD3FC; }

.form {
  background: var(--surface); color: var(--fg); border-radius: 16px; padding: clamp(20px, 3.5vw, 32px);
  display: flex; flex-direction: column; gap: 18px; min-width: 0; box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 500; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 8px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--danger); }
::placeholder { color: var(--fg-soft); opacity: .8; }
.field-error { color: var(--danger); font-size: 0.85rem; }
.form input.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--border); border-radius: 999px; font-size: 0.93rem; font-weight: 500; color: var(--fg-soft);
  transition: all .2s var(--ease);
}
.chip:hover span { border-color: var(--fg-soft); color: var(--fg); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }

.form-status { font-size: 0.95rem; min-height: 1.5em; }
.form-status.is-success { color: var(--good); }
.form-status.is-error { color: var(--danger); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-soft); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; padding-block: 48px 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand { color: var(--on-navy); }
.footer-brand .brand-mark { border-color: transparent; }
.footer-brand .brand-name { color: var(--on-navy); }
.footer-brand .brand-name span { color: var(--on-navy-soft); }
.footer-brand p { max-width: 34em; font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; align-content: flex-start; justify-content: flex-end; }
.footer-nav a { color: var(--on-navy); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 6px; }
.footer-nav a:hover { color: #7DD3FC; }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 0.85rem; }

/* Hero load sequence: movement only, so text is never hidden if animation pauses */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  .flow { animation: rise .7s .2s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(14px); } to { 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; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .step { grid-column: span 2; }
  .step:nth-child(4), .step:nth-child(5) { grid-column: span 3; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); row-gap: 16px; }
  .service-list { grid-column: 2; }
  .service-meta { grid-column: 1; grid-row: 2; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { min-height: 48px; padding: 0 8px; }
  .site-nav a:not(.btn)::after { left: 8px; right: auto; width: 24px; bottom: 10px; }
  .site-nav .btn { margin: 10px 0 0; }

  .hero-inner, .proc, .who, .faq-wrap, .contact { grid-template-columns: minmax(0, 1fr); }
  .commit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commit, .commit + .commit { padding: 24px 20px 24px 0; border-left: 0; }
  .commit:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--border); }
  .commit:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; margin-left: -10px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:nth-child(4), .step:nth-child(5) { grid-column: auto; }
  .service { grid-template-columns: minmax(0, 1fr); padding: 26px 0; }
  .service:hover { background: transparent; }
  .service-list, .service-meta { grid-column: auto; grid-row: auto; }
  .commit-grid { grid-template-columns: minmax(0, 1fr); }
  .commit, .commit + .commit, .commit:nth-child(even) { padding: 20px 0; border-left: 0; }
  .commit + .commit { border-top: 1px solid var(--border); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .sectors { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand-mark { width: 44px; height: 44px; padding: 3px; }
  .flow-head { flex-direction: column; }
}
