/* ==========================================================================
   Celer Merchants — design system
   Light corporate fintech. Navy + electric blue + savings green.
   ========================================================================== */

:root {
  /* Zoom-style palette: white dominant, one confident blue, near-black type */

  /* Dark surfaces (deep Zoom navy, not black) */
  --navy-900: #0a1633;
  --navy-800: #0e2352;
  --navy-700: #123472;
  --navy-600: #1a49a8;

  /* Zoom Blue */
  --blue-700: #0847c7;
  --blue-600: #0b5cff;
  --blue-500: #2d8cff;
  --blue-100: #cfe0ff;
  --blue-50: #eef4ff;

  /* Success — used sparingly, only on money saved */
  --green-600: #0a8f63;
  --green-500: #0ea672;
  --green-50: #e8f7f1;

  --amber-500: #f5a524;
  --amber-50: #fff6e6;

  /* Neutrals */
  --ink: #131619;
  --body: #4a5157;
  --muted: #6e7780;
  --line: #e1e5e8;
  --line-soft: #eef1f3;
  --bg: #ffffff;
  --bg-soft: #f7f9fa;
  --bg-tint: #f0f5ff;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Space + shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(11, 37, 69, .06);
  --shadow-sm: 0 4px 14px rgba(11, 37, 69, .07);
  --shadow: 0 12px 34px rgba(11, 37, 69, .10);
  --shadow-lg: 0 28px 70px rgba(11, 37, 69, .16);
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
button { font: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 860px; }
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section-sm { padding: clamp(48px, 5vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }
.section-navy {
  background: radial-gradient(120% 120% at 15% 0%, var(--navy-700) 0%, var(--navy-900) 62%);
  color: #cdd9ea;
}
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-rev > *:first-child { order: 2; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue-600); border-radius: 2px; }
.section-navy .eyebrow { color: #7fb8ff; }
.section-navy .eyebrow::before { background: #7fb8ff; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--body); }
.section-navy .lead, .section-navy p { color: #b9c8dd; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.text-green { color: var(--green-600); }
.text-muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(11, 92, 255, .28); }
.btn-primary:hover { background: var(--blue-700); color: #fff; box-shadow: 0 14px 30px rgba(11, 92, 255, .34); }
.btn-green { background: var(--green-500); color: #fff; box-shadow: 0 10px 24px rgba(14, 166, 114, .26); }
.btn-green:hover { background: var(--green-600); color: #fff; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-700); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900); color: #b9c8dd;
  font-size: .84rem; padding: 9px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { color: #fff; }
.topbar-note { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar-note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-pill); overflow: hidden; }
.lang-toggle button, .lang-toggle a {
  display: inline-block; background: transparent; border: 0; color: #b9c8dd; padding: 2px 10px;
  font-size: .78rem; font-weight: 700; cursor: pointer; line-height: 1.6; text-decoration: none;
}
.lang-toggle button[aria-pressed="true"] { background: var(--blue-600); color: #fff; }
.lang-toggle a:hover { background: rgba(255,255,255,.12); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; color: var(--navy-800); font-size: 1.24rem; letter-spacing: -.03em; }
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-lockup { height: 40px; width: auto; display: block; }
@media (max-width: 480px) { .brand-lockup { height: 32px; } }

/* Zoom-style wordmark — type only, no mark */
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -.03em; color: var(--blue-600); line-height: 1;
  transition: color .2s ease;
}
.brand:hover .brand-word { color: var(--blue-700); }
.brand-word em {
  display: block; font-style: normal; font-weight: 700; font-size: .55rem;
  letter-spacing: .36em; color: var(--muted); margin-top: 3px;
}
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word em { color: #8fa3c4; }
@media (max-width: 480px) { .brand-word { font-size: 1.25rem; } }

/* ---------- Cinematic layer (GPU-cheap, reduced-motion aware) ---------- */

/* Scroll progress rail */
.progress-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: transparent; pointer-events: none;
}
.progress-rail i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500), #8ab8ff);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(45, 140, 255, .55);
}

/* Hero particle canvas */
.hero { position: relative; }
.hero-particles {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
}

/* 3D tilt card */
.tilt-wrap { perspective: 1100px; }
.tilt {
  transform-style: preserve-3d;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
  will-change: transform;
}
.tilt.is-tilting { transition: transform .06s linear; }

/* Kinetic slam band */
.slam-band {
  background: radial-gradient(130% 130% at 50% 0%, var(--navy-700) 0%, var(--navy-900) 70%);
  overflow: hidden; position: relative;
}
.slam-band::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 140, 255, .18) 0%, transparent 65%);
  pointer-events: none;
}
.slam-line {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.2rem); line-height: .98; letter-spacing: -.04em;
  color: #fff; margin: 0; padding: .06em 0;
  opacity: 0; transform: translateY(50px) scale(.92); filter: blur(8px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), filter .55s ease;
}
.slam-line.in { opacity: 1; transform: none; filter: blur(0); }
.slam-line:nth-child(2) { transition-delay: .12s; }
.slam-line:nth-child(3) { transition-delay: .24s; }
.slam-line .hl { color: transparent; background: linear-gradient(92deg, #2d8cff, #8ab8ff); -webkit-background-clip: text; background-clip: text; }
.slam-sub { color: #9db4d6; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 56ch; margin-top: 26px; }

/* Live overpayment ticker */
.ticker-band {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px;
  background: var(--navy-900); border-radius: var(--radius); padding: 18px 26px;
  color: #9db4d6; font-size: .92rem;
}
.ticker-band b {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
  color: #2d8cff; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(45, 140, 255, .5);
}

/* Review rotator */
.rev-pool { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rev-pool .quote-card { transition: opacity .45s ease, transform .45s ease; }
.rev-hidden { display: none !important; }
.rev-entering { opacity: 0; transform: translateY(14px); }
.rev-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 4px 12px; font-size: .76rem; font-weight: 700; font-family: var(--font-display);
  color: var(--muted); letter-spacing: .02em;
}
.rev-save {
  font-family: var(--font-display); font-weight: 800; color: var(--green-600);
  font-size: .95rem; white-space: nowrap;
}
.rev-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 960px) { .rev-pool { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .hero-particles { display: none; }
  .slam-line { opacity: 1; transform: none; filter: none; }
  .tilt { transform: none !important; }
  .logo-orbit, .logo-orbit .sheen, .dust { animation: none; }
  .logo-orbit { transform: rotateY(-14deg) rotateX(6deg); }
}
.brand small { display: block; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: -2px; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: .97rem; color: var(--navy-800);
  padding: 10px 14px; border-radius: var(--radius-pill); background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-menu > li.open .nav-link { background: var(--blue-50); color: var(--blue-700); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-menu > li.open .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy-800); font-size: .95rem; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; min-width: 280px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-menu > li.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown.wide { min-width: 640px; }
.dropdown-grid { display: grid; gap: 6px 22px; }
.dropdown.wide .dropdown-grid { grid-template-columns: 1fr 1fr; }
.dropdown-title {
  font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; grid-column: 1 / -1;
}
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 10px; color: var(--navy-800);
  font-size: .94rem; font-weight: 500; line-height: 1.35;
}
.dropdown a:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown a span { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.dropdown a:hover span { color: var(--blue-600); }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--navy-800); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy-800); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 780px; z-index: -1;
  background:
    radial-gradient(48% 55% at 78% 18%, rgba(11, 92, 255, .14) 0%, transparent 70%),
    radial-gradient(42% 48% at 12% 8%, rgba(45, 140, 255, .10) 0%, transparent 72%),
    linear-gradient(180deg, #f4f8ff 0%, #ffffff 78%);
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 15px; font-size: .86rem; font-weight: 600; color: var(--navy-800); box-shadow: var(--shadow-xs);
}
.tagline {
  border-left: 3px solid var(--blue-600); padding-left: 16px; margin: 26px 0 0;
  font-family: var(--font-display); font-weight: 700; color: var(--navy-800); font-size: 1.05rem;
}

/* Hero visual card */
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card-head strong { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 800; font-family: var(--font-display); letter-spacing: .02em;
}
.pill-green { background: var(--green-50); color: var(--green-600); }
.pill-blue { background: var(--blue-50); color: var(--blue-700); }
.pill-amber { background: var(--amber-50); color: #b06f00; }
.fee-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.fee-row:last-of-type { border-bottom: 0; }
.fee-row span:first-child { color: var(--body); }
.fee-row b { font-family: var(--font-display); color: var(--ink); }
.fee-row .cut { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-right: 8px; }
.hero-card-total {
  margin-top: 16px; background: var(--green-50); border-radius: var(--radius); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-card-total span { font-family: var(--font-display); font-weight: 700; color: var(--green-600); }
.hero-card-total b { font-family: var(--font-display); font-size: 1.7rem; color: var(--green-600); letter-spacing: -.03em; }
.hero-float {
  position: absolute; right: -18px; bottom: -26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 10px; align-items: center;
}
.hero-float b { font-family: var(--font-display); display: block; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.hero-float small { color: var(--muted); font-size: .78rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-xs);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-family: var(--font-display); font-weight: 700; font-size: .93rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .18s ease; }
.card-hover:hover .card-link::after { transform: translateX(4px); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); margin-bottom: 18px;
}
.icon-badge.green { background: var(--green-50); color: var(--green-600); }
.icon-badge.amber { background: var(--amber-50); color: #b06f00; }
.icon-badge svg { width: 26px; height: 26px; }

/* Step cards */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step:nth-child(2) .step-num { background: var(--blue-600); }
.step:nth-child(3) .step-num { background: var(--green-500); }

/* ---------- Industry chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy-800);
  box-shadow: var(--shadow-xs); transition: all .18s ease;
}
.chips a:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b {
  display: block; font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--ink); letter-spacing: -.04em; line-height: 1;
}
.section-navy .stat b { color: #fff; }
.stat span { display: block; margin-top: 10px; font-size: .95rem; color: var(--muted); }
.section-navy .stat span { color: #9db4d6; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-xs);
}
.stars { color: var(--amber-500); letter-spacing: 2px; font-size: 1rem; }
.quote-card p { font-size: 1.02rem; color: var(--ink); margin: 0; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .95rem; flex: none;
}
.quote-author b { display: block; font-family: var(--font-display); color: var(--ink); font-size: .95rem; }
.quote-author small { color: var(--muted); font-size: .84rem; }

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #93a3ba;
  white-space: nowrap; letter-spacing: -.01em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.acc-btn::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--blue-600); font-weight: 400; line-height: 1;
}
.acc-item.open .acc-btn::after { content: "–"; }
.acc-panel { display: none; padding: 0 40px 24px 0; }
.acc-item.open .acc-panel { display: block; }
.acc-panel p:last-child { margin-bottom: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-xs);
}
.price-card.featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-600); color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.price-tag { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 14px 0 4px; }
.price-tag small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.check-list { list-style: none; padding: 0; margin: 20px 0 26px; }
.check-list li { position: relative; padding-left: 30px; font-size: .95rem; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price-card .btn { margin-top: auto; width: 100%; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
th { font-family: var(--font-display); font-weight: 800; color: var(--ink); background: var(--bg-soft); font-size: .88rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50);
}
.field small { color: var(--muted); font-size: .8rem; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-success {
  display: none; background: var(--green-50); border: 1px solid rgba(0,178,122,.3); color: var(--green-600);
  padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- Calculator ---------- */
.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: #fff;
}
.calc-inputs { padding: clamp(26px, 3.5vw, 40px); }
.calc-output {
  padding: clamp(26px, 3.5vw, 40px); color: #cdd9ea;
  background: radial-gradient(120% 120% at 20% 0%, var(--navy-700) 0%, var(--navy-900) 65%);
}
.calc-output h3 { color: #fff; }
.calc-result { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1.05; }
.calc-result-sub { color: #5fd3a8; font-family: var(--font-display); font-weight: 700; margin-top: 6px; }
.calc-line { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.calc-line b { color: #fff; font-family: var(--font-display); }
.calc-bars { margin: 24px 0; }
.calc-bar-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.calc-bar { height: 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,.14); overflow: hidden; margin-bottom: 18px; }
.calc-bar i { display: block; height: 100%; border-radius: var(--radius-pill); transition: width .5s cubic-bezier(.22,1,.36,1); }
.calc-bar.now i { background: #f5a524; }
.calc-bar.celer i { background: linear-gradient(90deg, var(--green-500), #5fd3a8); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--line); outline: none; padding: 0; border: 0; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-600);
  border: 4px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue-600);
  border: 4px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer;
}
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.range-head b { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }
.seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.seg button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(120% 140% at 12% 0%, var(--navy-700) 0%, var(--navy-900) 60%);
  border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px);
  color: #b9c8dd; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11,92,255,.35) 0%, transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #b9c8dd; margin: 0; }
.cta-band .btn-row { position: relative; z-index: 1; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px);
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue-600); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18ch; }
.page-hero .lead { max-width: 62ch; }

/* ---------- Article / prose ---------- */
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul li::marker { color: var(--blue-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a8c4; padding: clamp(56px, 6vw, 84px) 0 0; font-size: .93rem; }
.site-footer a { color: #c6d4e6; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 3fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand small { color: #7d92ae; }
.footer-contact { margin-top: 22px; display: grid; gap: 10px; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: #7fb8ff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-cols h4 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 9px; }
.footer-bottom {
  padding: 26px 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-size: .84rem; color: #7d92ae;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: #c6d4e6;
}
.socials a:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.disclaimer { padding-bottom: 34px; font-size: .78rem; color: #64789a; line-height: 1.7; }

/* ---------- Quote wizard ---------- */
.wizard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(24px, 3vw, 36px);
}
.wizard-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.wizard-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); transition: width .35s cubic-bezier(.22,1,.36,1); }
.wizard-head { margin-bottom: 22px; }
.wizard-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-step.is-active { display: block; animation: wizIn .3s ease; }
@keyframes wizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-q {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ink); letter-spacing: -.02em; padding: 0; margin: 0 0 20px;
}
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: all .16s ease; font-family: var(--font-body);
}
.tile b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.tile span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.tile:hover { border-color: var(--blue-500); background: var(--blue-50); transform: translateY(-2px); }
.tile.is-selected { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); }
.tile-sm { text-align: center; padding: 16px 12px; }
.tile-sm b { margin: 0; font-size: .95rem; }
.wizard-nav { display: flex; gap: 12px; align-items: center; margin-top: 26px; }
.wizard-nav .btn { flex: 1; }
.wizard-nav .btn-ghost { flex: 0 0 auto; }
.wizard-step.shake { animation: shake .38s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.wizard-summary {
  margin-top: 18px; padding: 14px 16px; background: var(--bg-soft); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--body);
}
.wizard-summary b { font-family: var(--font-display); color: var(--ink); }
.wizard-foot {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .9rem; color: var(--muted);
}
@media (max-width: 620px) {
  .tile-grid, .tile-grid-3 { grid-template-columns: 1fr 1fr; }
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; }
  .wizard-foot .btn { width: 100%; }
}

/* ---------- Sticky mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(11,37,69,.12);
  transform: translateY(110%); transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { flex: 1; width: auto; padding: 13px 14px; font-size: .95rem; }
.action-bar-note {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  background: var(--navy-800); color: #fff; font-size: .7rem; font-weight: 700;
  font-family: var(--font-display); padding: 3px 12px; border-radius: var(--radius-pill); white-space: nowrap;
}
@media (max-width: 860px) {
  .action-bar { display: flex; }
  body.has-action-bar { padding-bottom: 74px; }
}

/* ---------- Coverage lists ---------- */
.coverage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.coverage-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.coverage-block h3 { font-size: 1.05rem; margin-bottom: 8px; }
.city-list { font-size: .88rem; line-height: 1.9; color: var(--body); margin: 0; word-break: break-word; }
@media (max-width: 860px) { .coverage-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ index ---------- */
.faq-search { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: var(--bg); padding: 12px 0 18px; }
.faq-cat { margin-bottom: 44px; scroll-margin-top: 120px; }
.faq-cat > h2 { font-size: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--blue-100); }
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; padding: 0; list-style: none; }
.faq-jump a {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--bg-soft);
  border: 1px solid var(--line); font-size: .86rem; font-family: var(--font-display); font-weight: 600; color: var(--navy-800);
}
.faq-jump a:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-700); }
.acc-item[hidden] { display: none; }

