/* ==========================================================================
   XPlora Digital — design system & site styles
   Token-driven (see :root). Light theme by brand direction (ADR/spec A-2).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Color — by role */
  --bg: #f2f2ef;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --ink: #131417;
  --ink-2: #3f4247;
  --muted: #686c72;
  --line: #e3e3dd;
  --line-strong: #d2d2cb;
  --primary: #131417;
  --primary-hover: #292b30;
  --primary-contrast: #ffffff;
  --accent: #6d87f5;
  --success: #1f7a4d;
  --danger: #b3261e;

  /* Dark band (stats / footer) */
  --dark-bg: #131417;
  --dark-surface: #1d1f24;
  --dark-text: #f4f4f1;
  --dark-muted: #a5a8ae;
  --dark-line: #2c2e34;

  /* Type */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.9rem, 8.4vw, 6rem);
  --fs-h2: clamp(2.1rem, 5vw, 3.75rem);
  --fs-h3: clamp(1.45rem, 2.6vw, 2rem);
  --fs-h4: 1.25rem;
  --fs-body-l: 1.125rem;
  --fs-body: 1rem;
  --fs-s: 0.875rem;
  --fs-xs: 0.75rem;

  /* Space (4px base, 8px rhythm) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;
  --sp-24: 96px; --sp-32: 128px;

  /* Radius & elevation */
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-full: 999px;
  --shadow-1: 0 1px 2px rgba(19, 20, 23, 0.05);
  --shadow-2: 0 10px 30px -12px rgba(19, 20, 23, 0.16);
  --shadow-3: 0 24px 60px -18px rgba(19, 20, 23, 0.2);

  --container: 1200px;
  --gutter: 24px;
}

/* Reset / base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 var(--sp-4);
  font-weight: 650;
  text-wrap: balance;
}

p { margin: 0 0 var(--sp-4); }

a { color: inherit; }

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

.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--dark-text); }

::selection { background: var(--ink); color: var(--bg); }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--ink); color: var(--primary-contrast);
  padding: 10px 18px; border-radius: var(--r-full);
  text-decoration: none; font-weight: 600; font-size: var(--fs-s);
  transition: top 160ms ease-out;
}
.skip-link:focus-visible { top: 14px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Layout ----------------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.deco-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-position: 25% 0, 50% 0, 75% 0;
}

header, main, footer { position: relative; z-index: 1; }

section { padding-block: var(--sp-24); }

.section-tight { padding-block: var(--sp-16); }

.kicker {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
}

.lead {
  font-size: var(--fs-body-l);
  color: var(--ink-2);
  max-width: 62ch;
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out,
              border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-2); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light {
  background: var(--dark-text);
  color: var(--ink);
}
.btn-light:hover { background: #ffffff; }

.btn .arrow { transition: transform 150ms ease-out; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header / nav ----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 50;
  padding-inline: var(--gutter);
}

.nav-pill {
  position: relative;
  width: min(880px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-2);
  padding: 10px 12px 10px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand svg { flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--r-full);
  text-decoration: none;
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--ink-2);
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta { white-space: nowrap; padding: 12px 20px; min-height: 44px; font-size: var(--fs-s); }

.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  border-radius: var(--r-full);
  color: var(--ink);
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Hero ------------------------------------------------------------------- */
.hero {
  padding-top: clamp(150px, 22vh, 210px);
  padding-bottom: var(--sp-16);
  position: relative;
}

.hero-arcs {
  position: absolute;
  top: 40px;
  left: 50%;
  translate: -50% 0;
  width: min(920px, 96vw);
  pointer-events: none;
  color: var(--accent);
  opacity: 0.55;
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.045em;
  line-height: 1.01;
  max-width: 14ch;
  margin-inline: auto;
}

.hero .kicker { margin-top: var(--sp-6); margin-bottom: 0; color: var(--muted); }

/* Subscribe bar (hero) --------------------------------------------------- */
.subscribe-band { padding-block: var(--sp-12) var(--sp-16); }

.subscribe-bar {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  width: min(920px, 100%);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-3);
  padding: 10px;
}
.subscribe-bar input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-body-l);
  color: var(--ink);
  padding: 12px 14px;
}
.subscribe-bar input::placeholder { color: var(--muted); }
.subscribe-bar input:focus { outline: none; }
.subscribe-bar:focus-within { border-color: var(--ink); }

