@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,500;1,600&family=DM+Serif+Display&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ========== RESET (scoped) ========== */
.sca-home, .sca-home *, .sca-home *::before, .sca-home *::after { box-sizing: border-box; }
.sca-home {
  --navy: #253551;
  --navy-deep: #1A263F;
  --sky: #7DA8F0;
  --sky-soft: #B8D2F7;
  --sky-electric: #5B9DFF;
  --black-deep: #0A0E1B;
  --white: #FFFFFF;
  --tint: #F4F7FC;
  --std: #2563EB;
  --prem: #C8813A;
  --pass: #22C55E;
  --pass-soft: #86EFAC;
  --slate: #8E9AB4;
  --text-on-dark: #C8D4E4;
  --text-muted: #555555;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* AI-specific accent palette (purple family) */
  --ai-purple: #7c3aed;
  --ai-violet: #8B5CF6;
  --ai-violet-soft: #A78BFA;
  --ai-violet-pale: #C4B5FD;
  --ai-purple-deep: #4c1d95;
  --ai-purple-darker: #2e1065;

  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy);
  background: #fff;
  letter-spacing: -0.005em;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  overflow-x: hidden;
}
/* Reset is wrapped in :where() so it contributes ZERO specificity.
   Without this, the reset (specificity 0,1,1) was beating every single
   component-level paragraph rule (specificity 0,1,0) on the page, which
   is why .sca-ai-hero-sub's `margin-top: 24px` was silently dropping to 0
   and the title looked glued to the paragraph below. */
.sca-home :where(h1, h2, h3, h4, p, ul, ol, figure) {
  margin: 0; padding: 0;
}
.sca-home ul, .sca-home ol { list-style: none; }
.sca-home button { font-family: inherit; cursor: pointer; }
.sca-home a { color: inherit; text-decoration: none; }
.sca-home img, .sca-home svg { display: block; max-width: 100%; }
.sca-home section { position: relative; }

/* ========== BUTTONS ========== */
.sca-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sca-btn:hover { transform: translateY(-1px); }
.sca-btn-sky    { background: var(--sky); color: var(--navy); }
.sca-btn-sky:hover { background: #93B6F3; }
.sca-btn-glass  { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(20px); font-weight: 500; }
.sca-btn-glass:hover { background: rgba(255,255,255,0.14); }
.sca-btn-ghost  { background: transparent; color: var(--navy); border: 1px solid var(--navy); font-weight: 500; padding: 13px 22px; }
.sca-btn-lg     { padding: 16px 28px; font-size: 15px; }

.sca-btn-purple {
  background: linear-gradient(135deg, var(--ai-violet-soft) 0%, var(--ai-violet) 100%);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(167,139,250,0.5);
}
.sca-btn-purple:hover {
  background: linear-gradient(135deg, #B79CFC 0%, #9D6FF7 100%);
  box-shadow: 0 0 30px -2px rgba(167,139,250,0.55);
}

/* ========== EYEBROWS / META ========== */
.sca-eyebrow { font-size: 12px; color: var(--slate); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.sca-eyebrow-sky    { color: var(--sky); }
.sca-eyebrow-violet { color: var(--ai-violet-soft); }

/* ====================================================================
   01 · HERO  (Plasma orb + premium AI dark hero)
   ==================================================================== */
.sca-ai-hero {
  position: relative; overflow: hidden; color: #fff;
  /* big bottom padding so the absolutely-positioned stats strip never overlaps content */
  padding: 24px clamp(20px, 5vw, 56px) 160px;
  background:
    radial-gradient(ellipse 70% 55% at 25% 30%, #2a1a5e 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 60%, #1e1b4b 0%, var(--black-deep) 70%);
  min-height: 1020px;
}
.sca-ai-hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(167,139,250,0.28) 0%, transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.sca-ai-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(125,168,240,0.18) 0%, transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.sca-ai-hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.sca-nav {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-radius: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(24px);
  z-index: 5;
}
.sca-nav-links { display: flex; gap: 28px; font-size: 13.5px; color: rgba(255,255,255,0.85); font-weight: 500; }
.sca-nav-right { display: flex; gap: 12px; align-items: center; }
.sca-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: #fff; }
.sca-logo-mark { width: 26px; height: 26px; }
.sca-logo span.sca-logo-suffix { font-weight: 500; color: var(--ai-violet-pale); }

/* Hero body — split with text left, plasma orb right */
.sca-ai-hero-body {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center; margin-top: 56px; min-height: 700px;
  z-index: 2;
}

.sca-ai-hero-eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ai-violet-pale); font-weight: 700; margin-bottom: 14px; display: block;
}
.sca-ai-hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px;
  border-radius: 999px; background: rgba(167,139,250,0.10);
  border: 1px solid rgba(167,139,250,0.22); font-size: 12px; color: #fff;
  letter-spacing: 0.04em; backdrop-filter: blur(20px);
}
.sca-ai-hero-pill-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--ai-violet-soft);
  box-shadow: 0 0 0 4px rgba(167,139,250,0.2);
  animation: sca-pulse-dot 1.6s ease-in-out infinite;
}
@keyframes sca-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(167,139,250,0.2), 0 0 12px rgba(167,139,250,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(167,139,250,0.05), 0 0 20px rgba(167,139,250,0.7); }
}

.sca-ai-hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  /* line-height >= 1 so the line box actually contains the glyphs.
     The previous 0.96 made descenders ("p" in "patients") spill below
     their box, eating into the gap above .sca-ai-hero-sub. */
  line-height: 1.1;
  letter-spacing: -0.04em; font-weight: 600;
  /* TOP gap from the eyebrow + a guaranteed BOTTOM gap.
     We set the gap from BOTH sides because Squarespace's own stylesheet
     has rules like `.sqs-block-html p { margin: 0 }` (specificity 0,1,1)
     which silently kill the margin-top on .sca-ai-hero-sub.  Setting it
     here on the heading is independent of whatever Squarespace does to
     the paragraph below. */
  margin: 24px 0 28px !important;
  color: #fff;
}
.sca-ai-hero h1 .sca-grad-violet {
  background: linear-gradient(90deg, var(--ai-violet-pale), var(--ai-violet-soft));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sca-ai-hero h1 .sca-mid-violet { color: var(--ai-violet-soft); }
.sca-ai-hero h1 .sca-emph {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--ai-violet-pale); letter-spacing: -0.01em;
}

/* Specificity bumped via .sca-home so any Squarespace `.sqs-* p` rule
   (0,1,1) is outranked by 0,2,0. Belt-and-braces with !important too. */
.sca-home .sca-ai-hero-sub {
  margin-top: 8px !important;
  font-size: 17.5px; color: var(--text-on-dark);
  max-width: 480px; line-height: 1.55;
}
.sca-ai-hero-ctas {
  display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
}

/* Hero stats strip (pinned at the bottom of hero) */
.sca-ai-hero-stats {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(0,0,0,0.32);
  border-top: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
}
.sca-ai-hero-stat {
  padding: 24px 18px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.sca-ai-hero-stat:last-child { border-right: none; }
.sca-ai-hero-stat-icon {
  font-size: 16px; color: var(--ai-violet-pale); opacity: 0.65;
  margin-bottom: 8px; line-height: 1;
}
.sca-ai-hero-stat-value {
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: #fff;
  letter-spacing: -0.015em; margin-bottom: 3px; white-space: nowrap;
}
.sca-ai-hero-stat-label {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
}

/* Plasma ring container — RIGHT side of hero */
.sca-ai-orb-col {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 560px;
}

#sca-ring {
  position: relative;
  width: min(680px, 90%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: visible;
}

#sca-ring .sca-avatar {
  position: absolute;
  width: clamp(140px, 22vw, 240px);
  height: clamp(140px, 22vw, 240px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  border-radius: 0;
}

#sca-ring #sca-orb-canvas {
  position: absolute;
  inset: -9.5%;
  width: calc(100% + 19%);
  height: calc(100% + 19%);
  display: block;
  pointer-events: none;
}

/* The 3,000+ live-stat trust card lives in the hero now (was in the case
   library section). Override its absolute position so it floats top-right
   of the orb column instead of the mockup wrap. The base .svai-live-stat
   styles are defined further down in the case-library CSS. */
.svai-live-stat--in-hero {
  top: -10px;
  right: -10px;
  transform: rotate(3deg);
  z-index: 5;
}

@keyframes svai-mock-stat-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.22), 0 0 12px rgba(34,197,94,0.6); }
  50%      { box-shadow: 0 0 0 7px rgba(34,197,94,0.06), 0 0 18px rgba(34,197,94,0.8); }
}

@keyframes sca-aip-wave {
  0%, 100% { transform: scaleY(0.22); opacity: 0.45; }
  20%      { transform: scaleY(0.9);  opacity: 1;    }
  40%      { transform: scaleY(0.5);  opacity: 0.75; }
  60%      { transform: scaleY(0.8);  opacity: 0.95; }
  80%      { transform: scaleY(0.3);  opacity: 0.55; }
}

/* ====================================================================
   02 · LEAD-IN
   ==================================================================== */
