/* =============================================================
   CleverBuy Business — Design System
   Vanilla CSS. Mobile-first. No build step.

   Brand DNA (sampled from the official logo mark):
   - Blue  #006996  → primary / trust / action
   - Gold  #EACC72  → highlight / "buy"
   - Sage  #8AC0A2  → category
   - Lime  #D2EAA2  → category
   The four logo dots double as a functional colour-coding
   system across categories and process steps — the signature.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --blue: #006996;
  --blue-600: #04597f;
  --blue-700: #0b4e6e;
  --blue-900: #072b3d;
  --gold: #eacc72;
  --gold-ink: #7a5b12;
  --sage: #8ac0a2;
  --lime: #d2eaa2;

  /* Category tints (soft card backgrounds) */
  --tint-blue: #e2eef4;
  --tint-gold: #faf1d6;
  --tint-sage: #e6f2ec;
  --tint-lime: #eef7dc;

  /* Neutrals — cool, faintly blue (ties to brand, avoids warm-cream cliché) */
  --ink: #0b2733;
  --ink-soft: #33525f;
  --muted: #5d7883;
  --line: #e4ebee;
  --line-strong: #d3dee2;
  --paper: #ffffff;
  --mist: #f4f8f9;
  --mist-2: #eef4f5;

  /* Semantic */
  --ok: #2f8f6a;
  --ok-bg: #e6f4ee;
  --err: #c23b48;
  --err-bg: #fbe9ea;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Fluid type scale */
  --fs-eyebrow: 0.78rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.06rem, 0.98rem + 0.4vw, 1.22rem);
  --fs-h4: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 1vw, 1.85rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
  --fs-h1: clamp(2rem, 1.1rem + 4.6vw, 4.6rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — soft, layered, cool */
  --sh-sm: 0 1px 2px rgba(7, 43, 61, 0.05), 0 2px 6px rgba(7, 43, 61, 0.05);
  --sh-md: 0 2px 6px rgba(7, 43, 61, 0.05), 0 8px 20px rgba(7, 43, 61, 0.07), 0 18px 40px rgba(7, 43, 61, 0.05);
  --sh-lg: 0 4px 12px rgba(7, 43, 61, 0.06), 0 16px 36px rgba(7, 43, 61, 0.10), 0 40px 80px rgba(7, 43, 61, 0.09);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --header-h: 92px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;

  /* Z-index */
  --z-header: 100;
  --z-menu: 200;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.hero h1, .cta-close h2, .quote-aside h2 { letter-spacing: -0.03em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--mist { background: linear-gradient(180deg, #f6fafb 0%, #edf3f5 100%); }

.section-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold) 0 25%, var(--sage) 25% 50%, var(--blue) 50% 75%, var(--lime) 75% 100%);
}
.section-head--center .eyebrow { justify-content: center; }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  margin-top: var(--sp-4);
  max-width: 40rem;
  text-wrap: pretty;
}
.section-head--center .lead { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  min-height: 48px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(180deg, #0a7aab 0%, var(--blue) 55%, #00607f 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 105, 150, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 105, 150, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.04);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.btn-ghost { background: transparent; color: var(--ink); padding-inline: 0.75rem; }
.btn-ghost:hover { color: var(--blue); }

.btn-gold {
  background: linear-gradient(180deg, #f2d885 0%, var(--gold) 60%, #e2bf5c 100%);
  color: var(--gold-ink);
  box-shadow: 0 6px 16px rgba(234, 204, 114, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(234, 204, 114, 0.5); }

.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 1.9rem; min-height: 54px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--blue);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-pill);
  z-index: 300;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(7, 43, 61, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
/* Condense on scroll for a tighter, premium sticky state */
.site-header.is-stuck .nav { height: 66px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 54px; width: auto; transition: height 0.3s var(--ease); }
.site-header.is-stuck .brand img { height: 42px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-actions .btn { white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--mist-2); }
.nav-links a.is-active { color: var(--blue); background: var(--tint-blue); }

.nav-actions { display: none; align-items: center; gap: 0.6rem; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
}
.burger span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  padding: var(--sp-5) clamp(1.15rem, 4vw, 2.5rem) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a.m-link {
  padding: 0.95rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .m-actions { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 0.7rem; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 3.5rem); overflow: hidden; }

/* Staggered entrance on load (motion-safe) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual { animation: heroIn 0.7s var(--ease) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.33s; }
  .hero-visual { animation-delay: 0.22s; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 52% at 88% 6%, rgba(138, 192, 162, 0.24), transparent 62%),
    radial-gradient(50% 48% at 4% 92%, rgba(234, 204, 114, 0.22), transparent 62%),
    radial-gradient(42% 40% at 62% 40%, rgba(0, 105, 150, 0.07), transparent 70%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem 0.4rem 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  box-shadow: var(--sh-sm);
  margin-bottom: var(--sp-5);
}
.hero-badge b { color: var(--ink); font-weight: 600; }
.hero-badge .dots { display: inline-flex; }
.hero-badge .dots i {
  width: 15px; height: 15px; border-radius: 50%; display: block; margin-left: -5px;
  border: 2px solid #fff;
}
.hero-badge .dots i:nth-child(1) { background: var(--gold); margin-left: 0; }
.hero-badge .dots i:nth-child(2) { background: var(--sage); }
.hero-badge .dots i:nth-child(3) { background: var(--blue); }
.hero-badge .dots i:nth-child(4) { background: var(--lime); }

.hero h1 { font-size: var(--fs-h1); font-weight: 800; overflow-wrap: break-word; hyphens: auto; }
.hero h1 .accent {
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}
.hero-sup {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  margin-top: var(--sp-5);
  max-width: 33rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-6); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.hero-trust svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* Hero visual — the "copilot comparison" card (the signature) */
.hero-visual { position: relative; }
.copilot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  position: relative;
}
.copilot::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--gold), var(--sage), var(--blue), var(--lime));
}
.copilot-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}
.copilot-avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  display: grid; place-items: center; color: #fff;
}
.copilot-avatar svg { width: 20px; height: 20px; }
.copilot-top .who { font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.copilot-top .who span { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }
.copilot-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--ok); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.copilot-status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47,143,106,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(47,143,106,.45)} 70%{box-shadow:0 0 0 8px rgba(47,143,106,0)} 100%{box-shadow:0 0 0 0 rgba(47,143,106,0)} }

