/* ==========================================================================
   Sushant Rana — Business Growth Consultant
   Design system: House of Web blue + Poppins/Montserrat, rounded & friendly,
   full interactive component library. All colour lives on :root.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand (House of Web) */
  --brand: #1780C5;
  --brand-600: #136AA5;
  --brand-700: #0F5688;
  --brand-50: #EAF4FB;
  --sky: #38BDF8;
  --ink: #0B1220;            /* near-black text, slightly warmer than pure */
  --graphite: #2E2E2E;
  --gray-med: #566072;       /* darkened from #666 for AA on white */
  --line: #E5E9F0;
  --sky-bg: #EAF4FB;
  --white: #FFFFFF;

  --grad-accent: linear-gradient(90deg, #1780C5, #38BDF8);
  --grad-accent-135: linear-gradient(135deg, #1780C5 0%, #38BDF8 100%);
  /* Button/solid gradient: both ends keep white text >=5.78:1 (WCAG AA) */
  --grad-btn: linear-gradient(135deg, #0F5688 0%, #136AA5 100%);

  /* rgb triplets */
  --brand-rgb: 23, 128, 197;
  --sky-rgb: 56, 189, 248;
  --ink-rgb: 11, 18, 32;

  /* Shadows (brand-tinted) */
  --shadow-soft: 0 10px 30px -14px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 20px 45px -22px rgba(15, 23, 42, 0.22);
  --shadow-glow: 0 12px 40px -12px rgba(23, 128, 197, 0.45);
  --shadow-glow-strong: 0 18px 46px -12px rgba(23, 128, 197, 0.55);

  /* Radii — friendly / rounded */
  --r-card: 28px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-btn: 14px;
  --r-pill: 100px;

  /* Type */
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --section-y: 104px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 200ms;
  --t-med: 400ms;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--graphite);
  background: var(--white);
  min-height: 100dvh;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand); }

ul[class], ol[class] { list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky); color: var(--white); }

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--brand-700);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { max-width: 68ch; }
.lead { font-size: 1.18rem; color: var(--gray-med); font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--brand-700);
  margin-bottom: 22px;
}
.eyebrow--plain { background: rgba(var(--brand-rgb), 0.08); border-color: rgba(var(--brand-rgb), 0.22); box-shadow: none; }

.text-accent { color: var(--brand); }
.text-grad {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout ---------- */
.container { width: min(var(--container), 100% - 44px); margin-inline: auto; }
.container--wide { width: min(1320px, 100% - 44px); }
.container--narrow { width: min(880px, 100% - 44px); }

.section { padding-block: 64px; position: relative; }
.section--tight { padding-block: 40px; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { }
.section-head p { margin-top: 16px; color: var(--gray-med); }

.grid { display: grid; gap: 22px; }

.split { display: grid; gap: 40px; align-items: center; }
.split__content > p { margin-top: 14px; color: var(--gray-med); }

main { display: block; position: relative; z-index: 1; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }

/* ---------- 5. Global ambient (subtle, fixed) ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(var(--sky-rgb), 0.06), transparent 60%),
    radial-gradient(70% 55% at 10% 8%, rgba(var(--brand-rgb), 0.05), transparent 60%);
}
.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(var(--brand-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-rgb), 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 90%);
}

/* aurora / blobs (used in hero + CTA) */
.aurora {
  position: absolute;
  inset-inline: -10%;
  top: -12%;
  height: 65%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(45% 60% at 22% 30%, rgba(var(--sky-rgb), 0.26), transparent 70%),
    radial-gradient(50% 55% at 80% 22%, rgba(var(--brand-rgb), 0.22), transparent 70%);
  filter: blur(30px);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}
.blob--brand { background: radial-gradient(circle at 30% 30%, rgba(var(--brand-rgb), 0.5), transparent 70%); }
.blob--sky { background: radial-gradient(circle at 30% 30%, rgba(var(--sky-rgb), 0.42), transparent 70%); }
.deco-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(var(--brand-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-rgb), 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
}
@keyframes aurora-drift { from { transform: translateY(0) scale(1); } to { transform: translateY(16px) scale(1.05); } }
@keyframes blob-a { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-4%, 5%); } }
@keyframes blob-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5%, -4%); } }

