/* =========================================================================
   PHVIQ marketing site — light blue theme, a gradient per section
   No framework, no build step. Brand tokens live in :root.
   ========================================================================= */

:root {
  --navy-950: #030c1a;
  --navy-900: #061a33;
  --navy-850: #081d39;
  --navy-800: #0a1f3d;
  --blue: #036aea;
  --blue-bright: #2f8bff;
  --cyan: #01ebff;
  --deep: #015bb3;
  --violet: #7c5cff;
  --violet-soft: #6d28d9;
  --accent: #0369c9;   /* text-safe brand blue on light backgrounds */

  --text: #0b2545;
  --text-2: #33507a;   /* AA on #d6e8ff (about 6.5:1) */
  --text-3: #46618a;   /* AA on #d6e8ff (about 4.8:1) */
  --line: rgba(13, 59, 122, 0.12);
  --line-strong: rgba(13, 59, 122, 0.22);

  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  --glass-solid: rgba(255, 255, 255, 0.9);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  --shadow-lg: 0 24px 60px -30px rgba(13, 59, 122, 0.35), 0 8px 24px -16px rgba(13, 59, 122, 0.2);
  --grad-brand: linear-gradient(100deg, #036aea 0%, #0ab3e6 55%, #7c5cff 100%);
  --grad-btn: linear-gradient(135deg, #036aea 0%, #1f8fff 55%, #01c8f0 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --wrap: 1200px;
  --gutter: 24px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #eaf4ff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: #061a33; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Aurora */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(3, 106, 234, 0.28), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.aurora span {
  position: absolute; border-radius: 50%; opacity: .55; will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora .a1 { width: 70vmax; height: 70vmax; left: -20vmax; top: -25vmax;
  background: radial-gradient(circle, rgba(3, 106, 234, 0.55) 0%, transparent 62%); }
.aurora .a2 { width: 60vmax; height: 60vmax; right: -22vmax; top: 5vmax;
  background: radial-gradient(circle, rgba(1, 235, 255, 0.28) 0%, transparent 60%);
  animation-duration: 32s; animation-delay: -8s; }
.aurora .a3 { width: 55vmax; height: 55vmax; left: 20vmax; bottom: -30vmax;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.32) 0%, transparent 60%);
  animation-duration: 38s; animation-delay: -14s; }
.aurora .a4 { width: 40vmax; height: 40vmax; left: -10vmax; bottom: 0;
  background: radial-gradient(circle, rgba(1, 91, 179, 0.45) 0%, transparent 60%);
  animation-duration: 30s; animation-delay: -4s; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(13,59,122,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,59,122,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 8vmax, 0) scale(0.95); }
}

/* ---------------------------------------------------------------- Layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; scroll-margin-top: calc(var(--header-h) + 12px); }
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad-brand);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: 14px; letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); margin-top: 18px; max-width: 62ch; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }
.grad-text {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: #fff; background: var(--grad-btn);
  box-shadow: 0 10px 30px -10px rgba(3, 106, 234, .8), inset 0 1px 0 rgba(13,59,122,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(1, 200, 240, .75), inset 0 1px 0 rgba(13,59,122,.35); }
.btn-glass {
  color: var(--text); background: rgba(13,59,122,.07);
  border: 1px solid var(--line-strong);
  box-shadow: var(--glass-hi);
}
.btn-glass:hover { transform: translateY(-2px); background: rgba(13,59,122,.12); border-color: rgba(13,59,122,.35); }
.btn-lg { --pad-y: 16px; --pad-x: 28px; font-size: 16px; }
.btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------------------------------------------------------------- Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .01em;
  line-height: 1.3; white-space: nowrap;
  background: rgba(13,59,122,.08); border: 1px solid var(--line-strong); color: var(--text);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill-live { color: #047857; border-color: rgba(124,245,197,.35); background: rgba(16, 185, 129, .12); }
.pill-soon { color: #b45309; border-color: rgba(255,211,138,.35); background: rgba(245, 158, 11, .12); }
.pill-rolling { color: #6d28d9; border-color: rgba(185,169,255,.4); background: rgba(124, 92, 255, .14); }
.pill-planned { color: #475569; border-color: rgba(201,214,234,.3); background: rgba(13,59,122,.06); }
.pill-brand { color: var(--accent); border-color: rgba(1,235,255,.35); background: rgba(1,235,255,.08); }
.pill-brand::before { display: none; }

/* ---------------------------------------------------------------- Glass */
.glass {
  position: relative; border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--glass-hi), var(--shadow-lg);
}
/* gradient edge glow, revealed on hover */
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(1,235,255,.7), rgba(3,106,234,.15) 40%, rgba(124,92,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.glow:hover::before, .glow:focus-within::before { opacity: 1; }
.lift { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s; }
.lift:hover { transform: translateY(-4px); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .94); border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(13,59,122,.35);
}
.header-inner { display: flex; align-items: center; gap: 20px; width: 100%; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 112px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; white-space: nowrap; border-radius: 999px; text-decoration: none;
  font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: rgba(13,59,122,.06); }