.copilot-ask {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--mist);
  border-radius: var(--r-md);
  padding: 0.7rem 0.9rem;
  margin-bottom: var(--sp-4);
}
.copilot-ask b { color: var(--ink); }

.opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.6rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.opt:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.opt-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.opt-ico svg { width: 20px; height: 20px; }
.opt .name { font-weight: 600; font-size: 0.9rem; line-height: 1.25; }
.opt .name span { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.opt .price { text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.opt .price span { display: block; font-weight: 400; font-size: 0.68rem; color: var(--muted); }
.opt--pick {
  border-color: var(--sage);
  background: var(--tint-sage);
  box-shadow: 0 0 0 3px rgba(138, 192, 162, 0.25);
}
.opt--pick .tag-pick {
  position: absolute;
}
.pick-flag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ok); margin-bottom: 0.5rem;
}
.pick-flag svg { width: 14px; height: 14px; }

.copilot-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line);
}
.copilot-foot .save { font-size: 0.82rem; color: var(--ink-soft); }
.copilot-foot .save b { color: var(--ok); font-family: var(--font-mono); }

/* Needs variant: solution mapping without prices */
.copilot--needs .opt { grid-template-columns: auto 1fr; }
.copilot--needs .copilot-foot .save b { color: var(--ink); font-family: var(--font-body); }

