/* ═══════════════════════════════════════════════════════════════════
   AIFandI · Design System
   Brand: Midnight Navy / Redline Red / Apex Blue / Track White
   Type: Public Sans (system fallback)
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand */
  --navy-900: #0B1D3A;       /* Midnight Navy - primary */
  --navy-800: #102849;
  --navy-700: #15355d;
  --navy-600: #1B4682;
  --red-600:  #E63946;       /* Redline Red */
  --red-700:  #C72D38;
  --red-500:  #ED5A66;
  --apex-500: #3A86FF;       /* Apex Blue */
  --apex-600: #2B6FE0;
  --apex-700: #1E4AC5;
  --apex-50:  #EAF1FF;
  --white:    #FFFFFF;

  /* Neutrals */
  --g-50:  #F7F9FC;
  --g-100: #EEF2F7;
  --g-200: #DDE3EC;
  --g-300: #C2CCD9;
  --g-400: #94A2B5;
  --g-500: #6B7891;
  --g-600: #495267;
  --g-700: #2F3849;
  --g-800: #1B2231;
  --g-900: #0F1420;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;

  /* Surfaces */
  --bg:        #FFFFFF;
  --bg-soft:   #FAFBFD;
  --bg-tint:   #F4F7FB;
  --bg-navy:   var(--navy-900);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(11, 29, 58, 0.06), 0 1px 3px rgba(11, 29, 58, 0.04);
  --sh-2: 0 4px 12px rgba(11, 29, 58, 0.08), 0 2px 4px rgba(11, 29, 58, 0.05);
  --sh-3: 0 12px 32px rgba(11, 29, 58, 0.12), 0 4px 8px rgba(11, 29, 58, 0.06);
  --sh-4: 0 28px 64px rgba(11, 29, 58, 0.18), 0 12px 24px rgba(11, 29, 58, 0.08);
  --sh-glow: 0 0 0 1px rgba(58, 134, 255, 0.18), 0 12px 32px rgba(58, 134, 255, 0.18);

  /* Type scale */
  --fs-xs:  12px;
  --fs-sm:  14px;
  --fs-md:  16px;
  --fs-lg:  18px;
  --fs-xl:  20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --fs-4xl: 38px;
  --fs-5xl: 48px;
  --fs-6xl: 60px;
  --fs-7xl: 76px;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 920px;
  --nav-h: 72px;
}

/* ─────── Reset ─────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--g-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: var(--apex-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout helpers */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 136px 0; }

/* Type */
h1, h2, h3, h4 { font-family: inherit; color: var(--navy-900); margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(40px, 6vw, var(--fs-7xl)); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(30px, 4.2vw, var(--fs-5xl)); letter-spacing: -0.028em; line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, var(--fs-3xl)); letter-spacing: -0.022em; line-height: 1.18; }
h4 { font-size: var(--fs-xl); font-weight: 700; }
p  { margin: 0 0 14px; }
.lede { font-size: var(--fs-xl); line-height: 1.55; color: var(--g-600); font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--apex-700);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red-600); border-radius: 2px; }