.nav a.active { color: var(--text); background: rgba(13,59,122,.1); box-shadow: var(--glass-hi); }
.header-ctas { display: flex; gap: 8px; flex: none; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; flex: none;
  border: 1px solid var(--line-strong); background: rgba(13,59,122,.06); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative;
  transition: transform .25s, background-color .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1280px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header-ctas { margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); margin: 0;
    background: #f5faff;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .nav-open .nav { max-height: calc(100vh - var(--header-h)); visibility: visible; overflow-y: auto; }
  .nav ul { flex-direction: column; padding: 12px var(--gutter) 20px; gap: 2px; }
  .nav a { font-size: 17px; padding: 12px 14px; border-radius: 12px; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header-inner { gap: 8px; }
  .brand img { width: 80px; }
  .header-ctas { gap: 6px; }
  .header-ctas .btn { --pad-y: 8px; --pad-x: 11px; font-size: 13px; }
  .nav-toggle { width: 38px; height: 38px; }
}
@media (max-width: 359px) {
  .header-ctas .btn-glass { display: none; }
}

/* ---------------------------------------------------------------- Hero */
.hero { padding: calc(var(--header-h) + 56px) 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-copy .lead { margin-left: auto; margin-right: auto; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-copy .cta-row { justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.hero-visual { position: relative; max-width: 1080px; margin: 0 auto; width: 100%; perspective: 1600px; }
.hero-visual .laptop { width: 88%; }
.hero-visual .phone {
  position: absolute; right: 0; bottom: -2%; width: 22%; min-width: 150px; z-index: 2;
}
.hero-visual::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -60px; height: 120px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(1,235,255,.35), transparent 70%); filter: blur(20px);
}
.hero-strip {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px;
}
.hero-strip .glass { padding: 18px 20px; border-radius: 16px; }
.hero-strip b { display: block; font-size: 15px; }
.hero-strip span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
@media (max-width: 860px) {
  .hero-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-visual .laptop { width: 92%; margin-left: 4%; }
  .hero-visual .phone { width: 30%; right: -2%; bottom: -12%; min-width: 0; }
  .hero { padding-bottom: 96px; }
}
@media (max-width: 520px) {
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-strip { grid-template-columns: minmax(0,1fr); }
  .hero-visual .phone { width: 34%; }
}

/* ---------------------------------------------------------------- Devices */
.device { position: relative; transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top left; background: #f7f9fc; }

/* laptop */
.laptop-screen {
  position: relative; padding: 2.2% 2.2% 3%; border-radius: 18px 18px 6px 6px;
  background: linear-gradient(180deg, #1c2a44, #0d1628);
  border: 1px solid rgba(13,59,122,.16);
  box-shadow: inset 0 1px 0 rgba(13,59,122,.18), 0 40px 90px -30px rgba(13,59,122,.35), 0 0 0 1px rgba(0,0,0,.4);
}
.laptop-screen::before { /* camera */
  content: ""; position: absolute; top: .9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: #2b3a55; box-shadow: inset 0 0 0 1px rgba(13,59,122,.1);
}
.laptop-screen .screen { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #f7f9fc; }
.laptop-base {
  position: relative; height: 0; padding-bottom: 3.2%; margin: 0 -4.2%;
  background: linear-gradient(180deg, #2c3b57 0%, #18233a 55%, #0c1424 100%);
  border-radius: 0 0 18px 18px; border: 1px solid rgba(13,59,122,.12); border-top: 0;
  box-shadow: 0 30px 50px -20px rgba(13,59,122,.3);
}
.laptop-base::before { /* notch */
  content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 40%; transform: translateX(-50%);
  background: #0d1628; border-radius: 0 0 10px 10px;
}
.laptop { margin: 0 auto; width: 92%; }

/* monitor */
.monitor-screen {
  position: relative; padding: 1.6%; border-radius: 16px;
  background: linear-gradient(180deg, #18243c, #0b1323);
  border: 1px solid rgba(13,59,122,.16);
  box-shadow: inset 0 1px 0 rgba(13,59,122,.18), 0 40px 90px -30px rgba(13,59,122,.35);
}
.monitor-screen .screen { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #f7f9fc; }
.monitor-screen.tall .screen { aspect-ratio: 16 / 10; }
.monitor-neck {
  width: 14%; height: 0; padding-bottom: 6%; margin: 0 auto;
  background: linear-gradient(90deg, #121c30, #2a3954 50%, #121c30);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.monitor-foot {
  width: 30%; height: 10px; margin: 0 auto; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #33445f, #141e33); box-shadow: 0 18px 30px -10px rgba(13,59,122,.3);
}
.monitor-chip {
  position: absolute; left: 50%; bottom: 0.45%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .14em; color: rgba(13,59,122,.35); text-transform: uppercase; font-weight: 600;
}

/* phone */
.phone {
  position: relative; padding: 3.2%; border-radius: 16% / 7.4%;
  background: linear-gradient(160deg, #26344f, #0b1222 60%);
  border: 1px solid rgba(13,59,122,.22);
  box-shadow: inset 0 1px 0 rgba(13,59,122,.22), inset 0 0 0 2px rgba(0,0,0,.4), 0 40px 80px -24px rgba(13,59,122,.35);
}
.phone .screen {
  position: relative; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 13% / 6%; background: #f7f9fc;
}
.phone .screen::before { /* dynamic island */
  content: ""; position: absolute; z-index: 2; top: 1.6%; left: 50%; width: 30%; height: 3.2%;
  transform: translateX(-50%); border-radius: 999px; background: #05080f;
}
.phone .screen img { object-position: top center; }
.phone .screen.crop-top img { object-position: center 14%; }
.phone-solo { width: min(300px, 78%); margin: 0 auto; }

/* tilt */
.tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* figure captions */
.figure { margin: 0; }
.figure figcaption { margin-top: 18px; font-size: 13.5px; color: var(--text-3); text-align: center; }

/* ---------------------------------------------------------------- Pain */
.grid { display: grid; gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 420px) and (max-width: 640px) {
  .grid-5.pain-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.card { padding: 26px; }
.card h3 { margin-top: 16px; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, rgba(3,106,234,.35), rgba(1,235,255,.12));
  border: 1px solid rgba(1,235,255,.25); box-shadow: inset 0 1px 0 rgba(13,59,122,.2);
  color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }
.icon.warn { background: linear-gradient(140deg, rgba(255,107,107,.3), rgba(255,170,90,.1)); border-color: rgba(255,150,120,.3); color: #c2410c; }
.icon.violet { background: linear-gradient(140deg, rgba(124,92,255,.38), rgba(1,235,255,.1)); border-color: rgba(164,147,255,.35); color: #6d28d9; }

.pain-card { padding: 22px; }
.pain-card h3 { font-size: 1.05rem; margin-top: 14px; }
.pain-card p { font-size: 14.5px; }

.callout {
  margin-top: 40px; padding: 26px 30px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.callout p { flex: 1 1 360px; font-size: 1.1rem; color: var(--text); }
.callout p strong { color: var(--accent); }

/* ---------------------------------------------------------------- Module grid */
.module-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .module-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 820px) { .module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .module-grid { grid-template-columns: minmax(0,1fr); } }
.module {
  display: flex; flex-direction: column; padding: 22px; text-decoration: none; min-height: 100%;
}
.module .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.module h3 { font-size: 1.04rem; margin-top: 16px; }
.module p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); flex: 1; }
.module .go {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent);
}
.module .go svg { width: 16px; height: 16px; transition: transform .2s; }
.module:hover .go svg { transform: translateX(3px); }
.module.featured {
  grid-column: span 2;
  background: linear-gradient(140deg, rgba(124,92,255,.22), rgba(3,106,234,.14) 50%, rgba(1,235,255,.08));
  border-color: rgba(164,147,255,.35);
}
@media (max-width: 520px) { .module.featured { grid-column: auto; } }

.window-band {
  margin-bottom: 26px; padding: 18px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 15px; color: var(--text-2);
}
.window-band .dots { display: flex; gap: 6px; }
.window-band .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; background: rgba(13,59,122,.25); }
.window-band .dots i:nth-child(1) { background: #ff6b6b; } .window-band .dots i:nth-child(2) { background: #ffc857; } .window-band .dots i:nth-child(3) { background: #3ddc97; }

/* ---------------------------------------------------------------- Deep dives */
.feature { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.feature.flip > .feature-copy { order: 2; }
.feature.flip > .feature-media { order: 1; }
.feature-copy .lead { font-size: 1.1rem; }
.feature-media { position: relative; }
.feature-media .stack { position: relative; }
.feature-media .stack .phone { position: absolute; right: -4%; bottom: -10%; width: 26%; z-index: 2; }
.feature-media.media-pad { padding-bottom: 8%; }
@media (max-width: 960px) {
  .feature { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .feature.flip > .feature-copy { order: 1; }
  .feature.flip > .feature-media { order: 2; }
  .feature-media .stack .phone { right: 0; width: 28%; }
}

.benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.benefits li { position: relative; padding-left: 34px; color: var(--text-2); font-size: 16px; }
.benefits li strong { color: var(--text); font-weight: 600; }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(140deg, rgba(3,106,234,.5), rgba(1,235,255,.25));
  border: 1px solid rgba(1,235,255,.35);
}
.benefits li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.replaces {
  margin-top: 24px; padding: 16px 18px; border-radius: 14px; font-size: 14.5px; color: var(--text-2);
  background: rgba(13,59,122,.04); border: 1px dashed rgba(13,59,122,.2);
}
.replaces b { color: var(--text); font-weight: 600; margin-right: 6px; }
.feature-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; }
.feature-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.feature-links a:hover { text-decoration: underline; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.title-row h2 { margin-top: 0; }

/* panel used when no real screenshot exists for a module */
.facts-panel { padding: 30px; }
.facts-panel h3 { font-size: 1.05rem; color: var(--text); }
.facts-panel .row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.facts-panel .row:first-of-type { border-top: 0; padding-top: 18px; }
.facts-panel .row p { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.facts-panel .row b { display: block; color: var(--text); font-size: 15.5px; }

/* KPI tiles (formulas, not numbers) */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.kpi { padding: 16px; border-radius: 14px; background: rgba(13,59,122,.05); border: 1px solid var(--line); }
.kpi b { display: block; font-size: 15px; }
.kpi span { display: block; font-size: 13px; color: var(--text-3); margin-top: 4px; }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* PCN & fines band */
.pcn-band {
  border-radius: 32px; padding: 72px 56px; overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(1,235,255,.15), transparent 60%),
    linear-gradient(160deg, #f3efff 0%, #e4f0ff 100%);
  border: 1px solid rgba(164,147,255,.3);
  box-shadow: var(--glass-hi), var(--shadow-lg);
}
@media (max-width: 760px) { .pcn-band { padding: 48px 20px; border-radius: 24px; } }
.powered { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--violet-soft); }
.flow { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; counter-reset: step; }
.flow li { list-style: none; padding: 16px; border-radius: 16px; background: rgba(13,59,122,.05); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.flow li b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.flow li::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; margin-bottom: 10px; font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(140deg, var(--violet), var(--blue));
}
.flow { padding: 0; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.gallery { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; }
@media (max-width: 860px) { .gallery { grid-template-columns: minmax(0,1fr); } }
.gallery .phone { width: min(260px, 70%); margin: 0 auto; }
.status-list { display: grid; gap: 10px; margin-top: 26px; }
.status-list div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--text-2); }

/* compact module cards (secondary deep dives) */
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
@media (max-width: 860px) { .mini-grid { grid-template-columns: minmax(0,1fr); } }

/* ---------------------------------------------------------------- Hours */
.hours-wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
@media (max-width: 900px) { .hours-wrap { grid-template-columns: minmax(0,1fr); } }
.example { padding: 32px; }
.label-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #b45309; background: rgba(245,158,11,.12); border: 1px solid rgba(255,211,138,.4);
}
.example h3 { margin-top: 16px; font-size: 1.35rem; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.compare > div { padding: 20px; border-radius: 16px; background: rgba(13,59,122,.05); border: 1px solid var(--line); }
.compare b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.compare .bad b { color: #c2410c; }
.compare .good b { color: #047857; }
.compare > div > span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.bar { height: 10px; border-radius: 999px; background: rgba(13,59,122,.08); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.compare .bad .bar i { background: linear-gradient(90deg, #ff8a6b, #c2410c); }
.compare .good .bar i { background: linear-gradient(90deg, #10b981, #047857); }
.example small { display: block; margin-top: 18px; color: var(--text-3); font-size: 13.5px; }

.calc { padding: 32px; }
.calc h3 { font-size: 1.35rem; margin-top: 16px; }
.field { margin-top: 22px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; }
.field output { font-variant-numeric: tabular-nums; color: var(--accent); font-size: 18px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin-top: 14px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) var(--fill, 20%), rgba(13,59,122,.12) var(--fill, 20%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--blue);
  box-shadow: 0 4px 14px rgba(1,235,255,.5);
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.result {
  margin-top: 26px; padding: 20px; border-radius: 16px;
  background: linear-gradient(140deg, rgba(3,106,234,.25), rgba(1,235,255,.08)); border: 1px solid rgba(1,235,255,.3);
}
.result .big { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.result p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.formula {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 13.5px; color: var(--text-2);
  background: rgba(13,59,122,.05); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- Trust */
.trust-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: minmax(0,1fr); } }
.honesty { margin-top: 28px; padding: 20px 24px; font-size: 15px; color: var(--text-2); }
.honesty b { color: var(--text); }

/* ---------------------------------------------------------------- Integrations */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.badge small { font-weight: 500; font-size: 13px; color: var(--text-3); }
.int-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .int-groups { grid-template-columns: minmax(0,1fr); } }
.int-groups .card h3 { margin-top: 0; }
.int-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.int-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: rgba(13,59,122,.04); border: 1px solid var(--line); font-weight: 600; }
.int-groups .small { margin-top: 12px; }

/* ---------------------------------------------------------------- Pricing */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; margin: 0 auto 40px;
  background: rgba(13,59,122,.06); border: 1px solid var(--line-strong);
}
.billing-toggle button {
  border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.billing-toggle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.billing-toggle .save { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(16,185,129,.18); color: #047857; }
.billing-toggle button[aria-pressed="true"] .save { background: #d1fae5; color: #065f46; }
.toggle-wrap { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0,1fr); } }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan.popular {
  background: linear-gradient(170deg, rgba(3,106,234,.32), rgba(1,235,255,.08) 60%, rgba(124,92,255,.12));
  border-color: rgba(1,235,255,.4);
}
.plan .tag { position: absolute; top: -12px; left: 28px; }
.plan h3 { font-size: 1.25rem; }
.plan .desc { margin-top: 6px; font-size: 14.5px; color: var(--text-2); min-height: 44px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--text-2); font-size: 15px; }
.price-note { margin-top: 8px; font-size: 13.5px; color: var(--text-3); min-height: 20px; }
.price-note .saving { color: #047857; font-weight: 600; }
.limits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.limits div { padding: 10px 8px; border-radius: 12px; text-align: center; background: rgba(13,59,122,.05); border: 1px solid var(--line); }
.limits b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.limits span { display: block; font-size: 12px; color: var(--text-3); }
.plan .benefits { margin-top: 20px; flex: 1; }
.plan .benefits li { font-size: 15px; }
.plan-ctas { display: grid; gap: 10px; margin-top: 24px; }
.pricing-foot { margin-top: 28px; text-align: center; font-size: 14px; color: var(--text-3); }

/* ---------------------------------------------------------------- How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0,1fr); } }
.step { padding: 30px; }
.step .num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(1,200,240,.8);
}
.step h3 { margin-top: 18px; font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.step .benefits { margin-top: 16px; }
.step .benefits li { font-size: 15px; }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; padding: 0; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--text-2); font-size: 16px; }

/* ---------------------------------------------------------------- Final CTA */
.final {
  text-align: center; padding: 88px 32px; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(1,235,255,.3), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(124,92,255,.35), transparent 60%),
    linear-gradient(140deg, rgba(3,106,234,.55), rgba(1,91,179,.35));
  border: 1px solid rgba(13,59,122,.2);
  box-shadow: var(--glass-hi), var(--shadow-lg);
}
.final h2 { max-width: 820px; margin: 14px auto 0; }
.final .lead { margin-left: auto; margin-right: auto; color: #d6e6ff; }
.final .cta-row { justify-content: center; }
.final .eyebrow { color: #fff; }
@media (max-width: 600px) { .final { padding: 56px 18px; border-radius: 24px; } }

/* ---------------------------------------------------------------- Footer */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; background: linear-gradient(180deg, #dbeaff 0%, #cde1fa 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0,1fr); } }
.footer-grid h3 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-grid address { font-style: normal; color: var(--text-2); font-size: 15px; margin-top: 14px; line-height: 1.7; }
.footer-brand img { width: 130px; }
.footer-brand p { margin-top: 14px; color: var(--text-2); font-size: 15px; max-width: 36ch; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); display: grid; gap: 8px; }

/* ---------------------------------------------------------------- Modal */
.modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px;
  background: rgba(11, 37, 69, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-card {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.modal.open .modal-card { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(13,59,122,.06); display: grid; place-items: center;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-card h2 { font-size: 1.7rem; margin-top: 8px; padding-right: 40px; }
.modal-card .lead { font-size: 15.5px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0,1fr); } .modal-card { padding: 24px 18px; } }
.form-grid label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-grid input, .form-grid select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(13,59,122,.06); color: var(--text); font-size: 16px;
}
.form-grid select option { color: #061a33; }
.form-grid input:focus, .form-grid select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1,235,255,.2); }
.form-grid input[aria-invalid="true"] { border-color: #ff8a6b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); font-weight: 400 !important; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.consent a { color: var(--accent); }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; }
.form-msg.info { background: rgba(1,235,255,.08); border: 1px solid rgba(1,235,255,.3); color: var(--text); }
.form-msg.error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,138,107,.4); color: #9a3412; }
.form-msg a { color: var(--accent); font-weight: 600; }
body.modal-open { overflow: hidden; }

/* ---------------------------------------------------------------- Legal pages */
.doc { padding: calc(var(--header-h) + 64px) 0 64px; }
.doc .glass { padding: 48px; max-width: 860px; margin: 0 auto; }
@media (max-width: 600px) { .doc .glass { padding: 26px 18px; } }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); }
.doc h2 { font-size: 1.4rem; margin-top: 36px; }
.doc p, .doc li { color: var(--text-2); margin-top: 12px; }
.draft-banner {
  margin: 20px 0 8px; padding: 14px 18px; border-radius: 12px; font-weight: 600;
  color: #b45309; background: rgba(245,158,11,.12); border: 1px solid rgba(255,211,138,.45);
}
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 16px 60px; }
.notfound .code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; }

/* ---------------------------------------------------------------- Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .aurora span { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
  .lift:hover, .btn:hover { transform: none; }
}

/* Fallback when backdrop-filter is unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
  .site-header { background: rgba(255, 255, 255, .96); }
}

/* ---------------------------------------------------------------- Additions */
.figure.tilt, .feature-media .figure { position: relative; }
.stack-phone { position: absolute; right: -3%; bottom: 4%; width: 23%; z-index: 2; }
@media (max-width: 960px) { .stack-phone { right: 0; width: 26%; } }
.monitor-screen .screen.screen-pack { aspect-ratio: 1600 / 1309; }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 560px; margin: 0 auto; }
.phone-pair .figure:nth-child(2) { margin-top: 48px; }
@media (max-width: 520px) { .phone-pair { gap: 14px; } .phone-pair .figure:nth-child(2) { margin-top: 28px; } }
.notfound .cta-row { justify-content: center; }
.pcn-band .feature { align-items: start; }
.pcn-band .feature-media { margin-top: 64px; }
@media (max-width: 960px) { .pcn-band .feature-media { margin-top: 0; } }
.status-list div { flex-wrap: nowrap; align-items: flex-start; }
.status-list .pill { flex: none; }
.gallery .phone { width: min(220px, 62%); }
.kpi .pill { display: inline-flex; margin-top: 10px; color: #b45309; font-size: 11.5px; }
#crm .grid { margin-top: 26px; }
#crm .lead { max-width: 70ch; }
.limits b.unl { font-size: 12.5px; line-height: 1.55; }
/* Status colours win over the old yellow default inside KPI tiles */
.kpi .pill.pill-live { color: #047857; }
.kpi .pill.pill-soon { color: #b45309; }
.crm-grid .kpi { display: flex; flex-direction: column; align-items: flex-start; }
.crm-grid .kpi > span:not(.pill) { flex: 1; }
#crm .status-list { margin-top: 22px; }
.crm-note { margin-top: 18px; color: var(--text-3); }
/* "New in 1.1" label */
.pill-new { color: #0369a1; border-color: rgba(1,235,255,.45); background: linear-gradient(135deg, rgba(3,106,234,.28), rgba(1,235,255,.14)); }
.benefits li .pill { margin-left: 4px; vertical-align: 1px; }
.release-box { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: rgba(1,235,255,.05); border: 1px solid rgba(1,235,255,.22); }
.release-box h3 { margin: 0 0 4px; font-size: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.release-box .benefits { margin-top: 10px; }
.release-box .small { margin: 10px 0 0; color: var(--text-3); }
/* Integrations: four groups */
.int-groups { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .int-groups { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .int-groups { grid-template-columns: minmax(0,1fr); } }
.int-foot { text-align: center; margin-top: 18px; color: var(--text-3); }
/* On small phones, put status pills above their text so the text keeps full width */
@media (max-width: 560px) { .status-list div { flex-direction: column; align-items: flex-start; gap: 6px; } }
.form-grid select[aria-invalid="true"] { border-color: #ff8a6b; }
html { overflow-x: clip; }
@media (max-width: 400px) {
  .brand img { width: 72px; }
  .header-inner { gap: 6px; }
  .header-ctas .btn { --pad-x: 10px; font-size: 12.5px; }
  .nav-toggle { width: 36px; height: 36px; }
}


/* =========================================================================
   Light blue theme: each section has its own gradient so sections read apart.
   ========================================================================= */
.aurora { background: linear-gradient(180deg, #f2f8ff 0%, #e3efff 100%); }
.aurora span { opacity: .28; }
.grain { display: none; }

main > section {
  background: var(--sec-bg, transparent);
  box-shadow: inset 0 1px 0 rgba(13, 59, 122, .08);
}
main > section:nth-of-type(4n+2) { --sec-bg: linear-gradient(180deg, #f7fbff 0%, #e6f1ff 100%); }
main > section:nth-of-type(4n+3) { --sec-bg: linear-gradient(160deg, #d8e9ff 0%, #eaf4ff 55%, #ddf3fb 100%); }
main > section:nth-of-type(4n+4) { --sec-bg: linear-gradient(180deg, #eef6ff 0%, #d4e7ff 100%); }
main > section:nth-of-type(4n+5) { --sec-bg: linear-gradient(200deg, #e7f5ff 0%, #dbe8ff 55%, #ebe6ff 100%); }
main > section.hero {
  box-shadow: none;
  background:
    radial-gradient(1000px 520px at 50% 0%, rgba(3, 106, 234, .18), transparent 70%),
    radial-gradient(700px 400px at 100% 60%, rgba(1, 200, 240, .14), transparent 70%),
    linear-gradient(180deg, #f3f9ff 0%, #d9ebff 100%);
}

.btn-primary { box-shadow: 0 10px 26px -12px rgba(3, 106, 234, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 16px 34px -14px rgba(3, 106, 234, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-glass { background: rgba(255, 255, 255, .8); }
.btn-glass:hover { background: #fff; border-color: rgba(3, 106, 234, .45); }

.benefits li::before { background: linear-gradient(140deg, #036aea, #0ab3e6); border-color: transparent; }

.final {
  color: #fff;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(1, 235, 255, .35), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(124, 92, 255, .45), transparent 60%),
    linear-gradient(140deg, #036aea 0%, #0a7fd6 100%);
  border-color: rgba(255, 255, 255, .35);
}
.final .lead { color: #e6f1ff; }
.final .btn-glass { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); }
.final .btn-glass:hover { background: rgba(255, 255, 255, .26); border-color: #fff; }
.final .eyebrow::before { background: #fff; }

.modal-card { color: var(--text); }
.form-grid input, .form-grid select { background: #fff; }

/* ---------------------------------------------------------------- Liquid glass */
.liquid {
  background: linear-gradient(155deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.38) 55%, rgba(220,238,255,.46) 100%);
  border: 1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(13,59,122,.06), 0 22px 50px -28px rgba(13,59,122,.45);
  overflow: hidden;
}
/* soft light sheen that slides across on hover */
.liquid::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%);
  transform: translateX(-120%); transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.liquid:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .liquid::after { display: none; } }

/* coloured light behind glass sections so the blur has something to show */
.addons-section, #integrations, #video { position: relative; isolation: isolate; }
.addons-section::before, #integrations::before, #video::before {
  content: ""; position: absolute; inset: 8% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 18% 30%, rgba(1,235,255,.28), transparent 70%),
    radial-gradient(34% 42% at 82% 70%, rgba(124,92,255,.22), transparent 70%),
    radial-gradient(30% 40% at 55% 45%, rgba(3,106,234,.16), transparent 70%);
  filter: blur(10px);
}

/* ---------------------------------------------------------------- Carousel */
.carousel { position: relative; margin-top: 36px; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 3.15);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 26px; margin: 0 -4px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.carousel-track > * { scroll-snap-align: start; }
@media (max-width: 1060px) { .carousel-track { grid-auto-columns: calc((100% - 20px) / 2.1); } }
@media (max-width: 640px)  { .carousel-track { grid-auto-columns: 84%; gap: 14px; } }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer;
  color: var(--text); border: 1px solid rgba(255,255,255,.8);
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(13,59,122,.5);
  transition: transform .15s ease, opacity .2s ease;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { transform: translateY(-1px); }
.carousel-btn[disabled] { opacity: .35; cursor: default; transform: none; }
.carousel-foot { text-align: center; color: var(--text-3); margin-top: 14px; }

/* ---------------------------------------------------------------- Add-on and partner cards */
.addon, .partner-card { display: flex; flex-direction: column; padding: 24px; border-radius: 22px; min-height: 100%; }
.addon-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.addon-tag { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.addon h3 { margin: 6px 0 0; font-size: 20px; line-height: 1.25; }
.addon p, .partner-card p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.addon-points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; flex: 1; }
.addon-points li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); }
.addon-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-btn); box-shadow: 0 0 0 3px rgba(3,106,234,.12); }
.addon-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.partner-card h4 { margin: 18px 0 0; font-size: 18px; line-height: 1.3; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: var(--text); background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.partners-head { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 64px; text-align: center; }
.partners-head h3 { margin: 0; font-size: 22px; }
.crm-addons-link { margin-top: 22px; }

/* ---------------------------------------------------------------- Explainer video placeholder */
.video-frame { max-width: 960px; margin: 32px auto 0; border-radius: 26px; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.video-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 40%, rgba(3,106,234,.18), transparent 70%), linear-gradient(135deg, rgba(1,235,255,.12), rgba(124,92,255,.12));
}
.video-inner { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.video-inner p { margin: 0; color: var(--text-2); max-width: 40ch; }
.video-play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--grad-btn); box-shadow: 0 0 0 10px rgba(255,255,255,.55), 0 18px 40px -16px rgba(3,106,234,.8);
}
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
@media (max-width: 640px) { .video-frame { aspect-ratio: auto; } .video-play { width: 64px; height: 64px; } .video-play svg { width: 26px; height: 26px; } }

/* ---------------------------------------------------------------- Footer breadcrumb + policy bar */
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; margin-top: 44px; padding: 14px 20px; border-radius: 16px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); box-shadow: inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.footer-bar ol, .footer-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.footer-bar a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-bar a:hover { color: var(--text); text-decoration: underline; }
.footer-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--text-3); }
.footer-crumbs a[aria-current] { color: var(--text); font-weight: 700; }
.footer-policies ul { gap: 6px 18px; }
.footer-bar + .legal { margin-top: 20px; border-top: 0; padding-top: 0; }
.legal a { color: var(--text-2); }
.carousel.no-scroll .carousel-nav { display: none; }

/* ---------------------------------------------------------------- CRM screens (real product, demo data) */
.crm-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 34px; }
.crm-shots .laptop { width: 100%; }
@media (max-width: 760px) { .crm-shots { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------------------------------------------------------------- Explainer video: cover + click-to-play */
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0; pointer-events: none; }
.video-frame.ready { aspect-ratio: 16 / 9; }
.video-frame.ready .video-cover { opacity: 1; }
.video-frame.ready::before { display: none; }
.video-play-btn { position: relative; display: grid; justify-items: center; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); font: inherit; }
.video-play-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 8px; border-radius: 20px; }
.video-play-btn:hover .video-play { transform: scale(1.06); }
.video-play { transition: transform .2s ease; }
.video-label { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.88); font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px -14px rgba(13,59,122,.5); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.video-frame.ready { place-items: end center; }
.video-frame.ready .video-inner { padding: 0 0 3%; gap: 10px; }
.video-frame.ready .video-play-btn { gap: 10px; }
.video-frame.ready .video-play { width: 60px; height: 60px; box-shadow: 0 0 0 7px rgba(255,255,255,.6), 0 14px 30px -14px rgba(3,106,234,.8); }
.video-frame.ready .video-play svg { width: 26px; height: 26px; margin-left: 3px; }
@media (max-width: 640px) { .video-frame.ready .video-label { display: none; } .video-frame.ready .video-play { width: 46px; height: 46px; } .video-frame.ready .video-play svg { width: 20px; height: 20px; } }