/* Floating accent chip on hero visual */
.float-chip {
  position: absolute;
  left: -16px;
  bottom: -22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 200px;
}
.float-chip .ci { width: 34px; height: 34px; border-radius: 10px; background: var(--tint-gold); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.float-chip .ci svg { width: 18px; height: 18px; }
.float-chip span { font-weight: 400; color: var(--muted); display: block; font-size: 0.72rem; }

/* ---------- 7. Logos / marca band ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  text-align: center;
}
.band p { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--muted); }

/* ---------- 8. Value grid ---------- */
.value-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(0, 105, 150, 0.18); }
.value-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.value-ico svg { width: 24px; height: 24px; }
.value-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.value-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 8b. Problems (¿Qué resolvemos?) ---------- */
.problems-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.problem-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--mist-2); color: var(--blue);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.problem-ico svg { width: 24px; height: 24px; }
.problem-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.problem-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 8c. Tech logos carousel ---------- */
.marquee-block { margin-top: clamp(2.5rem, 6vw, 4rem); }
.marquee-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: var(--sp-5);
}
.marquee-label b { color: var(--blue); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: none;
  width: 190px;
  height: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  padding: 1rem 1.5rem;
  box-shadow: var(--sh-sm);
  position: relative;
}
.marquee-item img { max-height: 40px; max-width: 122px; width: auto; object-fit: contain; }
.marquee-item--lark {
  width: 240px;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 105, 150, 0.16), var(--sh-md);
}
.marquee-item--lark img { max-height: 64px; max-width: 176px; }
.marquee-item--more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 210px;
  text-align: center;
  background: var(--mist);
  border-style: dashed;
  border-color: var(--line-strong);
}
.marquee-item--more b { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.marquee-item--more span { font-size: 0.68rem; color: var(--muted); line-height: 1.3; }
.lark-badge {
  position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: var(--blue);
  padding: 3px 9px; border-radius: var(--r-pill);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. How it works ---------- */
.steps { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.step-bar { height: 5px; width: 44px; border-radius: var(--r-pill); margin: var(--sp-3) 0 var(--sp-4); }
.step h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 10. Services ---------- */
.svc-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.svc {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.svc-ico { width: 50px; height: 50px; border-radius: 14px; background: #fff; display: grid; place-items: center; margin-bottom: var(--sp-4); box-shadow: var(--sh-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.svc:hover .svc-ico { transform: translateY(-3px); box-shadow: var(--sh-md); }
.svc-ico svg { width: 26px; height: 26px; color: var(--ink); }
.svc h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.svc p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.svc .benefit {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--sp-4);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
}
.svc .benefit svg { width: 15px; height: 15px; }
.svc .svc-link { margin-top: var(--sp-4); }
.svc--gold { background: var(--tint-gold); }
.svc--sage { background: var(--tint-sage); }
.svc--blue { background: var(--tint-blue); }
.svc--lime { background: var(--tint-lime); }

/* ---------- 11. Benefits (split) ---------- */
.benefits {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: start;
}
.benefit-list { display: grid; gap: var(--sp-3); }
.benefit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.benefit-row:last-child { border-bottom: 0; }
.benefit-row .bi { width: 40px; height: 40px; border-radius: 12px; background: var(--tint-blue); color: var(--blue); display: grid; place-items: center; flex: none; }
.benefit-row .bi svg { width: 20px; height: 20px; }
.benefit-row h4 { font-size: 1.05rem; margin-bottom: 2px; }
.benefit-row p { font-size: 0.92rem; color: var(--ink-soft); }

.panel-dark {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--sh-lg);
}
.panel-dark::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234,204,114,.35), transparent 70%);
}
.panel-dark .eyebrow { color: var(--gold); }
.panel-dark h3 { color: #fff; font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-6); position: relative; }
.panel-stat { }
.panel-stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--gold); letter-spacing: -0.02em; }
.panel-stat .l { font-size: 0.85rem; color: rgba(255,255,255,0.82); margin-top: 2px; }