.text-center { text-align: center; }
.text-grad {
  background: linear-gradient(135deg, var(--apex-500) 0%, var(--navy-900) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-red { color: var(--red-600); }
.text-navy { color: var(--navy-900); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--red-600); color: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.btn-primary:hover { background: var(--red-700); color: var(--white); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(230, 57, 70, 0.28); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--g-200); }
.btn-ghost:hover { border-color: var(--navy-900); color: var(--navy-900); text-decoration: none; }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); color: var(--white); text-decoration: none; }
.btn-text { background: transparent; color: var(--navy-900); padding: 0 12px; height: 38px; }
.btn-text:hover { color: var(--apex-700); text-decoration: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* ─────── HEADER (light, consistent on every page) ─────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(11, 29, 58, 0.06);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(11, 29, 58, 0.04), 0 8px 24px rgba(11, 29, 58, 0.06);
  border-bottom-color: rgba(11, 29, 58, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand-link {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; height: 44px;
}
.brand-link img { height: 36px; width: auto; }
.brand-link:hover { text-decoration: none; }

.site-nav {
  display: flex; align-items: center; gap: 2px;
}
.site-nav a {
  color: var(--g-700);
  font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-md);
  transition: all 0.15s ease;
  position: relative;
}
.site-nav a:hover { color: var(--navy-900); background: rgba(11, 29, 58, 0.04); text-decoration: none; }
.site-nav a.active { color: var(--navy-900); background: transparent; }
.site-nav a.active::after {
  content: ""; display: block; height: 2px; width: 22px;
  background: var(--red-600); margin: 4px auto -10px;
  border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn-text { color: var(--g-700); }
.header-cta .btn-text:hover { color: var(--navy-900); }
.header-cta .btn-primary { height: 38px; font-size: 14px; padding: 0 18px; }

.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px;
  color: var(--navy-900); cursor: pointer; border-radius: 8px;
}
.nav-toggle:hover { background: rgba(11, 29, 58, 0.06); }

/* Mobile nav */
@media (max-width: 960px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open + .mobile-menu { display: flex; }
}
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); padding: 16px 24px 24px;
  border-bottom: 1px solid var(--g-100);
  box-shadow: 0 12px 24px rgba(11, 29, 58, 0.08);
  flex-direction: column; gap: 4px;
  z-index: 99;
}
.mobile-menu a {
  color: var(--g-700); font-weight: 500; padding: 12px 14px;
  border-radius: var(--r-md);
}
.mobile-menu a:hover { background: rgba(11, 29, 58, 0.04); color: var(--navy-900); text-decoration: none; }
.mobile-menu .btn { margin-top: 8px; height: 44px; }
.mobile-menu .btn-ghost-light {
  color: var(--navy-900); border-color: var(--g-200); background: transparent;
}
.mobile-menu .btn-ghost-light:hover { background: var(--g-50); color: var(--navy-900); }

/* ─────── HERO (light, airy, motion-video feel) ─────── */
.hero {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 70%, #F4F7FB 100%);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }

/* Motion video layer — animated gradient orbs that drift slowly behind the hero.
   No actual MP4 needed; pure CSS produces a polished motion-graphic feel that
   reads as "video" without the asset weight. */
.hero-motion {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-motion::before {
  /* Subtle dot grid that drifts — adds depth */
  content: ""; position: absolute; inset: -10%;
  background-image: radial-gradient(circle, rgba(11, 29, 58, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
  animation: grid-drift 60s linear infinite;
}
.hero-motion .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, opacity;
}
.hero-motion .orb-blue {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.78) 0%, rgba(58, 134, 255, 0) 70%);
  top: -18%; left: -10%;
  animation: drift-a 18s linear infinite, breathe-a 11s ease-in-out infinite;
}
.hero-motion .orb-navy {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(27, 70, 130, 0.65) 0%, rgba(27, 70, 130, 0) 70%);
  top: 30%; left: 40%;
  animation: drift-b 22s linear infinite -7s, breathe-b 13s ease-in-out infinite -3s;
}
.hero-motion .orb-red {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.55) 0%, rgba(230, 57, 70, 0) 70%);
  bottom: -14%; right: -6%;
  animation: drift-c 20s linear infinite -4s, breathe-c 14s ease-in-out infinite -8s;
}
.hero-motion .orb-cyan {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.60) 0%, rgba(58, 134, 255, 0) 70%);
  top: 4%; right: 18%;
  animation: drift-d 16s linear infinite -9s, breathe-d 10s ease-in-out infinite -5s;
}

/* Position drifts — closed loops with larger spatial range for lava-lamp feel.
   Linear timing so orbs are always moving, never paused at extremes. */
