/* ==========================================================================
   SPRK Integrations - styles
   A single, token-driven stylesheet. Every color, radius, shadow, and motion
   value is a CSS variable, so the whole look is swappable from :root.
   Default theme is light. A clean dark theme is provided via
   prefers-color-scheme, with [data-theme] hooks for a future manual toggle.
   ========================================================================== */

/* ---- 1. Design tokens (light, default) ---------------------------------- */
:root {
  /* Surfaces + text */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e9eef5;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Single accent (swap this one hue to re-brand) */
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-ink: #2563eb;      /* links + inline highlights on page bg */
  --accent-contrast: #ffffff; /* text on an accent fill */
  --accent-soft: #eaf0fe;     /* tinted background wash */
  --accent-soft-2: #dce7fd;

  /* Feedback */
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #059669;
  --success-soft: #ecfdf5;

  /* Typography */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-30: 1.875rem;
  --fs-hero: clamp(2.5rem, 1.55rem + 3.9vw, 3.75rem);      /* 40 -> 60 */
  --fs-section: clamp(1.75rem, 1.25rem + 2vw, 2.375rem);   /* 28 -> 38 */

  /* Radius scale (rule: buttons = pill, cards = 16, inputs = 10) */
  --r-input: 10px;
  --r-card: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing + layout */
  --maxw: 1120px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(4rem, 2.8rem + 5.5vw, 7rem);

  /* Shadows (tinted to slate, never pure black on light) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 16px -6px rgba(15, 23, 42, 0.12), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.18), 0 8px 20px -12px rgba(15, 23, 42, 0.10);
  --shadow-accent: 0 12px 30px -10px rgba(37, 99, 235, 0.45);
  --card-highlight: none;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 0.18s;
  --dur-2: 0.6s;
  --dur-3: 0.8s;

  --header-h: 64px;
}

/* ---- 1b. Dark theme ----------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c;
    --surface: #101728;
    --surface-2: #0e1524;
    --surface-3: #131c30;
    --text: #f1f5f9;
    --muted: #9aa7bd;
    --muted-2: #8593ab;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --accent: #2f6fe8;
    --accent-strong: #4c86f2;
    --accent-ink: #83abff;
    --accent-contrast: #ffffff;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --accent-soft-2: rgba(59, 130, 246, 0.22);

    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 28px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 34px 64px -22px rgba(0, 0, 0, 0.72);
    --shadow-accent: 0 14px 34px -12px rgba(37, 99, 235, 0.6);
    --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

/* Forced dark via attribute (future manual toggle) */
:root[data-theme="dark"] {
  --bg: #0a0f1c;
  --surface: #101728;
  --surface-2: #0e1524;
  --surface-3: #131c30;
  --text: #f1f5f9;
  --muted: #9aa7bd;
  --muted-2: #8593ab;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #2f6fe8;
  --accent-strong: #4c86f2;
  --accent-ink: #83abff;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-soft-2: rgba(59, 130, 246, 0.22);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 28px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 34px 64px -22px rgba(0, 0, 0, 0.72);
  --shadow-accent: 0 14px 34px -12px rgba(37, 99, 235, 0.6);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--accent-soft-2); color: var(--text); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--accent); color: var(--accent-contrast);
  padding: 0.6rem 1rem; border-radius: var(--r-pill); font-weight: 600;
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* ---- 3. Layout helpers -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  margin-bottom: 0.85rem;
}

.section-head { max-width: 42rem; }
.section-head h2 { font-size: var(--fs-section); }
.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--fs-18);
  max-width: 40rem;
}

/* ---- 4. Wordmark -------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1;
}
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  width: 30px; height: 30px; border-radius: 9px;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}
.wordmark-text { font-size: 1.075rem; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark-text .wm-strong { font-weight: 700; color: var(--text); }
.wordmark-text .wm-light { font-weight: 500; color: var(--muted); margin-left: 0.28em; }
.wordmark--lg .wordmark-mark { width: 38px; height: 38px; border-radius: 11px; }
.wordmark--lg .wordmark-text { font-size: 1.35rem; }

/* ---- 5. Buttons --------------------------------------------------------- */
.btn {
  --_lift: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 0.72rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-soft),
              box-shadow var(--dur-2) var(--ease-out),
              background-color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
  transform: translateY(var(--_lift));
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { --_lift: -2px; background: var(--accent-strong); box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.55); }

