/* Soigna — Design tokens & base styles */

:root {
  /* Primary — deep institutional blue (default; overridden by Tweaks) */
  --primary: #0E2C5C;
  --primary-700: #143E80;
  --primary-600: #1A55B2;
  --primary-500: #2769DC;
  --primary-50: #EEF3FB;
  --primary-100: #DCE6F5;

  /* Neutrals */
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #F5F5F0;
  --ink: #0A1530;
  --ink-2: #2A334D;
  --muted: #5B6478;
  --muted-2: #6F7889;
  --border: rgba(14, 44, 92, 0.10);
  --border-strong: rgba(14, 44, 92, 0.18);

  /* Semantic — assombris pour passer WCAG AA (≥ 4.5:1 sur fond teinté
     pour texte 11-13px non-large).
     Itération 1 (PR #4 polish) : urgent 4.2 → ~6:1, success 4.4 → ~6:1
     Itération 2 (Sprint URGENT) : warn 4.41 → 5.1 (sur warn-bg) en passant
     de #A56108 à #8E5307. muted-2 2.99 → 4.55 en passant de #8A92A3 à
     #6F7889 (voir bloc Neutrals au-dessus). */
  --urgent: #B83426;
  --urgent-bg: #FCEDEA;
  --warn: #8E5307;
  --warn-bg: #FBF3E2;
  --success: #166B48;
  --success-bg: #E7F5EE;

  /* Type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14, 44, 92, 0.06), 0 1px 1px rgba(14, 44, 92, 0.04);
  --shadow-md: 0 6px 24px -8px rgba(14, 44, 92, 0.16), 0 2px 6px rgba(14, 44, 92, 0.06);
  --shadow-lg: 0 28px 60px -20px rgba(14, 44, 92, 0.30), 0 8px 20px -8px rgba(14, 44, 92, 0.14);

  /* Spacing scale */
  --space-page: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ─── Typography ─────────────────────────────────────────────────── */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-600);
}
.eyebrow.muted { color: var(--muted); }

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h3, .h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 56ch;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-page);
}
.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--space-page);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-link {
  background: transparent;
  color: var(--primary-600);
  padding: 0 4px;
  height: auto;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }

/* ─── Cards & chips ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--primary-50);
  color: var(--primary-700);
  letter-spacing: -0.005em;
}
.chip-urgent { background: var(--urgent-bg); color: var(--urgent); }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-ghost { background: rgba(14, 44, 92, 0.06); color: var(--ink-2); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
}
.nav-links a { transition: color 0.12s ease; }
.nav-links a:hover { color: var(--primary-600); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}

/* ─── Sections ───────────────────────────────────────────────────── */
section { padding: clamp(72px, 9vw, 140px) 0; }
section.tight { padding: clamp(48px, 6vw, 90px) 0; }
.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head .lede { margin: 18px auto 0; }

/* ─── Hero scaffold (variant-controlled) ─────────────────────────── */
.hero { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 80px); position: relative; overflow: hidden; }
.hero-inner { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; position: relative; }
.hero h1 .accent { color: var(--primary-600); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin-top: 32px;
  font-size: 14px; color: var(--muted);
}
.hero-trust > span { display: inline-flex; align-items: center; gap: 8px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* SPLIT — text left, dashboard right with right-edge bleed */
body[data-hero="split"] .hero-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); }
body[data-hero="split"] .hero-visual {
  position: relative;
  /* Bleed the dashboard right toward the viewport edge for impact */
  margin-right: calc(50% - 50vw + var(--space-page));
}
@media (max-width: 980px) {
  body[data-hero="split"] .hero-inner { grid-template-columns: 1fr; text-align: left; }
  body[data-hero="split"] .hero-visual { margin-right: 0; }
}

/* STACKED (default) — Showcase. Text up top, MASSIVE dashboard below */
body[data-hero="stacked"] .hero { padding-bottom: 0; }
body[data-hero="stacked"] .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
body[data-hero="stacked"] .hero-text { max-width: 860px; margin: 0 auto; }
body[data-hero="stacked"] .hero-trust,
body[data-hero="stacked"] .hero-ctas { justify-content: center; }
body[data-hero="stacked"] .lede { margin-left: auto; margin-right: auto; }
body[data-hero="stacked"] .hero-visual {
  /* Allow this column to extend beyond container to fill the viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(48px, 6vw, 80px);
  padding: 0 clamp(20px, 4vw, 56px) clamp(60px, 8vw, 110px);
  /* Use a perspective to tilt the dashboard subtly */
  perspective: 1800px;
}
body[data-hero="stacked"] .hero-visual .hero-stage { max-width: 1320px; margin: 0 auto; transform-style: preserve-3d; transform: rotateX(2deg); }