@keyframes drift-a {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(280px, 140px); }
  50%  { transform: translate(180px, 320px); }
  75%  { transform: translate(-120px, 200px); }
  100% { transform: translate(0, 0); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-300px, -160px); }
  50%  { transform: translate(-420px, 80px); }
  75%  { transform: translate(-160px, 240px); }
  100% { transform: translate(0, 0); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-260px, -140px); }
  50%  { transform: translate(-380px, -320px); }
  75%  { transform: translate(-140px, -200px); }
  100% { transform: translate(0, 0); }
}
@keyframes drift-d {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-220px, 180px); }
  50%  { transform: translate(80px, 300px); }
  75%  { transform: translate(240px, 120px); }
  100% { transform: translate(0, 0); }
}

/* Breathing — opacity + scale layered on top of the drift, on different cycles.
   The mismatched periods between drift and breathe means orbs never repeat the
   same exact appearance — that's the "alive" quality of a lava lamp. */
@keyframes breathe-a {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 0.85; }
}
@keyframes breathe-b {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.70; }
}
@keyframes breathe-c {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.65; }
}
@keyframes breathe-d {
  0%, 100% { opacity: 0.50; }
  50%      { opacity: 0.75; }
}
@keyframes grid-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(28px, 28px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion .orb,
  .hero-motion::before { animation: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--white);
  border: 1px solid var(--g-100);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--g-700);
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(11, 29, 58, 0.04);
}
.hero-eyebrow .pulse {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: rgba(16, 185, 129, 0.12); border-radius: 50%;
}
.hero-eyebrow .pulse::before {
  content: ""; width: 8px; height: 8px;
  background: var(--success); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero h1 { color: var(--navy-900); margin-bottom: 22px; }
.hero h1 .accent { color: var(--red-600); }
.hero .lede { max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta .btn { height: 52px; font-size: 15.5px; padding: 0 26px; }

.hero-meta {
  display: flex; gap: 18px; align-items: center; margin-top: 28px;
  font-size: 13px; color: var(--g-500);
}
.hero-meta strong { color: var(--navy-900); font-weight: 700; }
.hero-meta svg { width: 14px; height: 14px; color: var(--success); }

/* Hero screenshot frame — refined for the lighter feel */
.hero-shot {
  position: relative;
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow:
    0 30px 60px -20px rgba(11, 29, 58, 0.22),
    0 18px 36px -18px rgba(11, 29, 58, 0.14),
    0 0 0 1px rgba(11, 29, 58, 0.04);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-1deg) rotateX(0.5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-shot:hover { transform: perspective(1400px) rotateY(-0.4deg) rotateX(0deg) translateY(-4px); }
.hero-shot::before {
  content: ""; position: absolute; inset: -3px;
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.20) 0%, rgba(230, 57, 70, 0.18) 100%);
  border-radius: calc(var(--r-2xl) + 3px); z-index: -1;
  filter: blur(28px); opacity: 0.65;
}

/* Logos strip — scrolling marquee like Fullpath's dealer-logo rail */
.integrations-band {
  margin-top: 72px;
  padding: 40px 0 36px;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--g-100);
  box-shadow: 0 1px 2px rgba(11, 29, 58, 0.03);
  overflow: hidden;
}
.integrations-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 28px;
  padding: 0 32px;
}
.integrations-eyebrow::before,
.integrations-eyebrow::after {
  content: ""; flex: 0 1 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--g-200), transparent);
}
.logos-strip-label {
  text-align: center; font-size: 13px; font-weight: 600;
  color: var(--g-500); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.logos-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.logos-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
  padding: 6px 0;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}
.logo-pill {
  flex-shrink: 0;
  font-weight: 700; font-size: 16px; color: var(--g-500);
  letter-spacing: -0.005em; line-height: 1;
  opacity: 0.85; transition: all 0.15s ease;
  white-space: nowrap;
}
.logo-pill:hover { opacity: 1; color: var(--navy-900); }

/* Legacy logos-row class kept for any pages that still use it */
.logos-row {
  display: flex; flex-wrap: wrap; gap: 32px 48px;
  justify-content: center; align-items: center;
}

/* Stats bar (navy — intentional contrast moment) */
.stats-bar {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(58, 134, 255, 0.18) 0%, transparent 60%),
    var(--navy-900);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  border-top: 4px solid var(--red-600);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.stat-num { font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -0.025em; }