.form-hint {
  text-align: center;
  font-size: var(--fs-s);
  color: var(--muted);
  margin-top: var(--sp-3);
}
.form-hint a { color: var(--ink-2); }

.field-error {
  display: none;
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--danger);
  margin-top: var(--sp-2);
}
.field-error.show { display: block; }

/* Statement -------------------------------------------------------------- */
.statement h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.04em;
  max-width: 24ch;
  margin-inline: auto;
}
.statement .actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-8);
}

/* Platform strip --------------------------------------------------------- */
.platforms { border-block: 1px solid var(--line); padding-block: var(--sp-8); background: transparent; }
.platforms .label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-6);
}
.platform-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  list-style: none;
  margin: 0; padding: 0;
}
.platform-row li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-1);
  padding: 10px 20px;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--ink-2);
}

/* Split sections (big label + content) ----------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}
.split-head h2 { font-size: var(--fs-h2); letter-spacing: -0.04em; max-width: 12ch; }
.split-head .lead { max-width: 38ch; }

/* Cards ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: var(--sp-8);
  box-shadow: var(--shadow-1);
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.card .num {
  font-family: var(--font-display);
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--sp-4);
}
.card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.card p { color: var(--ink-2); font-size: var(--fs-s); margin: 0; }

.tag-row {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.tag-row span {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px 12px;
  background: var(--surface-2);
}

/* Service detail blocks (services page) ---------------------------------- */
.service-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: var(--sp-8);
  box-shadow: var(--shadow-1);
  display: grid;
  gap: var(--sp-6);
}
.service-block h3 { font-size: var(--fs-h3); margin: 0; }
.service-block .num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
}
.service-block ul {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-2);
  color: var(--ink-2);
  font-size: var(--fs-s);
}
.service-block ul li { padding-left: 22px; position: relative; }
.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.service-stack { display: grid; gap: var(--sp-4); }

/* Steps ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--sp-6);
}
.step .num {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--muted);
  display: block;
  margin-bottom: var(--sp-3);
}
.step h3 { font-size: var(--fs-h4); }
.step p { color: var(--ink-2); font-size: var(--fs-s); margin: 0; }

/* Dark band -------------------------------------------------------------- */
.dark {
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: var(--r-l);
  padding: var(--sp-16) var(--sp-8);
}
.dark .kicker { color: var(--dark-muted); }
.facts-head { margin-bottom: var(--sp-8); }
.facts-head h2 {
  font-size: var(--fs-h3);
  letter-spacing: -0.03em;
  margin: 0;
}
.facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0; padding: 0;
  list-style: none;
}
/* Mobile-first: each fact is a compact row — value left, label beside it. */
.fact {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  column-gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--dark-line);
}
.fact .value {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fact .value::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 8px;
  align-self: center;
}
.fact .label-s {
  display: block;
  font-size: var(--fs-s);
  line-height: 1.45;
  color: var(--dark-muted);
}