/* ---------- 6. Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.glass-brand {
  background: rgba(var(--brand-rgb), 0.10);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
}

/* ---------- 7. Buttons (single-line, rounded, gradient) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border-radius: var(--r-btn);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;          /* single line, never wraps */
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out),
              background-position var(--t-med) var(--ease-out), color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
  will-change: transform;
}
.btn .icon, .btn svg { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .icon, .btn:hover svg { transform: translateX(4px); }

.btn--primary {
  color: var(--white);
  background: var(--grad-btn);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover, .btn--primary:focus-visible {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong);
}
.btn--solid {
  color: var(--white);
  background: var(--brand-600);
  box-shadow: var(--shadow-glow);
}
.btn--solid:hover, .btn--solid:focus-visible { color: var(--white); background: var(--brand-700); transform: translateY(-3px); }
.btn--ghost {
  color: var(--brand-700);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--brand-700); border-color: var(--brand); transform: translateY(-3px); }
.btn--white {
  color: var(--brand-700);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.btn--white:hover, .btn--white:focus-visible { color: var(--brand-700); transform: translateY(-3px); }
.btn--lg { min-height: 58px; padding: 17px 38px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-700);
  font-family: var(--font-display);
}
.text-link .icon, .text-link svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.text-link:hover .icon, .text-link:hover svg { transform: translateX(4px); }

/* ---------- 8. Header & nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 74px;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.18rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-btn); color: var(--white);
  font-weight: 800; font-size: 0.95rem; letter-spacing: -0.03em;
  box-shadow: var(--shadow-glow);
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--graphite);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"] {
  color: var(--brand-700); background: var(--brand-50);
}
.nav__toggle .icon { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease-out); }
.nav__item { position: relative; }
.nav__item.is-open > .nav__toggle .icon { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 240px; padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility var(--t-fast);
}
.nav__item.is-open > .nav__dropdown,
.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block; padding: 9px 14px; border-radius: 10px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--graphite);
}
.nav__dropdown a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav__cta { margin-left: 10px; min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }

/* Mobile drawer */
.drawer-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-soft);
}
.drawer-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast); }
.drawer-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.drawer-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.drawer-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 190;
  padding: 104px 24px 40px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility var(--t-med);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer__list { display: flex; flex-direction: column; gap: 2px; max-width: 480px; margin-inline: auto; }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__link, .drawer__accordion-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  color: var(--ink); text-align: left;
}
.drawer__accordion-toggle .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
.drawer__accordion-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease-out); }
.drawer__sub > div { overflow: hidden; }
.drawer__sub.is-open { grid-template-rows: 1fr; }
.drawer__sub a { display: block; padding: 11px 8px 11px 24px; font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--gray-med); }
.drawer__cta { margin-top: 28px; max-width: 480px; margin-inline: auto; display: flex; }

/* ---------- 9. Reveal system ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal-l { opacity: 0; transform: translateX(-30px); }
.reveal-r { opacity: 0; transform: translateX(30px); }
.reveal-scale { opacity: 0; transform: scale(0.94); }
.reveal-blur { opacity: 0; filter: blur(10px); transform: translateY(20px); }
.reveal, .reveal-l, .reveal-r, .reveal-scale, .reveal-blur {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s ease;
}
.reveal.in, .reveal-l.in, .reveal-r.in, .reveal-scale.in, .reveal-blur.in {
  opacity: 1; transform: none; filter: none;
}

/* ---------- 10. Cards / tilt / hover-glow ---------- */
.card {
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.hover-glow { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.hover-glow:hover { transform: translateY(-6px); border-color: rgba(var(--brand-rgb), 0.35); box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.2), 0 26px 60px -24px rgba(var(--brand-rgb), 0.5); }
.tilt { transition: transform 0.25s var(--ease-out); transform-style: preserve-3d; will-change: transform; }

.card__icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid rgba(var(--brand-rgb), 0.14);
}
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--gray-med); font-size: 0.97rem; }
.card .text-link { margin-top: auto; }

.pillar-grid, .value-grid, .feature-grid { grid-template-columns: 1fr; }