.stat-num .unit { color: var(--apex-500); }
.stat-label { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,0.72); letter-spacing: 0.02em; }
.stat-label sup { font-size: 9px; color: rgba(255,255,255,0.5); margin-left: 2px; font-weight: 600; }
.stats-footnote {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px; color: rgba(255,255,255,0.5);
  text-align: center; letter-spacing: 0.01em;
}
.stats-footnote sup { font-size: 9px; margin-right: 2px; }

/* Section heads */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: var(--fs-lg); color: var(--g-600); margin: 0; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--g-100);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover {
  border-color: rgba(58, 134, 255, 0.25);
  box-shadow: 0 18px 36px -16px rgba(11, 29, 58, 0.14), 0 6px 14px -6px rgba(11, 29, 58, 0.08);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 12px; font-size: var(--fs-2xl); }
.card p { color: var(--g-600); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--apex-50); color: var(--apex-700);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-red .card-icon { background: rgba(230, 57, 70, 0.08); color: var(--red-600); }
.card-navy .card-icon { background: rgba(11, 29, 58, 0.06); color: var(--navy-900); }
.card-success .card-icon { background: rgba(16, 185, 129, 0.08); color: var(--success); }

/* Solutions section (the v2 section) */
.solutions {
  background: var(--bg-soft);
}
.solutions-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (max-width: 820px) { .solutions-grid { grid-template-columns: 1fr; } }
.solution-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--g-100);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: all 0.2s ease;
}
.solution-card:hover { border-color: var(--apex-500); box-shadow: var(--sh-3); transform: translateY(-3px); }
.solution-shot {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 24px 24px 0;
  position: relative; overflow: hidden;
  min-height: 200px;
}
.solution-card.theme-red .solution-shot { background: linear-gradient(135deg, var(--navy-900) 0%, var(--red-700) 90%); }
.solution-card.theme-blue .solution-shot { background: linear-gradient(135deg, var(--navy-800) 0%, var(--apex-700) 100%); }
.solution-card.theme-mixed .solution-shot { background: linear-gradient(135deg, var(--navy-900) 0%, var(--apex-600) 60%, var(--red-600) 130%); }
.solution-body { padding: 22px 28px 28px; }
.solution-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--apex-700);
  margin-bottom: 10px;
}
.solution-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.solution-card.theme-red .solution-tag { color: var(--red-600); }
.solution-card.theme-mixed .solution-tag { color: var(--apex-700); }
.solution-body h3 { margin-bottom: 10px; }
.solution-body p { color: var(--g-600); margin-bottom: 14px; font-size: 15px; }
.solution-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--g-600);
  padding: 4px 10px; border-radius: 999px;
  background: var(--g-50); border: 1px solid var(--g-100);
}

/* Persona / split sections */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse { direction: ltr; } }
.split-text h2 { margin-bottom: 16px; }
.split-text .lede { margin-bottom: 20px; }
.split-text ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.split-text li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--g-700); font-size: 15.5px;
}
.split-text li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px;
  background: var(--apex-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231E4AC5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 6.5 12 13 4.5'/></svg>") center / 12px no-repeat;
  border-radius: 50%;
  margin-top: 2px;
}
.split-shot {
  position: relative; border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--white);
  border: 1px solid var(--g-100);
}

