html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: #ffffff; }
a { color: #052b7a; text-decoration: none; }
a:hover { color: #001c32; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.2,.7,.3,1), transform .75s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
@keyframes zapFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes zapCaret { 0%,45% { opacity: 1; } 55%,100% { opacity: 0; } }
@keyframes zapPulse { 0%,100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.18); opacity: .15; } }
@keyframes zapMarquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
[data-team-scroll]::-webkit-scrollbar { display: none; }
[data-lift] { transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease; }
[data-lift]:hover { transform: translateY(-7px); box-shadow: 0 24px 54px rgba(20,30,60,0.16); }
[data-node] { transition: background .25s ease, color .25s ease, box-shadow .25s ease; cursor: default; }
[data-node]:hover { background: #ffc600 !important; color: #001c32 !important; box-shadow: 0 8px 26px rgba(255,198,0,0.35); }
@keyframes zapSignPulse { 0% { transform: scale(1); background: #e4eeff; box-shadow: 0 0 0 0 rgba(255,198,0,0.85); } 55% { transform: scale(1.16); background: #ffc600; box-shadow: 0 0 0 10px rgba(255,198,0,0); } 100% { transform: scale(1); background: #e4eeff; box-shadow: 0 0 0 0 rgba(255,198,0,0); } }
[data-goal-sign] { animation: zapSignPulse 1.9s ease-out infinite !important; transition: transform .2s ease; }
[data-goal]:hover [data-goal-sign] { background: #ffc600 !important; transform: scale(1.12); animation: none; }
[data-goal] { cursor: pointer; transition: background .25s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2,.7,.3,1); }
[data-goal]:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(20,30,60,0.14); }
[data-era] { transition: background .25s ease; }
[data-era]:hover { background: #f3f8fe; }
[data-brand] { transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease; }
[data-brand]:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 18px 40px rgba(20,30,60,0.16); }
[data-sidecta] > a { transition: filter .25s ease, transform .25s cubic-bezier(.2,.7,.3,1); }
[data-sidecta] > a:hover { filter: brightness(1.06); transform: translateY(-3px); }

@media (max-width: 560px) {
  [data-sidecta] { right: 12px !important; }
  [data-sidecta] > a:nth-child(2) { flex: 1; justify-content: center; }
}
@media (max-width: 1240px) {
  [data-sidecta] { left: 12px !important; bottom: 12px !important; gap: 8px !important; }
  [data-footer] { padding-bottom: 100px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}

/* ---- interaction states lifted from style-hover / style-focus ---- */
[data-zs="zs1"]:focus { border-color: #052b7a !important; background: #ffffff !important; }
[data-zs="zs2"]:hover { border-color: #052b7a !important; background: #ffffff !important; }
[data-zs="zs3"]:hover { background: #f3f8fe !important; }
[data-zs="zs4"]:hover { filter: brightness(0.94) !important; }
[data-zs="zs5"]:hover { background: #052b7a !important; color: #ffffff !important; }

/* ---- server-rendered validation feedback ---- */
.zap-errors { background: #fdecec; border: 1px solid #f5b5b5; color: #8c1c1c;
  border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.6; margin: 0; }
.zap-errors strong { display: block; margin-bottom: 2px; }
.zap-errors ul { margin: 6px 0 0; padding-inline-start: 20px; }
/* The honeypot must be invisible WITHOUT being parked off-canvas: in an RTL
   document `left:-9999px` is inside the scrollable area, and it gave the page
   9999px of blank horizontal scroll. This clips it to nothing in place. */
.zap-hp { position: absolute !important; width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important; border: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important; white-space: nowrap !important; }

[data-lead-form] button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* ==========================================================================
   Responsive layer
   The design is fluid (auto-fit grids + clamp() type), so this only corrects
   the places where it does not survive a narrow viewport. Inline styles win
   over stylesheets, hence !important on the overrides.
   ========================================================================== */

/* Safety net: no stray element can ever create phantom sideways scroll again.
   `clip` rather than `hidden` — hidden on the root turns it into a scroll
   container and breaks position: sticky/fixed. */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }

/* The header phone icon only appears once the number is hidden (phones). */
.zap-ico-phone { display: none; flex: none; }

/* Nothing should ever be forced wider than the screen. */
img, svg, video, iframe, table { max-width: 100%; }

/* ---------- tablet and below ---------- */
@media (max-width: 1024px) {
  [data-page] section { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  /* Reclaim the side gutters — 24px each side of a 375px screen is a lot. */
  [data-page] section,
  [data-page] header > div,
  [data-page] footer { padding-left: 16px !important; padding-right: 16px !important; }

  /* Single column everywhere: auto-fit grids with a 260-340px floor still try
     to sit two-up inside 343px of content width. */
  [data-page] [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* A nowrap pill row cannot fit four pills on a phone — let it wrap. */
  [data-page] [style*="flex-wrap: nowrap"] { flex-wrap: wrap !important; }

  /* Cards and form panels: less inner padding, more room for the words. */
  [data-page] [style*="border-radius: 24px"],
  [data-page] [style*="border-radius: 22px"] { padding: 22px 18px !important; }

  /* --- header: logo + two icon buttons + CTA, all inside 375px --- */
  [data-page] header > div { padding: 9px 14px !important; gap: 8px !important; }
  [data-page] header img { height: 26px !important; }
  /* the phone number collapses to a round icon button */
  [data-page] header a[href^="tel:"] .zap-phone-num { display: none; }
  [data-page] header a[href^="tel:"] { width: 40px; height: 40px; border-radius: 50%;
    background: #052b7a; color: #ffffff !important; justify-content: center;
    gap: 0 !important; flex: none; }
  [data-page] header a[href^="tel:"] .zap-ico-phone { display: block; }
  [data-page] header a[href^="#lead-form"] { font-size: 14px !important;
    padding: 10px 14px !important; white-space: nowrap; }

  /* Comfortable tap targets (Apple/Google both say ~44px). */
  [data-page] a[href^="tel:"],
  [data-page] a[href^="https://wa.me"] { min-height: 44px; display: inline-flex;
    align-items: center; }
  [data-page] input[type="checkbox"] { width: 22px !important; height: 22px !important; }
  [data-page] label:has(> input[type="checkbox"]) { padding: 6px 0; }

  /* --- carousels: give the cards the full width --- */
  /* The track window carries margin: 0 56px to clear the prev/next arrows.
     On a 343px row that leaves 231px for a 318px card, so every card was
     clipped on both edges. The arrows are already position:absolute, so they
     can float over the track instead of reserving space for it. */
  [data-team-row] > div,
  [data-carousel] > div { margin-left: 0 !important; margin-right: 0 !important; }
  [data-team-prev], [data-team-next],
  [data-carousel-prev], [data-carousel-next] {
    width: 38px !important; height: 38px !important; opacity: .93; }

  /* --- floating bottom action bar --- */
  /* The three pills arrive at 46 / 68 / 44px tall, which reads as clutter
     floating over the page. One height, one shadow, evenly spaced. */
  [data-sidecta] { bottom: 10px !important; left: 10px !important; right: 10px !important;
    gap: 8px !important; align-items: center !important; }
  [data-sidecta] > a { height: 48px !important; min-height: 48px !important;
    padding: 0 16px !important; display: inline-flex !important;
    align-items: center !important; justify-content: center !important;
    line-height: 1 !important; font-size: 15px !important;
    box-shadow: 0 8px 24px rgba(0,10,30,.35) !important; }
  [data-sidecta] > a[href^="https://wa.me"] { width: 48px !important; padding: 0 !important; }

  /* Keep the bar from sitting on top of the last content. */
  [data-footer] { padding-bottom: 96px !important; }

  /* The lane diagram is a 1000x120 viewBox with no text in it, so it scales
     down cleanly. Letting it fit beats making the visitor scroll a strip
     sideways inside a page that already scrolls. */
  [data-page] [style*="min-width: 720px"] { min-width: 0 !important; width: 100% !important; }
  [data-page] [style*="min-width: 720px"] > svg,
  [data-page] svg[viewBox^="0 0 1000"] { width: 100% !important; height: auto !important; }

  /* Anything genuinely too wide to scale keeps scrolling, but like a native
     strip rather than a stuck box. */
  [data-page] [style*="overflow-x: auto"] { -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; overscroll-behavior-x: contain; }

  /* Text links (email, phone) need a finger-sized row, not a 22px line. */
  [data-page] a[href^="mailto:"],
  [data-page] footer a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------- very narrow phones ---------- */
@media (max-width: 380px) {
  [data-page] section { padding-left: 12px !important; padding-right: 12px !important; }
  /* the team cards are a fixed 300px + padding, which overflows a 320px phone */
  [data-page] [data-team-card] { width: 250px !important; min-width: 0 !important; }
}