/* ---------- Article ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.article-body h2 { margin-top: 1.7em; }
.article-body h3 { margin-top: 1.3em; font-size: 1.2rem; }
.takeaways { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.takeaways h2 { font-size: 1.15rem; margin-bottom: 12px; }
.takeaways ul { margin: 0; padding-left: 1.1em; }
.takeaways li { font-size: .95rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Consent bar ---------- */
.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 40px rgba(11,37,69,.14);
  padding: 16px 0;
}
.consent-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.consent-inner p { margin: 0; font-size: .9rem; max-width: 68ch; }
.consent-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 760px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-menu, .nav-phone { display: none; }
  .burger { display: flex; }
  .site-header.menu-open .nav-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 24px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: var(--shadow);
  }
  .site-header.menu-open .nav-menu .nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: 14px; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 4px 0 10px 12px;
    min-width: 0; display: none; margin-left: 14px;
  }
  .dropdown.wide { min-width: 0; }
  .dropdown.wide .dropdown-grid { grid-template-columns: 1fr; }
  .nav-menu > li.open .dropdown { display: block; transform: none; }
  .hero-grid, .split, .calc { grid-template-columns: 1fr; }
  .split-rev > *:first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .hero-float { right: 8px; bottom: -20px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .price-grid, .form-grid { grid-template-columns: 1fr; }
  .topbar-note { display: none; }
  .topbar .container { justify-content: center; }
  .section { padding: 56px 0; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav-actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .site-footer, .cta-band { display: none; }
}