/* ---------- 12. Quote form ---------- */
.quote {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.quote-aside h2 { font-size: var(--fs-h2); }
.quote-aside .lead { margin-top: var(--sp-4); }
.quote-checklist { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.quote-checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.95rem; color: var(--ink-soft); }
.quote-checklist svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }
.quote-help {
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  background: var(--mist);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.quote-help b { color: var(--ink); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--sh-md);
}
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; margin-bottom: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--blue); }
.field .opt-tag { font-weight: 400; color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(7, 43, 61, 0.04);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d7883' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.field input::placeholder,
.field textarea::placeholder { color: #9fb2ba; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 105, 150, 0.15);
}
.field .error-msg { font-size: 0.8rem; color: var(--err); display: none; align-items: center; gap: 0.35rem; }
.field .error-msg svg { width: 14px; height: 14px; flex: none; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(194, 59, 72, 0.12); }
.field.is-invalid .error-msg { display: inline-flex; }

.form-consent { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; margin: var(--sp-2) 0 var(--sp-5); font-size: 0.82rem; color: var(--muted); }
.form-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); }
.form-consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.form-note { margin-top: var(--sp-4); font-size: 0.8rem; color: var(--muted); text-align: center; }

/* form states */
.form-alert {
  display: none;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  margin-bottom: var(--sp-4);
}
.form-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-alert.is-shown { display: flex; }
.form-alert--ok { background: var(--ok-bg); color: #1f6d50; }
.form-alert--err { background: var(--err-bg); color: var(--err); }

.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn-label { opacity: 0.9; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success takeover */
.form-success { display: none; text-align: center; padding: var(--sp-5) var(--sp-2); }
.form-success.is-shown { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center; margin: 0 auto var(--sp-5);
}
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.form-success p { color: var(--ink-soft); max-width: 30rem; margin-inline: auto; }
.form-success .ref { font-family: var(--font-mono); font-size: 0.85rem; margin-top: var(--sp-4); color: var(--ink); background: var(--mist); display: inline-block; padding: 0.4rem 0.8rem; border-radius: var(--r-pill); }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 46rem; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[data-open="true"] { border-color: rgba(0, 105, 150, 0.3); box-shadow: var(--sh-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-q .ico { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s; }
.faq-q .ico svg { width: 14px; height: 14px; }
.faq-item[data-open="true"] .faq-q .ico { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 14. CTA closing ---------- */
.cta-close {
  background: linear-gradient(155deg, var(--blue), var(--blue-700) 70%, var(--blue-900));
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 6vw, 4rem);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 78, 113, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.cta-close::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(234,204,114,.28), transparent 60%),
    radial-gradient(40% 60% at 85% 90%, rgba(138,192,162,.28), transparent 60%);
}
.cta-close > * { position: relative; }
.cta-close .eyebrow { color: var(--gold); justify-content: center; }
.cta-close h2 { color: #fff; font-size: var(--fs-h2); max-width: 20ch; margin-inline: auto; }
.cta-close p { color: rgba(255,255,255,0.85); margin: var(--sp-4) auto 0; max-width: 40rem; font-size: var(--fs-lead); }
.cta-close .hero-cta { justify-content: center; margin-top: var(--sp-6); }
.cta-close .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-close .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
.footer-brand img { height: 54px; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: 0.92rem; max-width: 30rem; }
.footer-mantra { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: var(--sp-4); }
.footer-lark { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: var(--sp-4); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: var(--sp-4); font-weight: 700; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.72); transition: color 0.18s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; }
.footer-bottom a { color: rgba(255,255,255,0.72); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 16. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 559px) {
  /* Keep the hero card uncluttered on small screens. */
  .float-chip { display: none; }
  .brand img { height: 46px; }
}
@media (min-width: 560px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .problems-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .burger { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .value-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); }
  .quote { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-8); }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
}
@media (min-width: 1100px) {
  .panel-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-actions .btn-ghost { display: inline-flex; }
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