/* capability list */
.cap-list { display: grid; gap: 12px 24px; grid-template-columns: 1fr; }
.cap-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 0.97rem; font-weight: 500; }
.cap-list .icon { width: 22px; height: 22px; margin-top: 1px; }

/* pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  padding: 12px 22px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), color var(--t-fast);
}
.pill:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-glow); color: var(--brand-700); }
.pill--sm { padding: 8px 16px; font-size: 0.82rem; }

/* tools grid */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tool {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.tool:hover { transform: translateY(-4px); border-color: var(--brand); }
.tool .icon { width: 22px; height: 22px; }

/* ---------- 11. Counters / stat tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  padding: 26px 22px; text-align: center;
  border-radius: var(--r-lg); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.stat__value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__label { margin-top: 10px; font-size: 0.82rem; font-weight: 600; color: var(--gray-med); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- 12. Tabs ---------- */
.tabs { }
.tab-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-tab {
  border-radius: var(--r-pill); padding: 10px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--line); background: var(--white); color: var(--graphite);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast);
}
.pill-tab:hover { border-color: var(--brand); color: var(--brand-700); }
.pill-tab[aria-selected="true"] { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); box-shadow: var(--shadow-glow); }
.tab-body { margin-top: 28px; }
.tab-panel { animation: tab-in var(--t-med) var(--ease-out); }
.tab-panel.is-hidden { display: none; }
@keyframes tab-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 13. Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; box-shadow: var(--shadow-soft); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); transition: background-color var(--t-fast) var(--ease-out);
}
.acc-trigger:hover { background: var(--brand-50); }
.acc-icon { color: var(--brand); flex: none; width: 20px; height: 20px; transition: transform var(--t-med) var(--ease-out); }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.acc-body { padding: 0 24px 20px; color: var(--gray-med); font-size: 0.97rem; }

/* FAQ category chips */
.faq-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; justify-content: center; }

/* ---------- 14. Rank bars ---------- */
.rankbars { display: flex; flex-direction: column; gap: 22px; }
.rankbar-label { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; }
.rankbar-label span:first-child { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.rankbar-label span:last-child { color: var(--gray-med); }
.rankbar-track { margin-top: 8px; height: 12px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-pill); overflow: hidden; }
.rank-bar { height: 100%; width: 0; border-radius: var(--r-pill); background: var(--grad-accent); transition: width 1.1s var(--ease-out); }
.reveal.in .rank-bar, .reveal-scale.in .rank-bar, .in .rank-bar { width: var(--w, 0); }

/* ---------- 15. Live dashboard widget ---------- */
.live-panel { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); overflow: hidden; }
.live-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--sky-bg); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--gray-med); }
.live-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.live-metric { background: var(--white); padding: 22px 14px; text-align: center; }
.live-value { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1; }
.live-cap { margin-top: 6px; font-size: 0.72rem; color: var(--gray-med); }

/* CRM flow widget */
.crm-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.crm-col { background: var(--sky-bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; min-height: 150px; }
.crm-col h4 { font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-med); margin-bottom: 10px; text-align: center; }
.crm-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  box-shadow: var(--shadow-soft); font-size: 0.82rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.crm-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.crm-card.is-ghost { opacity: 0.35; }