/* Values / prose --------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--sp-12); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--sp-8); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong, .lead strong { color: var(--ink); font-weight: 600; }
.footer-brand p strong { color: var(--dark-text); font-weight: 600; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: var(--sp-2); }

/* Info table (company details) ------------------------------------------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  font-size: var(--fs-s);
}
.info-table th, .info-table td {
  text-align: left;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 34%; color: var(--muted); font-weight: 600; }
.info-table td { color: var(--ink); font-weight: 500; }

.table-wrap { overflow-x: auto; border-radius: var(--r-l); }

/* Contact ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: var(--sp-6);
  box-shadow: var(--shadow-1);
}
.contact-card h3 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.contact-card p { color: var(--ink-2); font-size: var(--fs-s); margin: 0; }
.contact-card a { font-weight: 600; color: var(--ink); }

/* Forms ------------------------------------------------------------------ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: var(--sp-8);
  box-shadow: var(--shadow-2);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.form-field label {
  display: block;
  font-size: var(--fs-s);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  padding: 12px 14px;
  transition: border-color 150ms ease-out;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: var(--danger); }

.checkbox-field {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-s);
  color: var(--ink-2);
}
.checkbox-field input {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
  flex: none;
}

/* FAQ -------------------------------------------------------------------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 0;
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-1);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: var(--sp-4) var(--sp-6);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  border-radius: var(--r-m);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 160ms ease-out;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 var(--sp-6) var(--sp-4);
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-s);
  max-width: 70ch;
}

/* Map -------------------------------------------------------------------- */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: var(--surface-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA band --------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); letter-spacing: -0.04em; max-width: 20ch; margin-inline: auto; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  margin-top: var(--sp-16);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--dark-line);
}
.footer-brand .brand { color: var(--dark-text); font-size: 1.3rem; }
.footer-brand p {
  color: var(--dark-muted);
  font-size: var(--fs-s);
  max-width: 34ch;
  margin-top: var(--sp-4);
}
.footer-col h3 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-col a {
  color: var(--dark-text);
  text-decoration: none;
  font-size: var(--fs-s);
}
.footer-col a:hover { text-decoration: underline; }
.footer-col address {
  font-style: normal;
  color: var(--dark-text);
  font-size: var(--fs-s);
  line-height: 1.7;
}
.footer-col address a { font-weight: 600; }

.footer-sub form { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.footer-sub input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: var(--fs-s);
  color: var(--dark-text);
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-full);
  padding: 11px 16px;
}
.footer-sub input::placeholder { color: var(--dark-muted); }
.footer-sub input:focus { outline: none; border-color: var(--dark-text); }
.footer-sub .btn { padding: 11px 18px; min-height: 44px; font-size: var(--fs-s); }
.footer-sub .form-hint { text-align: left; color: var(--dark-muted); }
.footer-sub .form-hint a { color: var(--dark-muted); }

.footer-legal {
  padding-top: var(--sp-8);
  display: grid;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--dark-muted);
  line-height: 1.8;
}
.footer-legal strong { color: var(--dark-text); font-weight: 600; }

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero {
  padding-top: clamp(140px, 20vh, 190px);
  padding-bottom: var(--sp-12);
}
.page-hero h1 {
  font-size: var(--fs-h2);
  letter-spacing: -0.045em;
  max-width: 16ch;
}
.page-hero .lead { margin-top: var(--sp-4); }

/* 404 / thank-you -------------------------------------------------------- */
.status-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-top: clamp(140px, 20vh, 190px);
}
.status-page h1 { font-size: var(--fs-display); letter-spacing: -0.045em; }
.status-page .actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-8); }

/* Reveal animation (transform/opacity only; gated below) ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .faq summary::after { transition: none; }
}

/* Responsive ------------------------------------------------------------- */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 220px 1fr; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); }
  /* ≥640px: facts return to stacked value-over-label cells. */
  .fact {
    display: block;
    padding: var(--sp-6) 0;
  }
  .fact .value { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
  .fact .value::after { width: 9px; height: 9px; margin-left: 10px; }
  .fact .label-s { margin-top: var(--sp-3); max-width: 24ch; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split-head { position: sticky; top: 120px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
  .footer-legal { grid-template-columns: 1fr auto; align-items: end; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .dark { padding: var(--sp-16); }
  .facts { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .fact {
    border-top: 0;
    border-left: 1px solid var(--dark-line);
    padding: var(--sp-2) var(--sp-6);
  }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

@media (max-width: 899px) {
  .deco-grid { background-image: linear-gradient(var(--line), var(--line)); background-position: 50% 0; }
}

@media (max-width: 767px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Stats card is hidden on phones — it shows from tablet width up. */
  .facts-band { display: none; }

  .nav-pill.open { border-radius: var(--r-l); flex-wrap: wrap; }
  .nav-pill.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line);
    margin-top: var(--sp-2);
  }
  .nav-pill.open .nav-links a { padding: 12px 14px; font-size: var(--fs-body); }
  .nav-pill.open .nav-cta {
    display: inline-flex;
    order: 4;
    width: 100%;
    margin-top: var(--sp-3);
  }

  .subscribe-bar { flex-direction: column; align-items: stretch; padding: var(--sp-3); }
  .subscribe-bar .btn { width: 100%; }
  .footer-sub form { flex-direction: column; }
  section { padding-block: var(--sp-16); }
}