/* Pillars (Why dealers choose AIFandI) */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ROI preview tile (homepage embed) */
.roi-tile-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.roi-shell {
  background: var(--white);
  border: 1px solid var(--g-100);
  border-radius: var(--r-2xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--sh-2);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
@media (max-width: 920px) { .roi-shell { grid-template-columns: 1fr; } }
.roi-shell-text {
  padding: 40px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.roi-shell-text h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.roi-shell-text p { color: var(--g-600); margin-bottom: 18px; font-size: 16px; }
.roi-shell-text .roi-bullets {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px;
}
.roi-shell-text .chip { background: var(--apex-50); color: var(--apex-700); border-color: rgba(58, 134, 255, 0.18); }
.roi-shell-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.roi-shell-calc {
  background: var(--navy-900); color: var(--white);
  padding: 36px;
  position: relative;
}
.roi-shell-calc::before {
  content: "Quick estimate · live";
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.roi-row { margin-bottom: 18px; }
.roi-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 600; margin-bottom: 8px;
  color: rgba(255,255,255,0.78);
}
.roi-value { color: var(--white); font-size: 14.5px; font-weight: 700; }
.roi-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.12); border-radius: 2px; outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-600); border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25); cursor: pointer;
}
.roi-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-600); border: 3px solid var(--white);
  cursor: pointer;
}
.roi-output-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.roi-out {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.roi-out-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.roi-out-num { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -0.01em; }
.roi-out-num.accent { color: var(--red-500); }
.roi-out-sub { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* Quote */
.quote {
  background: var(--navy-900); color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: '"'; position: absolute;
  top: -40px; left: 6%;
  font-size: 280px; line-height: 1; color: rgba(255,255,255,0.04);
  font-family: Georgia, serif; font-weight: 700;
}
.quote-card {
  max-width: 820px; margin: 0 auto; position: relative; z-index: 1;
  text-align: center;
}
.quote-card blockquote {
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4;
  font-weight: 500; color: var(--white); letter-spacing: -0.012em;
  margin: 0 0 28px;
}
.quote-attr {
  display: flex; align-items: center; gap: 16px; justify-content: center;
}
.quote-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--apex-500), var(--navy-900));
  display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: 18px;
  border: 2px solid rgba(255,255,255,0.15);
}
.quote-meta { text-align: left; }
.quote-meta strong { display: block; color: var(--white); font-size: 15px; font-weight: 700; }
.quote-meta span { display: block; color: rgba(255,255,255,0.68); font-size: 13.5px; margin-top: 2px; }

/* Customer avatar section */
.avatar-section {
  background:
    radial-gradient(circle at 90% 20%, rgba(58, 134, 255, 0.06) 0%, transparent 50%),
    var(--bg-soft);
}
.avatar-mock {
  background: var(--white);
  border-radius: var(--r-2xl);
  border: 1px solid var(--g-100);
  box-shadow: var(--sh-3);
  padding: 28px;
  position: relative;
}
.avatar-mock-real {
  text-align: center;
}
.avatar-mock-real img {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-4);
  display: block;
}
.avatar-tag { color: var(--apex-700); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Final CTA */
.cta-final {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(230, 57, 70, 0.12) 0%, transparent 60%),
    var(--navy-900);
  color: var(--white);
  text-align: center;
  padding: 96px 0;
}
.cta-final h2 { color: var(--white); margin-bottom: 16px; }
.cta-final p { color: rgba(255,255,255,0.78); font-size: var(--fs-lg); margin-bottom: 28px; }
.cta-final .btn-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─────── FOOTER (consistent on every page) ─────── */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 38px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 360px; color: rgba(255,255,255,0.6); margin: 0; }
.footer-brand .footer-email { display: inline-block; margin-top: 14px; color: rgba(255,255,255,0.78); }
.footer-brand .footer-email:hover { color: var(--white); text-decoration: underline; }

.footer-col h5 {
  font-size: 12.5px; color: rgba(255,255,255,0.96);
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.62); font-size: 14px; }
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}
.footer-disclosure {
  margin-top: 14px;
  font-size: 11.5px; color: rgba(255,255,255,0.4);
  max-width: 720px; line-height: 1.55;
}

/* Utilities */
.hidden { display: none !important; }
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Inline "brief callout" — small attention-grabbing strip linking out to a
   gated download. Used under stats/compliance sections to direct readers to
   deeper content without breaking the section flow. */
