/* =====================================================================
   WaterWise SA — Design System
   Palette: Option 01 "Institutional Heritage" (navy / red / white)
   Signature: engineering-datasheet / P&ID schematic language
   See DESIGN.md. All colour lives in :root — re-skin from here.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand (locked) */
  --brand-navy:       #1A2A8E;
  --brand-navy-dark:  #0F1A5C;
  --brand-navy-deep:  #0A0E30;
  --brand-navy-light: #2B3FB5;
  --brand-red:        #E30613;
  --brand-red-dark:   #B00410;

  /* Surfaces & ink */
  --bg:        #FFFFFF;
  --surface:   #F5F7FB;
  --surface-2: #EAEEF6;
  --ink:       #0F1A5C;
  --muted:     #4A5A7A;
  --line:      #E2E8F2;
  --line-strong: #C9D4E6;
  --aqua:      #2BA6E0;
  --ok:        #1E9E6A;

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0:  1rem;
  --step-1:  1.15rem;
  --step-2:  clamp(1.35rem, 1.05rem + 1.3vw, 1.85rem);
  --step-3:  clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  --step-4:  clamp(2.3rem, 1.45rem + 3.9vw, 3.9rem);

  /* Space / shape */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --shadow-sm: 0 1px 2px rgba(15,26,92,.06), 0 2px 8px rgba(15,26,92,.05);
  --shadow-md: 0 8px 28px rgba(15,26,92,.10);
  --shadow-lg: 0 22px 56px rgba(15,26,92,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { color: var(--muted); }
p.lead { font-size: var(--step-1); color: var(--ink); }
strong { color: var(--ink); font-weight: 600; }

/* Mono datasheet label — the signature utility face */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-navy);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--brand-red); transform: rotate(45deg); flex: none;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-surface { background: var(--surface); }
.section-dark {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(43,63,181,.5), transparent 60%),
    linear-gradient(160deg, var(--brand-navy-dark), var(--brand-navy-deep));
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #B8C4E0; }

.section-heading { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-top: .6rem; }
.section-heading p { margin-top: 1rem; font-size: var(--step-1); }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 5. Header / nav ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand-navy); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.6rem); }
.site-nav a {
  font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: .45rem .2rem; position: relative; transition: color .2s var(--ease);
}
.site-nav a:not(.button)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:not(.button):hover { color: var(--brand-navy); }
.site-nav a:not(.button):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--brand-navy); font-weight: 600; }
.site-nav .button { margin-left: .4rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--brand-navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1px); }

/* ---------- 6. Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  padding: .8rem 1.4rem; border-radius: var(--radius-pill);
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s;
  white-space: nowrap;
}
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--brand-red); color: #fff; box-shadow: 0 6px 18px rgba(227,6,19,.28); }
.button-primary:hover { background: var(--brand-red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(227,6,19,.34); }
.button-secondary { background: var(--brand-navy); color: #fff; }
.button-secondary:hover { background: var(--brand-navy-light); transform: translateY(-2px); }
.button-ghost { background: transparent; color: var(--brand-navy); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.button-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand-navy); transform: translateY(-2px); }
.section-dark .button-ghost, .hero .button-ghost, .cta-banner .button-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.section-dark .button-ghost:hover, .hero .button-ghost:hover, .cta-banner .button-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.button-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.button-group { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg, rgba(10,14,48,.94) 0%, rgba(15,26,92,.82) 45%, rgba(15,26,92,.42) 100%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.045) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.045) 39px 40px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero-copy .eyebrow { color: #9FB2FF; }
.hero-copy h1 { color: #fff; margin: 1rem 0 1.1rem; }
.hero-copy h1 .accent { color: #fff; -webkit-text-decoration: underline 4px var(--brand-red); text-decoration: underline 4px var(--brand-red); text-underline-offset: 7px; }
.hero-copy > p { color: #C9D4F2; font-size: var(--step-1); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.hero-meta span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8FA2D8; }

/* Hero schematic panel — live-readout HUD echoing their P&ID */
.hero-panel {
  background: linear-gradient(160deg, rgba(15,26,92,.72), rgba(10,14,48,.78));
  border: 1px solid rgba(143,162,216,.28);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; gap: 1rem; }
