/* ==========================================================================
   Dr Albert — Sovereign Intelligence · Design System & Styles
   Dark, premium enterprise-AI aesthetic. Electric-blue accents.
   Built on the same structural design language as the ParkingWarden site.
   ========================================================================== */

/* 1. DESIGN TOKENS  (change colours, spacing, fonts in ONE place)
   -------------------------------------------------------------------------- */
:root {
  /* Brand — electric blue pulled from the Dr Albert logo */
  --blue:        #0b8af5;   /* primary electric blue (logo nodes) */
  --blue-bright: #3da5ff;   /* lighter accent / hover glow */
  --blue-dark:   #0a78d6;   /* pressed */
  --blue-soft:   rgba(11,138,245,.13);  /* tinted icon backgrounds */
  --blue-line:   rgba(11,138,245,.32);
  --teal:        #2bd4a0;   /* "secure / sovereign / verified" accent */
  --teal-soft:   rgba(43,212,160,.13);
  --amber:       #f5b53d;
  --violet:      #8b6dff;
  --gold:        #e0b030;   /* X7 logo gold — used very subtly (F1 / hardware) */
  --gold-soft:   rgba(224,176,48,.12);
  --gold-line:   rgba(224,176,48,.34);
  --verify:      #2bd4a0;   /* status: success (alias of teal) */
  --brand-red:   #ff7d7d;   /* status: error */

  /* Dark surfaces */
  --black:       #04060d;   /* deepest */
  --bg:          #070a14;   /* page background */
  --bg-alt:      #0a0e1b;   /* alternating section */
  --deep:        #050811;   /* darkest feature sections */
  --panel:       #0e1424;   /* card surface */
  --panel-2:     #121a2d;   /* raised card surface */

  /* Text */
  --ink:         #eef3fb;   /* headings / strong */
  --slate:       #a3b4ce;   /* body text */
  --muted:       #6f819e;   /* tertiary */
  --line:        rgba(255,255,255,.09);   /* borders */
  --line-2:      rgba(255,255,255,.14);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --gap: clamp(1rem, 2vw, 1.5rem);

  /* Shadows / glows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.35);
  --shadow-tile: 0 10px 30px rgba(0,0,0,.45);
  --shadow:    0 18px 44px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.62);
  --glow:      0 0 0 1px var(--blue-line), 0 18px 50px rgba(11,138,245,.22);
}

/* 2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 78px; }

body {
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-top: 78px;
  /* subtle living background */
  background-image:
    radial-gradient(1100px 620px at 84% -8%, rgba(11,138,245,.10), transparent 60%),
    radial-gradient(900px 600px at -8% 8%, rgba(43,212,160,.05), transparent 55%);
  background-attachment: fixed;
}

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid #fff; outline-offset: 2px; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
[tabindex="0"]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

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

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}

/* 3. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(2.75rem, 5.5vw, 4.5rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep {
  background:
    radial-gradient(800px 480px at 80% 0%, rgba(11,138,245,.12), transparent 60%),
    var(--deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.wide { max-width: 1100px; }
@media (min-width: 1080px) { .section-head.wide h2 { white-space: nowrap; } }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  margin-top: 1rem;
}
.section-head p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--slate);
}
.hl { color: var(--blue-bright); }

/* 4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: 0 8px 22px rgba(11,138,245,.40);
}
.btn--primary:hover { box-shadow: 0 12px 30px rgba(11,138,245,.55); filter: brightness(1.06); }

.btn--ghost { background: rgba(255,255,255,.03); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-bright); background: var(--blue-soft); }

.btn--light { background: #fff; color: #07101f; }
.btn--light:hover { background: var(--blue-soft); color: #fff; box-shadow: 0 12px 30px rgba(11,138,245,.4); }

.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* 5. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(7,10,20,.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, padding-bottom .22s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.45); background: rgba(6,9,17,.86); }
@media (min-width: 961px) {
  .site-header:has(.nav-links:hover) { padding-bottom: 56px; }
  .site-header:has(.nav-links:focus-within) { padding-bottom: 56px; }
  .site-header:has(.has-sub:hover) { padding-bottom: 56px; }
  .site-header:has(.has-sub:focus-within) { padding-bottom: 56px; }
  .site-header .nav { justify-content: flex-start; gap: 0; }
  .site-header .brand { margin-right: 4px; }
  .site-header .nav-links { gap: 18px; margin-right: 11px; transform: none; }
  .site-header .nav-cta { margin-left: auto; }
  .site-header .submenu { top: calc(100% + 3px); padding-top: 1px; transform: translateX(-50%); }
  .site-header .has-sub::after {
    content: ""; position: absolute; left: 50%;
    width: max(160%, 560px); transform: translateX(-50%);
    top: 100%; height: 64px; display: none; z-index: 55;
  }
  .site-header .has-sub:hover::after,
  .site-header .has-sub:focus-within::after { display: block; }
}

.nav {
  display: flex; flex-wrap: nowrap; align-items: center;
  justify-content: space-between; gap: 10px; height: 78px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; flex-shrink: 0; }
.brand .brand-mark { height: 44px; width: 44px; border-radius: 11px; display: block; box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(11,138,245,.28); }
.brand .brand-x7 { height: 34px; width: auto; display: block; }
/* Responsive nav-button label */
.lbl-short { display: none; }
.brand .brand-name { display: inline-flex; align-items: baseline; gap: 1px; }
.brand .brand-name b { font-weight: 800; color: var(--ink); }
.brand .brand-name .ai { color: var(--blue-bright); font-weight: 800; }

.nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; list-style: none; height: 78px; }
.nav-links > li { display: flex; align-items: center; height: 100%; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .95rem; white-space: nowrap; transition: color .15s ease; }
.nav-links a:hover { color: var(--blue-bright); }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta .btn { white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 6px; }

.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 13px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease; z-index: 60;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.submenu-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 28px; }
.submenu a { padding: 4px 0; font-size: .9rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.submenu a:hover { color: var(--blue-bright); }

/* 6. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(1.25rem, 3vw, 2.25rem); padding-bottom: clamp(2.75rem, 5.5vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(820px 520px at 86% -12%, rgba(11,138,245,.28) 0%, transparent 58%),
    radial-gradient(680px 520px at -8% 18%, rgba(43,212,160,.10) 0%, transparent 55%);
  z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.15rem); margin-top: 1.1rem; }
.hero h1 .hl { color: var(--blue-bright); }
.hero p.lead { margin-top: 1.4rem; font-size: 1.18rem; color: var(--slate); max-width: 47ch; }
.hero p.lead strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.hero-trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }

/* Hero visual — alternating product card + digital-twin node card */
.hero-visual {
  position: relative; width: 100%; max-width: 430px;
  min-height: clamp(400px, 45vw, 520px); margin-inline: auto; perspective: 1200px;
}
.hero-visual-pane {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d; backface-visibility: hidden;
  will-change: opacity, transform; transition: opacity .35s ease;
}
.hero-app-pane { animation: heroAppCycle 11s ease-in-out infinite; }
.hero-evidence-pane { animation: heroEvidenceCycle 11s ease-in-out infinite; }
#twinCard, #insightCard { will-change: transform; backface-visibility: hidden; }

@keyframes heroAppCycle {
  0%, 42% { opacity: 1; pointer-events: auto; }
  50%, 92% { opacity: 0; pointer-events: none; }
  100% { opacity: 1; pointer-events: auto; }
}
@keyframes heroEvidenceCycle {
  0%, 42% { opacity: 0; pointer-events: none; }
  50%, 92% { opacity: 1; pointer-events: auto; }
  100% { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-app-pane, .hero-evidence-pane { animation: none; }
  .hero-app-pane { opacity: 1; }
  .hero-evidence-pane { opacity: 0; }
}

/* Insight / verification card (re-using evidence-card structure) */
.evidence-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--blue-line);
  padding: 22px; max-width: 420px; margin-inline: auto; position: relative;
  transform: rotateX(5deg) rotateY(9deg) translateZ(28px);
}
.evidence-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); pointer-events: none;
}
.evidence-card .ec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.evidence-card .ec-title { font-weight: 700; color: var(--ink); font-size: .98rem; }
.evidence-card .ec-sub { font-size: .78rem; color: var(--muted); }
.ec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-soft); color: var(--teal);
  font-weight: 700; font-size: .72rem; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(43,212,160,.3);
}
.ec-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }

.ec-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  opacity: 0; transform: translateY(6px);
}
.ec-row.in { animation: rowIn .5s ease forwards; }
.ec-row .ec-check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-bright); display: grid; place-items: center;
  border: 1px solid var(--blue-line);
}
.ec-row .ec-check svg { width: 15px; height: 15px; }
.ec-row .ec-label { font-size: .9rem; color: var(--slate); flex: 1; }
.ec-row .ec-status { font-size: .74rem; font-weight: 700; color: var(--teal); letter-spacing: .04em; }
.ec-foot { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
@keyframes rowIn { to { opacity: 1; transform: translateY(0); } }

/* Twin "node network" card */
.twin-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 20px; padding: 24px; max-width: 420px; margin-inline: auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--blue-line);
  transform: rotateX(5deg) rotateY(-8deg) translateZ(28px);
}
.twin-card .tc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.twin-card .tc-title { font-weight: 700; color: var(--ink); font-size: .98rem; }
.twin-card .tc-sub { font-size: .78rem; color: var(--muted); }
.twin-net { position: relative; height: 200px; border-radius: 14px; background: #000; border: 1px solid var(--blue-line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.twin-net svg { width: 100%; height: 100%; display: block; }
.twin-portrait { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.twin-net .edge { stroke: rgba(11,138,245,.45); stroke-width: 1.4; }
.twin-net .node { fill: var(--blue); }
.twin-net .node.pulse { animation: nodePulse 2.6s ease-in-out infinite; }
.twin-net .core { fill: #fff; }
@keyframes nodePulse { 0%,100% { opacity: .55; r: 4; } 50% { opacity: 1; r: 6; } }
.twin-foot { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.twin-foot .tf { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.twin-foot .tf .n { font-weight: 800; color: var(--blue-bright); font-size: 1.05rem; }
.twin-foot .tf .l { font-size: .68rem; color: var(--muted); margin-top: 2px; letter-spacing: .02em; }

/* 7. STATS STRIP
   -------------------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--panel); padding: 26px 12px; text-align: center; }
.stat .num { font-size: clamp(1.25rem, 2.05vw, 1.7rem); font-weight: 800; color: var(--blue-bright); letter-spacing: -.03em; line-height: 1.1; }
.stat .lab { font-size: .82rem; color: var(--slate); margin-top: 6px; }
.stats-reveal .stat { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.stats-reveal.visible .stat { opacity: 1; transform: translateY(0); }

/* Generic small head for sub-blocks */
.stats-gap-head { text-align: center; max-width: 720px; margin: 2.75rem auto 1.5rem; }
.stats-gap-head h3 { font-size: 1.4rem; color: var(--ink); }
.stats-gap-head p { color: var(--slate); font-size: 1rem; margin-top: 8px; }

/* gap-grid (problem situations) */
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gap-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow-tile);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gap-item:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--blue-line); }
.gap-item .g-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-bright); display: grid; place-items: center; border: 1px solid var(--blue-line); }
.gap-item .g-ico svg { width: 22px; height: 22px; }
.gap-item h4 { font-size: .98rem; margin-bottom: 6px; color: var(--ink); }
.gap-item p { font-size: .94rem; color: var(--slate); line-height: 1.5; }
.gap-note { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.gap-note .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--amber); box-shadow: 0 0 0 4px rgba(245,181,61,.14); }

/* 8. GENERIC CARD GRIDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-tile);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--blue-line); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-bright); margin-bottom: 18px; border: 1px solid var(--blue-line);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--ink); }
.card p { color: var(--slate); font-size: .98rem; }
/* Icon-left consistent tile layout */
.card.card-row { display: flex; gap: 16px; align-items: flex-start; }
.card.card-row .icon { margin-bottom: 0; flex: none; width: 46px; height: 46px; }
.card.card-row h3 { font-size: 1.15rem; }

/* 9. PROBLEM SECTION (quotes / risks)
   -------------------------------------------------------------------------- */
.quotes { display: grid; gap: 16px; }
.quote {
  background: var(--panel); border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; box-shadow: var(--shadow-sm); color: var(--slate);
}
.quote strong { color: var(--ink); }

/* 10. CAPABILITY / LAYER GRID (dark feature lists)
   -------------------------------------------------------------------------- */