/* Nested "button-in-button" trailing icon */
.btn-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  margin-right: -0.35rem;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.btn-ic svg { width: 13px; height: 13px; }
.btn-primary:hover .btn-ic { transform: translate(2px, -1px); background: rgba(255, 255, 255, 0.28); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { --_lift: -2px; border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-inline: 0.4rem;
}
.btn-ghost:hover { color: var(--accent-ink); }
.btn-ghost .btn-ic { background: var(--surface-2); color: var(--accent-ink); }
.btn-ghost:hover .btn-ic { transform: translateY(2px); }

.btn-lg { padding: 0.95rem 1.5rem; font-size: var(--fs-18); }
.btn-lg .btn-ic { width: 26px; height: 26px; }
.btn-lg .btn-ic svg { width: 15px; height: 15px; }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; box-shadow: none;
  --_lift: 0;
}
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { --_lift: 0; background: var(--accent); box-shadow: none; }

/* ---- 6. Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%;
}
.header-cta { flex: 0 0 auto; }
/* Header CTA has a full label on wide screens and a short one on phones,
   so the wordmark and button always fit on one line without clipping. */
.cta-short { display: none; }
@media (max-width: 560px) {
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
  .header-cta .btn { padding: 0.6rem 0.95rem; font-size: var(--fs-14); }
  .header-cta .btn-ic { width: 20px; height: 20px; margin-right: -0.2rem; }
}

/* Scroll sentinel for the header border toggle */
.scroll-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

/* ---- 7. Hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

/* Soft layered background: accent mesh + faint grid, both very restrained */
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(42rem 30rem at 78% 12%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(34rem 26rem at 10% 0%, color-mix(in srgb, var(--accent-soft) 70%, transparent) 0%, transparent 55%);
  z-index: 0; pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60rem 40rem at 70% 20%, #000 0%, transparent 70%);
          mask-image: radial-gradient(60rem 40rem at 70% 20%, #000 0%, transparent 70%);
  opacity: 0.5;
  z-index: 0; pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) var(--section-y);
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero-copy { max-width: 34rem; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-14); font-weight: 500; color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-pill .dot {
  width: 20px; height: 20px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-pill .dot svg { width: 12px; height: 12px; }

.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--accent-ink); }
.hero-sub {
  margin-top: 1.35rem;
  font-size: var(--fs-18);
  color: var(--muted);
  max-width: 33rem;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  margin-top: 2rem;
  display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap;
}
.hero-reassure {
  margin-top: 1.1rem;
  font-size: var(--fs-14);
  color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero-reassure svg { width: 15px; height: 15px; color: var(--accent-ink); flex: 0 0 auto; }

/* Hero visual: a framed flow that shows the pipeline the service runs */
.hero-visual { position: relative; }
.hero-visual .panel {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, transparent), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--card-highlight);
  padding: 1.4rem;
}
.hero-visual .panel-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-14); color: var(--muted-2); font-weight: 500;
  padding: 0 0.35rem 1.1rem;
}
.hero-visual .live { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-visual .live .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.flow { position: relative; display: grid; gap: 0.9rem; }
.flow::before {
  content: "";
  position: absolute; left: 33px; top: 42px; bottom: 42px; width: 2px;
  background: linear-gradient(var(--accent) 0%, color-mix(in srgb, var(--accent) 30%, transparent) 100%);
  opacity: 0.5;
  border-radius: 2px;
}
.flow-node {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.flow-ic {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
  flex: 0 0 auto;
}
.flow-ic svg { width: 20px; height: 20px; }
.flow-t { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-16); letter-spacing: -0.01em; }
.flow-s { font-size: var(--fs-14); color: var(--muted-2); }
.flow-step {
  font-size: 0.75rem; font-weight: 600; color: var(--muted-2);
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
}
.flow-node.is-done .flow-step { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }

/* ---- 8. Services -------------------------------------------------------- */
.services-grid {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 0.6rem + 1vw, 1.5rem);
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: 1.6rem 1.5rem;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm), var(--card-highlight);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-ic {
  width: 48px; height: 48px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 1.15rem;
}
.service-ic svg { width: 24px; height: 24px; }
.service-card h3 { font-size: var(--fs-22); margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: var(--fs-16); }