/* ---------- 16. Marquee ---------- */
.marquee { overflow: hidden; }
.marquee-mask { -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 22px; align-items: center; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 22px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.marquee-chip .icon { width: 22px; height: 22px; }

/* ---------- 17. Timeline ---------- */
.timeline { list-style: none; max-width: 820px; margin-inline: auto; }
.timeline-step { display: flex; gap: 22px; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; }
.timeline-num {
  display: grid; place-items: center; height: 44px; width: 44px; flex: none;
  border-radius: 50%; background: var(--grad-btn); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 0 0 5px rgba(var(--brand-rgb), 0.12); z-index: 1;
}
.timeline-line { width: 2px; flex: 1; margin-top: 6px; background: linear-gradient(180deg, rgba(var(--brand-rgb), 0), rgba(var(--brand-rgb), 0.5), rgba(var(--brand-rgb), 0)); }
.timeline-card { flex: 1; margin-bottom: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-soft); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.timeline-kicker { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 8px; display: block; }
.timeline-card h3 { margin-bottom: 6px; }
.timeline-card p { color: var(--gray-med); font-size: 0.95rem; }

/* ---------- 18. Urgency ---------- */
.urgency {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--r-pill); padding: 10px 18px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--brand-700);
  background: rgba(var(--brand-rgb), 0.09); border: 1px solid rgba(var(--brand-rgb), 0.26);
}
.urgency strong { color: var(--brand-700); }
.pulse-dot { position: relative; height: 9px; width: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulseRing 2s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- 19. Comparison table ---------- */
.cmp-scroll { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.cmp-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; background: var(--white); font-size: 0.92rem; text-align: left; }
.cmp-table th, .cmp-table td { padding: 16px 18px; }
.cmp-table thead th { font-family: var(--font-display); font-weight: 600; color: var(--gray-med); text-align: center; }
.cmp-table thead th:first-child { text-align: left; }
.cmp-table tbody th { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.cmp-table tbody td { text-align: center; color: var(--gray-med); }
.cmp-table tbody tr { border-top: 1px solid var(--line); }
.cmp-table tbody tr:nth-child(even) { background: var(--sky-bg); }
.cmp-us { text-align: center; }
.cmp-table thead th.cmp-us { background: var(--brand-600); color: var(--white); font-weight: 700; }
.cmp-table tbody td.cmp-us { color: var(--brand-700); font-weight: 700; box-shadow: inset 1px 0 0 rgba(var(--brand-rgb), 0.15), inset -1px 0 0 rgba(var(--brand-rgb), 0.15); }
.cmp-yes { color: var(--brand); font-weight: 700; }
.cmp-no { color: rgba(86, 96, 114, 0.6); }

/* ---------- 20. Case studies ---------- */
.cs-grid { grid-template-columns: 1fr; }
.cs-card { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.cs-card__industry { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-700); }
.cs-card h3 { font-size: 1.15rem; line-height: 1.35; }
.cs-card dl { display: grid; gap: 12px; }
.cs-card dt { font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-med); margin-bottom: 2px; }
.cs-card dd { font-size: 0.92rem; color: var(--graphite); }
.cs-card__result { border-top: 1px solid var(--line); padding-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--brand-700); display: flex; align-items: center; gap: 8px; }

/* ---------- 21. Testimonials carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; }
.carousel__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease-out), filter 0.5s ease; filter: blur(6px); pointer-events: none; }
.carousel__slide.is-active { opacity: 1; visibility: visible; filter: none; pointer-events: auto; position: relative; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.carousel__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 0; transition: background-color var(--t-fast), transform var(--t-fast); }
.carousel__dot.is-active { background: var(--brand); transform: scale(1.25); }
.quote-card { padding: 34px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.quote-card .card__icon { background: var(--brand-50); }
.quote-card blockquote { font-size: 1.15rem; color: var(--ink); font-family: var(--font-display); font-weight: 500; line-height: 1.5; }
.quote-card figcaption { font-size: 0.88rem; color: var(--gray-med); }
.quote-card figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1rem; }

/* video card */
.video-card { overflow: hidden; padding: 0; position: relative; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.video-card__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--ink-rgb), 0.18); transition: background-color var(--t-fast); }
.video-card__play:hover { background: rgba(var(--ink-rgb), 0.3); }
.video-card__play span { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.92); color: var(--brand-700); transition: transform var(--t-fast) var(--ease-out); }
.video-card__play:hover span { transform: scale(1.08); }
.video-card figcaption { padding: 16px 20px; font-size: 0.9rem; color: var(--gray-med); }