.layer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.layer {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.layer:hover { background: rgba(11,138,245,.06); border-color: var(--blue-line); transform: translateY(-3px); }
.layer .lyr-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-bright); display: grid; place-items: center; border: 1px solid var(--blue-line); }
.layer .lyr-ico svg { width: 20px; height: 20px; }
.layer h4 { color: var(--ink); font-size: .98rem; margin-bottom: 6px; }
.layer p { font-size: .94rem; color: var(--slate); line-height: 1.5; }
.lyr-num { font-weight: 800; font-size: 1.05rem; }

.reg-fit {
  width: 100%; margin: 34px 0 0; padding: 24px clamp(20px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(11,138,245,.05);
}
.reg-fit h3 { color: var(--ink); font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 14px 0 12px; }
.reg-fit p { color: var(--slate); font-size: .95rem; line-height: 1.65; margin: 0; }
.reg-fit p + p { margin-top: 10px; }

/* 11. STAGES (evolution) — re-using simple-steps
   -------------------------------------------------------------------------- */
.simple-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.simple-step {
  display: flex; gap: 16px; align-items: flex-start;
  text-align: left; padding: 28px 24px; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-tile);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.simple-step:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--blue-line); }
.simple-step .ss-body { padding-right: 30px; }
.simple-step .ss-ico {
  width: 50px; height: 50px; border-radius: 14px; margin: 0; flex: none;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-bright); border: 1px solid var(--blue-line);
}
.simple-step .ss-ico svg { width: 26px; height: 26px; }
.simple-step .ss-stage { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-bright); }
.simple-step h3 { font-size: 1.2rem; margin: 4px 0 8px; color: var(--ink); }
.simple-step p { color: var(--slate); font-size: .95rem; }
.simple-step .ss-step-num { position: absolute; top: 22px; right: 24px; font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,.05); letter-spacing: -.04em; }

/* 12. CAPABILITY CATEGORY GRID
   -------------------------------------------------------------------------- */
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 1.4rem; flex-wrap: wrap; }
.cat-head h3 { font-size: 1.4rem; color: var(--ink); }
.cat-head p { color: var(--slate); font-size: .95rem; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow-tile);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--blue-line); }
.cat .cat-ico { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 0; flex: none; display: grid; place-items: center; }
.cat .cat-ico svg { width: 22px; height: 22px; }
.cat h4 { font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.cat p { font-size: .94rem; color: var(--slate); line-height: 1.5; }
.cat-ico.c-blue   { background: var(--blue-soft);  color: var(--blue-bright); border: 1px solid var(--blue-line); }
.cat-ico.c-teal   { background: var(--teal-soft);  color: var(--teal);  border: 1px solid rgba(43,212,160,.3); }
.cat-ico.c-amber  { background: rgba(245,181,61,.12); color: var(--amber); border: 1px solid rgba(245,181,61,.3); }
.cat-ico.c-violet { background: rgba(139,109,255,.14); color: var(--violet); border: 1px solid rgba(139,109,255,.3); }

/* 13. STORY (founder)
   -------------------------------------------------------------------------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-quote { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.45; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.story-quote .hl { color: var(--blue-bright); }
.story-by { margin-top: 18px; color: var(--slate); font-size: 1rem; line-height: 1.6; }
.story-sign { margin-top: 18px; font-weight: 700; color: var(--ink); font-size: .98rem; }
.story-visual {
  background: linear-gradient(160deg, #0d1b3a, #07101f);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius); padding: 40px; color: var(--slate); min-height: 280px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  box-shadow: var(--shadow), inset 0 0 60px rgba(11,138,245,.08);
}
.story-visual .sv-big { font-size: 2.05rem; line-height: 1.14; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.story-visual p { color: var(--slate); }

/* 14. FEATURE GRID
   -------------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow-tile);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--blue-line); }
.feature .f-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-bright); display: grid; place-items: center; border: 1px solid var(--blue-line); }
.feature .f-ico svg { width: 22px; height: 22px; }
.feature h4 { font-size: .98rem; margin-bottom: 6px; color: var(--ink); }
.feature p { font-size: .94rem; color: var(--slate); line-height: 1.5; }

/* Compare (vs generic AI) */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 1rem; }
.compare-col {
  border-radius: var(--radius); padding: 30px; border: 1px solid var(--line);
}
.compare-col.bad { background: var(--panel); }
.compare-col.good { background: linear-gradient(180deg, rgba(11,138,245,.10), var(--panel)); border-color: var(--blue-line); box-shadow: var(--glow); }
.compare-col h3 { font-size: 1.15rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.compare-col .pill { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.compare-col.bad .pill { background: rgba(245,90,90,.14); color: #ff8e8e; }
.compare-col.good .pill { background: var(--teal-soft); color: var(--teal); }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.compare-col li { display: flex; gap: 11px; align-items: flex-start; color: var(--slate); font-size: .96rem; }
.compare-col li svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.compare-col.bad li svg { color: #ff7d7d; }
.compare-col.good li svg { color: var(--teal); }

/* 15. SECTORS (channels) */
.channel { text-align: left; }
.channel .ch-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-bright); background: var(--blue-soft); border: 1px solid var(--blue-line); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.channel h3 { color: var(--ink); }
.channel ul { list-style: none; margin-top: 14px; padding-left: 0; display: grid; gap: 8px; }
.channel ul li { position: relative; padding-left: 20px; color: var(--slate); font-size: .95rem; }
.channel ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 6px var(--blue); }

/* 16. INFRASTRUCTURE (numbered, dark) */
.price-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.price-card .tag { font-size: .85rem; color: var(--teal); font-weight: 700; }
.price-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate); font-size: .98rem; }
.price-list li svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }

.compare {
  background: linear-gradient(160deg, #0c1730, #060b16); color: #fff;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius); padding: 30px; overflow: hidden; box-shadow: inset 0 0 60px rgba(11,138,245,.08);
}
.compare h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.compare .sub { color: var(--slate); font-size: .9rem; margin-bottom: 22px; }
.compare-bar { margin-bottom: 18px; }
.compare-bar .cb-top { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 8px; color: var(--slate); }
.compare-bar .cb-track { height: 12px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.compare-bar .cb-fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(.16,.84,.44,1); }
.cb-fill.trad { background: linear-gradient(90deg, #46506b, #6b7896); }
.cb-fill.pw { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); box-shadow: 0 0 14px rgba(11,138,245,.6); }
.compare .note { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* 17. ONBOARDING / DELIVERY */
.onboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.onboard-group { margin-top: 2.5rem; }
.onboard-cat { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 1.1rem; }
.onboard-card {
  background: linear-gradient(160deg, #0d1b3a, #08111f); color: #fff; border: 1px solid var(--blue-line);
  border-radius: 14px; padding: 24px; box-shadow: var(--shadow-tile); min-height: 150px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.onboard-card:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.onboard-card h3 { color: #fff; font-size: .98rem; margin-bottom: 6px; }
.onboard-card p { color: var(--slate); font-size: .94rem; line-height: 1.5; }
.onboard-actions { justify-content: center; margin-top: 2rem; }

/* 18. CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-line .ci-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-bright); display: grid; place-items: center; border: 1px solid var(--blue-line); }
.contact-line .ci-ico svg { width: 22px; height: 22px; }
.contact-line h4 { font-size: .9rem; color: var(--ink); margin-bottom: 2px; }
.contact-line a, .contact-line p { color: var(--slate); font-size: .98rem; }
.contact-line a:hover { color: var(--blue-bright); }

.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: rgba(255,255,255,.02);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input, .field select { height: 48px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f819e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { background: var(--panel); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,138,245,.22);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.form-status { font-size: .92rem; font-weight: 600; color: var(--teal); margin-top: 12px; min-height: 1.2em; }

/* 19. LEGAL POPUP */
.legal-modal {
  position: fixed; inset: 0; z-index: 210; background: rgba(2,5,12,.82);
  display: none; align-items: center; justify-content: center; padding: 24px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.legal-modal.open { display: flex; animation: vmFade .2s ease; }
@keyframes vmFade { from { opacity: 0; } to { opacity: 1; } }
.legal-panel {
  position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  max-width: 760px; width: 100%; max-height: 86vh;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.legal-close {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.06); color: var(--ink); font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; z-index: 2; transition: background .15s ease;
}
.legal-close:hover { background: rgba(255,255,255,.14); }
.legal-content { overflow-y: auto; padding: 40px clamp(24px, 4vw, 48px); }
.legal-content h2 { font-size: 1.6rem; margin-bottom: 4px; }
.legal-content .legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 22px; }
.legal-content h3 { font-size: 1.08rem; margin: 22px 0 8px; color: var(--ink); }
.legal-content p, .legal-content li { color: var(--slate); font-size: .95rem; line-height: 1.6; }
.legal-content ul { margin: 8px 0 8px 1.2rem; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--blue-bright); }
.legal-link { cursor: pointer; }

/* 20. FOOTER */
.footer { background: var(--black); color: var(--slate); padding-block: 56px 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .footer-brand { display: flex; align-items: center; gap: 11px; }
.footer .footer-brand img { height: 40px; width: 40px; border-radius: 10px; }
.footer .footer-brand .brand-name b { color: #fff; font-weight: 800; }
.footer .footer-brand .brand-name .ai { color: var(--blue-bright); font-weight: 800; }
.footer p.fdesc { margin-top: 14px; font-size: .92rem; max-width: 32ch; color: var(--muted); }
.footer h5 { color: #fff; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.footer ul a { color: var(--slate); font-size: .92rem; transition: color .15s; }
.footer ul a:hover { color: var(--blue-bright); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: var(--slate); }
.x7-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 14px; color: var(--slate); font-size: .82rem; margin-top: 18px; }
.x7-badge b { color: #fff; }
.x7-logo-link { display: inline-block; margin-top: 20px; }
.x7-logo { height: 34px; width: auto; display: block; opacity: .92; transition: opacity .15s ease; }
.x7-logo-link:hover .x7-logo { opacity: 1; }
.x7-cap { margin-top: 10px; font-size: .82rem; color: var(--muted); max-width: 32ch; }

/* 20b. SUBTLE GOLD ACCENTS (from the X7 logo) — confined to the F1/hardware story */
#infrastructure {
  background:
    radial-gradient(760px 460px at 82% 0%, rgba(224,176,48,.075), transparent 60%),
    radial-gradient(700px 460px at 12% 4%, rgba(11,138,245,.09), transparent 60%),
    var(--deep);
}
#infrastructure .eyebrow { color: var(--gold); }
#infrastructure .price-card .tag { color: var(--gold); }
#infrastructure .compare { border-top: 2px solid var(--gold-line); }
/* tiny gold tick in the hero trust line — a single, quiet nod to the brand gold */
.hero-trust .dot { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

/* 20c. BOOK-A-TEAMS-MEETING — date/time picker (ported from ParkingWarden, themed dark) */
.cf-turnstile { margin-bottom: 16px; }
#mf-cal { cursor: pointer; }
.time-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.time-row .time-colon { font-weight: 700; color: var(--ink); font-size: 1.15rem; margin: 0 -2px; }
.cdrop { position: relative; }
.cdrop-btn {
  height: 44px; min-width: 80px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px;
  background: rgba(255,255,255,.03); font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cdrop.open .cdrop-btn, .cdrop-btn:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,138,245,.22); }
.cdrop-btn .cdrop-chev { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .15s ease; }
.cdrop.open .cdrop-btn .cdrop-chev { transform: rotate(180deg); }
.cdrop-menu {
  position: fixed; z-index: 240; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 6px; margin: 0; list-style: none;
  max-height: 240px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
}
.cdrop-menu li { padding: 9px 14px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: .95rem; text-align: center; }
.cdrop-menu li:hover { background: var(--blue-soft); color: var(--blue-bright); }
.cdrop-menu li[aria-selected="true"] { background: var(--blue-soft); color: var(--blue-bright); font-weight: 600; }

/* flatpickr — dark theme */
.flatpickr-calendar { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after { border-bottom-color: var(--panel-2); border-top-color: var(--panel-2); }
.flatpickr-calendar.inline { width: 100%; max-width: 100%; margin: 8px 0 0; box-shadow: none; border: 1px solid var(--line-2); border-radius: 12px; }
.flatpickr-calendar.inline .flatpickr-rContainer, .flatpickr-calendar.inline .flatpickr-weekdays, .flatpickr-calendar.inline .flatpickr-days { width: 100%; }
.flatpickr-calendar.inline .flatpickr-weekdaycontainer, .flatpickr-calendar.inline .dayContainer { flex: 1; min-width: 0; max-width: none; width: auto; }
.flatpickr-calendar.inline .flatpickr-day { max-width: none; }
.flatpickr-months { background: transparent; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month, .flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months { color: var(--ink); fill: var(--ink); background: transparent; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 600; }
.flatpickr-monthDropdown-months .flatpickr-monthDropdown-month { background: var(--panel-2); color: var(--ink); }
.flatpickr-weekday { color: var(--muted); background: transparent; }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: var(--slate); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--blue-bright); }
.flatpickr-day { color: var(--slate); }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--blue-soft); border-color: transparent; color: var(--ink); }
.flatpickr-day.today { border-color: var(--blue); }
.flatpickr-day.today:hover { background: var(--blue-soft); color: var(--ink); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus { background: var(--blue); border-color: var(--blue); color: #fff; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--muted); opacity: .45; }
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm, .flatpickr-time .flatpickr-time-separator { color: var(--ink); }
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover { background: var(--blue-soft); }
.flatpickr-time { height: auto; max-height: none; overflow: visible; display: flex; align-items: center; justify-content: center; padding: 9px 6px; }
.flatpickr-time .numInputWrapper { position: relative; width: 94px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; margin: 0 4px; }
.flatpickr-time .flatpickr-am-pm { width: 68px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; margin: 0 4px; display: flex; align-items: center; justify-content: center; line-height: normal; }
.flatpickr-time .numInput { width: 100%; height: 100%; line-height: 38px; text-align: center; padding-right: 30px; background: transparent; }
.flatpickr-time .flatpickr-time-separator { line-height: 40px; padding: 0 2px; }
.flatpickr-time .numInputWrapper span { width: 30px; height: 50%; opacity: 1; border-left: 1px solid var(--line-2); }
.flatpickr-time .numInputWrapper span:hover, .flatpickr-time .numInputWrapper span:active { background: var(--blue-soft); }
.flatpickr-time .numInputWrapper span.arrowUp { border-bottom: 1px solid var(--line-2); }
.flatpickr-time .numInputWrapper span.arrowUp:after { left: 50%; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 6px solid var(--slate); }
.flatpickr-time .numInputWrapper span.arrowDown:after { left: 50%; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--slate); }

/* 21. SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 22. RESPONSIVE */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero p.lead { max-width: none; }
  .evidence-card, .twin-card { margin-top: 1rem; }
  .price-wrap { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .layer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gap-grid { grid-template-columns: repeat(2, 1fr); }
  .onboard-grid { grid-template-columns: repeat(2, 1fr); }
  .simple-steps { grid-template-columns: 1fr; }
  .compare-wrap { grid-template-columns: 1fr; }
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links { height: auto; }
  .nav { flex-wrap: wrap; height: auto; gap: 4px; }
  .brand, .nav-cta { min-height: 78px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { padding: 10px 15px; font-size: .92rem; }
  .brand .brand-x7 { height: 32px; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .nav.open .nav-cta .btn--primary { display: none; }
  .nav.open .nav-cta .btn--ghost { display: inline-flex; }
  .nav.open .brand { order: 1; }
  .nav.open .nav-cta { order: 2; margin-left: auto; gap: 8px; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; order: 3; flex: 0 0 100%; width: 100%;
    text-align: center; align-items: stretch; background: transparent; border: 0; box-shadow: none;
    padding: 2px 0 14px; max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav.open .nav-links > li { display: block; height: auto; }
  .nav.open .nav-links > li > a {
    display: block; text-align: center; padding: 14px 16px 6px;
    font-size: 1.05rem; font-weight: 700; color: var(--ink);
  }
  .nav.open .submenu {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; background: none; border: 0; box-shadow: none;
  }
  .nav.open .submenu-inner {
    display: grid; grid-template-columns: 1fr 1fr; max-width: 320px; margin: 0 auto;
    min-width: 0; padding: 0 0 10px; column-gap: 14px; row-gap: 0;
  }
  .nav.open .submenu a { display: block; text-align: center; padding: 7px 6px; font-size: .95rem; font-weight: 500; color: var(--slate); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 10px; }
  .stat .lab { font-size: .78rem; }
  .story-visual .sv-big { font-size: 1.6rem; }
  .cat-grid, .feature-grid, .gap-grid { grid-template-columns: 1fr; }
  .onboard-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* contact rows stay left-aligned; only the button is centred */
  .book-cta { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}