.hero-panel-head h2 { font-size: 1.1rem; color: #fff; }
.status-dot { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6FE3B0; white-space: nowrap; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.5)} 70%{box-shadow:0 0 0 9px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.readout { background: rgba(255,255,255,.05); border: 1px solid rgba(143,162,216,.2); border-radius: var(--radius-sm); padding: .7rem .75rem; }
.readout b { display: block; font-family: var(--font-mono); font-size: 1.25rem; color: #6FE3FF; font-weight: 500; }
.readout span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #8FA2D8; }

/* Process train (numbered — order is real) */
.hero-process { display: grid; gap: .55rem; }
.process-stage { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; position: relative; padding-bottom: .55rem; }
.process-stage > span {
  font-family: var(--font-mono); font-weight: 600; font-size: .82rem;
  width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  border-radius: 8px; color: #fff; background: rgba(227,6,19,.18); border: 1px solid rgba(227,6,19,.5);
}
.process-stage:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: -2px; width: 1px; background: linear-gradient(var(--brand-red), transparent); }
.process-stage h3 { font-size: .98rem; color: #fff; }
.process-stage p { font-size: .82rem; color: #A9B6DC; margin-top: .15rem; }

/* ---------- 8. Trust strip ---------- */
.trust-strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item svg { width: 34px; height: 34px; flex: none; stroke: var(--brand-red); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.trust-item span { font-size: .82rem; color: var(--muted); }
.trust-item + .trust-item { border-left: 1px solid var(--line); padding-left: 1rem; }

/* ---------- 9. Cards ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.2vw, 1.75rem); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.section-surface .card { background: #fff; }

.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 1.1rem; transition: background .25s var(--ease), border-color .25s; }
.card-icon svg { width: 26px; height: 26px; stroke: var(--brand-navy); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s var(--ease); }
.card:hover .card-icon { background: var(--brand-red); border-color: var(--brand-red); }
.card:hover .card-icon svg { stroke: #fff; }
.feature-card h3, .service-card h3 { margin-bottom: .5rem; }
.feature-card p, .service-card p { font-size: .95rem; }

.feature-cards, .preview-grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); grid-template-columns: repeat(3, 1fr); }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-red); font-weight: 500; }
.card-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(3px); }

/* datasheet spec list inside cards */
.spec-list { display: grid; gap: .35rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: .78rem; }
.spec-list .k { color: var(--muted); }
.spec-list .v { color: var(--ink); font-weight: 500; text-align: right; }

/* image-topped cards */
.media-card { padding: 0; overflow: hidden; }
.media-card .media { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.media-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.media-card:hover .media img { transform: scale(1.05); }
.media-card .body { padding: clamp(1.1rem, 2vw, 1.5rem); }
.media-card .tag { margin-bottom: .6rem; }
.media-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }

/* ---------- 10. Stats / legacy ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.stat-card { text-align: left; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand-red); }
.section-dark .stat-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); border-left-color: var(--brand-red); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1; color: var(--brand-navy); letter-spacing: -0.02em; }
.section-dark .stat-value { color: #fff; }
.stat-label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.section-dark .stat-label { color: #9FB0D8; }

.legacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,2vw,1.5rem); margin-top: clamp(1.5rem,3vw,2.5rem); }
.legacy-card { position: relative; padding: 1.5rem 1.25rem 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.legacy-card::before { content: ""; position: absolute; top: -1px; left: 1.25rem; width: 38px; height: 3px; background: var(--brand-red); border-radius: 0 0 3px 3px; }
.legacy-card h3 { font-family: var(--font-mono); font-size: 1.15rem; color: var(--brand-red); font-weight: 600; margin-bottom: .5rem; }
.legacy-card p { font-size: .9rem; }

/* ---------- 11. Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(43,63,181,.55), transparent 60%),
    linear-gradient(160deg, var(--brand-navy-dark), var(--brand-navy-deep)),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.04) 39px 40px);
}
.page-hero h1 { color: #fff; max-width: 18ch; margin-top: .8rem; }
.page-hero p { color: #C2CEEC; max-width: 56ch; margin-top: 1rem; font-size: var(--step-1); }
.page-hero .eyebrow { color: #9FB2FF; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #8FA2D8; margin-bottom: 1.1rem; }
.breadcrumb a { color: #B9C6EA; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: #fff; }

/* ---------- 12. CTA banner / row ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem,3vw,2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cta-row p { font-size: var(--step-1); color: var(--ink); max-width: 52ch; margin: 0; }
.cta-banner { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); color: #fff; }
.cta-banner::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(700px 300px at 50% -30%, rgba(227,6,19,.32), transparent 60%), linear-gradient(160deg, var(--brand-navy), var(--brand-navy-deep)); }
.cta-banner h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-banner p { color: #C9D4F2; max-width: 52ch; margin: 1rem auto 0; }
.cta-banner .button-group { justify-content: center; margin-top: 1.8rem; }

/* ---------- 13. Accordion (FAQ) ---------- */
.accordion { display: grid; gap: .75rem; max-width: 820px; }
.accordion-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.accordion-item:hover { border-color: var(--line-strong); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.15rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.accordion-trigger .icon { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--surface); position: relative; transition: background .2s, color .2s; }
.accordion-trigger .icon::before, .accordion-trigger .icon::after { content:""; position:absolute; background: var(--brand-navy); transition: transform .25s var(--ease), background .2s; }
.accordion-trigger .icon::before { width: 12px; height: 2px; }
.accordion-trigger .icon::after { width: 2px; height: 12px; }
.accordion-trigger[aria-expanded="true"] .icon { background: var(--brand-red); }
.accordion-trigger[aria-expanded="true"] .icon::before, .accordion-trigger[aria-expanded="true"] .icon::after { background: #fff; }
.accordion-trigger[aria-expanded="true"] .icon::after { transform: scaleY(0); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.accordion-panel-inner { padding: 0 1.3rem 1.25rem; }
.accordion-panel-inner p { font-size: .95rem; }

/* ---------- 14. Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field-label .req { color: var(--brand-red); }
.field-input, .field-textarea, .field-select {
  width: 100%; padding: .8rem .95rem; background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field-input:focus, .field-textarea:focus, .field-select:focus { outline: none; border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgba(26,42,142,.12); }
.field-textarea { min-height: 130px; resize: vertical; }
.field-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5A7A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--muted); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand-red); margin-top: .2rem; flex: none; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-success { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(30,158,106,.1); border: 1px solid rgba(30,158,106,.4); color: #157a52; font-size: .92rem; }
.form-success.show { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* contact cards */
.contact-card { display: flex; gap: .9rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card svg { width: 24px; height: 24px; flex: none; stroke: var(--brand-red); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-card .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card a, .contact-card p { color: var(--ink); font-weight: 500; font-size: 1.02rem; }
.contact-card a:hover { color: var(--brand-red); }

/* ---------- 15. Badges / tags / misc ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--radius-pill); background: var(--surface); color: var(--brand-navy); border: 1px solid var(--line); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-red); font-weight: 500; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font-family: var(--font-mono); font-size: .78rem; padding: .45rem .9rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.figure-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--brand-navy-deep); }
.figure-frame img { width: 100%; display: block; }
.figure-caption { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-top: .7rem; letter-spacing: .04em; }

.check-list { display: grid; gap: .8rem; margin-top: 1.2rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; background: rgba(227,6,19,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E30613' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* numbered process band (light) */
.process-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.process-step { position: relative; padding-top: 1.5rem; }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--brand-red); }
.process-step::after { content: ""; position: absolute; top: .35rem; left: 2.4rem; right: -.5rem; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.process-step:last-child::after { display: none; }
.process-step h3 { font-size: 1.02rem; margin: .6rem 0 .4rem; }
.process-step p { font-size: .85rem; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--brand-navy-deep); color: #C2CEEC; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 44px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: #97A6D0; font-size: .9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #6F80B5; margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a, .footer-col p { color: #C2CEEC; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .82rem; color: #7888B8; }
.footer-bottom .mono { font-size: .76rem; }

/* ---------- 17. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .status-dot::before { animation: none; }
  .media-card:hover .media img { transform: none; }
  .button:hover, .card:hover { transform: none !important; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .grid-4, .stats-grid, .legacy-grid, .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .feature-cards, .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .process-band { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .3s var(--ease); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.open { transform: none; }
  .site-nav a:not(.button) { padding: .9rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .button { margin: .9rem 0 0; justify-content: center; }
  .grid-2, .grid-3, .grid-4, .stats-grid, .legacy-grid, .feature-cards, .preview-grid, .split, .form-row { grid-template-columns: 1fr; }
  .readouts { grid-template-columns: repeat(3, 1fr); }
  .trust-strip-inner { grid-template-columns: 1fr; gap: .9rem; }
  .trust-item + .trust-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .hero-meta b { font-size: 1.25rem; }
}
