:root {
  --ink: #0B1033;
  --ink-2: #1E2A78;
  --ink-soft: #404A80;
  --muted: #6B7399;
  --line: #E6E9F5;
  --bg: #F7F8FC;
  --card: #FFFFFF;
  --violet: #6C5CE7;
  --violet-2: #8B7BFF;
  --blue: #2F7BFF;
  --blue-2: #5B9BFF;
  --cyan: #22D3EE;
  --emerald: #10B981;
  --amber: #F59E0B;
  --pink: #EC4899;
  --red: #EF4444;

  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 20px 45px -12px rgba(11, 16, 51, 0.18), 0 8px 20px -8px rgba(11, 16, 51, 0.12);
  --shadow-xl: 0 40px 80px -20px rgba(11, 16, 51, 0.28), 0 20px 40px -16px rgba(11, 16, 51, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ App shell ============ */
.page {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* ============ Navbar ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 10px 10px 20px;
  /* Solid-ish background instead of backdrop-filter. A 20px blur +
     saturate on a fixed, always-visible 720x60 nav strip re-samples
     and re-blurs the entire strip's worth of content every single
     scroll frame — the single biggest GPU cost on the page, and the
     reason the hero transition felt sticky. A near-opaque white bg
     looks virtually identical and is free to render. */
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(230, 233, 245, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(11,16,51,0.08);
  transition: top .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  box-shadow: 0 20px 50px -20px rgba(11,16,51,0.18);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  position: relative;
  overflow: hidden;
}
.nav-logo-mark::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 60%;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px);
  clip-path: polygon(0 100%, 20% 60%, 40% 80%, 60% 30%, 80% 50%, 100% 10%, 100% 100%);
  opacity: .9;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(108,92,231,0.08); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-ui);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6C5CE7 0%, #2F7BFF 100%);
  box-shadow: 0 8px 20px -6px rgba(108,92,231,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(108,92,231,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary .btn-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -60%; }
  100% { left: 160%; }
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-icon-only { padding: 10px; }

/* Generic light button — white with subtle border, used in hero CTAs */
.hero-ctas .btn-light,
.btn-light:not(.cta-card .btn-light) {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hero-ctas .btn-light:hover,
.btn-light:not(.cta-card .btn-light):hover {
  background: #F5F6FA;
  border-color: rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.12);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 180px 24px 20px;
  text-align: center;
  overflow: visible;
  min-height: 100vh;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: #fff;
  pointer-events: none;
  z-index: 2;
  transition: opacity .1s linear;
  /* Own compositor layer so scroll-driven opacity changes don't invalidate
     the dashboard beneath it. Without this, fading the scrim every frame
     forced a repaint of the 656-node dashboard below. */
  will-change: opacity;
  transform: translateZ(0);
}
.hero-dashboard-behind {
  /* will-change removed — dashboard no longer animates transform/opacity, only the hero-inner does */
}
.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 800;
  pointer-events: none;
}
.scroll-hint-below {
  position: sticky;
  top: auto;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  transition: opacity .3s ease;
  width: fit-content;
  margin: -80px auto 0;
}
.scroll-hint-fixed {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 20;
  transition: opacity .4s ease;
  pointer-events: none;
}
.scroll-hint-inline {
  position: static;
  transform: none;
  margin: 48px auto 0;
  transition: opacity .3s ease;
}
.scroll-hint-line {
  width: 2px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(108,92,231,0.7), transparent);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.scroll-hint-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: -7px; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: 44px; opacity: 0; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,92,231,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  /* Promote each glow to its own compositor layer so the float
     animation runs on the GPU instead of triggering a main-thread
     repaint every frame. Prior `filter: blur(100px)` was re-rasterized
     per frame on 500-600px surfaces and was the dominant paint cost. */
  will-change: transform;
  transform: translateZ(0);
}
.hero-bg .glow-1 {
  width: 500px; height: 500px;
  left: -100px; top: 40px;
  background: radial-gradient(circle, #8B7BFF, transparent 70%);
  animation: floatA 12s ease-in-out infinite;
}
.hero-bg .glow-2 {
  width: 600px; height: 600px;
  right: -150px; top: 100px;
  background: radial-gradient(circle, #5B9BFF, transparent 70%);
  animation: floatB 14s ease-in-out infinite;
}
.hero-bg .glow-3 {
  width: 400px; height: 400px;
  left: 40%; top: 50%;
  background: radial-gradient(circle, #22D3EE, transparent 70%);
  animation: floatA 18s ease-in-out infinite reverse;
  opacity: .3;
}
@keyframes floatA {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(30px, -40px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-40px, 30px); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  will-change: transform, opacity;
  /* Promote to own compositing layer so transform/opacity animation is cheap */
  transform: translateZ(0);
}

/* Hero floating chips — sit in the empty space flanking the centered hero text */
.hero-chip {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 40px -12px rgba(11,16,51,0.18), 0 8px 16px -8px rgba(11,16,51,0.08);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  animation: heroChipIn .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero-chip .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.hero-chip.violet .icon { background: linear-gradient(135deg, var(--violet), #8B7BFF); }
.hero-chip.emerald .icon { background: linear-gradient(135deg, var(--emerald), #34D399); }
.hero-chip.amber .icon { background: linear-gradient(135deg, var(--amber), #FBBF24); }
.hero-chip.pink .icon { background: linear-gradient(135deg, var(--pink), #F9A8D4); }
.hero-chip .body .title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.hero-chip .body .sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
}
.hero-chip-left {
  /* Bottom-most left chip — closest to the CTA row */
  top: calc(100vh - 320px);
  left: 3%;
  animation: heroChipIn .9s cubic-bezier(.2,.7,.2,1) .4s both, heroChipFloat 6s ease-in-out 1.3s infinite;
}
.hero-chip-left2 {
  /* Higher and pulled in slightly so it doesn't stack directly above hero-chip-left */
  top: calc(100vh - 480px);
  left: 7%;
  animation: heroChipIn .9s cubic-bezier(.2,.7,.2,1) .5s both, heroChipFloat 7.5s ease-in-out 1.4s infinite reverse;
}
.hero-chip-right {
  /* Top-most right chip — sits above the dashboard line, nudged inward */
  top: calc(100vh - 470px);
  right: 7%;
  animation: heroChipIn .9s cubic-bezier(.2,.7,.2,1) .55s both, heroChipFloat 7s ease-in-out 1.45s infinite reverse;
}
.hero-chip-center {
  /* Lower right chip — pushed further out and down for asymmetry */
  top: calc(100vh - 310px);
  right: 2%;
  animation: heroChipIn .9s cubic-bezier(.2,.7,.2,1) .7s both, heroChipFloat 8s ease-in-out 1.6s infinite;
}
@keyframes heroChipIn {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroChipFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-1deg); }
}
@media (max-width: 900px) {
  .hero-chip { display: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid rgba(108,92,231,0.2);
  /* backdrop-filter removed — this element lives inside .hero-inner, which
     animates transform+opacity on scroll. Re-sampling the pixels behind
     it and re-blurring on every frame was a major paint cost during the
     hero -> dashboard transition. Higher alpha keeps the glassy look. */
  background: rgba(255,255,255,0.88);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}
.eyebrow-pill {
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  position: relative;
}
.eyebrow-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--emerald);
  opacity: 0.4;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 28px;
  animation: fadeUp .9s ease .1s both;
}
.hero-title .gradient {
  background: linear-gradient(135deg, #6C5CE7 0%, #2F7BFF 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}
.hero-title .strike-through-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-title .strike-word {
  color: var(--muted);
  position: relative;
  display: inline-block;
}
.hero-title .strike-word::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: 55%;
  height: 6px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: strike 1.2s cubic-bezier(.2,.9,.3,1) 1.2s forwards;
}
@keyframes strike {
  to { transform: scaleX(1); }
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 36px;
  animation: fadeUp .9s ease .2s both;
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp .9s ease .3s both;
  margin-bottom: 20px;
}
.hero-ctas .btn-secondary {
  /* backdrop-filter removed for the same reason as .eyebrow — this button
     is inside .hero-inner and was re-blurring 214x48px of background on
     every scroll frame. */
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero-ctas .btn-secondary:hover { background: #fff; transform: translateY(-1px); }

.hero-micro {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  animation: fadeUp .9s ease .4s both;
}
.hero-micro .avatars {
  display: flex;
}
.hero-micro .avatars > div {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-size: cover;
  background-position: center;
  margin-left: -8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.hero-micro .avatars > div:first-child { margin-left: 0; }
.hero-micro .stars {
  display: flex;
  gap: 1px;
  color: var(--amber);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Dashboard hero visual ============ */
.hero-dashboard-wrap {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  padding: 0 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.hero-dashboard-wrap:not(.hero-dashboard-behind) {
  animation: fadeUp 1.2s ease .5s both;
}

/* Scroll track — tall container that pins the dashboard while user scrolls */
.hero-dashboard-track {
  position: relative;
  z-index: 1;
  /* Pull the track UP so the dashboard sits behind the hero text.
     Hero text overlays it via higher z-index. */
  margin-top: -700px;
  /* height set inline */
}
.hero-dashboard-track .hero-dashboard-wrap.hero-dashboard-behind {
  position: sticky;
  top: 120px;
  margin-top: 0;
  z-index: 1;
  /* will-change removed — wrap doesn't animate anymore */
  contain: layout paint;
  backface-visibility: hidden;
  transform-style: flat;
}

/* Static pre-blurred overlay layer that fades out as user scrolls.
   Replaces an animated filter:blur() on the dashboard, which re-rasterized every frame.
   Uses a soft radial gradient (no hard rounded-rect edge) so the transition feels ambient. */
.hero-dashboard-blur-overlay {
  position: absolute;
  inset: -80px -40px -40px -40px;
  pointer-events: none;
  z-index: 5;
  /* Solid opaque white block — fully covers the dashboard until scroll fades it. */
  background: #fff;
  will-change: opacity;
  transition: opacity .15s linear;
}

/* Two stacked dashboard layers — full one is mounted from the start so layout/paint
   happens during the initial idle time, not during scroll. Skeleton covers it until ready. */
.dash-layer {
  position: relative;
  transition: opacity .25s ease;
  will-change: opacity;
}
.dash-layer-skel {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: opacity;
  /* Promote to own composite layer so its fade-out doesn't repaint the dashboard below. */
  transform: translateZ(0);
}
.dash-layer-full {
  position: relative;
  z-index: 1;
  /* Kept at opacity 1 always — only its parent wrap fades. No expensive subtree repaint. */
}

/* Lightweight placeholder shown while dashboard is hidden behind hero text.
   Shares the shell and sidebar but swaps in flat gray cards — no SVG, no animations. */
.hero-dashboard-skeleton .db-content {
  padding: 16px 20px !important;
}
.db-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-content: start;
}
.db-skeleton-grid .sk-card {
  height: 140px;
  background: linear-gradient(180deg, #F4F6FB, #EDF0F7);
  border: 1px solid #E6E9F5;
  border-radius: 14px;
}
.db-skeleton-grid .sk-card:nth-child(-n+2) { height: 180px; }
.db-skeleton-grid .sk-card:nth-child(n+9) { height: 120px; }
.hero-dashboard-skeleton .sk-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EDF0F7;
  border: 1px solid #E6E9F5;
}

/* Pause expensive dashboard animations while the dashboard is hidden behind hero text. */
.hero-dashboard-behind[data-paused] *,
.hero-dashboard-behind[data-paused] *::before,
.hero-dashboard-behind[data-paused] *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

/* Constrained-height viewport: clip db-content to DASH_VISIBLE_H so
   only the top slice shows; translate the inner rows up as revealP grows */
.hero-dashboard-track .dashboard-shell {
  min-height: 0;
  height: var(--dash-visible-h, 640px);
}
.hero-dashboard-track .db-content {
  overflow: hidden;
  position: relative;
}
/* Single-layer transform: one wrapper is composited and translated
   per scroll frame instead of each of the 7 section children. */
.db-content-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 0%;
  min-height: 0;
}
.hero-dashboard-track .db-content-inner {
  transform: translateY(var(--dash-reveal-y, 0px));
  transition: none;
  will-change: transform;
}
.hero-dashboard {
  position: relative;
  /* Promote to its own compositor layer. The dashboard never moves, but
     other elements animating over it (scrim opacity, blur overlay,
     hero-inner translate) would otherwise invalidate its pixels and
     trigger a full 656-node repaint during scroll. */
  will-change: transform;
  transform: translateZ(0);
}
.hero-dashboard-wrap {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  /* Removed: perspective — was creating a rendering context that forced children into separate layers */
  padding: 0 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.dashboard-shell {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 920px;
  position: relative;
}
.dashboard-shell::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108,92,231,0.3), rgba(47,123,255,0.1) 50%, rgba(34,211,238,0.2));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* ============ Sidebar ============ */
.db-sidebar {
  background: linear-gradient(180deg, #1E2A78 0%, #2B3A9E 100%);
  color: #fff;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.db-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
}
.db-sidebar-logo .mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
}
.db-sidebar-logo .mark svg { width: 16px; height: 16px; }
.db-sidebar-logo .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.db-sidebar-logo .tag {
  font-size: 9px;
  letter-spacing: 0.15em;
  opacity: 0.6;
  font-weight: 600;
}
.db-section-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  padding: 14px 10px 6px;
  font-weight: 600;
}
.db-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.8);
  cursor: default;
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.db-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.db-nav-item.active { background: rgba(255,255,255,0.1); color: #fff; }
.db-nav-item.sub {
  padding-left: 36px;
  font-size: 12px;
  opacity: 0.85;
}
.db-nav-item.sub.active {
  background: rgba(47,123,255,0.25);
  color: #fff;
}
.db-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }
.db-nav-item .chev { margin-left: auto; opacity: 0.5; transition: transform .3s; }
.db-nav-item.expanded .chev { transform: rotate(180deg); }

.db-pro-card {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(108,92,231,0.3), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.db-pro-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(139,123,255,0.5), transparent 60%);
}
.db-pro-card .label {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.db-pro-card .sub {
  position: relative;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 3px;
  line-height: 1.3;
}
.db-pro-card .upgrade-btn {
  position: relative;
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 6px;
  background: #fff;
  color: var(--violet);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

/* ============ Main dashboard area ============ */
.db-main {
  background: #F4F6FB;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.db-topbar {
  background: #1E2A78;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
}
.db-topbar .right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.db-topbar .icon-bubble {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: grid; place-items: center;
}
.db-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC4899, #8B7BFF);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.db-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}
.db-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  border: 1px solid #EDF0F7;
}
.db-card-row {
  display: grid;
  gap: 12px;
}

.db-header-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px;
}
.db-header-card .eyebrow-chip {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}
.db-header-card .title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: 4px;
}
.db-header-card .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.db-header-card .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}
.chip-blue { background: #E8F0FF; color: var(--blue); }
.chip-purple { background: #EFEBFF; color: var(--violet); }
.chip-neutral { background: #F0F2FA; color: var(--ink-soft); }

.db-stat-grid {
  grid-template-columns: repeat(3, 1fr);
}
.db-stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.db-stat-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.db-stat-items .item .k {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}
.db-stat-items .item .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.db-stat-items .item .v.blue { color: var(--blue); }
.db-stat-items .item .sub { font-size: 9.5px; color: var(--muted); margin-top: 3px; }

.db-engagement {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.db-engagement .big {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
.db-engagement .label-small {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}
.db-engagement .name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.db-bar {
  height: 4px;
  background: #EDF0F7;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.db-bar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.db-bar-value {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 3px;
}

.db-highlight {
  background: linear-gradient(90deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
  border-left: 3px solid var(--emerald);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}
.db-highlight .l .label-small {
  font-size: 10px;
  color: var(--emerald);
  font-weight: 600;
}
.db-highlight .l .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.db-highlight .r {
  text-align: right;
}
.db-highlight .r .pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
}
.db-highlight .r .vs {
  font-size: 10px;
  color: var(--muted);
}

.db-chart-card {
  padding: 14px 16px;
}
.db-chart-card .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  font-family: var(--font-display);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.db-chart-card .dropdown {
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #F8FAFF;
}
.db-chart-legend {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.db-chart-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.db-grid-2 { grid-template-columns: 1fr 1fr; }
.db-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ============ New dashboard components ============ */

.chip-active {
  background: linear-gradient(135deg, var(--violet), #8B7BFF);
  color: #fff;
}

/* Rows */
.db-row {
  display: grid;
  gap: 10px;
}
.db-row-2a  { grid-template-columns: 2fr 1fr; }
.db-row-3eq { grid-template-columns: 1fr 1fr 1fr; }
.db-row-4eq { grid-template-columns: repeat(4, 1fr); }
.db-row-3b  { grid-template-columns: 1fr 1fr 1.1fr; }

.db-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.db-card-subtitle {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 10px;
  margin-bottom: 4px;
}

/* KPI strip */
.db-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.db-kpi {
  background: #fff;
  border: 1px solid #EDF0F7;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.db-kpi .kpi-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.db-kpi .kpi-k {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.db-kpi .kpi-v {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.db-kpi .kpi-s {
  font-size: 9px;
  color: var(--muted);
  margin-top: 1px;
}

/* Audience column (right of visitor chart) */
.db-audience-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.db-audience-col .item .k {
  font-size: 10px; color: var(--muted); margin-bottom: 1px;
}
.db-audience-col .item .v {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.db-audience-col .item .v.blue { color: var(--blue); }
.db-audience-col .item .sub { font-size: 9px; color: var(--muted); margin-top: 2px; }
.db-audience-highlight {
  margin-top: auto;
  background: linear-gradient(90deg, rgba(16,185,129,0.1), rgba(16,185,129,0.02));
  border-left: 3px solid var(--emerald);
  padding: 6px 8px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Devices */
.db-device-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.db-device-row .device-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.db-device-row .device-icon.blue  { background: #E8F0FF; color: var(--blue); }
.db-device-row .device-icon.green { background: #E9F7EF; color: var(--emerald); }
.db-device-row .device-icon.amber { background: #FFF4E0; color: var(--amber); }

/* Social tiles */
.db-social-tile {
  background: #fff;
  border: 1px solid #EDF0F7;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.db-social-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.db-social-logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.db-social-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.1;
}
.db-social-handle {
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-social-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.db-social-nums .k {
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.db-social-nums .v {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

/* Budget cells */
.db-budget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.budget-cell {
  padding: 8px 6px;
  border-radius: 8px;
  text-align: center;
}
.budget-cell .l {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.budget-cell .v {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
}
.budget-cell.pink   { background: #FDE7EF; }
.budget-cell.cream  { background: #FEF4DC; }
.budget-cell.mint   { background: #DEF6EA; }
.budget-cell.lilac  { background: #EADFF8; }

/* AI card */
.db-ai-card {
  display: flex;
  flex-direction: column;
}
.db-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.db-ai-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FCA5A5, #FBBF24);
  display: grid; place-items: center;
  font-size: 16px;
}
.db-ai-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
}
.db-ai-sub {
  font-size: 10px;
  color: var(--muted);
}
.db-ai-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #EEF1FA;
  color: var(--violet);
}
.db-ai-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.db-ai-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 9px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-6px);
  animation: aiSlide .5s ease forwards;
}
@keyframes aiSlide {
  to { opacity: 1; transform: translateX(0); }
}
.db-ai-item .ai-icon {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.db-ai-item .ai-text {
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}
.db-ai-item .ai-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.3;
}
.db-ai-item.tone-warn    { background: #FEF4DC; }
.db-ai-item.tone-warn    .ai-icon { background: #FBBF24; color: #78350F; }
.db-ai-item.tone-info    { background: #E8F0FF; }
.db-ai-item.tone-info    .ai-icon { background: #2F7BFF; color: #fff; }
.db-ai-item.tone-success { background: #E9F7EF; }
.db-ai-item.tone-success .ai-icon { background: #10B981; color: #fff; }
.db-ai-item.tone-accent  { background: #F3EBFF; }
.db-ai-item.tone-accent  .ai-icon { background: #8B5CF6; color: #fff; }

.db-ai-input {
  margin-top: 10px;
  padding: 7px 10px;
  background: #F4F6FB;
  border: 1px solid #EDF0F7;
  border-radius: 8px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Channel performance table */
.db-table {
  display: flex;
  flex-direction: column;
}
.db-table-head,
.db-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
}
.db-table-head {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid #EDF0F7;
}
.db-table-row {
  border-bottom: 1px dashed #EDF0F7;
  font-size: 11.5px;
  opacity: 0;
  transform: translateY(4px);
  animation: rowIn .5s ease forwards;
}
.db-table-row:last-child { border-bottom: none; }
@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}
.db-table .num { text-align: right; }
.db-table .mono { font-family: var(--font-mono); font-weight: 600; color: var(--ink-2); }
.db-table .ch-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.db-table .ch-name .ch-dot {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.db-table .ch-name .ch-dot svg { width: 12px; height: 12px; }

/* Floating notification chips */
.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 40px -12px rgba(11,16,51,0.2), 0 8px 16px -8px rgba(11,16,51,0.1);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  transition: transform .4s ease;
}
.float-chip .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.float-chip.violet .icon { background: linear-gradient(135deg, var(--violet), #8B7BFF); }
.float-chip.emerald .icon { background: linear-gradient(135deg, var(--emerald), #34D399); }
.float-chip.amber .icon { background: linear-gradient(135deg, var(--amber), #FBBF24); }
.float-chip .body .title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.float-chip .body .sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.float-chip.fc-a {
  top: 90px;
  left: -20px;
  animation: floatChip 6s ease-in-out infinite;
}
.float-chip.fc-b {
  top: 260px;
  right: -30px;
  animation: floatChip 7s ease-in-out infinite reverse;
}
.float-chip.fc-c {
  bottom: 90px;
  left: 60px;
  animation: floatChip 8s ease-in-out infinite;
}
@keyframes floatChip {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

/* ============ Section base ============ */
section {
  position: relative;
  padding: 120px 24px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}
.section-title .gradient {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============ Logo strip ============ */
.logo-strip {
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 auto;
}
.logo-block-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 700;
}
.logo-block-divider {
  width: 1px;
  align-self: stretch;
  min-height: 80px;
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .logo-strip { flex-direction: column; gap: 36px; }
  .logo-block-divider {
    width: 80px;
    height: 1px;
    min-height: 0;
    background: var(--line);
  }
}
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 56px;
}
.logo-row.verified { gap: 48px; }
.logo-row.trusted { gap: 56px; opacity: 0.85; }

/* "Verified by" badges — Google, Meta, TikTok */
.vlogo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: opacity .25s ease, transform .25s ease;
}
.vlogo:hover { transform: translateY(-1px); }
.vlogo.google {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.vlogo.google span { display: inline-block; }
.vlogo.meta { color: #1C2B33; gap: 6px; }
.vlogo.tiktok { color: var(--ink); gap: 6px; }

/* "Trusted by" — SPAR + placeholders */
.logo-row.trusted .logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color .3s ease, transform .3s ease;
}
.logo-row.trusted .logo:hover { color: var(--ink); transform: scale(1.04); }
.logo-row.trusted .logo-placeholder {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: 88px;
  padding: 10px 0;
  border-radius: 6px;
}
.logo-row.trusted .logo-placeholder .ph-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(11,16,51,0.08), rgba(11,16,51,0.16), rgba(11,16,51,0.08));
}
.logo-row.trusted .logo-placeholder .ph-bar:nth-child(1) { width: 100%; }
.logo-row.trusted .logo-placeholder .ph-bar:nth-child(2) { width: 60%; margin: 0 auto; }

/* ============ Feature bento ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.9,.3,1), box-shadow .4s ease, border-color .3s ease;
  will-change: transform;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108,92,231,0.25);
}
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.tall { min-height: 360px; }
.bento-card.short { min-height: 260px; }

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(108,92,231,0.08);
  color: var(--violet);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.bento-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ AI card content ============ */
.ai-card {
  background: linear-gradient(145deg, #1E2A78 0%, #6C5CE7 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(139,123,255,0.5), transparent 50%);
}
.ai-card .bento-tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.ai-card .bento-title,
.ai-card .bento-desc { color: #fff; }
.ai-card .bento-desc { opacity: 0.75; }

.ai-messages {
  margin-top: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-msg {
  /* backdrop-filter removed — ai-msg cards sit inside a scrolling section
     and the blur re-samples the dark background on every scroll frame. */
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-msg .avatar {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22D3EE, #6C5CE7);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ai-msg .content { line-height: 1.5; }
.ai-msg .content b { color: #fff; }
.ai-typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.ai-typing > span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: typing 1.2s ease-in-out infinite;
}
.ai-typing > span:nth-child(2) { animation-delay: .2s; }
.ai-typing > span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* ============ AI card · cross-channel split ============ */
.ai-divider {
  position: relative;
  margin: 22px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 20%, rgba(255,255,255,0.18) 80%, transparent 100%);
}
.ai-cross {
  position: relative;
}
.ai-cross-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.ai-cross-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-cross-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52,211,153,0.2); }
  50% { box-shadow: 0 0 0 5px rgba(52,211,153,0.05); }
}
.ai-cross-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.ai-cross-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
}
.ai-cross-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ai-cross-tile {
  min-width: 0;
  padding: 10px 10px 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.ai-cross-tile:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14);
}
.ai-cross-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.ai-cross-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ai-cross-label {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .ai-cross-grid { grid-template-columns: repeat(2, 1fr); }
}

.ai-cross-tip {
  margin-top: 12px;
  padding: 10px 10px 10px 12px;
  background: linear-gradient(135deg, rgba(108,92,231,0.55) 0%, rgba(47,123,255,0.55) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px -10px rgba(108,92,231,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
}
.ai-cross-tip-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  display: grid;
  place-items: center;
}
.ai-cross-tip-text {
  flex: 1;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.95);
}
.ai-cross-tip-text b {
  color: #fff;
  font-weight: 700;
}
.ai-cross-tip-cta {
  flex-shrink: 0;
  background: #fff;
  color: var(--violet);
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ai-cross-tip-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
@media (max-width: 720px) {
  .ai-cross-tip { flex-wrap: wrap; }
  .ai-cross-tip-cta { width: 100%; justify-content: center; }
}

/* ============ Calendar card ============ */
.cal-card {
  background: #fff;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.cal-mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 18px;
}
.cal-mini .dow {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
  letter-spacing: 0.05em;
}
.cal-mini .day {
  aspect-ratio: 1;
  background: #F7F8FC;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .2s ease, transform .2s ease;
  cursor: default;
  overflow: hidden;
}
.cal-mini .day:hover { background: #EEF1FA; transform: translateY(-1px); }
.cal-mini .day.empty { background: transparent; cursor: default; }
.cal-mini .day.today {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(108,92,231,0.6);
}
.cal-mini .day .dot-row {
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.cal-mini .day .dot-row > span {
  width: 5px; height: 5px;
  border-radius: 50%;
}
.p-ig { background: linear-gradient(135deg, #EC4899, #F59E0B); }
.p-fb { background: #2F7BFF; }
.p-tt { background: #111; }
.p-li { background: #0A66C2; }

.cal-scheduled {
  margin-top: 14px;
  padding: 12px;
  background: #F7F8FC;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cal-scheduled .post-img {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EC4899, #8B7BFF);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.cal-scheduled .post-img::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0 4px, transparent 4px 8px);
}
.cal-scheduled .text { flex: 1; min-width: 0; }
.cal-scheduled .text .t1 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.cal-scheduled .text .t2 {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.cal-scheduled .cta {
  padding: 6px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
}

/* Analytics small card */
.metric-tall {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 20px;
}
.metric-tall .big {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.metric-tall .delta {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16,185,129,0.1);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 11px;
}
.metric-row .lbl { color: var(--muted); }
.metric-row .val { font-weight: 700; color: var(--ink); }

.mini-line-svg {
  margin-top: 14px;
  width: 100%;
  height: 60px;
  display: block;
}

/* Channels / creator bars */
.channel-bars {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.channel-bar .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.channel-bar .row .name { font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.channel-bar .row .pct { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.channel-bar .track {
  height: 6px;
  background: #EDF0F7;
  border-radius: 3px;
  overflow: hidden;
}
.channel-bar .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(.2,.8,.2,1);
}

/* ============ Stats band ============ */
.stats-band {
  padding: 80px 24px;
  background: linear-gradient(180deg, #0B1033 0%, #1E2A78 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 50%, rgba(108,92,231,0.4), transparent 50%),
              radial-gradient(circle at 85% 50%, rgba(47,123,255,0.3), transparent 50%);
  pointer-events: none;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}
.stat-item .num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, #8B7BFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Lock digit width during count-up so the gradient column behind doesn't reflow */
  font-variant-numeric: tabular-nums;
}
.stat-item .label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  font-weight: 500;
}
.stat-item .desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* ============ How it works ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
.step {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step .step-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.step p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.step-visual {
  margin-top: 18px;
  background: #F7F8FC;
  border-radius: 12px;
  padding: 14px;
  min-height: 120px;
}

/* ============ Testimonials ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.testimonial .stars {
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}
.testimonial .quote {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 20px;
}
.testimonial .quote b {
  background: linear-gradient(120deg, transparent 0% 70%, rgba(108,92,231,0.2) 70% 100%);
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial .author .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.testimonial .author .info .n { font-weight: 700; font-size: 13px; color: var(--ink); }
.testimonial .author .info .r { font-size: 12px; color: var(--muted); }

/* ============ Pricing ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  background: linear-gradient(145deg, #1E2A78 0%, #6C5CE7 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(108,92,231,0.5);
}
.price-card.featured::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(139,123,255,0.3), transparent 30%);
  animation: spin 8s linear infinite;
}
.price-card.featured::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1E2A78 0%, #6C5CE7 100%);
}
.price-card.featured > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.price-card .plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.price-card.featured .plan-name { color: rgba(255,255,255,0.7); }
.price-card .plan-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 20px;
}
.price-card.featured .plan-desc { color: rgba(255,255,255,0.7); }
.price-card .price {
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}
.price-card .price .n {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price-card.featured .price .n { color: #fff; }
.price-card .price .u {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.price-card.featured .price .u { color: rgba(255,255,255,0.6); }
.price-card .plan-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-bottom: 24px;
}
.price-card .plan-cta.ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.price-card .plan-cta.ghost:hover { background: #EEF1FA; }
.price-card .plan-cta.primary {
  background: #fff;
  color: var(--violet);
}
.price-card .plan-cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.2);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.price-card.featured li { color: rgba(255,255,255,0.85); }
.price-card li svg {
  flex-shrink: 0;
  color: var(--emerald);
  width: 18px; height: 18px;
}
.price-card.featured li svg { color: #34D399; }
.price-card .popular-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: #fff;
  color: var(--violet);
  border-radius: 999px;
  z-index: 2;
}

/* ---- Pricing v2: audience, billing toggle, annual pricing, secondary CTA ---- */
.section-head .billing-toggle {
  margin: 26px auto 0;
  display: inline-flex;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(11,16,51,0.04);
}
.billing-opt {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color .25s ease;
  font-family: inherit;
  flex: 1 1 0;
  min-width: 130px;
  white-space: nowrap;
}
.billing-opt.active { color: #fff; }
.billing-save {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16,185,129,0.14);
  color: var(--emerald);
  transition: background .25s ease, color .25s ease;
}
.billing-opt.active .billing-save {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.billing-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, #1E2A78 0%, #6C5CE7 100%);
  z-index: 1;
  transition: transform .35s cubic-bezier(.4,1.4,.5,1);
  box-shadow: 0 4px 14px rgba(108,92,231,0.3);
}
.billing-pill.left  { transform: translateX(0); }
.billing-pill.right { transform: translateX(100%); }

/* ============ FAQ Page ============ */
.faq-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: block;
  grid-template-columns: none;
  gap: 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.faq-item:hover {
  border-color: rgba(108,92,231,0.35);
}
.faq-item.open {
  border-color: rgba(108,92,231,0.5);
  box-shadow: 0 8px 28px -12px rgba(108,92,231,0.25);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
  transition: background .2s ease;
}
.faq-q:hover {
  background: rgba(108,92,231,0.03);
}
.faq-q-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--violet);
  font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 28px;
}
.faq-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108,92,231,0.08);
  color: var(--violet);
  transition: transform .3s cubic-bezier(.4,1.4,.5,1), background .25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q-icon {
  transform: rotate(180deg);
  background: var(--violet);
  color: #fff;
}
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4,1.4,.5,1);
}
.faq-item.open .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-a {
  overflow: hidden;
  min-height: 0;
}
.faq-item.open .faq-a {
  padding: 0 24px 24px 70px;
}
.faq-a {
  padding: 0 24px 0 70px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.faq-a a {
  color: var(--violet);
  font-weight: 600;
}

.faq-cta-card {
  margin-top: 60px;
  padding: 36px;
  background: linear-gradient(135deg, #1E2A78 0%, #6C5CE7 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  box-shadow: 0 24px 60px -20px rgba(108,92,231,0.5);
}
.faq-cta-card .faq-cta-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.faq-cta-card .faq-cta-text p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}
.faq-cta-card .btn.primary {
  background: #fff;
  color: var(--violet);
  flex-shrink: 0;
}
.faq-cta-card .btn.primary:hover {
  background: rgba(255,255,255,0.92);
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .faq-main { padding: 40px 16px 80px; }
  .faq-q { padding: 18px 16px; gap: 12px; }
  .faq-q-num { width: 22px; font-size: 11px; }
  .faq-q-text { font-size: 14.5px; }
  .faq-q-icon { width: 28px; height: 28px; }
  .faq-a { padding: 0 16px 0 50px; font-size: 14px; }
  .faq-item.open .faq-a { padding: 0 16px 20px 50px; }
  .faq-cta-card { flex-direction: column; align-items: flex-start; padding: 26px; text-align: left; }
  .faq-cta-card .btn.primary { width: 100%; justify-content: center; }
}

.price-card .plan-audience {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: -8px 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.price-card.featured .plan-audience {
  color: rgba(255,255,255,0.55);
  border-bottom-color: rgba(255,255,255,0.15);
}
.price-card .price {
  margin-bottom: 4px;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 0;
}
.price-card .price .price-old {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  margin-right: 4px;
  letter-spacing: -0.01em;
}
.price-card.featured .price .price-old { color: rgba(255,255,255,0.45); }
.price-card .price-billed {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  min-height: 16px;
}
.price-card.featured .price-billed { color: rgba(255,255,255,0.55); }

.price-card .plan-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.price-card .plan-cta { margin-bottom: 0; }
.price-card .plan-cta-secondary {
  display: block;
  text-align: center;
  padding: 11px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--violet);
  background: transparent;
  border: 1px dashed rgba(108,92,231,0.35);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.price-card .plan-cta-secondary:hover {
  background: rgba(108,92,231,0.06);
  border-color: var(--violet);
}
.price-card.featured .plan-cta-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.price-card.featured .plan-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.price-card .plan-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  margin-bottom: 22px;
  padding: 0 4px;
}
.price-card.featured .plan-sub { color: rgba(255,255,255,0.6); }

.price-card .plan-feat-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price-card.featured .plan-feat-head {
  color: rgba(255,255,255,0.92);
  border-top-color: rgba(255,255,255,0.15);
}

.price-card li span { line-height: 1.5; }

/* Tone accents on plan-name */
.price-card.tone-starter .plan-name { color: var(--emerald); }
.price-card.tone-pro     .plan-name { color: var(--blue); }
.price-card.tone-agency  .plan-name { color: var(--violet); }
.price-card.featured.tone-pro .plan-name { color: rgba(255,255,255,0.85); }

/* Make the cards align nicely with extra height & let them grow */
.pricing { align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
}
.price-card ul { flex: 1; }

@media (max-width: 720px) {
  .billing-opt { padding: 8px 16px; font-size: 12.5px; }
  .price-card .plan-audience { font-size: 11.5px; }
  .price-card .price .n { font-size: 44px; }
  .price-card .price .price-old { font-size: 18px; }
  .price-card.featured { transform: none; }
}

/* ============ News (Newsletter) ============ */
.news-band {
  background: #fff;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(11,16,51,0.16);
  border-color: rgba(108,92,231,0.35);
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.news-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(47,123,255,0.12));
  color: var(--violet);
}
.news-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.news-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  font-weight: 700;
}
.news-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  cursor: pointer;
  transition: gap .25s ease, color .25s ease;
}
.news-link:hover { gap: 10px; color: var(--blue); }

/* Signup row */
.news-signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(47,123,255,0.06));
  border: 1px solid rgba(108,92,231,0.18);
  flex-wrap: wrap;
}
.news-signup-text { flex: 1 1 320px; min-width: 0; }
.news-signup-text h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 700;
}
.news-signup-text p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.news-signup-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 360px;
  max-width: 460px;
}
.news-signup-form input[type="email"] {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.news-signup-form input[type="email"]:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.18);
}
.news-signup-form .btn {
  height: 48px;
  padding: 0 22px;
  font-size: 14px;
  white-space: nowrap;
}
.news-success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(16,185,129,0.1);
  color: var(--emerald);
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 960px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-signup { padding: 24px; gap: 20px; }
  .news-signup-form { max-width: 100%; flex-direction: column; align-items: stretch; }
  .news-signup-form .btn { width: 100%; justify-content: center; }
}

/* ============ CTA ============ */
.cta-band {
  padding: 80px 24px;
}
.cta-card {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 80px 60px;
  text-align: center;
  background: linear-gradient(145deg, #1E2A78 0%, #6C5CE7 70%, #2F7BFF 100%);
  color: #fff;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(139,123,255,0.5), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(34,211,238,0.3), transparent 40%);
}
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 70%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 20px;
}
.cta-card p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-card .btn-light {
  background: #fff;
  color: var(--violet);
}
.cta-card .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}
.cta-card .btn-glass {
  /* backdrop-filter removed for the same reason — cheap paint over GPU blur. */
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============ Footer ============ */
.foot {
  padding: 48px 24px 28px;
  background: #0B1033;
  color: rgba(255,255,255,0.7);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}
.foot-brand .name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.foot-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  color: rgba(255,255,255,0.5);
}
.foot-credentials {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.45);
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.foot-credentials .cred-line { margin-bottom: 4px; }
.foot-credentials .cred-line:last-child { margin-bottom: 0; }
.foot-credentials .cred-line b {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: 13px;
}
.foot-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.9);
  margin: 0 0 12px;
  font-weight: 700;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color .2s ease;
}
.foot-col a:hover { color: #fff; }
.foot-bar {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.foot-builder {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #8B7BFF, #66B0FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter .2s ease;
}
.foot-builder:hover { filter: brightness(1.2); }

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .2s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .3s; }

/* ============ Magnetic & cursor ============ */
.magnetic { display: inline-block; transition: transform .3s cubic-bezier(.2,.9,.3,1); }

/* ============ Ambient dashboard motion ============
   Subtle living-data effects that play only while the element is in view.
   Driven by an `is-live` class toggled from React based on useInView.
   Cheap: opacity + transform only, no layout. */

/* Slow gentle pie rotation. */
@keyframes pieDrift {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}
.pie-spin.is-live {
  animation: pieDrift 14s ease-in-out infinite;
  transform-origin: center;
}

/* Vertical bars breathe — y/height oscillate ~3% via transform: scaleY. */
@keyframes barBreathe {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.04); }
}
.bar-breathe.is-live {
  animation: barBreathe 4.2s ease-in-out infinite;
  transform-origin: bottom;
  transform-box: fill-box;
}
.bar-breathe.is-live.delay-1 { animation-delay: 0.4s; }
.bar-breathe.is-live.delay-2 { animation-delay: 0.8s; }
.bar-breathe.is-live.delay-3 { animation-delay: 1.2s; }
.bar-breathe.is-live.delay-4 { animation-delay: 1.6s; }
.bar-breathe.is-live.delay-5 { animation-delay: 2.0s; }

/* Horizontal progress bars (Origin of Engagement, Devices) — soft shimmer sweep. */
@keyframes barShimmer {
  0%   { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}
.bar-shimmer { position: relative; overflow: hidden; }
.bar-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.55) 50%,
    transparent 100%
  );
  background-size: 60% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s linear;
}
.bar-shimmer.is-live::after {
  opacity: 1;
  animation: barShimmer 3.4s linear infinite;
}
.bar-shimmer.is-live.delay-1::after { animation-delay: 0.6s; }
.bar-shimmer.is-live.delay-2::after { animation-delay: 1.2s; }
.bar-shimmer.is-live.delay-3::after { animation-delay: 1.8s; }
.bar-shimmer.is-live.delay-4::after { animation-delay: 2.4s; }

/* Social-tile sparklines: dashed offset slowly drifts along the line for a "live" feel. */
@keyframes sparkDrift {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}
.spark-live.is-live {
  stroke-dasharray: 4 3;
  animation: sparkDrift 2.8s linear infinite;
}

/* ============ LEGAL PAGES (Terms, Privacy) ============ */
.legal-body { background: #FAFBFC; }
.legal-page { background: #FAFBFC; min-height: 100vh; }

.legal-hero {
  position: relative;
  padding: 160px 24px 60px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108,92,231,0.08), transparent 70%),
    linear-gradient(180deg, #FAFBFC 0%, #fff 100%);
  border-bottom: 1px solid #EDF0F7;
}
.legal-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.legal-hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,92,231,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.legal-hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.legal-hero-bg .glow-1 { width: 400px; height: 400px; left: -50px; top: 100px; background: radial-gradient(circle, #8B7BFF, transparent 70%); }
.legal-hero-bg .glow-2 { width: 500px; height: 500px; right: -100px; top: 60px; background: radial-gradient(circle, #5B9BFF, transparent 70%); }

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 18px 0 18px;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #0B1033 0%, #2F2A6A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-sub-text {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
  text-wrap: pretty;
}
.legal-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  background: #fff;
  border: 1px solid #EDF0F7;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(11,16,51,0.04);
}
.legal-meta-row .dot { opacity: 0.4; }
.legal-meta-row b { color: var(--ink); font-weight: 600; }

/* Two-column layout: TOC + article */
.legal-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border: 1px solid #EDF0F7;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 4px 16px rgba(11,16,51,0.03);
}
.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: legal;
}
.legal-toc li { counter-increment: legal; }
.legal-toc a {
  display: block;
  padding: 7px 0 7px 28px;
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
  line-height: 1.4;
}
.legal-toc a::before {
  content: counter(legal, decimal-leading-zero);
  position: absolute;
  left: 4px;
  top: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
.legal-toc a:hover { color: var(--blue); background: #F7F8FC; }

/* Article body */
.legal-article {
  background: #fff;
  border: 1px solid #EDF0F7;
  border-radius: 20px;
  padding: 50px 56px;
  box-shadow: 0 6px 24px rgba(11,16,51,0.04);
}

.legal-section {
  position: relative;
  padding: 36px 0;
  border-bottom: 1px solid #EDF0F7;
}
.legal-section:first-child { padding-top: 8px; }
.legal-section:last-of-type { border-bottom: none; padding-bottom: 8px; }
.legal-section-num {
  position: absolute;
  top: 36px;
  left: -32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #6C5CE7 0%, #2F7BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.25;
}
.legal-h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 8px;
}
.legal-sub {
  margin: 22px 0;
  padding-left: 16px;
  border-left: 2px solid #EDF0F7;
}
.legal-body-text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
}
.legal-body-text p { margin: 0 0 14px; }
.legal-body-text p:last-child { margin-bottom: 0; }
.legal-body-text ul {
  margin: 8px 0 14px;
  padding-left: 20px;
}
.legal-body-text li {
  margin: 4px 0;
  line-height: 1.65;
  position: relative;
}
.legal-body-text li::marker { color: var(--blue); }
.legal-body-text a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(47,123,255,0.25);
  transition: border-color .15s ease;
}
.legal-body-text a:hover { border-bottom-color: var(--blue); }
.legal-body-text b { color: var(--ink); font-weight: 600; }

.legal-caps {
  font-size: 13px !important;
  text-transform: none;
  background: linear-gradient(135deg, #FFF8EE 0%, #FFFAF2 100%);
  border: 1px solid #FCE7C4;
  border-radius: 10px;
  padding: 14px 16px;
  color: #5C4520 !important;
  font-style: italic;
}

/* "Do not" list — red accent */
.legal-dont li::marker { color: #EF4444; }

/* Service-provider info card */
.legal-info-card {
  background: linear-gradient(135deg, #F7F8FC 0%, #fff 100%);
  border: 1px solid #EDF0F7;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.legal-info-card .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: baseline;
}
.legal-info-card .k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.legal-info-card .v {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

/* Contact grid */
.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0 18px;
}
.legal-contact-card {
  background: linear-gradient(135deg, #F7F8FC 0%, #fff 100%);
  border: 1px solid #EDF0F7;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.legal-contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47,123,255,0.3);
  box-shadow: 0 8px 24px rgba(47,123,255,0.08);
}
.legal-contact-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 6px;
}
.legal-contact-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: none !important;
}
.legal-contact-card a:hover { color: var(--purple); }
.legal-postal {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-align: center;
  margin: 8px 0 0;
}

/* Sub-processor / retention table */
.legal-table-wrap {
  margin: 12px 0 16px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #EDF0F7;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #fff;
}
.legal-table th {
  text-align: left;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: linear-gradient(135deg, #F7F8FC 0%, #fff 100%);
  padding: 12px 16px;
  border-bottom: 1px solid #EDF0F7;
}
.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F2F4FA;
  color: var(--ink);
  vertical-align: top;
  line-height: 1.5;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: #FAFBFC; }

/* Numbered steps */
.legal-steps {
  list-style: none;
  counter-reset: legalstep;
  padding-left: 0;
}
.legal-steps li {
  counter-increment: legalstep;
  position: relative;
  padding-left: 38px;
  margin: 8px 0;
  line-height: 1.6;
}
.legal-steps li::before {
  content: counter(legalstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C5CE7 0%, #2F7BFF 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(108,92,231,0.3);
}
.legal-steps li::marker { content: none; }

/* Inline code in body text */
.legal-body-text code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #F2F4FA;
  padding: 2px 6px;
  border-radius: 5px;
  color: #4A4A6A;
  border: 1px solid #EDF0F7;
}

.legal-contact-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.legal-footer-note {
  margin-top: 36px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #6C5CE7 0%, #2F7BFF 100%);
  color: #fff;
  border-radius: 14px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
}

/* ============ Responsive (cleaned up + mobile-first) ============ */
@media (max-width: 1100px) {
  .legal-main { grid-template-columns: 200px 1fr; gap: 40px; }
  .legal-article { padding: 40px 36px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .bento, .steps, .testimonials, .pricing { grid-template-columns: 1fr; }
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4 { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-credentials { grid-column: 1 / -1; padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
  .float-chip { display: none; }
  .cta-card { padding: 50px 30px; }

  /* Legal: stack TOC under content as a collapsible block */
  .legal-main { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px 60px; }
  .legal-toc { position: static; padding: 16px; }
  .legal-toc ol { columns: 2; column-gap: 12px; }
  .legal-article { padding: 30px 24px; }
  .legal-section-num { position: static; display: block; margin-bottom: 6px; font-size: 12px; }
  .legal-info-card .row { grid-template-columns: 1fr; gap: 2px; }
  .legal-info-card .k { margin-top: 4px; }
  .legal-contact-grid { grid-template-columns: 1fr; }
}

/* ============ Phone optimizations (≤ 720px) ============ */
@media (max-width: 720px) {
  /* --- Nav --- */
  .nav {
    padding: 12px 16px;
    gap: 8px;
  }
  .nav-logo { font-size: 17px; }
  .nav-logo-mark { width: 26px; height: 26px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn { padding: 8px 14px; font-size: 13px; }

  /* --- Hero --- */
  .hero {
    padding: 110px 18px 20px;
    min-height: auto;
  }
  .hero-inner { padding: 0; }
  .eyebrow { font-size: 11px; padding: 5px 5px 5px 10px; }
  .eyebrow-pill { font-size: 9px; padding: 3px 7px; }
  .hero-title {
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: 1.05;
    letter-spacing: -0.025em;
  }
  .hero-sub {
    font-size: 15px;
    line-height: 1.55;
    margin: 14px auto 22px;
    padding: 0 4px;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  .hero-micro {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    font-size: 12px;
  }
  .scroll-hint-inline { margin-top: 24px; }

  /* Hero dashboard: scale down + don't tilt on mobile to keep it readable */
  .hero-dashboard-track {
    height: 720px !important;
    margin-top: 30px;
  }
  .hero-dashboard-wrap {
    margin-top: 0;
    padding: 0 8px;
    transform: none !important;
  }
  .hero-dashboard {
    transform: scale(0.42) !important;
    transform-origin: top center !important;
    width: 240% !important;
    margin-left: -70% !important;
    pointer-events: none;
  }
  .hero-dashboard-blur-overlay { inset: -40px -20px -20px -20px; }
  .scroll-hint-fixed { display: none !important; }

  /* --- Logo strip --- */
  .logo-strip {
    padding: 30px 16px;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .logo-strip-item { font-size: 13px; }

  /* --- Section paddings --- */
  section, .section {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .section-header h2,
  .bento-section h2,
  .steps-section h2,
  .testimonials-section h2,
  .pricing-section h2 {
    font-size: clamp(28px, 7vw, 38px) !important;
    line-height: 1.15;
  }
  .section-header p,
  .section-eyebrow + h2 + p {
    font-size: 15px;
    line-height: 1.55;
  }

  /* --- Bento (Features) --- */
  .bento { gap: 14px; }
  .bento-card {
    padding: 26px 22px;
    border-radius: 18px;
  }
  .bento-card h3 { font-size: 22px; }
  .bento-card p { font-size: 14px; line-height: 1.55; }

  /* --- Stats band --- */
  .stats-band { padding: 50px 18px; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
  }
  .stats-grid > * { padding: 18px 14px; }
  .stat-v { font-size: 32px !important; }
  .stat-k { font-size: 11px; }

  /* --- How it works --- */
  .steps { gap: 16px; }
  .step-card { padding: 26px 22px; }
  .step-num { font-size: 36px; }

  /* --- Testimonials --- */
  .testimonials { gap: 14px; }
  .testimonial-card { padding: 24px 22px; }
  .testimonial-card blockquote { font-size: 15px; line-height: 1.55; }

  /* --- Pricing --- */
  .pricing { gap: 14px; }
  .pricing-card { padding: 28px 24px; }
  .pricing-card .price { font-size: 42px; }
  .pricing-card ul li { font-size: 14px; }

  /* --- Final CTA --- */
  .cta-card {
    padding: 40px 24px !important;
    border-radius: 20px;
  }
  .cta-card h2 { font-size: clamp(26px, 7vw, 36px); }
  .cta-card p { font-size: 14px; }
  .cta-card .btn { width: 100%; justify-content: center; }

  /* --- Footer --- */
  .foot { padding: 40px 18px 20px; }
  .foot-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand p { font-size: 13px; max-width: 100%; }
  .foot-col h4 { font-size: 12px; }
  .foot-col li a { font-size: 13px; }
  .foot-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 11px;
  }

  /* --- Legal pages --- */
  .legal-hero { padding: 110px 18px 40px; }
  .legal-title { font-size: clamp(32px, 9vw, 44px) !important; }
  .legal-sub-text { font-size: 14px; padding: 0 4px; }
  .legal-meta-row {
    font-size: 11px;
    padding: 8px 14px;
    gap: 8px;
  }
  .legal-main { padding: 28px 14px 60px; gap: 18px; }
  .legal-toc { padding: 14px 14px; border-radius: 12px; }
  .legal-toc ol { columns: 1; }
  .legal-toc a { font-size: 13px; padding: 6px 0 6px 26px; }
  .legal-article {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .legal-section { padding: 24px 0; }
  .legal-h2 { font-size: 22px !important; }
  .legal-h3 { font-size: 15px; }
  .legal-body-text { font-size: 14.5px; line-height: 1.7; }
  .legal-body-text ul { padding-left: 18px; }
  .legal-sub { padding-left: 12px; margin: 16px 0; }
  .legal-info-card { padding: 14px 16px; }
  .legal-info-card .v { font-size: 13px; }
  .legal-contact-card { padding: 14px; }
  .legal-contact-card a { font-size: 13px; }
  .legal-postal { font-size: 11.5px; }
  .legal-table { font-size: 12.5px; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
  .legal-steps li { padding-left: 34px; }
  .legal-steps li::before { width: 22px; height: 22px; font-size: 11px; }
  .legal-footer-note { padding: 18px 20px; font-size: 13px; }
  .legal-caps { font-size: 12.5px !important; padding: 12px 14px; }
}

/* ============ Tiny phones (≤ 380px) ============ */
@media (max-width: 380px) {
  .nav-cta .btn { padding: 7px 11px; font-size: 12px; }
  .nav-logo { font-size: 15px; }
  .hero { padding: 100px 14px 16px; }
  .hero-title { font-size: 30px !important; }
  .hero-sub { font-size: 14px; }
  .hero-dashboard {
    transform: scale(0.36) !important;
    width: 280% !important;
    margin-left: -90% !important;
  }
  .hero-dashboard-track { height: 600px !important; }
}