a.brief-callout { text-decoration: none; }
a.brief-callout:hover { text-decoration: none; }
.brief-callout {
  display: flex; align-items: center; gap: 20px;
  margin-top: 40px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--g-100);
  border-left: 3px solid var(--red-600);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(11, 29, 58, 0.04);
  transition: all 0.2s ease;
  color: inherit;
}
.brief-callout:hover {
  border-color: var(--g-200);
  box-shadow: 0 8px 20px rgba(11, 29, 58, 0.08);
  transform: translateY(-1px);
}
.brief-callout-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(230, 57, 70, 0.08);
  color: var(--red-600);
  border-radius: var(--r-md);
  display: grid; place-items: center;
}
.brief-callout-icon svg { width: 22px; height: 22px; }
.brief-callout-body { flex: 1; min-width: 0; }
.brief-callout-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 4px;
}
.brief-callout-title {
  font-size: 16px; font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  margin: 0;
}
.brief-callout-title .reg { color: var(--g-600); font-weight: 500; }
.brief-callout-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--apex-700);
  text-decoration: none;
  white-space: nowrap;
}
.brief-callout-cta svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.brief-callout:hover .brief-callout-cta svg { transform: translateX(3px); }

@media (max-width: 720px) {
  .brief-callout { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .brief-callout-cta { align-self: flex-start; }
}

/* Reveal helpers used by site.js */
[data-count] { font-variant-numeric: tabular-nums; }

/* Small responsive tweaks */
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .section-lg { padding: 88px 0; }
  .hero { padding: 64px 0 48px; }
  .roi-shell-text, .roi-shell-calc { padding: 28px 24px; }
  .quote { padding: 64px 0; }
  .cta-final { padding: 72px 0; }
}

/* ============================================
   WHITE PAPER CTA — fanned-pages teaser
   Used on home, platform, team to link to /whitepaper.html
   ============================================ */