/* ---- 9. Trust band ------------------------------------------------------ */
.trust {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 0.6rem + 2vw, 2.5rem);
}
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.trust-item { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.trust-ic {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.trust-ic svg { width: 18px; height: 18px; }
.trust-item p { font-size: var(--fs-16); color: var(--text); font-weight: 500; }
.trust-item p span { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-14); margin-top: 0.15rem; }

/* ---- 10. Closing CTA ---------------------------------------------------- */
.cta-band { position: relative; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  background:
    radial-gradient(30rem 20rem at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 96%, black 4%), var(--accent-strong));
  color: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: grid; justify-items: center;
}
.cta-card::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(40rem 26rem at 80% 0%, #000, transparent 70%);
          mask-image: radial-gradient(40rem 26rem at 80% 0%, #000, transparent 70%);
  opacity: 0.7; pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; font-size: var(--fs-section); max-width: 22ch; }
.cta-card p { color: rgba(255, 255, 255, 0.82); margin-top: 0.9rem; font-size: var(--fs-18); }
.cta-card .btn-primary {
  margin-top: 1.9rem;
  background: #fff; color: var(--accent-strong);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.4);
}
.cta-card .btn-primary:hover { background: #fff; color: var(--accent-strong); }
.cta-card .btn-ic { background: var(--accent-soft); color: var(--accent-strong); }
.cta-card .btn-primary:hover .btn-ic { background: var(--accent-soft-2); }
.cta-card .cta-fine { margin-top: 1.15rem; font-size: var(--fs-14); color: rgba(255, 255, 255, 0.75); }

/* ---- 11. Footer --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand p { margin-top: 1rem; color: var(--muted); font-size: var(--fs-14); max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-body); font-size: var(--fs-14); font-weight: 600;
  color: var(--muted-2); letter-spacing: 0.02em; margin-bottom: 0.75rem;
}
.footer-col a, .footer-col p { color: var(--text); font-size: var(--fs-16); }
.footer-col a { display: inline-block; }
.footer-bottom {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted-2); font-size: var(--fs-14);
}

/* ---- 12. Confirm page --------------------------------------------------- */
.confirm-main { padding-top: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.confirm-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.confirm-head .eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }
.confirm-head .eyebrow svg { width: 16px; height: 16px; }
.confirm-head h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem); }
.confirm-head p { margin-top: 1rem; color: var(--muted); font-size: var(--fs-18); }

.form-wrap { max-width: 44rem; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), var(--card-highlight);
  padding: clamp(1.35rem, 1rem + 2vw, 2.5rem);
}

.form-banner {
  display: none;
  align-items: flex-start; gap: 0.7rem;
  padding: 0.9rem 1.1rem; border-radius: var(--r-input);
  background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--text); font-size: var(--fs-14); margin-bottom: 1.5rem;
}
.form-banner.is-visible { display: flex; }
.form-banner svg { width: 18px; height: 18px; color: var(--danger); flex: 0 0 auto; margin-top: 1px; }
.form-banner a { color: var(--accent-ink); font-weight: 600; }

.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset + .fieldset {
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.legend {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-18);
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 0.35rem; padding: 0;
}
.legend + .legend-note { color: var(--muted-2); font-size: var(--fs-14); margin-bottom: 1.15rem; }
.legend-note { color: var(--muted-2); font-size: var(--fs-14); margin-bottom: 1.15rem; }

.field { display: grid; gap: 0.45rem; margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }
.field > label { font-weight: 600; font-size: var(--fs-14); color: var(--text); }
.field .req { color: var(--danger); margin-left: 0.15rem; }
.field .opt { color: var(--muted-2); font-weight: 400; margin-left: 0.35rem; }

.input, .textarea {
  width: 100%;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); opacity: 1; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

.field-error { display: none; color: var(--danger); font-size: var(--fs-14); font-weight: 500; }
.field-error.is-visible { display: block; }