/* ---------- 22. Before/After slider ---------- */
.ba-slider { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); user-select: none; touch-action: pan-y; }
.ba-pane { padding: 34px 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ba-after { background: linear-gradient(135deg, var(--brand-50), var(--white)); }
.ba-before { position: absolute; inset: 0; background: linear-gradient(135deg, #F3F4F6, #FDECEC); overflow: hidden; }
.ba-before .ba-pane { position: absolute; inset: 0; width: var(--ba-width, 700px); }
.ba-tag { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ba-before .ba-tag { color: #B4341C; }
.ba-after .ba-tag { color: var(--brand-700); }
.ba-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.98rem; font-weight: 500; color: var(--ink); }
.ba-item .icon { width: 20px; height: 20px; margin-top: 1px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--brand); cursor: ew-resize; z-index: 3; }
.ba-handle::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 2px solid var(--brand); box-shadow: var(--shadow-card); }
.ba-handle::after { content: "⟺"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--brand-700); font-size: 0.9rem; z-index: 1; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }

/* ---------- 22b. Compare toggle (scattered vs system) ---------- */
.compare { max-width: 880px; margin-inline: auto; }
.compare__switch {
  display: inline-flex; padding: 6px; gap: 6px; margin-inline: auto;
  border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  width: fit-content;
}
.compare { display: grid; justify-items: center; }
.compare__opt {
  border-radius: var(--r-pill); padding: 11px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--gray-med);
  cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast);
}
.compare__opt--old[aria-selected="true"] { background: #FDECEC; color: #B4341C; }
.compare__opt--new[aria-selected="true"] { background: var(--grad-btn); color: var(--white); }
.compare .tab-body { margin-top: 24px; width: 100%; }
.compare__card { padding: 34px; border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.compare__card--old { background: linear-gradient(135deg, #FDECEC, var(--white)); }
.compare__card--new { background: linear-gradient(135deg, var(--brand-50), var(--white)); }
.compare__tag { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.compare__card--old .compare__tag { color: #B4341C; }
.compare__card--new .compare__tag { color: var(--brand-700); }
.compare__list { display: grid; gap: 14px; }
.compare__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.compare__list li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background-repeat: no-repeat; background-position: center; background-size: 14px; }
.compare__card--old .compare__list li::before { background-color: rgba(180,52,28,0.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4341C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.compare__card--new .compare__list li::before { background-color: rgba(23,128,197,0.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231780C5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 7'/%3E%3C/svg%3E"); }

/* ---------- 23. Blog ---------- */
.blog-grid { grid-template-columns: 1fr; }
.blog-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.blog-card__media { overflow: hidden; }
.blog-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__meta { display: flex; gap: 10px; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-700); }
.blog-card h3 { font-size: 1.12rem; line-height: 1.4; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--brand-700); }
.blog-card p { font-size: 0.93rem; color: var(--gray-med); }
.blog-card .text-link { margin-top: auto; font-size: 0.9rem; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-chip {
  padding: 10px 20px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--graphite);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand-700); }
.filter-chip[aria-pressed="true"] { background: var(--brand-600); color: var(--white); border-color: var(--brand-600); }

/* Article */
.article-hero { padding-top: 150px; }
.article { max-width: 720px; margin-inline: auto; }
.article > * + * { margin-top: 1.4em; }
.article h2 { font-size: 1.65rem; margin-top: 2em; }
.article h3 { font-size: 1.25rem; margin-top: 1.8em; }
.article ul, .article ol { padding-left: 1.4em; }
.article li + li { margin-top: 0.5em; }
.article blockquote { border-left: 3px solid var(--brand); padding: 8px 0 8px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-med); margin-top: 22px; }

/* ---------- 24. Hero (interactive rotating questions) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(120px, 15vw, 168px) 0 clamp(64px, 9vw, 104px);
  background: radial-gradient(120% 90% at 15% 0%, var(--brand-50) 0%, var(--white) 55%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__blob { width: 42vmax; height: 42vmax; }
.hero__blob--a { top: -18vmax; right: -14vmax; background: var(--brand); opacity: 0.16; filter: blur(70px); animation: blob-a 18s ease-in-out infinite; }
.hero__blob--b { bottom: -22vmax; left: -12vmax; background: var(--sky); opacity: 0.18; filter: blur(70px); animation: blob-b 22s ease-in-out infinite; }

.hero__headline { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 20px 0 0; font-size: clamp(1.9rem, 4.3vw, 3.3rem); color: var(--ink); }
.hero__rotator { display: block; position: relative; min-height: 2.3em; }
.hero__question {
  display: block; position: absolute; inset: 0;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; will-change: transform, opacity, filter;
}
.hero__question.is-in { animation: q-in 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.hero__question.is-out { animation: q-out 0.42s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards; }
.hero__question.is-active { opacity: 1; }
@keyframes q-in { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes q-out { from { opacity: 1; transform: translateY(0); filter: blur(0); } to { opacity: 0; transform: translateY(-16px); filter: blur(8px); } }
.hero__answer { display: block; margin-top: 12px; font-size: clamp(1.15rem, 2.3vw, 1.7rem); font-weight: 700; color: var(--graphite); line-height: 1.3; letter-spacing: -0.01em; }
.hero__answer-accent { color: var(--brand-700); }
.hero__sub { margin-top: 22px; font-size: 1.1rem; color: var(--gray-med); font-weight: 500; max-width: 46ch; }

.hero__cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 26px; font-size: 0.82rem; font-weight: 600; color: var(--gray-med); font-family: var(--font-display); }
.hero__trust .sep { color: var(--line); }
.hero__trust strong { color: var(--brand-700); }

/* floating stat cards */
.hero__stats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px; }
.hero-stat { border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-card); will-change: transform; background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border: 1px solid rgba(255,255,255,0.7); }
.hero-stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.hero-stat__label { margin-top: 8px; font-size: 0.8rem; font-weight: 600; color: var(--gray-med); }
.hero-stat--1 { animation: drift 7.5s ease-in-out infinite; margin-top: -8px; }
.hero-stat--2 { animation: drift 8.5s ease-in-out 0.4s infinite; margin-top: 24px; }
.hero-stat--3 { animation: drift 9.5s ease-in-out 0.8s infinite; }
.hero-stat--4 { animation: drift 8s ease-in-out 1.1s infinite; margin-top: 20px; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-0.4deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-med); z-index: 1; }
.scroll-cue .icon { width: 20px; height: 20px; color: var(--brand); animation: cue-bounce 1.8s ease-in-out infinite; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------- 25. CTA band ---------- */
.cta-band { position: relative; text-align: center; padding: clamp(48px, 8vw, 88px) 30px; overflow: hidden; border-radius: var(--r-card); background: var(--grad-btn); color: var(--white); isolation: isolate; }
.cta-band h2 { color: var(--white); max-width: 20em; margin-inline: auto; }
.cta-band p { margin: 16px auto 0; color: rgba(255,255,255,0.92); }
.cta-band .btn { margin-top: 28px; }
.cta-band__reassure { margin-top: 18px; font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.cta-band__aurora { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(255,255,255,0.14), rgba(56,189,248,0.16), rgba(255,255,255,0.08)); background-size: 220% 220%; animation: aurora-pos 14s ease infinite; }
@keyframes aurora-pos { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---------- 26. Popup modal ---------- */
.modal-root[hidden] { display: none; }
.modal-root { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(var(--ink-rgb), 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 320ms var(--ease-out); }
.modal {
  position: relative; width: min(560px, 100%); max-height: min(88dvh, 840px); overflow-y: auto;
  padding: clamp(24px, 5vw, 42px);
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--r-card); box-shadow: 0 32px 80px rgba(var(--ink-rgb), 0.28);
  opacity: 0; transform: scale(0.94) translateY(12px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.modal-root.is-visible .modal__backdrop { opacity: 1; }
.modal-root.is-visible .modal { opacity: 1; transform: scale(1) translateY(0); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gray-med); background: rgba(var(--brand-rgb), 0.08); transition: background-color var(--t-fast), color var(--t-fast); }
.modal__close:hover { background: rgba(var(--brand-rgb), 0.16); color: var(--brand-700); }
.modal__close svg { width: 18px; height: 18px; }
.modal h2 { font-size: 1.55rem; padding-right: 40px; }
.modal__subtitle { margin-top: 10px; color: var(--gray-med); font-size: 0.95rem; }
.modal form { margin-top: 26px; display: grid; gap: 18px; }
.modal__later { justify-self: center; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--gray-med); padding: 8px 16px; }
.modal__later:hover { color: var(--ink); }

/* ---------- 27. Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.field label .req { color: #C4320A; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%; min-height: 50px;
  padding: 12px 16px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C4320A; }
.field__error { font-size: 0.82rem; font-weight: 500; color: #C4320A; min-height: 0; }
.form-note { font-size: 0.82rem; color: var(--gray-med); }
.form-grid-2 { display: grid; gap: 18px; }

/* ---------- 28. Footer ---------- */
.site-footer { position: relative; margin-top: 64px; overflow: hidden; background: var(--ink); color: rgba(255,255,255,0.75); }
.site-footer .deco-grid-light { position: absolute; inset: 0; opacity: 0.4; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.site-footer__inner { position: relative; padding-block: 72px 32px; }
.footer-grid { display: grid; gap: 44px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand:hover { color: var(--white); }
.footer-brand p { margin-top: 16px; color: rgba(255,255,255,0.6); font-size: 0.94rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.93rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.14); transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.footer-social a:hover { color: var(--white); border-color: var(--sky); transform: translateY(-3px); }
.footer-social .icon { width: 20px; height: 20px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 0.85rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: rgba(255,255,255,0.6); font-weight: 500; }
.footer-bottom a:hover { color: var(--white); }
.site-footer--minimal { background: var(--white); color: var(--gray-med); border-top: 1px solid var(--line); margin-top: 0; }
.site-footer--minimal .footer-bottom { border: 0; margin-top: 0; }
.site-footer--minimal .brand { color: var(--ink); }

/* ---------- 29. Sub-page scaffolding ---------- */
.page-hero { position: relative; overflow: hidden; padding: 160px 0 44px; background: radial-gradient(120% 90% at 15% 0%, var(--brand-50) 0%, var(--white) 55%); }
.page-hero .lead { margin-top: 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-med); margin-bottom: 20px; }
.breadcrumbs a { color: var(--gray-med); }
.breadcrumbs a:hover { color: var(--brand-700); }
.breadcrumbs svg { width: 12px; height: 12px; opacity: 0.6; }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose p, .prose li { color: var(--gray-med); }
.prose strong { color: var(--ink); }

.landing-hero { padding: 120px 0 48px; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 15% 0%, var(--brand-50) 0%, var(--white) 55%); }
.landing-form { padding: clamp(28px, 5vw, 44px); border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.landing-form form { display: grid; gap: 18px; margin-top: 20px; }

.steps-grid { grid-template-columns: 1fr; counter-reset: step; }
.step-card { padding: 30px; position: relative; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.step-card::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }

.error-hero { min-height: 78dvh; display: flex; align-items: center; text-align: center; padding-block: 150px 80px; }
.error-hero .container { display: grid; justify-items: center; gap: 20px; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 14vw, 9rem); line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.04em; }

/* ---------- 30. Breakpoints ---------- */
@media (min-width: 560px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .form-grid-2 .field--full { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .section:not(.section--tight) { padding-block: 80px; }
  .pillar-grid, .cs-grid, .blog-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-list { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .section:not(.section--tight) { padding-block: var(--section-y); }
  .nav { display: block; }
  .drawer-toggle, .drawer { display: none; }
  .pillar-grid, .cs-grid, .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--rev .split__content { order: 2; }
  .split--rev .split__media { order: 1; }
  .tool-grid { grid-template-columns: repeat(5, 1fr); }
  .timeline-step:nth-child(even) { flex-direction: row-reverse; }
  .timeline-step:nth-child(even) .timeline-kicker { }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stats { max-width: 460px; }
}
@media (min-width: 1280px) { .tool-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- 30b. Review fixes: mobile CRM, a11y utilities ---------- */
@media (max-width: 560px) { .crm-board { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .live-metrics .live-value { font-size: 1.25rem; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.carousel__pause { margin-left: 8px; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; color: var(--brand-700); cursor: pointer; }

/* ---------- 31. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .reveal, .reveal-l, .reveal-r, .reveal-scale, .reveal-blur { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__question.is-in, .hero__question.is-out { animation: none; }
  .hero-stat, .blob, .aurora, .pulse-dot::after, .marquee-track, .cta-band__aurora, .scroll-cue .icon { animation: none !important; }
  .rank-bar { transition: none; width: var(--w, 0); }
  .carousel__slide { transition: none; }
}

/* ---------- 32. Print ---------- */
@media print {
  .ambient, .site-header, .site-footer, .modal-root, .scroll-cue, .hero__blob, .aurora { display: none !important; }
}