.wp-cta {
  position: relative;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(58,134,255,0.16) 0%, transparent 60%),
    radial-gradient(700px 400px at 5% 100%, rgba(230,57,70,0.12) 0%, transparent 55%),
    linear-gradient(135deg, #0B1D3A 0%, #15355d 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin: 0 auto;
}
.wp-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding: 56px;
}
@media (max-width: 880px) { .wp-cta-grid { grid-template-columns: 1fr; padding: 48px 32px; gap: 36px; } }
@media (max-width: 600px) { .wp-cta-grid { padding: 36px 24px; gap: 28px; } }
.wp-cta .wp-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #C7D7FF; margin-bottom: 18px;
}
.wp-cta .wp-cta-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red-600); border-radius: 2px; }
.wp-cta h2 {
  color: #fff; font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.02em;
}
.wp-cta h2 .accent { color: var(--apex-500); }
.wp-cta p {
  font-size: 16px; line-height: 1.55;
  color: rgba(255,255,255,0.78); margin-bottom: 24px; max-width: 480px;
}
.wp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wp-cta-actions .btn-primary { background: var(--red-600); }
.wp-cta-actions .btn-primary:hover { background: var(--red-700); }
.wp-cta-actions .btn-ghost-light { border-color: rgba(255,255,255,0.3); color: #fff; }
.wp-cta-actions .btn-ghost-light:hover { background: rgba(255,255,255,0.08); }
.wp-cta-fan { position: relative; width: 100%; height: 320px; perspective: 1000px; }
@media (max-width: 880px) { .wp-cta-fan { height: 320px; max-width: 460px; margin: 0 auto; } }
@media (max-width: 600px) { .wp-cta-fan { height: 280px; max-width: 320px; } }
.wp-cta-fan-page {
  position: absolute; width: 58%; max-width: 220px;
  border-radius: 6px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5), 0 8px 20px -6px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wp-cta-fan-page img { width: 100%; height: auto; display: block; border-radius: 6px; }
.wp-cta-fan-page.p2 { top: 24px; left: 8%; transform: rotate(-8deg); z-index: 1; }
.wp-cta-fan-page.p1 { top: 8px; left: 22%; transform: rotate(-2deg); z-index: 2; }
.wp-cta-fan-page.cover {
  top: 0; left: 38%; transform: rotate(6deg);
  z-index: 3; width: 62%; max-width: 240px;
  box-shadow: 0 28px 56px -14px rgba(0,0,0,0.55), 0 12px 28px -8px rgba(230,57,70,0.18), 0 0 0 1px rgba(255,255,255,0.1);
}
@media (hover: hover) {
  .wp-cta-fan:hover .wp-cta-fan-page.p2 { transform: rotate(-11deg) translateY(-6px); }
  .wp-cta-fan:hover .wp-cta-fan-page.p1 { transform: rotate(-3deg) translateY(-3px); }
  .wp-cta-fan:hover .wp-cta-fan-page.cover { transform: rotate(8deg) translateY(-8px); }
}

/* Mobile fan: scale down and re-center horizontally so all three pages fit */
@media (max-width: 600px) {
  .wp-cta-fan-page { width: 44%; max-width: 140px; }
  .wp-cta-fan-page.p2 { top: 32px; left: 14%; transform: rotate(-10deg); }
  .wp-cta-fan-page.p1 { top: 12px; left: 28%; transform: rotate(-3deg); }
  .wp-cta-fan-page.cover {
    top: 0; left: 44%;
    width: 48%; max-width: 160px;
    transform: rotate(7deg);
  }
}
.wp-cta-section { padding: 64px 0; background: var(--bg-soft); }
@media (max-width: 600px) { .wp-cta-section { padding: 48px 0; } }

/* ============================================
   TDC DISTRIBUTION BLOCK
   Used on home page: marquee dealer-network distribution callout
   ============================================ */
.tdc-section {
  padding: 96px 0;
  background: var(--white);
  position: relative;
}
.tdc-card {
  background: linear-gradient(135deg, #0B1D3A 0%, #15355d 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) { .tdc-card { padding: 48px 32px; } }
@media (max-width: 600px) { .tdc-card { padding: 40px 24px; } }
.tdc-card::before {
  content: ""; position: absolute;
  top: 0; right: 0; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(230,57,70,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.tdc-card::after {
  content: ""; position: absolute;
  bottom: 0; left: 0; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(58,134,255,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.tdc-eyebrow {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #C7D7FF; margin-bottom: 20px;
}
.tdc-eyebrow::before {
  content: ""; width: 24px; height: 2px;
  background: var(--red-600); border-radius: 2px;
}

.tdc-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
@media (max-width: 880px) {
  .tdc-grid { grid-template-columns: 1fr; gap: 40px; }
}

.tdc-headline {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 18px;
}
.tdc-headline .accent { color: var(--apex-500); }
.tdc-lede {
  font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  max-width: 540px;
}

.tdc-bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.tdc-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.5;
  color: rgba(255,255,255,0.86);
}
.tdc-bullets li::before {
  content: ""; flex-shrink: 0;
  width: 20px; height: 20px;
  background: rgba(58,134,255,0.18) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233A86FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 6.5 12 13 4.5'/></svg>") center / 11px no-repeat;
  border-radius: 50%; margin-top: 1px;
}

/* Stats card on the right */
.tdc-stats {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 40px 36px;
}
.tdc-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.tdc-stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800; line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 8px;
}
.tdc-stat-num .accent { color: var(--apex-500); }
.tdc-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}
.tdc-stats-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  text-align: center;
}
.tdc-stats-footer strong { color: #fff; font-weight: 700; }

/* ============================================
   CUSTOMER ADVOCATE HOME FEATURE
   The customer's side of the desk: journey steps + device shot
   ============================================ */
.advocate-section { background: var(--bg-soft); }
.advocate-device {
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--white);
  border: 1px solid var(--g-100);
}
.advocate-device img { width: 100%; height: auto; display: block; }
.advocate-shot-tag {
  padding: 12px 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--g-500);
  background: var(--white);
  border-top: 1px solid var(--g-100);
  text-align: center;
}
.journey { display: flex; flex-direction: column; gap: 18px; margin: 4px 0 8px; }
.journey-step { display: flex; gap: 16px; align-items: flex-start; }
.journey-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--apex-50);
  color: var(--apex-700);
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 10px;
  margin-top: 2px;
}
.journey-step h4 {
  font-size: 16px; margin: 0 0 4px;
  color: var(--navy-900); letter-spacing: -0.01em;
}
.journey-step p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--g-600); margin: 0;
}
.advocate-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