/* Choice groups (checkbox + radio) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 0.9rem; min-height: 48px;
  border: 1px solid var(--border-strong); border-radius: var(--r-input);
  background: var(--surface); cursor: pointer;
  font-size: var(--fs-16);
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.choice:hover { border-color: var(--accent); }
.choice input {
  width: 20px; height: 20px; flex: 0 0 auto;
  accent-color: var(--accent); cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Signature block */
.signature {
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.sig-check {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem; border-radius: var(--r-input);
  border: 1px solid var(--border-strong); background: var(--surface);
  cursor: pointer; font-weight: 500; margin-top: 1.15rem;
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.sig-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sig-check input { width: 22px; height: 22px; accent-color: var(--accent); flex: 0 0 auto; cursor: pointer; }

.form-actions { margin-top: 1.75rem; display: grid; gap: 0.9rem; justify-items: start; }
.form-actions .btn-primary { width: 100%; }
@media (min-width: 480px) { .form-actions .btn-primary { width: auto; min-width: 15rem; } }
.form-hint { font-size: var(--fs-14); color: var(--muted-2); }

/* Submitting + success states */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) 1rem;
}
.form-success.is-visible { display: block; animation: rise var(--dur-3) var(--ease-out) both; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--success-soft); color: var(--success);
  margin-bottom: 1.35rem;
}
.form-success .check svg { width: 30px; height: 30px; }
.form-success h2 { font-size: var(--fs-30); }
.form-success p { margin-top: 0.85rem; color: var(--muted); font-size: var(--fs-18); max-width: 34rem; margin-inline: auto; }
.form-success .btn { margin-top: 1.75rem; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Honeypot (spam trap) - visually hidden but present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- 13. Scroll reveal -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-visual .live .pulse { animation: none; }
  .btn, .service-card, .btn-ic, .faq-chevron { transition: none !important; }
  .form-success.is-visible { animation: none; }
}

/* ---- 14. Call page (prep hub) ------------------------------------------ */

/* Entry-state visibility. Default (no JS, treated as unbooked) shows the
   full unbooked flow; an inline head script sets is-booked / is-unbooked. */
.only-booked { display: none; }
html.is-booked .only-booked { display: block; }
html.is-booked .only-unbooked { display: none; }

.call-step { margin-top: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.step-head { max-width: 42rem; margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.step-head .eyebrow { margin-bottom: 0.5rem; }
.step-head h2 { font-size: var(--fs-section); }
.step-head p { margin-top: 0.75rem; color: var(--muted); font-size: var(--fs-18); max-width: 40rem; }

/* Cal.com inline embed */
.cal-embed {
  min-height: 560px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md), var(--card-highlight);
}

/* Graceful fallback while booking is not connected, or if the embed fails */
.cal-fallback {
  display: flex; align-items: center; gap: 1.1rem 1.25rem; flex-wrap: wrap;
  padding: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--card-highlight);
}
.cal-fallback-ic {
  width: 48px; height: 48px; border-radius: 13px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.cal-fallback-ic svg { width: 24px; height: 24px; }
.cal-fallback-copy { flex: 1 1 16rem; min-width: 12rem; }
.cal-fallback-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-18); letter-spacing: -0.01em; }
.cal-fallback-note { color: var(--muted); font-size: var(--fs-14); margin-top: 0.2rem; }
.cal-fallback .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .cal-fallback .btn { width: 100%; } }

/* What to expect / FAQ */
.call-faq {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
  border-top: 1px solid var(--border);
}
.call-faq .section-head h2 { font-size: var(--fs-section); }
.faq-list { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 0.75rem; max-width: 46rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--card-highlight);
  overflow: hidden;
}
.faq-q {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-18);
  letter-spacing: -0.01em; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-chevron {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--muted);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.faq-chevron svg { width: 16px; height: 16px; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--accent-soft); color: var(--accent-ink); }
.faq-q:hover .faq-chevron { color: var(--accent-ink); }
.faq-a { padding: 0 1.25rem 1.25rem; }
.faq-a p { color: var(--muted); font-size: var(--fs-16); max-width: 62ch; }
.faq-video:empty { display: none; }
.faq-video.has-video { margin-top: 1rem; }
.faq-video-frame {
  width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--r-input); display: block; background: var(--surface-2);
}