/* ─── Hero showcase ("hero-stage") — bigger dashboard with floating stickers ── */
.hero-stage { position: relative; }
.hero-stage .stage-shadow {
  position: absolute;
  left: 8%; right: 8%; bottom: -28px; height: 40px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(14, 44, 92, 0.35), transparent 70%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.hero-stage .stage-window {
  position: relative; z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow:
    0 60px 120px -40px rgba(14, 44, 92, 0.38),
    0 24px 48px -16px rgba(14, 44, 92, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-stage .stage-behind {
  /* Peek of a second card behind for depth */
  position: absolute;
  left: 4%; right: 4%;
  top: -20px; bottom: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  z-index: 1;
  transform: scale(0.96);
  opacity: 0.6;
  pointer-events: none;
}

/* Stickers floating around the dashboard */
.sticker {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  white-space: nowrap;
  text-align: left;
  animation: stickerFloat 6s ease-in-out infinite;
}
.sticker .st-ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sticker .st-title { font-weight: 600; color: var(--ink); font-size: 13.5px; line-height: 1.2; }
.sticker .st-sub { color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 2px; }

.sticker.s-tl { top: -18px; left: 3%; animation-delay: 0s; }
.sticker.s-tr { top: -18px; right: 4%; animation-delay: -2s; }
.sticker.s-bl { bottom: -18px; left: 4%; animation-delay: -4s; }
.sticker.s-br { bottom: -18px; right: 6%; animation-delay: -1s; }
.sticker.s-urgent .st-ico { background: var(--urgent-bg); color: var(--urgent); }
.sticker.s-mail .st-ico { background: var(--primary-50); color: var(--primary-600); }
.sticker.s-live .st-ico { background: var(--success-bg); color: var(--success); }
.sticker.s-rdv .st-ico { background: var(--warn-bg); color: var(--warn); }

@media (max-width: 760px) {
  .sticker.s-tl, .sticker.s-bl { left: -8px; }
  .sticker.s-tr, .sticker.s-br { right: -8px; }
  .sticker { font-size: 11.5px; padding: 8px 10px; }
  .sticker .st-ico { width: 26px; height: 26px; }
  .sticker .st-sub { display: none; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes stickerFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* Hero ambient blobs */
.hero-blobs {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-blobs::before, .hero-blobs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.hero-blobs::before {
  width: 480px; height: 480px;
  left: -10%; top: -20%;
  background: radial-gradient(circle, var(--primary-100), transparent 70%);
}
.hero-blobs::after {
  width: 520px; height: 520px;
  right: -10%; top: 30%;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary-500) 18%, transparent), transparent 70%);
}

/* ─── Live animations inside the dashboard preview ──────────────── */
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
.dp-window .wave .bit.on {
  transform-origin: center;
  animation: wavePulse 1.2s ease-in-out infinite;
}
.dp-window .wave .bit.on:nth-child(1) { animation-delay: 0s; }
.dp-window .wave .bit.on:nth-child(2) { animation-delay: -0.1s; }
.dp-window .wave .bit.on:nth-child(3) { animation-delay: -0.2s; }
.dp-window .wave .bit.on:nth-child(4) { animation-delay: -0.3s; }
.dp-window .wave .bit.on:nth-child(5) { animation-delay: -0.4s; }
.dp-window .wave .bit.on:nth-child(6) { animation-delay: -0.5s; }

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 5px transparent; opacity: 0.6; }
}
.chip-urgent .dot, .chip-trust .dot, .pulse-dot {
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes liveBadge {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.live-badge {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px 5px 8px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  animation: liveBadge 2s ease-in-out infinite;
}
.live-badge .ld { width: 7px; height: 7px; border-radius: 50%; background: var(--urgent); animation: dotPulse 1.4s ease-in-out infinite; }

/* Counter "+1" floater on stat */
@keyframes counterPop {
  0% { opacity: 0; transform: translateY(8px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0; transform: translateY(-12px); }
}
.counter-pop {
  position: absolute;
  top: -2px; right: -2px;
  font-size: 11px;
  color: var(--success);
  font-weight: 700;
  animation: counterPop 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* DARK — full-bleed dark band with dashboard floating */
body[data-hero="dark"] .hero {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-700) 100%);
  color: #EAF0FB;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
body[data-hero="dark"] .hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
body[data-hero="dark"] .hero-inner { grid-template-columns: 1fr; text-align: center; position: relative; }
body[data-hero="dark"] .hero h1 { color: #fff; }
body[data-hero="dark"] .hero h1 .accent { color: #B9CDFF; }
body[data-hero="dark"] .hero .lede { color: rgba(234,240,251,0.78); margin: 0 auto; }
body[data-hero="dark"] .hero-ctas { justify-content: center; }
body[data-hero="dark"] .hero-trust { color: rgba(234,240,251,0.65); justify-content: center; }
body[data-hero="dark"] .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
body[data-hero="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
body[data-hero="dark"] .btn-primary { background: #fff; color: var(--primary); }
body[data-hero="dark"] .btn-primary:hover { background: #EAF0FB; }
body[data-hero="dark"] .chip-trust { background: rgba(255,255,255,0.10); color: #DAE5FB; }
body[data-hero="dark"] .hero-visual {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 56px;
  padding: 0 clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px);
  position: relative; z-index: 2;
  perspective: 1800px;
}
body[data-hero="dark"] .hero-visual .hero-stage { max-width: 1320px; margin: 0 auto; transform: rotateX(2deg); }
body[data-hero="dark"] .hero-visual .stage-window { box-shadow: 0 60px 140px -40px rgba(0,0,0,0.7), 0 24px 48px -16px rgba(0,0,0,0.4); }

@media (max-width: 980px) {
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.price-card.featured {
  background: var(--ink);
  color: #EAF0FB;
  border-color: var(--ink);
  transform: translateY(-4px);
}
.price-card.featured .price-meta { color: rgba(234,240,251,0.65); }
.price-card.featured .price-feature { color: #D7DEEC; }
.price-card.featured .price-feature .check { background: var(--primary-500); color: white; }
.price-card.featured .btn-primary { background: #fff; color: var(--ink); }
.price-card.featured .btn-primary:hover { background: #EAF0FB; }
.price-name { font-size: 15px; font-weight: 600; color: var(--primary-600); letter-spacing: 0.02em; text-transform: uppercase; }
.price-card.featured .price-name { color: #B9CDFF; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; }
.price-amount .num { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.price-amount .unit { font-size: 14px; color: var(--muted); }
.price-card.featured .price-amount .unit { color: rgba(234,240,251,0.65); }
.price-meta { font-size: 13.5px; color: var(--muted); }
.price-features { list-style: none; padding: 0; margin: 22px 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.price-feature .check {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-50); color: var(--primary-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.price-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--primary-500); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 10px;
  border-radius: 999px; letter-spacing: 0.02em;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 36px; line-height: 1;
  font-weight: 700;
  color: var(--primary-600);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  display: inline-block;
}
.step-num::before { content: "0"; opacity: 0.5; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Security */
.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 880px) { .security-grid { grid-template-columns: 1fr; } }
.sec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.sec-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-50); color: var(--primary-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sec-card h3 { margin-bottom: 8px; font-size: 17px; }
.sec-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--primary-600);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 70ch;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #EAF0FB;
  border-radius: var(--r-2xl);
  padding: clamp(48px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 80% 20%, rgba(120, 160, 255, 0.18), transparent 70%),
    radial-gradient(40% 60% at 10% 90%, rgba(70, 110, 220, 0.14), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band .lede { color: rgba(234,240,251,0.78); margin: 0 auto; }
.cta-band .btn-primary { background: #fff; color: var(--ink); margin-top: 32px; }
.cta-band .btn-primary:hover { background: #EAF0FB; }

/* How-it-works telephone diagram (visual moment) */
.flow-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 24px;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
@media (max-width: 900px) { .flow-band { display: none; } }
.flow-node {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  text-align: center;
}
.flow-node .lbl { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.flow-node .val { font-weight: 600; font-size: 15px; }
.flow-arr { color: var(--muted-2); font-size: 18px; }

/* ─── Phone code chip ─────────────────────────────────────────────── */
.code {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: #C7D0E0;
  padding: 80px 0 36px;
}
.footer a { color: #C7D0E0; }
.footer a:hover { color: #fff; }

/* ─── Utility ────────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.hide-mobile { }
@media (max-width: 760px) {
  .hide-mobile { display: none !important; }
  body { font-size: 16px; }
}

/* ─── Footer responsive ──────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Nav mobile (burger + drawer) ───────────────────────────────── */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.nav-burger:hover { background: var(--surface-2); border-color: var(--ink-3, #aab); }
@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
}
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 20, 40, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: drawerFade 0.16s ease;
}
@keyframes drawerFade { from { opacity: 0; } to { opacity: 1; } }
.mobile-drawer {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 340px);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 48px rgba(10, 20, 40, 0.18);
  padding: 18px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: drawerSlide 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes drawerSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 10px;
}
.mobile-drawer-close:hover { background: var(--surface-2); color: var(--ink); }
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer-links a {
  display: block;
  padding: 14px 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}
.mobile-drawer-links a:hover { color: var(--primary-600); }
.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.mobile-drawer-cta .btn { width: 100%; justify-content: center; }

/* ─── Dashboard preview (used in hero + dashboard page) ──────────── */
.dashprev {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 14px;
}
.dashprev-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dashprev-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: #DDD8CE; }
.dashprev-bar .url {
  flex: 1; margin-left: 8px;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px; color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* scroll-driven subtle reveal for sections */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