.sca-ai-leadin { background: #fff; padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 56px) clamp(60px, 8vw, 100px); }
.sca-ai-leadin-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.sca-ai-leadin-copy .sca-eyebrow { display: inline-block; }
.sca-home .sca-ai-leadin-copy p {
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; font-weight: 500;
  letter-spacing: -0.02em; color: var(--navy);
  margin-top: 18px !important;
  text-wrap: pretty;
}
.sca-ai-leadin-copy p .sca-hl-violet { color: var(--ai-violet); }

/* Lead-in mockup wrap (Vadoma Gray bot page) */
.sca-ai-leadin-mock-wrap {
  position: relative; padding: 20px 0;
  display: flex; justify-content: center; align-items: center;
  min-height: 420px;
}
.sca-ai-leadin-mock-wrap::before {
  content: ''; position: absolute; inset: -40px;
  background: radial-gradient(circle at 50% 50%,
    rgba(167,139,250,0.18) 0%,
    rgba(167,139,250,0.05) 35%,
    transparent 65%);
  filter: blur(40px); pointer-events: none;
}

/* Vadoma bot page (mirrors home-page .sca-card-aipage) */
.sca-leadin-aipage {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  padding: 0; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 18px;
  display: grid; grid-template-columns: 150px 1fr;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.18),
    0 0 60px -10px rgba(167,139,250,0.30);
  transform: rotate(-1.5deg);
}
.sca-leadin-aipage-side {
  background: #fafbfd; padding: 18px 14px;
  border-right: 1px solid rgba(37,53,81,0.08);
  display: flex; flex-direction: column; gap: 8px;
}
.sca-leadin-aipage-caseid {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: rgba(37,53,81,0.55);
}
.sca-leadin-aipage-name {
  font-family: 'DM Serif Display', serif;
  font-size: 17px; font-weight: 400;
  color: var(--navy); line-height: 1.05; margin-top: 2px;
}
.sca-leadin-aipage-age {
  font-size: 10.5px; color: rgba(37,53,81,0.55);
  margin-top: 2px; margin-bottom: 6px;
}
.sca-leadin-aipage-divider { height: 1px; background: rgba(37,53,81,0.08); margin: 4px 0 2px; }
.sca-leadin-aipage-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid rgba(37,53,81,0.08);
  border-radius: 7px; overflow: hidden;
  margin: 2px 0 6px;
}
.sca-leadin-aipage-tab {
  padding: 6px 4px; text-align: center;
  font-size: 10px; font-weight: 600; color: rgba(37,53,81,0.55);
  line-height: 1.15;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.sca-leadin-aipage-tab small {
  font-size: 8px; font-weight: 500;
  color: rgba(37,53,81,0.55);
}
.sca-leadin-aipage-tab.on {
  background: linear-gradient(135deg, #3a5fa0 0%, #253551 50%, #4a2d8a 100%);
  color: #fff;
}
.sca-leadin-aipage-tab.on small { color: rgba(214,221,233,0.8); }
.sca-leadin-aipage-tab .crown { color: #d4a843; }

.sca-leadin-aipage-rec {
  background: #fff; border: 1px solid rgba(37,53,81,0.08);
  border-left: 3px solid #4f7cff; border-radius: 4px;
  padding: 6px 8px;
  font-size: 9px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.04em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.sca-leadin-aipage-rec span { color: rgba(37,53,81,0.55); font-size: 10.5px; }

.sca-leadin-aipage-main {
  padding: 22px 16px 22px; background: #fff;
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.sca-leadin-aipage-chip {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #3a5fa0 0%, #253551 50%, #4a2d8a 100%);
  color: #fff; font-size: 9.5px; font-weight: 500;
  padding: 3px 9px; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 4px;
}
.sca-leadin-aipage-chip .crown { color: #d4a843; font-size: 8.5px; }

.sca-leadin-aipage-portrait {
  width: 124px; height: 124px; border-radius: 50%;
  background: #fff url('https://images.squarespace-cdn.com/content/v1/647f7a4eb3767045e27d868d/e216bb60-c64a-4d9b-8b37-d3a8035a06b5/490uWGxYOpV9onKSAPDDsdrDzcY8fIFXWCXDiM_pxFU.jpeg?format=750w') center/cover no-repeat;
  margin-top: 12px;
  box-shadow:
    0 0 0 1px rgba(167,139,250,0.18),
    0 0 0 8px rgba(196,181,253,0.18),
    0 0 0 14px rgba(196,181,253,0.06),
    0 0 60px 12px rgba(139,92,246,0.35);
}
.sca-leadin-aipage-ready {
  font-family: 'DM Serif Display', serif;
  font-size: 16px; color: var(--navy); margin-top: 10px;
}
.sca-leadin-aipage-readysub {
  font-size: 10.5px; color: rgba(37,53,81,0.55);
  line-height: 1.5; max-width: 220px;
}
.sca-leadin-aipage-begin {
  background: linear-gradient(135deg, #3a5fa0 0%, #253551 50%, #4a2d8a 100%);
  color: #fff; border: 0; border-radius: 8px;
  padding: 9px 18px; font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(125,98,255,0.25);
  margin-top: 4px;
}
.sca-leadin-aipage-tiny {
  font-size: 9.5px; color: rgba(37,53,81,0.55); margin-top: 2px;
}

/* ====================================================================
   03 · CORE FEATURE TRIO  (3 simple cards w/ icon — Speak / Practise / Members)
   ==================================================================== */
.sca-ai-trio { background: #fff; padding: 0 clamp(20px, 5vw, 56px) clamp(80px, 10vw, 130px); }
.sca-ai-trio-inner { max-width: 1200px; margin: 0 auto; }
.sca-ai-trio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px;
}
.sca-ai-trio-card {
  background: #fff; border-radius: 18px;
  border: 1px solid rgba(37,53,81,0.06);
  box-shadow: 0 12px 36px -16px rgba(37,53,81,0.16);
  padding: 28px 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sca-ai-trio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167,139,250,0.4);
  box-shadow: 0 20px 50px -16px rgba(167,139,250,0.22), 0 0 0 1px rgba(167,139,250,0.12);
}
.sca-ai-trio-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(167,139,250,0.1);
  color: var(--ai-violet);
  font-size: 18px; margin-bottom: 18px;
}
.sca-ai-trio-card h3 {
  font-size: 19px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 10px;
}
.sca-ai-trio-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.65;
}

/* ====================================================================
   04 · CASE LIBRARY  (dark feature split with case-selection mockup)
   ==================================================================== */
.sca-ai-cases {
  background: var(--black-deep); color: #fff;
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.sca-ai-cases::before {
  content: ''; position: absolute; top: -25%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(167,139,250,0.30) 0%, transparent 65%);
  filter: blur(60px); pointer-events: none;
}
.sca-ai-cases::after {
  content: ''; position: absolute; bottom: -25%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125,168,240,0.16) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.sca-ai-cases-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.sca-ai-cases-grid > div { min-width: 0; }
.sca-ai-cases h2 {
  font-size: clamp(34px, 5.2vw, 54px); line-height: 1.1;
  letter-spacing: -0.035em; font-weight: 600;
  margin: 22px 0 24px !important;
  color: #fff;
}
.sca-ai-cases h2 .sca-hl-violet { color: var(--ai-violet-pale); }
.sca-ai-cases h2 .sca-emph {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--ai-violet-pale); letter-spacing: -0.01em;
}
.sca-home .sca-ai-cases-body {
  font-size: 16.5px; margin-top: 8px !important; line-height: 1.65;
  max-width: 500px; color: var(--text-on-dark);
}
.sca-ai-cases-bullets {
  margin-top: 32px; display: grid; gap: 14px; max-width: 520px;
}
.sca-ai-cases-bullets li {
  display: flex; gap: 12px; font-size: 15px; line-height: 1.55;
  color: var(--text-on-dark);
}
.sca-ai-cases-bullets li::before {
  content: '\2713'; color: var(--ai-violet-soft); font-weight: 700;
}
.sca-ai-cases-bullets li strong { color: #fff; font-weight: 600; }

/* ─── Mockup wrap (case-selection screen) ─── */
.sca-ai-mockwrap {
  --svai-rule: rgba(37,53,81,0.08);
  --svai-ink: #253551;
  --svai-muted: rgba(37,53,81,0.55);
  position: relative; width: 100%; height: 720px;
  font-family: 'Poppins', sans-serif;
}
.sca-ai-mockwrap *, .sca-ai-mockwrap *::before, .sca-ai-mockwrap *::after { box-sizing: border-box; }

/* Case-selection mockup (the production cx-root layout, miniaturised) */
.svai-cs-mock {
  position: absolute; top: 0; left: 0; width: 92%; max-width: 540px;
  transform: rotate(-2deg); z-index: 1;
  background: #fff; border: 1px solid var(--svai-rule);
  border-radius: 16px; overflow: hidden;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.15);
  font-size: 10px;
}
.svai-cs-hero {
  background: #1e1b4b; border-radius: 12px;
  padding: 14px 16px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  position: relative; overflow: hidden;
}
.svai-cs-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(280px 100px at 100% 0%, rgba(139,92,246,0.45), transparent 60%),
    radial-gradient(200px 80px at 0% 100%, rgba(196,181,253,0.18), transparent 55%);
}
.svai-cs-hero-left { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.svai-cs-hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--ai-violet-pale); }
.svai-cs-hero-title { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -0.01em; line-height: 1.15; }
.svai-cs-hero-title em { font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400; color: var(--ai-violet-pale); }
.svai-cs-hero-meta { font-size: 9.5px; color: rgba(255,255,255,0.7); margin-top: 3px; }
.svai-cs-hero-meta b { color: var(--ai-violet-pale); font-weight: 700; }
.svai-cs-random {
  position: relative; background: #fff; color: #1e1b4b;
  padding: 7px 11px; border-radius: 8px;
  font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  white-space: nowrap; flex-shrink: 0;
}

/* Controls row */
.svai-cs-controls {
  background: #fff; border: 1px solid var(--svai-rule);
  border-radius: 10px; padding: 6px;
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 5px;
  align-items: center;
  box-shadow: 0 1px 4px rgba(37,53,81,0.04);
}
.svai-cs-search {
  background: #f5f3ff; border-radius: 6px;
  padding: 6px 9px; display: flex; align-items: center; gap: 6px;
  font-size: 9.5px; color: var(--svai-muted); min-width: 0;
}
.svai-cs-search svg { color: var(--svai-muted); flex-shrink: 0; }
.svai-cs-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svai-cs-btn {
  background: #f5f3ff; border-radius: 6px;
  padding: 6px 9px; font-size: 9.5px; font-weight: 500; color: var(--svai-ink);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.svai-cs-seg {
  display: flex; background: #f5f3ff; border-radius: 6px; padding: 2px; gap: 1px;
}
.svai-cs-seg > div {
  padding: 4px 7px; font-size: 9px; font-weight: 500;
  color: var(--svai-muted); border-radius: 4px; white-space: nowrap;
}
.svai-cs-seg > div.on { background: #4c1d95; color: #fff; }

/* Active filter chip strip */
.svai-cs-active {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px; font-size: 9.5px;
}
.svai-cs-active-l { color: var(--svai-muted); }
.svai-cs-active-l b { color: var(--svai-ink); font-weight: 700; }
.svai-cs-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(124,58,237,0.35);
  font-size: 8.5px; color: var(--svai-ink); font-weight: 500;
  margin-right: 4px;
}
.svai-cs-active-r { color: var(--svai-muted); font-size: 9px; }
.svai-cs-active-r b { color: var(--svai-ink); font-weight: 700; }

/* List of topic rows */
.svai-cs-list { display: flex; flex-direction: column; gap: 5px; }
.svai-cs-row {
  background: #fff; border: 1px solid var(--svai-rule);
  border-radius: 8px; overflow: hidden;
}
.svai-cs-row.open { border-color: #4c1d95; }
.svai-cs-row-head {
  padding: 8px 10px;
  display: grid; grid-template-columns: 12px 1fr 80px auto;
  align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; color: var(--svai-ink);
}
.svai-cs-row.open .svai-cs-row-head { background: #4c1d95; color: #fff; }
.svai-cs-row-head .chev { font-size: 14px; line-height: 1; color: var(--svai-muted); font-weight: 400; }
.svai-cs-row.open .svai-cs-row-head .chev { color: var(--ai-violet-pale); }
.svai-cs-row-head .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svai-cs-row-head .track {
  display: block; height: 5px;
  background: rgba(37,53,81,0.08);
  border-radius: 3px; overflow: hidden;
}
.svai-cs-row.open .svai-cs-row-head .track { background: rgba(255,255,255,0.18); }
.svai-cs-row-head .track > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #a78bfa 0%, #8b5cf6 45%, #7c3aed 75%, #5b21b6 100%);
  border-radius: 3px;
}
.svai-cs-row.open .svai-cs-row-head .track > span { background: var(--ai-violet-pale); }
.svai-cs-row-head .count { font-size: 9.5px; font-weight: 500; color: var(--svai-muted); }
.svai-cs-row-head .count b { color: var(--svai-ink); font-weight: 700; }
.svai-cs-row.open .svai-cs-row-head .count { color: rgba(255,255,255,0.8); }
.svai-cs-row.open .svai-cs-row-head .count b { color: #fff; }

.svai-cs-row-cases {
  background: #f5f3ff; padding: 6px;
  display: flex; flex-direction: column; gap: 3px;
}
.svai-cs-row-cases .c {
  padding: 6px 8px; background: #fff; border-radius: 5px;
  display: grid; grid-template-columns: 12px 1fr auto;
  align-items: center; gap: 7px;
  font-size: 10px; color: var(--svai-ink);
}
.svai-cs-row-cases .check {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid #bfc8d9;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.svai-cs-row-cases .c.done .check { background: var(--ai-purple); border-color: var(--ai-purple); }
.svai-cs-row-cases .ttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svai-cs-row-cases .stars { font-size: 8px; color: #bfc8d9; letter-spacing: 0.5px; }
.svai-cs-row-cases .stars.on2 {
  background: linear-gradient(90deg, #d4a843 0 66%, #bfc8d9 66% 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.svai-cs-row-cases .stars.on3 { color: #d4a843; }

/* Bot consultation page mock (right floater) */
.svai-bot-mock {
  position: absolute; bottom: 0; right: 0;
  width: 88%; max-width: 480px;
  transform: rotate(2deg); z-index: 2;
  background: #fff; border: 1px solid var(--svai-rule);
  border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 160px 1fr;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.15);
  font-size: 10px;
}
.svai-bot-side {
  background: #fafbfd; padding: 14px 12px;
  border-right: 1px solid var(--svai-rule);
  display: flex; flex-direction: column; gap: 6px;
}
.svai-bot-caseid {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--svai-muted);
}
.svai-bot-name {
  font-family: 'DM Serif Display', serif;
  font-size: 17px; font-weight: 400;
  color: var(--svai-ink); line-height: 1.1; margin-top: 2px;
}
.svai-bot-age { font-size: 11px; color: var(--svai-muted); margin-top: 2px; margin-bottom: 6px; }
.svai-bot-divider { height: 1px; background: var(--svai-rule); margin: 6px 0 2px; }
.svai-bot-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid var(--svai-rule);
  border-radius: 8px; overflow: hidden;
  margin: 4px 0 8px;
}
.svai-bot-tab {
  padding: 7px 4px; text-align: center;
  font-size: 10px; font-weight: 600; color: var(--svai-muted);
  line-height: 1.15;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.svai-bot-tab small { font-size: 8.5px; font-weight: 500; color: var(--svai-muted); letter-spacing: 0; text-transform: none; }
.svai-bot-tab.on {
  background: linear-gradient(135deg, #3a5fa0 0%, #253551 50%, #4a2d8a 100%);
  color: #fff;
}
.svai-bot-tab.on small { color: rgba(214,221,233,0.8); }
.svai-bot-tab .crown { color: #d4a843; }

.svai-bot-records-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--svai-muted); margin-top: 6px;
}
.svai-bot-rec-pill {
  background: #fff; border: 1px solid var(--svai-rule);
  border-left: 3px solid #4f7cff; border-radius: 4px;
  padding: 7px 9px; font-family: 'Poppins', sans-serif;
  font-size: 9px; font-weight: 600; color: var(--svai-ink);
  letter-spacing: 0.04em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.svai-bot-rec-pill span { color: var(--svai-muted); font-size: 11px; }

.svai-bot-main {
  padding: 16px 14px 18px; background: #fff;
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.svai-bot-premchip {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #3a5fa0 0%, #253551 50%, #4a2d8a 100%);
  color: #fff; font-size: 10px; font-weight: 500;
  padding: 4px 10px; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 4px;
}
.svai-bot-premchip .crown { color: #d4a843; font-size: 9px; }
.svai-bot-portrait-wrap { padding: 18px 0 2px; }
.svai-bot-portrait {
  width: 120px; height: 120px; border-radius: 50%;
  background: #fff url('https://images.squarespace-cdn.com/content/v1/647f7a4eb3767045e27d868d/138ae57e-a0b7-4557-85be-8e6b863c0270/2o4h6fjsc3QqBBON3Nu2eUsWpdsrv88V6aJFFHZaJqU.jpeg?format=1000w') center/cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(167,139,250,0.18),
    0 0 0 8px rgba(196,181,253,0.18),
    0 0 0 14px rgba(196,181,253,0.06),
    0 0 60px 12px rgba(139,92,246,0.35);
}
.svai-bot-ready {
  font-family: 'DM Serif Display', serif;
  font-size: 16px; color: var(--svai-ink); margin-top: 6px;
}
.svai-bot-readysub {
  font-size: 10px; color: var(--svai-muted);
  line-height: 1.5; max-width: 220px;
}
.svai-bot-beginbtn {
  background: linear-gradient(135deg, #3a5fa0 0%, #253551 50%, #4a2d8a 100%);
  color: #fff; border: 0; border-radius: 8px;
  padding: 10px 18px; font-family: inherit;
  font-size: 11px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(125,98,255,0.22);
  margin-top: 4px;
}
.svai-bot-tiny { font-size: 9px; color: var(--svai-muted); margin-top: 2px; }

/* Floating live-stat overlay (top-right) */
.svai-live-stat {
  position: absolute;
  top: clamp(0px, 1vw, 14px); right: clamp(-12px, 0vw, 0px);
  z-index: 3;
  width: clamp(210px, 18vw, 240px);
  background: linear-gradient(160deg, rgba(40,28,80,0.55) 0%, rgba(15,12,30,0.55) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(167,139,250,0.32);
  border-radius: 16px; padding: 16px 18px;
  transform: rotate(4deg);
  box-shadow:
    0 28px 60px -12px rgba(0,0,0,0.6),
    0 0 70px -10px rgba(167,139,250,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  text-align: center;
}
.svai-live-stat-eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(196,181,253,0.85); font-weight: 700;
}
.svai-live-stat-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 999px; background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.22), 0 0 12px rgba(34,197,94,0.6);
  animation: svai-mock-stat-pulse 1.6s ease-in-out infinite;
}
.svai-live-stat-num {
  font-family: 'DM Serif Display', serif; font-size: 50px;
  line-height: 1;
  background: linear-gradient(135deg, #DDD3FF 0%, #A78BFA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 10px; letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(167,139,250,0.35);
}
.svai-live-stat-cap {
  font-size: 11.5px; color: rgba(255,255,255,0.72);
  margin-top: 5px; line-height: 1.4; font-weight: 500;
}
.svai-live-stat-wave {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3px; height: 36px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(167,139,250,0.18);
}
.svai-live-stat-wave .bar {
  width: 3px; border-radius: 3px; height: 100%;
  background: linear-gradient(to top, rgba(167,139,250,0.5), var(--ai-violet-pale));
  transform: scaleY(0.3); transform-origin: bottom center;
  animation: sca-aip-wave 1.6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(167,139,250,0.4);
}

/* ====================================================================
   05 · HOW IT WORKS  (5 steps)
   ==================================================================== */
.sca-ai-how { background: #fff; padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 56px); }
.sca-ai-how-inner { max-width: 1500px; margin: 0 auto; }
.sca-ai-how-head {
  text-align: center; margin: 0 auto 70px; max-width: 720px;
}
.sca-ai-how-head h2 {
  font-size: clamp(34px, 5.2vw, 54px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1;
  margin: 14px 0 18px !important;
  color: var(--navy);
}
.sca-ai-how-head h2 .sca-hl-violet { color: var(--ai-violet); }
.sca-home .sca-ai-how-head > p {
  margin-top: 4px !important; font-size: 16px; color: var(--text-muted); line-height: 1.7;
}
.sca-ai-how-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative;
}
.sca-ai-how-step {
  position: relative; padding: 0 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.sca-ai-how-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(167,139,250,0.10);
  border: 1px solid rgba(167,139,250,0.32);
  display: grid; place-items: center;
  position: relative; z-index: 2; flex-shrink: 0;
}
.sca-ai-how-step-num span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: var(--ai-violet); letter-spacing: 0.05em;
}
.sca-ai-how-connector {
  position: absolute; top: 22px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 1px;
  background: linear-gradient(90deg, rgba(167,139,250,0.4), rgba(167,139,250,0.1));
  z-index: 1;
}
.sca-ai-how-connector--last { display: none; }
.sca-ai-how-step-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(37,53,81,0.06);
  font-size: 22px; color: var(--ai-violet);
  margin: 18px 0 18px;
  box-shadow:
    0 8px 24px rgba(124,77,255,0.12),
    0 4px 12px rgba(190,120,255,0.06),
    0 0 0 1px rgba(124,77,255,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sca-ai-how-step:hover .sca-ai-how-step-icon {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(124,77,255,0.18),
    0 6px 18px rgba(190,120,255,0.12),
    0 0 0 1px rgba(124,77,255,0.12);
}
.sca-ai-how-step h3 {
  font-size: 17px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 10px;
}
.sca-ai-how-step p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6;
}

/* ====================================================================
   06 · STANDARD vs PREMIUM (paired comparison table)
   ==================================================================== */
.sca-ai-modes {
  background: var(--tint);
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 56px);
}
.sca-ai-modes-inner { max-width: 1000px; margin: 0 auto; }
.sca-ai-modes-head {
  margin: 0 auto 48px; text-align: center;
}
.sca-ai-modes-head h2 {
  font-size: clamp(34px, 5.2vw, 54px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1;
  margin: 14px 0 22px !important;
  color: var(--navy);
}
.sca-ai-modes-head h2 .sca-hl-violet { color: var(--ai-violet); }
.sca-ai-modes-head h2 .sca-emph {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--ai-violet); letter-spacing: -0.01em;
}
.sca-ai-modes-head p {
  font-size: 16px; color: var(--text-muted); line-height: 1.7;
  max-width: 720px; margin: 0 auto;
}

/* Top header cards (Standard / Premium) */
.sca-ai-modes-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 0;
}
.sca-ai-modes-card {
  text-align: center; padding: 36px 24px 32px;
  border-radius: 24px 24px 0 0;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(214,221,233,0.9);
  border-bottom: none;
  position: relative; overflow: hidden;
}
.sca-ai-modes-card--standard::before {
  content: ''; position: absolute; inset: -80px;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.sca-ai-modes-card--premium {
  background: linear-gradient(180deg, rgba(37,53,81,0.98), rgba(37,53,81,0.90));
  border-color: rgba(167,139,250,0.30);
  box-shadow:
    0 18px 50px rgba(37,53,81,0.18),
    0 12px 36px rgba(125,98,255,0.18);
}
.sca-ai-modes-card--premium::before {
  content: ''; position: absolute; inset: -80px;
  background: radial-gradient(circle at 70% 10%, rgba(167,139,250,0.16) 0%, transparent 55%);
  pointer-events: none;
}
.sca-ai-modes-card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.2rem; position: relative;
}
.sca-ai-modes-card--standard .sca-ai-modes-card-icon {
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.14);
  color: var(--std);
}
.sca-ai-modes-card--premium .sca-ai-modes-card-icon {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(167,139,250,0.30);
  color: var(--ai-violet-pale);
}
.sca-ai-modes-card h3 {
  margin: 0 0 6px; font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.01em; position: relative;
}
.sca-ai-modes-card--premium h3 { color: #fff; }
.sca-ai-modes-card-price {
  font-weight: 700; font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.025em; line-height: 1.05; margin-top: 8px;
  position: relative;
  text-align: center;
}
.sca-ai-modes-card--standard .sca-ai-modes-card-price { color: var(--navy); }
.sca-ai-modes-card--premium .sca-ai-modes-card-price { color: #fff; }
/* "/ attempt" sits on its own line, centred underneath the price.
   Inline placement caused visual mis-alignment because the price
   glyphs are much wider than the suffix and centred-line wrapping
   shifted the suffix off-axis. */
.sca-ai-modes-card-per {
  display: block;
  font-size: 13px; font-weight: 500; letter-spacing: 0;
  margin-top: 6px; opacity: 0.7;
}
.sca-ai-modes-card-desc {
  margin: 12px auto 14px; max-width: 320px;
  font-size: 14px; line-height: 1.55; position: relative;
}
.sca-ai-modes-card--standard .sca-ai-modes-card-desc { color: rgba(37,53,81,0.58); }
.sca-ai-modes-card--premium .sca-ai-modes-card-desc { color: rgba(214,221,233,0.65); }
.sca-ai-modes-bestfor {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  font-size: 12.5px; position: relative;
}
.sca-ai-modes-card--standard .sca-ai-modes-bestfor {
  background: rgba(37,99,235,0.06);
  color: rgba(37,53,81,0.55);
  border: 1px solid rgba(37,99,235,0.10);
}
.sca-ai-modes-card--premium .sca-ai-modes-bestfor {
  background: rgba(255,255,255,0.06);
  color: rgba(214,221,233,0.65);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Feature comparison rows */
.sca-ai-modes-table {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.sca-ai-modes-row { display: contents; }
.sca-ai-modes-cell {
  padding: 18px 22px;
  border-left: 1px solid rgba(214,221,233,0.9);
  border-right: 1px solid rgba(214,221,233,0.9);
  background: rgba(255,255,255,0.50);
  display: flex; align-items: flex-start; gap: 14px;
  min-height: 62px;
  border-bottom: 1px solid rgba(214,221,233,0.45);
}
.sca-ai-modes-row:nth-child(even) .sca-ai-modes-cell { background: rgba(255,255,255,0.28); }
.sca-ai-modes-row:first-child .sca-ai-modes-cell { border-top: none; }
.sca-ai-modes-cell--premium {
  background: rgba(37,53,81,0.03);
  border-left-color: rgba(167,139,250,0.25);
  border-right-color: rgba(167,139,250,0.25);
}
.sca-ai-modes-row:nth-child(even) .sca-ai-modes-cell--premium {
  background: rgba(37,53,81,0.06);
}
.sca-ai-modes-row:last-child .sca-ai-modes-cell:first-child {
  border-bottom: 1px solid rgba(214,221,233,0.9);
}
.sca-ai-modes-row:last-child .sca-ai-modes-cell--premium {
  border-bottom: 1px solid rgba(167,139,250,0.25);
}

.sca-ai-modes-check {
  flex-shrink: 0; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.7rem; margin-top: 1px;
}
.sca-ai-modes-cell--standard .sca-ai-modes-check {
  background: rgba(37,99,235,0.10);
  color: var(--std);
}
.sca-ai-modes-cell--premium .sca-ai-modes-check {
  background: rgba(167,139,250,0.18);
  color: var(--ai-violet-pale);
}
.sca-ai-modes-dash {
  flex-shrink: 0; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(214,221,233,0.4);
  color: rgba(37,53,81,0.25);
  font-size: 0.75rem; margin-top: 1px;
}
.sca-ai-modes-text {
  font-size: 14.5px; line-height: 1.55;
  color: rgba(37,53,81,0.78);
}
.sca-ai-modes-text strong {
  color: var(--navy); font-weight: 650;
}
.sca-ai-modes-text--muted { color: rgba(37,53,81,0.38) !important; }

/* Footer CTAs (attached to bottom of comparison) */
.sca-ai-modes-footer {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 0;
}
.sca-ai-modes-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; font-size: 15px; font-weight: 700;
  text-decoration: none;
  border: 1px solid; border-top: none;
  border-radius: 0 0 24px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sca-ai-modes-cta:hover { transform: translateY(-1px); }
/* Specificity bumped against Squarespace's default `a:link/visited` rules
   (which otherwise repaint our link text in the site link colour). */
a.sca-ai-modes-cta--standard,
a.sca-ai-modes-cta--standard:link,
a.sca-ai-modes-cta--standard:visited {
  background: rgba(37,99,235,0.06);
  border-color: rgba(214,221,233,0.9);
  color: var(--std);
}
a.sca-ai-modes-cta--standard:hover {
  background: rgba(37,99,235,0.12);
  color: var(--std);
  box-shadow: 0 8px 24px rgba(37,99,235,0.14);
}
a.sca-ai-modes-cta--premium,
a.sca-ai-modes-cta--premium:link,
a.sca-ai-modes-cta--premium:visited,
a.sca-ai-modes-cta--premium:hover {
  background: linear-gradient(180deg, rgba(37,53,81,0.94), rgba(37,53,81,0.98));
  border-color: rgba(167,139,250,0.30);
  color: #fff;
  box-shadow: 0 8px 24px rgba(125,98,255,0.16);
}
a.sca-ai-modes-cta--premium:hover {
  box-shadow: 0 12px 32px rgba(125,98,255,0.28);
}
.sca-ai-modes-cta i { font-size: 0.8rem; }

/* Mobile */
@media (max-width: 700px) {
  .sca-ai-modes-cards { gap: 10px; }
  .sca-ai-modes-card { padding: 24px 12px 20px; }
  .sca-ai-modes-card-icon { width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 10px; font-size: 1rem; }
  .sca-ai-modes-card-desc { display: none; }
  .sca-ai-modes-table { gap: 0 10px; }
  .sca-ai-modes-cell { padding: 12px 10px; gap: 8px; min-height: 48px; }
  .sca-ai-modes-check { width: 18px; height: 18px; font-size: 0.55rem; }
  .sca-ai-modes-dash { width: 18px; height: 18px; font-size: 0.6rem; }
  .sca-ai-modes-text { font-size: 12px; line-height: 1.4; }
  .sca-ai-modes-text strong { display: block; }
  .sca-ai-modes-footer { gap: 10px; }
  .sca-ai-modes-cta { padding: 12px 10px; font-size: 12.5px; }
  .sca-ai-modes-cta i { display: none; }
  .sca-ai-modes-bestfor { font-size: 11px; padding: 4px 10px; }
}

/* ====================================================================
   06b · PREMIUM FEEDBACK MOCKUP  (dark, purple-themed — like AI Marking)
   ==================================================================== */
.sca-ai-feedback {
  background: #1a1740;
  color: #fff;
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.sca-ai-feedback::before {
  content: ''; position: absolute; top: -25%; right: -10%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(167,139,250,0.30) 0%, transparent 65%);
  filter: blur(60px); pointer-events: none;
}
.sca-ai-feedback::after {
  content: ''; position: absolute; bottom: -25%; left: -8%;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(125,98,255,0.20) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.sca-ai-feedback-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  max-width: 1500px; margin: 0 auto;
}
.sca-ai-feedback-grid > div { min-width: 0; }
.sca-ai-feedback h2 {
  font-size: clamp(34px, 5.2vw, 54px); line-height: 1.1;
  letter-spacing: -0.035em; font-weight: 600;
  margin: 22px 0 24px !important;
  color: #fff;
}
.sca-ai-feedback h2 .sca-emph {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--ai-violet-pale); letter-spacing: -0.01em;
}
.sca-ai-feedback h2 .sca-hl-violet { color: var(--ai-violet-pale); }
.sca-home .sca-ai-feedback-body {
  font-size: 16.5px; margin-top: 8px !important; line-height: 1.65;
  max-width: 500px; color: var(--text-on-dark);
}
.sca-ai-feedback-bullets {
  margin-top: 32px; display: grid; gap: 14px; max-width: 540px;
}
.sca-ai-feedback-bullets li {
  display: flex; gap: 12px; font-size: 15px; line-height: 1.55;
  color: var(--text-on-dark);
}
.sca-ai-feedback-bullets li::before {
  content: '\2713'; color: var(--ai-violet-soft); font-weight: 700;
}
.sca-ai-feedback-bullets li strong { color: #fff; font-weight: 600; }
.sca-ai-feedback-foot {
  margin-top: 26px; font-size: 13px; font-weight: 500;
  color: var(--ai-violet-pale);
}
.sca-ai-feedback-cta {
  margin-top: 26px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ─── Floating mockup stack ─── */
.sca-ai-feedback-stack {
  position: relative; width: 100%; height: 720px;
  font-family: 'DM Sans', sans-serif;
}

/* Coach notes card (top-left, rotated -2deg) */
.svai-coach-card {
  position: absolute;
  top: 0; left: 0;
  width: 80%; max-width: 380px;
  z-index: 1;
  transform: rotate(-2deg);
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(167,139,250,0.30);
  box-shadow:
    0 30px 60px -25px rgba(0,0,0,0.5),
    0 0 60px -10px rgba(167,139,250,0.30);
}
.svai-coach-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(37,53,81,0.08);
}
.svai-coach-card-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #ede9fe 0%, #fff 100%);
  color: var(--ai-purple);
  display: grid; place-items: center;
  font-size: 14px; flex-shrink: 0;
}
.svai-coach-card-headtext {
  flex: 1;
  display: flex; flex-direction: column; gap: 1px;
}
.svai-coach-card-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--ai-violet);
}
.svai-coach-card-title {
  font-size: 15px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em; line-height: 1.2;
}
.svai-coach-card-score {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(124,58,237,0.10);
  color: var(--ai-purple);
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.svai-coach-card-score b { font-size: 14px; font-weight: 800; }
.svai-coach-card-score span { color: rgba(124,58,237,0.55); font-weight: 600; }

/* Patient quote / clinician callout */
.svai-coach-quote {
  background: #f5f3ff;
  border-left: 3px solid var(--ai-violet-soft);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 11.5px; line-height: 1.5;
  color: var(--navy);
  font-style: italic;
}
.svai-coach-quote-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: rgba(124,58,237,0.7);
  font-style: normal;
  margin-bottom: 4px;
}
.svai-coach-better {
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(167,139,250,0.10) 100%);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px; line-height: 1.5;
  color: var(--navy);
}
.svai-coach-better-label {
  display: flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--ai-purple);
  margin-bottom: 4px;
}
.svai-coach-better-label i { font-size: 10px; }
.svai-coach-better-text { color: var(--navy); font-weight: 500; }

/* Main feedback report card (bottom-right, rotated +2deg) */
/* Colours below match the live gp-* report (grading-page.css). */
.svai-fb-card {
  position: absolute;
  bottom: 0; right: 0;
  width: 92%; max-width: 480px;
  z-index: 2;
  transform: rotate(2deg);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  color: #253551;
  box-shadow:
    0 40px 80px -25px rgba(0,0,0,0.5),
    0 0 80px -10px rgba(167,139,250,0.25);
}
.svai-fb-card-meta-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.svai-fb-badge {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 999px;
  font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.01em;
}
.svai-fb-badge--mode {
  background: #253551; color: #fff;
}
.svai-fb-badge--case {
  background: #fff; color: #253551;
  border: 1.5px solid #d6dde9;
}
.svai-fb-card-title {
  font-size: 18px; font-weight: 800;
  color: #253551; margin: 4px 0 12px;
  letter-spacing: -0.015em; line-height: 1.2;
}

/* Overall card — Borderline Pass band */
.svai-fb-overall {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-radius: 14px;
  margin-bottom: 12px;
  border: 1.5px solid transparent;
  background: rgba(101,163,13,0.06);
  border-color: rgba(101,163,13,0.18);
}
.svai-fb-overall-lbl {
  font-size: 10.5px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.svai-fb-overall-band {
  font-size: 22px; font-weight: 800; line-height: 1.15;
  color: #65a30d;
}
.svai-fb-ring {
  width: 56px; height: 56px;
  position: relative; flex-shrink: 0;
}
.svai-fb-ring svg { width: 100%; height: 100%; }
.svai-fb-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #253551;
}

/* Domain row */
.svai-fb-domains {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.svai-fb-dom {
  padding: 10px 11px; border-radius: 11px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}
.svai-fb-dom-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 2px;
}
.svai-fb-dom-label {
  font-size: 10px; font-weight: 700;
  color: #253551; letter-spacing: -0.005em;
}
.svai-fb-dom-pct {
  font-size: 14px; font-weight: 800;
}
.svai-fb-dom-band {
  font-size: 10px; font-weight: 600; margin-bottom: 7px;
}
.svai-fb-dom--bp .svai-fb-dom-pct,
.svai-fb-dom--bp .svai-fb-dom-band { color: #65a30d; }
.svai-fb-dom--pass .svai-fb-dom-pct,
.svai-fb-dom--pass .svai-fb-dom-band { color: #16a34a; }
.svai-fb-bar-track {
  height: 4px; border-radius: 99px;
  background: rgba(0,0,0,0.06); overflow: hidden;
}
.svai-fb-bar-fill {
  height: 100%; border-radius: 99px;
}
.svai-fb-dom--bp   .svai-fb-bar-fill { background: #65a30d; }
.svai-fb-dom--pass .svai-fb-bar-fill { background: #16a34a; }

/* Premium skill scores row — navy bg, gold crown */
.svai-fb-premium {
  margin-top: 0; padding: 14px 16px;
  border-radius: 14px;
  background: #253551;
  color: #fff;
}
.svai-fb-premium-label {
  font-size: 12.5px; font-weight: 700;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.svai-fb-premium-label i {
  color: #fbbf24; font-size: 13px;
}
.svai-fb-skills {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.svai-fb-skill {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 9px;
  background: rgba(255,255,255,0.08);
}
.svai-fb-skill-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.svai-fb-skill-info { flex: 1; min-width: 0; }
.svai-fb-skill-name {
  font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.svai-fb-skill-dots { display: flex; gap: 3px; }
.svai-fb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
/* Skill score buckets — same JS thresholds as gp-* */
.svai-fb-dot.gp-good { background: #65a30d; } /* score >= 3.5 */
.svai-fb-dot.gp-ok   { background: #ca8a04; } /* 2.5 to 3.49 */
.svai-fb-dot.gp-weak { background: #dc2626; } /* < 2.5 */
.svai-fb-skill-num {
  font-size: 17px; font-weight: 800;
  color: #fff; flex-shrink: 0;
}
.svai-fb-skill-of {
  font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,0.4);
}

/* Floating "Next priorities" mini chip on top of the report */
.svai-fb-priorities {
  position: absolute;
  bottom: -14px; right: 24px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--ai-violet-soft) 0%, var(--ai-violet) 100%);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    0 14px 28px -8px rgba(125,98,255,0.5),
    0 0 30px -8px rgba(167,139,250,0.6);
}
.svai-fb-priorities i { font-size: 10px; color: #fff; }

/* ====================================================================
   07 · BIGGER PICTURE (ecosystem cards)
   ==================================================================== */
.sca-ai-eco { background: #fff; padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 56px); }
.sca-ai-eco-inner { max-width: 1220px; margin: 0 auto; }
.sca-ai-eco-head { margin: 0 0 50px; max-width: 820px; }
.sca-ai-eco-head h2 {
  font-size: clamp(34px, 5.2vw, 54px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1;
  margin: 14px 0 22px !important;
  color: var(--navy);
}
.sca-ai-eco-head h2 .sca-hl-violet { color: var(--ai-violet); }
.sca-ai-eco-head h2 .sca-emph {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--ai-violet);
}
.sca-ai-eco-head > p {
  margin-top: 18px; font-size: 16px; color: var(--text-muted);
  line-height: 1.7; max-width: 720px;
}
.sca-ai-eco-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-bottom: 26px;
}
.sca-ai-eco-card {
  background: #fff; border: 1px solid rgba(214,221,233,0.9);
  border-radius: 24px; padding: 32px 30px 28px;
  box-shadow: 0 8px 24px rgba(37,53,81,0.05),
              0 1px 0 rgba(255,255,255,0.75) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sca-ai-eco-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167,139,250,0.4);
  box-shadow: 0 14px 36px -10px rgba(167,139,250,0.18);
}
.sca-ai-eco-card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #d9d2f0 0%, #ffffff 100%);
  color: var(--navy);
  font-size: 18px;
  box-shadow:
    0 8px 18px rgba(125,98,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.75);
}
.sca-ai-eco-card h4 {
  font-size: 18px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 12px;
}
.sca-ai-eco-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}

.sca-ai-eco-foot {
  position: relative;
  border-radius: 24px; padding: 30px 32px;
  background: linear-gradient(180deg, rgba(37,53,81,0.98), rgba(37,53,81,0.86));
  border: 1px solid rgba(167,139,250,0.32);
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(37,53,81,0.16),
    0 16px 38px rgba(125,98,255,0.20);
}
.sca-ai-eco-foot::before {
  content: ''; position: absolute; inset: -120px;
  background: radial-gradient(circle at 88% 6%,
    rgba(79,124,255,0.16) 0%,
    rgba(79,124,255,0.08) 22%,
    rgba(79,124,255,0.00) 55%
  );
  pointer-events: none;
}
.sca-ai-eco-foot-label {
  position: relative; display: block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ai-violet-pale);
}
.sca-ai-eco-foot p {
  position: relative; margin: 0;
  font-size: 16px; line-height: 1.65;
  color: rgba(214,221,233,0.95);
}

/* ====================================================================
   08 · PROGRESS DASHBOARD SHOWCASE
   ==================================================================== */
.sca-ai-progress {
  background: var(--tint);
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.sca-ai-progress::before {
  content: ''; position: absolute; top: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167,139,250,0.10) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.sca-ai-progress-grid {
  position: relative; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.sca-ai-progress-grid > div { min-width: 0; }
.sca-ai-progress h2 {
  font-size: clamp(34px, 5.2vw, 54px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1;
  margin: 14px 0 24px !important;
  color: var(--navy);
}
.sca-ai-progress h2 .sca-hl-violet { color: var(--ai-violet); }
.sca-ai-progress h2 .sca-emph {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--ai-violet);
}
.sca-home .sca-ai-progress-body {
  font-size: 16.5px; margin-top: 8px !important; line-height: 1.65;
  max-width: 500px; color: var(--text-muted);
}
.sca-ai-progress-bullets {
  margin-top: 32px; display: grid; gap: 14px; max-width: 520px;
}
.sca-ai-progress-bullets li {
  display: flex; gap: 12px; font-size: 15px; line-height: 1.55;
  color: var(--text-muted);
}
.sca-ai-progress-bullets li::before {
  content: '\2713'; color: var(--ai-violet); font-weight: 700;
}
.sca-ai-progress-bullets li strong { color: var(--navy); font-weight: 600; }

/* Dashboard mockup wrap */
.sca-ai-dash-wrap {
  position: relative; width: 100%; height: 700px;
  font-family: 'DM Sans', sans-serif;
}

/* Main dashboard panel */
.svai-dash-main {
  position: absolute; top: 30px; right: 0;
  width: 92%; max-width: 540px;
  transform: rotate(-1.5deg); z-index: 2;
  background: #fff;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.06);
  font-size: 11px;
  display: flex; flex-direction: column;
}

.svai-dash-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, #253551 0%, #1e1b4b 40%, #4f46e5 80%, #7c3aed 100%);
  color: #fff; position: relative; overflow: hidden;
}
.svai-dash-header::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(124,58,237,0.4) 0%, transparent 70%);
  filter: blur(20px);
}
.svai-dash-header-title {
  font-size: 14px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 2px; position: relative;
}
.svai-dash-header-sub {
  font-size: 10.5px; color: rgba(255,255,255,0.6); position: relative;
}

.svai-dash-tabs {
  display: flex; gap: 3px; margin: 14px 14px 0;
  background: #f5f7fb; border-radius: 10px; padding: 3px;
  border: 1px solid rgba(148,163,184,0.18);
}
.svai-dash-tab {
  flex: 1; padding: 7px 8px; border-radius: 7px;
  font-size: 9px; font-weight: 700; color: #6c7485;
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  white-space: nowrap;
}
.svai-dash-tab.on {
  background: #fff; color: #1c2b4a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.svai-dash-tab i { font-size: 8px; }

.svai-dash-body { padding: 12px 14px 14px; }

.svai-dash-summary-card {
  background: #fff;
  border-radius: 14px; padding: 14px;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 8px 28px rgba(15,23,42,0.04);
  margin-bottom: 12px;
}
.svai-dash-card-head {
  display: flex; gap: 9px; align-items: flex-start; margin-bottom: 14px;
}
.svai-dash-card-head-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(124,58,237,0.08);
  color: var(--ai-purple);
  display: grid; place-items: center; font-size: 11px;
  flex-shrink: 0;
}
.svai-dash-card-head-text h4 {
  font-size: 12px; font-weight: 800; color: #1c2b4a;
  letter-spacing: -0.01em; margin-bottom: 2px;
}
.svai-dash-card-head-text p {
  font-size: 9.5px; color: #6c7485; line-height: 1.3;
}

.svai-dash-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.svai-dash-stat {
  padding: 0 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.svai-dash-stat:first-child { padding-left: 0; }
.svai-dash-stat + .svai-dash-stat {
  border-left: 1px solid rgba(148,163,184,0.15);
}
.svai-dash-stat-label {
  font-size: 7.5px; font-weight: 500; color: #6c7485;
  text-transform: uppercase; letter-spacing: 0.04em;
  line-height: 1.2;
}
.svai-dash-stat-val {
  font-size: 22px; font-weight: 500; color: #1c2b4a;
  letter-spacing: -0.02em; line-height: 1;
}
.svai-dash-stat-sub {
  font-size: 8.5px; color: #6c7485; line-height: 1.2;
}

.svai-dash-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
}

.svai-dash-card {
  background: #fff; border-radius: 12px; padding: 12px;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

/* Heatmap */
.svai-dash-heatmap {
  display: flex; gap: 2px; padding: 6px 0;
}
.svai-dash-heat-col {
  display: flex; flex-direction: column; gap: 2px;
}
.svai-dash-heat-cell {
  width: 7px; height: 7px; border-radius: 1.5px;
}
.svai-dash-heat-0 { background: rgba(124,58,237,0.06); }
.svai-dash-heat-1 { background: rgba(124,58,237,0.22); }
.svai-dash-heat-2 { background: rgba(124,58,237,0.42); }
.svai-dash-heat-3 { background: rgba(124,58,237,0.62); }
.svai-dash-heat-4 { background: rgba(124,58,237,0.88); }

/* Donut */
.svai-dash-donut-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 4px 0 0;
}
.svai-dash-donut {
  position: relative; width: 95px; height: 95px;
  border-radius: 50%;
  background: conic-gradient(var(--ai-purple) calc(var(--pct) * 1%), #eef1f7 0);
  display: grid; place-items: center;
}
.svai-dash-donut-inner {
  width: 70px; height: 70px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; text-align: center;
}
.svai-dash-donut-pct {
  font-size: 18px; font-weight: 500; color: #1c2b4a;
  letter-spacing: -0.02em; line-height: 1;
}
.svai-dash-donut-frac {
  display: block; font-size: 8px; color: #6c7485; font-weight: 500;
  margin-top: 1px;
}

/* Domain row in dashboard */
.svai-dash-domain-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding-top: 4px;
}
.svai-dash-domain {
  padding: 0 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.svai-dash-domain:first-child { padding-left: 0; }
.svai-dash-domain + .svai-dash-domain {
  border-left: 1px solid rgba(148,163,184,0.18);
}
.svai-dash-domain-label {
  font-size: 8.5px; color: #6c7485; font-weight: 500;
  line-height: 1.2;
}
.svai-dash-domain-val {
  font-size: 18px; font-weight: 500; color: #1c2b4a;
  letter-spacing: -0.02em; line-height: 1;
}
.svai-dash-domain-band {
  font-size: 8px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex; width: fit-content;
}
.svai-dash-band-pass { background: rgba(22,163,74,0.10); color: #16a34a; border: 1px solid rgba(22,163,74,0.16); }
.svai-dash-band-bp { background: rgba(101,163,13,0.10); color: #65a30d; border: 1px solid rgba(101,163,13,0.16); }

/* Topic bars */
.svai-dash-topics {
  display: flex; flex-direction: column; gap: 9px;
}
.svai-dash-topic-row {
  display: flex; flex-direction: column; gap: 4px;
}
.svai-dash-topic-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.svai-dash-topic-name {
  font-size: 10px; font-weight: 500; color: #1c2b4a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.svai-dash-topic-meta {
  font-size: 8px; color: #6c7485; font-weight: 400;
}
.svai-dash-topic-meta b { color: #1c2b4a; font-weight: 500; }
.svai-dash-topic-track {
  height: 5px; background: #eef1f7; border-radius: 999px; overflow: hidden;
}
.svai-dash-topic-fill {
  height: 100%;
  background: linear-gradient(90deg, #253551, #4f46e5);
  border-radius: 999px;
}

.svai-dash-encourage {
  background: #fff; border: 1px solid rgba(148,163,184,0.18);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.svai-dash-encourage-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(124,58,237,0.10);
  color: var(--ai-purple);
  display: grid; place-items: center; font-size: 11px;
  flex-shrink: 0;
}
.svai-dash-encourage-text {
  flex: 1; font-size: 10.5px; font-weight: 700; color: #1c2b4a;
}
.svai-dash-encourage-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: #eef1f7; color: #475569;
  font-size: 8px; font-weight: 500;
  white-space: nowrap;
}
.svai-dash-encourage-pill i { color: #d97706; font-size: 7px; }

/* Floating mini "Score" card to the left of the main panel */
.svai-dash-score-card {
  position: absolute;
  top: 60px; left: 0%;
  width: clamp(190px, 18vw, 230px);
  z-index: 3;
  transform: rotate(-4deg);
  background: linear-gradient(160deg, rgba(40,28,80,0.55) 0%, rgba(15,12,30,0.55) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(167,139,250,0.32);
  border-radius: 16px; padding: 14px 16px 16px;
  box-shadow:
    0 28px 60px -12px rgba(0,0,0,0.55),
    0 0 70px -10px rgba(167,139,250,0.40),
    inset 0 1px 0 rgba(255,255,255,0.08);
  text-align: center;
}
.svai-dash-score-card-eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(196,181,253,0.85); font-weight: 700;
}
.svai-dash-score-card-num {
  font-family: 'DM Serif Display', serif;
  font-size: 46px; line-height: 1;
  background: linear-gradient(135deg, #DDD3FF 0%, #A78BFA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 8px; letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(167,139,250,0.35);
}
.svai-dash-score-card-cap {
  font-size: 11px; color: rgba(255,255,255,0.72);
  margin-top: 4px; line-height: 1.4; font-weight: 500;
}
.svai-dash-score-card-trend {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(167,139,250,0.18);
  font-size: 9.5px; color: rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.svai-dash-score-card-trend i { color: #86efac; }

/* Floating stack-of-attempts mini card (bottom-left) */
.svai-dash-attempts-card {
  position: absolute;
  bottom: 40px; left: 4%;
  width: clamp(220px, 22vw, 280px);
  z-index: 4;
  transform: rotate(2deg);
  background: #fff;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 50px -16px rgba(15,23,42,0.35), 0 0 50px -12px rgba(124,58,237,0.18);
  font-size: 10px;
}
.svai-dash-attempts-head {
  background: #f5f7fb; padding: 10px 12px;
  border-bottom: 1px solid rgba(148,163,184,0.18);
  display: flex; align-items: center; gap: 8px;
}
.svai-dash-attempts-head i { color: var(--ai-purple); font-size: 11px; }
.svai-dash-attempts-head span { font-size: 11px; font-weight: 800; color: #1c2b4a; letter-spacing: -0.01em; }
.svai-dash-attempts-row {
  padding: 9px 12px;
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 8px; align-items: center;
  border-bottom: 1px solid rgba(148,163,184,0.10);
  font-size: 10px;
}
.svai-dash-attempts-row:last-child { border-bottom: none; }
.svai-dash-attempts-date {
  font-size: 8.5px; color: #6c7485; font-weight: 600;
  font-variant-numeric: tabular-nums; min-width: 36px;
}
.svai-dash-attempts-name {
  font-size: 10px; font-weight: 500; color: #1c2b4a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.svai-dash-attempts-mode {
  width: 18px; height: 18px; border-radius: 4px;
  display: grid; place-items: center;
  font-size: 8.5px; font-weight: 800;
}
.svai-dash-attempts-mode--p { background: var(--navy); color: #fff; }
.svai-dash-attempts-mode--s { background: #d6dde9; color: var(--navy); }
.svai-dash-attempts-band {
  padding: 2px 7px; border-radius: 999px;
  font-size: 8.5px; font-weight: 800;
  border: 1px solid;
}
.svai-dash-attempts-band--cp {
  background: rgba(22,163,74,0.10); color: #16a34a;
  border-color: rgba(22,163,74,0.18);
}
.svai-dash-attempts-band--bp {
  background: rgba(101,163,13,0.10); color: #65a30d;
  border-color: rgba(101,163,13,0.18);
}
.svai-dash-attempts-band--bf {
  background: rgba(230,119,0,0.10); color: #e67700;
  border-color: rgba(230,119,0,0.20);
}

/* ====================================================================
   09 · UNDER THE HOOD — Live Signal Pipeline
   ==================================================================== */
/* Registered angle so the conic-gradient rotation can be CSS-animated.
   Without this declaration, --tilt-angle is treated as a string and
   transitions/animations do nothing. */
@property --tilt-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.sca-ai-pipeline {
  background: #050810;
  color: #fff;
  padding: clamp(90px, 11vw, 140px) clamp(20px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.sca-ai-pipeline::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 450px at 50% 0%, rgba(167,139,250,0.18), transparent 60%),
    radial-gradient(700px 350px at 50% 100%, rgba(91,33,182,0.20), transparent 70%);
  pointer-events: none;
}
.pipeline-inner { max-width: 1400px; margin: 0 auto; position: relative; }
.pipeline-head { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.pipeline-head h2 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1;
  margin: 14px 0 18px !important; color: #fff;
}
.pipeline-head h2 .sca-emph {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--ai-violet-pale);
}
.sca-home .pipeline-head > p {
  margin-top: 4px !important; font-size: 16px;
  color: var(--text-on-dark); line-height: 1.7;
}

/* Diagram row */
.pipeline-diagram {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center; gap: 0;
  position: relative;
}

/* Bookend (input/output waveform).
   z-index puts the bookend above the connector, AND the background is now
   opaque (matching the stage cards) so the travelling signal — which can
   briefly extend past the connector's right edge into the bookend's space
   — is properly occluded rather than showing through a transparent panel. */
.pipe-bookend {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(30,27,75,0.94) 0%, rgba(15,12,30,0.97) 100%);
  border: 1px solid rgba(167,139,250,0.22);
  border-radius: 14px;
  min-width: 88px;
}
.bookend-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.16em;
  color: rgba(196,181,253,0.75); font-weight: 700;
}
.bookend-wave {
  display: flex; gap: 3px; align-items: end; height: 28px;
}
.bookend-wave .bw-bar {
  width: 3px; height: 100%; border-radius: 2px;
  background: linear-gradient(to top, rgba(167,139,250,0.4), var(--ai-violet-pale));
  transform: scaleY(0.3); transform-origin: bottom;
  animation: bw-wave 0.8s ease-in-out infinite;
}
.bookend-wave .bw-bar:nth-child(1) { animation-delay: 0s; }
.bookend-wave .bw-bar:nth-child(2) { animation-delay: 0.1s; }
.bookend-wave .bw-bar:nth-child(3) { animation-delay: 0.2s; }
.bookend-wave .bw-bar:nth-child(4) { animation-delay: 0.3s; }
.bookend-wave .bw-bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes bw-wave {
  0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* Connector — flowing line + travelling signal.
   Two variants:
     .pipe-conn--audio  → violet line + voice-waveform signal (audio data)
     .pipe-conn--data   → cyan   line + electrical-zigzag signal (text data)
   The pipeline reads: audio → data → data → audio, matching what each
   stage actually passes downstream. */
.pipe-conn {
  position: relative; z-index: 1; /* below bookends/stages */
  height: 2px;
  border-radius: 99px;
}
/* Tone variants — static gradient line per segment.
   Audio segments = violet, data segments = cyan.
   No flowing-dash background; the only motion in a connector is the
   travelling signal that fires when it's that segment's turn. */
.pipe-conn--audio {
  background: linear-gradient(90deg,
    rgba(167,139,250,0.08) 0%,
    rgba(167,139,250,0.45) 50%,
    rgba(167,139,250,0.08) 100%);
}
.pipe-conn--data {
  background: linear-gradient(90deg,
    rgba(103,232,249,0.08) 0%,
    rgba(103,232,249,0.50) 50%,
    rgba(103,232,249,0.08) 100%);
}

/* Travelling-signal wrapper.
   The keyframe gives each signal its OWN slot inside a 4-second cycle:
   visible for the first 25% (~1s) of its cycle, hidden the remaining 75%.
   Combined with inline animation-delays of 0s / 1s / 2s / 3s, the four
   signals fire strictly one-at-a-time in pipeline order — no overlap. */
/* The .signal element is now a TRACK that fills the connector (inset: 0).
   The animated wrapper translates via transform — a compositor-only property
   that doesn't trigger layout, recovering the FPS Safari was losing on the
   old `left`/`top` keyframes. The visual child (.signal-wave / .signal-elec)
   sits inside the track, positioned absolutely at one edge, and rides along
   when the wrapper translates. `100%` in translateX/Y resolves against the
   wrapper's own size, which equals the parent's because of inset: 0 — so
   the keyframe math is identical to the old left/top values. */
.signal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: signal-fly-h 4s linear infinite;
  opacity: 0;
}
@keyframes signal-fly-h {
  /* Active 0% → 25% of cycle */
  0%    { transform: translateX(-10px);              opacity: 0; }
  2%    { transform: translateX(-10px);              opacity: 1; }
  23%   { transform: translateX(calc(100% + 10px));  opacity: 1; }
  25%   { transform: translateX(calc(100% + 10px));  opacity: 0; }
  /* Hidden 25% → 100% — parked off-screen, fully transparent */
  100%  { transform: translateX(calc(100% + 10px));  opacity: 0; }
}

/* Voice waveform — fixed-height bars forming a recognisable audio-packet
   silhouette (low → high → mid → high → low). The whole packet flies along
   the line as one shape; the heights don't oscillate, because what's actually
   travelling is the audio data itself, not a single oscillating signal. */
.signal-wave {
  position: absolute;
  top: 50%; left: 0;
  display: flex; align-items: center; gap: 2px;
  width: 48px; height: 18px;
  margin-top: -9px; /* centre 18px height on the 2px line */
  filter: drop-shadow(0 0 8px var(--ai-violet-pale));
}
.signal-wave span {
  display: block;
  width: 3px;
  background: var(--ai-violet-pale);
  border-radius: 2px;
  flex-shrink: 0;
}
/* Heights chosen to read as a clean voice-burst envelope. */
.signal-wave span:nth-child(1)  { height: 25%; }
.signal-wave span:nth-child(2)  { height: 55%; }
.signal-wave span:nth-child(3)  { height: 85%; }
.signal-wave span:nth-child(4)  { height: 65%; }
.signal-wave span:nth-child(5)  { height: 100%; }
.signal-wave span:nth-child(6)  { height: 80%; }
.signal-wave span:nth-child(7)  { height: 95%; }
.signal-wave span:nth-child(8)  { height: 50%; }
.signal-wave span:nth-child(9)  { height: 70%; }
.signal-wave span:nth-child(10) { height: 30%; }

/* Electrical signal — div-wrapped SVG, travelling (text data between cards).
   The wrapper div, not the SVG itself, is what gets sized and rotated. SVG
   sizing inside narrow parents is unreliable across browsers (Safari/Edge
   collapse inline SVGs to the parent's width even with explicit width/height
   on the SVG), and CSS transforms on `<svg>` elements interact badly with
   `preserveAspectRatio="none"`. Wrapping in a normal HTML div sidesteps
   both problems — the div sizes and rotates predictably, and the SVG inside
   just renders normally at 100% × 100% of the div. */
.signal-elec {
  position: absolute;
  top: 50%; left: 0;
  width: 36px; height: 16px;
  margin-top: -8px; /* centre 16px height on the 2px line */
  filter: drop-shadow(0 0 8px #67e8f9);
}
.signal-elec svg {
  display: block;
  width: 100%; height: 100%;
}
.signal-elec path {
  stroke: #67e8f9;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
}

/* Stage card — soft violet+cyan coloured glow + lit-up flash on signal arrival.
   No pseudo-element halo: stacked box-shadows give a cleanly circular glow
   that can't render as a square frame the way a blurred conic-gradient can.
   z-index above .pipe-conn so the travelling signal can't paint over it. */
.pipe-stage {
  position: relative; z-index: 2;
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, rgba(30,27,75,0.94) 0%, rgba(15,12,30,0.97) 100%);
  border: 1px solid rgba(167,139,250,0.22);
  border-radius: 18px;
  min-width: 168px;
  text-align: center;
  /* isolation: isolate scopes the ::before halo to this card's stacking
     context, so the halo can use z-index: -1 to sit behind the card's
     content without escaping behind sibling connectors. */
  isolation: isolate;
  animation: stage-lit 4s ease-out infinite;
  animation-delay: var(--lit-delay, 0s);
}
/* Make sure the card's content sits ABOVE the ::before halo */
.pipe-stage > * { position: relative; z-index: 1; }

/* Iridescent rotating halo — Option B's coloured-shadow effect.
   The halo extends 14px past the card on all sides (inset: -14px) and
   sits at z-index: -1 inside the card's isolated stacking context, so
   the bright violet ↔ cyan smudges peek out around the card's rounded
   edge as the conic gradient rotates. Transparent stops at 0% / 100%
   create natural gaps in the halo so it reads as a soft glow rather
   than a continuous ring. */
.pipe-stage::before {
  content: '';
  position: absolute; inset: -14px;
  background: conic-gradient(from var(--tilt-angle, 0deg),
    transparent 0%,
    rgba(167,139,250,0.45) 25%,
    rgba(103,232,249,0.45) 50%,
    rgba(167,139,250,0.45) 75%,
    transparent 100%);
  filter: blur(20px);
  border-radius: 30px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  /* Two synchronised animations (kept from the current version):
       1. tilt-rotate: continuous 16s rotation of the conic gradient.
       2. halo-flash:  4s cycle that briefly intensifies the halo when
          this stage's signal arrives. */
  animation:
    tilt-rotate 16s linear infinite,
    halo-flash 4s ease-out infinite;
  animation-delay: 0s, var(--lit-delay, 0s);
}
@keyframes halo-flash {
  /* Brief boost when the signal arrives, then back to resting opacity */
  0%, 4%   { opacity: 0.95; }
  12%, 100% { opacity: 0.55; }
}
@keyframes tilt-rotate { to { --tilt-angle: 360deg; } }

/* Lit-up flash on signal arrival.
   IMPORTANT: no OUTER box-shadow here.  box-shadow follows the card's
   rounded-rect shape, which produces a clearly rectangular outline
   around the card during the bright moment of the flash — exactly the
   "squared-off shadow" we don't want. The flash is now expressed by:
     - border-color brightening (subtle outline cue)
     - inset 0 0 30px sheen (lights up the INSIDE of the rounded edge,
       not the outside — so no external rectangle)
     - the halo's opacity briefly bumping to 1 (handled by halo-flash on
       the ::before pseudo-element, which is circular). */
@keyframes stage-lit {
  0%, 4% {
    border-color: var(--ai-violet-pale);
    box-shadow: inset 0 0 30px rgba(167,139,250,0.20);
  }
  12%, 100% {
    border-color: rgba(167,139,250,0.22);
    box-shadow: none;
  }
}
.stage-num {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.16em; font-weight: 700;
  padding: 4px 9px; border-radius: 5px;
  background: var(--black-deep);
  color: var(--ai-violet-pale);
  border: 1px solid rgba(167,139,250,0.32);
}
.stage-icon {
  font-size: 26px; color: var(--ai-violet-pale);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(167,139,250,0.5));
}
.stage-name {
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.stage-role {
  font-size: 10.5px; color: rgba(196,181,253,0.7);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
  margin-bottom: 14px;
}
/* Qualitative badge replacing the old specific-millisecond pills.
   These descriptors are defensibly true regardless of stack timing. */
.stage-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(167,139,250,0.10);
  border: 1px solid rgba(167,139,250,0.30);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--ai-violet-pale);
  font-weight: 700; letter-spacing: 0.10em;
}
.stage-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 8px #67e8f9;
}
/* Variant for stages where we have a provider-published latency.
   Uses the same dot but a different inner type-scale. */
.stage-badge--ms {
  gap: 4px;
  padding: 4px 11px 4px 11px;
  letter-spacing: 0.04em;
  align-items: baseline;
}
.stage-badge--ms span {
  font-size: 16px; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
  line-height: 1;
}
.stage-badge--ms::before { align-self: center; }
/* Model version chip next to the stage name (e.g. "Flash v2.5") */
.stage-name-ver {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(196,181,253,0.85);
  background: rgba(167,139,250,0.10);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 4px;
  vertical-align: 2px;
}

/* Foot stats */
.pipeline-foot {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid rgba(167,139,250,0.20);
}
.pf-stat { text-align: center; }
.pf-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em;
  color: rgba(196,181,253,0.7); font-weight: 700;
  margin-bottom: 8px;
}
.pf-val {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  background: linear-gradient(135deg, #DDD3FF 0%, var(--ai-violet-soft) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px; line-height: 1;
}
.pf-sub { font-size: 12px; color: rgba(255,255,255,0.5); }

@media (max-width: 1100px) {
  .pipeline-diagram { grid-template-columns: 1fr; gap: 14px; }
  .pipe-conn {
    height: 36px; width: 2px; margin: 0 auto;
  }
  /* Audio variant — vertical violet pipeline (static gradient, no flowing dashes) */
  .pipe-conn--audio {
    background: linear-gradient(180deg,
      rgba(167,139,250,0.08) 0%,
      rgba(167,139,250,0.45) 50%,
      rgba(167,139,250,0.08) 100%);
  }
  /* Data variant — vertical cyan pipeline */
  .pipe-conn--data {
    background: linear-gradient(180deg,
      rgba(103,232,249,0.08) 0%,
      rgba(103,232,249,0.50) 50%,
      rgba(103,232,249,0.08) 100%);
  }

  /* Travelling signal goes top→bottom on mobile. The .signal track keeps its
     `inset: 0` filling the connector; only the keyframe direction changes
     from translateX to translateY. Same sequential 4s cycle as desktop —
     visible 25% of the time, hidden the rest. */
  .signal {
    animation: signal-fly-v 4s linear infinite;
  }
  @keyframes signal-fly-v {
    0%   { transform: translateY(-10px);              opacity: 0; }
    2%   { transform: translateY(-10px);              opacity: 1; }
    23%  { transform: translateY(calc(100% + 10px));  opacity: 1; }
    25%  { transform: translateY(calc(100% + 10px));  opacity: 0; }
    100% { transform: translateY(calc(100% + 10px));  opacity: 0; }
  }
  /* Inner visual sits at the TOP of the track and centres horizontally on
     the 2px line. Rotated 90deg so the waveform / electrical glyph reads
     vertically. translate(-Xpx, +Ypx) centres the visual horizontally and
     compensates for the dimension swap on rotation:
       signal-wave is 48×18  → rotated visual 18×48, needs translate(-24, +15)
       signal-elec is 36×16  → rotated visual 16×36, needs translate(-18, +10) */
  .signal-wave {
    top: 0; left: 50%;
    margin-top: 0; margin-left: 0;
    transform-origin: center;
    transform: translate(-24px, 15px) rotate(90deg);
  }
  .signal-elec {
    top: 0; left: 50%;
    width: 36px; height: 16px;
    margin-top: 0; margin-left: 0;
    transform-origin: center;
    transform: translate(-18px, 10px) rotate(90deg);
  }

  .pipeline-foot { grid-template-columns: 1fr; gap: 18px; }
  .pipe-bookend, .pipe-stage { width: 100%; max-width: 360px; margin: 0 auto; }
}


/* ====================================================================
   10 · FAQ
   ==================================================================== */
.sca-ai-faq {
  background: #fff;
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 56px);
}
.sca-ai-faq-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 380px 1fr; gap: 64px;
  align-items: flex-start;
}
.sca-ai-faq-side { position: sticky; top: 90px; }
.sca-ai-faq-side h2 {
  font-size: clamp(34px, 5.2vw, 54px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1;
  margin: 14px 0 18px !important;
  color: var(--navy);
}
.sca-ai-faq-side h2 .sca-hl-violet { color: var(--ai-violet); }
.sca-ai-faq-side p {
  font-size: 14.5px; color: var(--text-muted); margin-top: 20px; line-height: 1.6;
}
.sca-ai-faq-side p strong { color: var(--navy); font-weight: 500; }
.sca-ai-faq-list details {
  border-top: 1px solid var(--tint); padding: 22px 0;
}
.sca-ai-faq-list details:first-child { border-top: 1.5px solid var(--navy); }
.sca-ai-faq-list details:last-child  { border-bottom: 1.5px solid var(--navy); }
.sca-ai-faq-list summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.01em;
}
.sca-ai-faq-list summary::-webkit-details-marker { display: none; }
.sca-ai-faq-list summary .sca-ai-faq-icon {
  color: var(--ai-violet); font-size: 20px; font-weight: 400;
  transition: transform 0.2s;
}
.sca-ai-faq-list details[open] summary .sca-ai-faq-icon { transform: rotate(45deg); }
.sca-ai-faq-list details p {
  font-size: 14px; color: var(--text-muted);
  margin-top: 14px; line-height: 1.7; max-width: 760px;
}

/* ====================================================================
   11 · FINAL CTA
   ==================================================================== */
.sca-ai-final {
  color: #fff;
  padding: clamp(90px, 14vw, 150px) clamp(20px, 5vw, 56px);
  text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #2a1a5e 0%, #1e1b4b 60%, var(--black-deep) 100%);
}
.sca-ai-final::before {
  content: ''; position: absolute; top: 30%; left: 30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.30) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.sca-ai-final::after {
  content: ''; position: absolute; bottom: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(125,168,240,0.15) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.sca-ai-final-inner { position: relative; max-width: 920px; margin: 0 auto; }
.sca-ai-final h2 {
  font-size: clamp(40px, 7vw, 72px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.1;
  margin: 14px 0 22px !important;
  color: #fff;
}
.sca-ai-final h2 .sca-grad-violet {
  background: linear-gradient(90deg, var(--ai-violet-pale), var(--ai-violet-soft));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sca-ai-final-sub { margin-top: 22px; font-size: 16px; color: var(--text-on-dark); }
.sca-ai-final-ctas {
  margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 1100px) {
  .sca-ai-hero-body { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .sca-ai-hero { padding-bottom: 220px; }
  .sca-ai-orb-col { min-height: 480px; }
  .sca-ai-cases-grid,
  .sca-ai-progress-grid,
  .sca-ai-feedback-grid {
    grid-template-columns: 1fr; gap: 50px;
  }
  .sca-ai-mockwrap, .sca-ai-dash-wrap, .sca-ai-feedback-stack { height: 600px; }
  .sca-ai-leadin-inner { grid-template-columns: 1fr; gap: 40px; }
  .sca-ai-how-steps {
    grid-template-columns: repeat(3, 1fr); gap: 36px 0; max-width: 720px; margin: 0 auto;
  }
  .sca-ai-how-connector { display: none; }
  .sca-ai-trio-grid { grid-template-columns: 1fr; }
  .sca-ai-eco-grid { grid-template-columns: 1fr; }
  .sca-ai-faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .sca-ai-faq-side { position: static; }
  .sca-nav-links { display: none; }
}

@media (max-width: 720px) {
  .sca-ai-hero { padding-top: 16px; padding-bottom: 40px; min-height: auto; }
  .sca-ai-hero-stats { position: relative; grid-template-columns: repeat(2, 1fr); }
  .sca-ai-hero-stat { padding: 18px 12px; }
  .sca-ai-hero-stat:nth-child(2) { border-right: none; }
  .sca-ai-hero-stat:nth-child(1),
  .sca-ai-hero-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .sca-ai-orb-col { min-height: 380px; }
  /* Move the live-stat trust card from the orb top-right to the
     bottom-edge so it doesn't crash into the H1 on mobile. */
  .svai-live-stat--in-hero {
    top: auto; right: 4%;
    bottom: -16px;
    width: clamp(180px, 60vw, 240px);
  }

  .sca-ai-leadin-inner { grid-template-columns: 1fr; gap: 30px; }
  .sca-ai-leadin-mock-wrap { min-height: 360px; }
  .svai-coach-card { width: 86%; }
  .svai-fb-card { width: 96%; padding: 18px; }
  .svai-fb-domains { gap: 6px; }
  .svai-fb-dom { padding: 8px 10px; }
  .svai-fb-dom-label { font-size: 9.5px; }
  .svai-fb-premium { padding: 12px 13px; }
  .svai-fb-skill { padding: 8px 9px; gap: 7px; }
  .svai-fb-skill-icon { width: 24px; height: 24px; font-size: 10px; }
  .svai-fb-skill-num { font-size: 15px; }
  .sca-ai-feedback-stack { height: 540px; }
  .sca-ai-modes-grid { grid-template-columns: 1fr; gap: 16px; }
  .sca-ai-mode { padding: 28px 24px 26px; }
  .sca-ai-how-steps { grid-template-columns: 1fr; gap: 32px; max-width: 380px; }
  .sca-ai-how-connector { display: none; }
  .sca-ai-mockwrap, .sca-ai-dash-wrap { height: 540px; }
  .svai-cs-mock { transform: rotate(-1deg); }
  .svai-bot-mock { transform: rotate(1deg); }
  .svai-dash-main { transform: rotate(-1deg); }
  .svai-dash-attempts-card { transform: rotate(1deg); width: clamp(180px, 60vw, 260px); }
  .svai-dash-score-card { width: clamp(150px, 50vw, 200px); }

  .sca-ai-eco-card,
  .sca-ai-eco-foot { border-radius: 18px; padding: 24px 22px; }
  .sca-ai-trio-card { padding: 22px 22px 20px; }
}
