/* =========================================================================
   home.css - components: light nav, collage hero, sections, mobile menu,
   footer, responsive. Design source: galway-hero.html (approved).
   Violet family = structure; blue accent = action/emphasis only.
   rgba()/hex literals inside the hero are the approved design's data-viz and
   neutral values (incl. third-party AI brand colours); brand colours use tokens.
   ========================================================================= */

/* ---------- Sticky header / nav (LIGHT theme) ---------- */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: 84px; display: flex;
  align-items: center; justify-content: space-between; padding: 0 clamp(20px,5vw,56px);
  transition: background .4s, box-shadow .4s, height .35s; }
.site-nav.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); height: 72px;
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(38,20,80,0.08); }
.nav-logo-wrap { display: flex; flex-direction: column; justify-content: center; gap: 3px; text-decoration: none; }
/* Logo lockup is 600x274 (~2.19:1) - keep the box ratio-correct so it never letterboxes oddly */
.nav-logo { display: block; width: 123px; height: 56px;
  background: url('../images/logo.webp') left center / contain no-repeat; transition: height .35s, width .35s; }
.site-nav.scrolled .nav-logo { height: 46px; width: 101px; }
.nav-logo-tag { font-family: var(--head); font-size: 10px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #34425C; text-decoration: none; font-size: 15px; font-weight: 500; transition: color var(--t-fast); }
.nav-links > li > a:not(.nav-cta) { position: relative; padding: 6px 0; }
.nav-links > li > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links > li > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--grad-cta); color: #fff !important; padding: 12px 22px; border-radius: var(--r-sm);
  font-family: var(--head); font-weight: 700; letter-spacing: var(--ls-btn); font-size: 14px;
  box-shadow: 0 16px 30px -12px rgba(124,58,237,0.6);
  transition: box-shadow var(--t-base), transform var(--t-base), filter var(--t-base); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -12px rgba(124,58,237,0.72); filter: brightness(1.05); }
.nav-has-dropdown { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-toggle svg { opacity: .7; }
.nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: var(--r);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift); padding: 10px; list-style: none; margin: 10px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s; }
.nav-has-dropdown:hover .nav-dropdown, .nav-has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { color: var(--ink); display: block; padding: 10px 14px; border-radius: var(--r-sm); }
.nav-dropdown a:hover { background: var(--off); color: var(--brand); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 10px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Mobile slide-in menu (dark brand panel) ---------- */
.m-menu { position: fixed; inset: 0; z-index: 1100; background: var(--brand-dark); transform: translateX(100%);
  transition: transform .45s var(--ease); visibility: hidden; }
.m-menu.is-open { transform: translateX(0); visibility: visible; }
.m-menu__close { position: absolute; top: 22px; right: 22px; background: none; border: 0; color: #fff; cursor: pointer; }
.m-menu__inner { display: flex; flex-direction: column; height: 100%; padding: 90px 28px 34px; overflow-y: auto; }
.m-menu__nav { display: flex; flex-direction: column; }
.m-link, .m-acc { color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 20px;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; cursor: pointer; }
.m-acc { display: flex; justify-content: space-between; align-items: center; }
.m-acc__icon::before { content: '+'; }
.m-acc[aria-expanded="true"] .m-acc__icon::before { content: '\2212'; }
.m-acc__panel { display: none; padding: 6px 0 10px 14px; }
.m-acc__panel.open { display: block; }
.m-acc__panel a { display: block; color: rgba(255,255,255,0.75); text-decoration: none; padding: 10px 0; }
.m-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.m-phone { color: var(--accent-light); font-family: var(--head); font-weight: 800; text-decoration: none; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar { display: none; position: fixed; inset: auto 0 0 0; z-index: 900; }
.mobile-bar a { flex: 1; text-align: center; padding: 15px; font-family: var(--head); font-weight: 700;
  letter-spacing: var(--ls-btn); font-size: 14px; text-decoration: none; }
.mcb-call { background: var(--brand-dark); color: #fff; }
.mcb-cta { background: var(--grad-cta); color: #fff; }

/* =========================================================================
   HOME HERO - dashboard collage (from galway-hero.html)
   ========================================================================= */
/* z-index:1 creates a stacking context so the collage cards (z 4-6) can never
   paint over siblings like the trust bar (Dave's screenshot caught them doing it). */
.hero-collage { position: relative; z-index: 1; background: var(--off); padding: 136px 0 64px; overflow: visible; }
.hero-collage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 620px at 94% 20%, rgba(147,51,234,.13), transparent 62%),
    radial-gradient(680px 520px at 74% 98%, rgba(59,130,246,.10), transparent 60%),
    radial-gradient(520px 480px at 6% 88%, rgba(139,92,246,.10), transparent 60%); }
.hero-collage > * { position: relative; z-index: 1; }
.hero-collage__grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: clamp(24px,3vw,56px); align-items: center; max-width: 1560px; } /* hero runs wider than standard sections, like the prototype */

/* The badge pill IS the page's H1 (keyword-optimised, styled small); reset heading defaults. */
.badge { display: inline-flex; align-items: center; gap: 10px; background: #EFE9FE; color: #6D28D9;
  font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.4; padding: 9px 16px; border-radius: 30px; margin: 0 0 26px; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #8B5CF6;
  box-shadow: 0 0 0 4px rgba(139,92,246,.20); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 4px rgba(139,92,246,.20); } 50% { box-shadow: 0 0 0 7px rgba(139,92,246,.05); } }

/* Oversized display headline (an H2; the small pill above it carries the H1).
   Sized + balanced to sit on exactly TWO lines in the hero column. */
.hero-display { font-family: var(--head); font-weight: 800; letter-spacing: -.025em; line-height: 1.02;
  font-size: clamp(38px, 4.2vw, 58px); color: var(--ink); margin: 0 0 24px; text-wrap: balance; }
.hero-display .blue { background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-right: .04em; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-display .blue { color: var(--brand); background: none; }
}
.lead { font-size: clamp(16.5px,1.3vw,20px); color: #57526F; max-width: 34ch; margin: 0 0 32px; font-weight: 400; line-height: 1.6; }

/* Hero left column: heading, lead and buttons share ONE uniform width. */
.hero-collage .hero-left { max-width: 660px; }
.hero-collage .lead { max-width: none; }
.hero-collage .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-collage .cta-row .btn { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.btn .arw { transition: transform .4s var(--ease); }
.btn-primary:hover .arw { transform: translateX(5px); }

.proof { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.stack { display: flex; align-items: center; }
.stack .av { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; margin-left: -14px;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(15,27,51,.18); transition: transform .35s var(--ease); }
.stack .av span { color: #fff; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.stack .av:first-child { margin-left: 0; }
.stack:hover .av { transform: translateX(4px); }
.stack .av:hover { transform: translateY(-6px) scale(1.08); z-index: 5; }
.stack .more { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; margin-left: -14px;
  background: #fff; color: var(--brand); font-family: var(--head); font-weight: 700; font-size: 14px;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(15,27,51,.18); z-index: 6; }
.proof-txt .stars { display: flex; gap: 2px; margin-bottom: 4px; }
.proof-txt .stars svg { width: 17px; height: 17px; color: var(--wp--preset--color--star); }
.proof-txt small { font-size: 14px; color: #57526F; font-weight: 500; display: block; line-height: 1.35; }
.star-anim { transform: scale(0) rotate(-30deg); }
.star-anim.in { transform: none; transition: transform .5s var(--ease); }

/* ---------- Collage ---------- */
.collage { position: relative; display: flex; flex-direction: column; gap: 16px; } /* mobile default: stacked */
.card { background: #fff; border: 1px solid #ECE9F5; border-radius: var(--r-lg);
  box-shadow: 0 24px 48px -24px rgba(38,20,80,.24), 0 8px 20px -12px rgba(38,20,80,.14);
  padding: 18px; position: relative; transform-style: preserve-3d; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(139,92,246,.12), transparent 60%);
  opacity: 0; transition: opacity .3s; }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-5px); box-shadow: 0 36px 70px -26px rgba(38,20,80,.42); }
/* Shine sweep across a card on hover (extra interactivity, Dave's ask) */
.hero-collage .card::after { content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); transition: left .8s var(--ease); z-index: 2; pointer-events: none; }
.hero-collage .card:hover::after { left: 140%; }
@media (prefers-reduced-motion: reduce) { .hero-collage .card::after { display: none; } }
.card h3 { font-family: var(--head); font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 0 0 14px; letter-spacing: 0; }
.card .link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-light); font-size: 12.5px;
  font-weight: 600; text-decoration: none; margin-top: 12px; transition: gap .3s; }
.card .link:hover { gap: 10px; }
.up { color: var(--success); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-size: 12px; }
.up svg { width: 11px; height: 11px; }

/* keyword card */
.kw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F4F1FB; }
.kw-row:last-of-type { border-bottom: 0; }
.kw-name { font-size: 13px; color: #3A4863; font-weight: 500; }
.kw-right { display: flex; align-items: center; gap: 8px; }
.rank { font-family: var(--head); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.rank.top { color: var(--accent-light); }

/* performance card */
.perf .phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.drop { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: #3A4863;
  background: #F4F7FB; border: 1px solid #ECE9F5; border-radius: 9px; padding: 6px 11px; cursor: pointer; }
.drop svg { width: 11px; height: 11px; opacity: .7; }
.pmetrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.pm .pl { font-size: 11px; color: #9A93B0; font-weight: 500; margin-bottom: 5px; white-space: nowrap; }
.pm .pv { font-family: var(--head); font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1; }
.pm .pd { font-size: 11px; margin-top: 4px; }
.plegend { display: flex; gap: 16px; margin-bottom: 6px; }
.plegend .lg { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #57526F; font-weight: 500; }
.plegend .sw { width: 16px; height: 3px; border-radius: 3px; }
.chart-wrap { position: relative; }
#perfChart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.grid-line { stroke: #F0F3F8; stroke-width: 1; }
.axis-label { font-family: var(--body); fill: #AAB4C4; font-weight: 500; }
.pline { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.parea { opacity: .10; }
.growth-badge { position: absolute; background: var(--grad-cta); color: #fff; border-radius: 11px;
  padding: 7px 11px; font-size: 11px; font-weight: 600; box-shadow: 0 12px 24px -10px rgba(124,58,237,.6);
  transform: scale(.6); opacity: 0; pointer-events: none; }
.growth-badge b { font-family: var(--head); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 3px; }
.growth-badge.in { transform: scale(1); opacity: 1; transition: transform .6s var(--ease), opacity .5s; }
.cross-line { stroke: #C4CEDC; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .15s; }
.tip { position: absolute; pointer-events: none; background: #0F1B33; color: #fff; border-radius: 9px; padding: 8px 10px;
  font-size: 11px; line-height: 1.5; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
  box-shadow: 0 12px 24px -8px rgba(15,27,51,.5); white-space: nowrap; z-index: 8; }
.tip .date { font-weight: 600; margin-bottom: 4px; }
.tip .row { display: flex; align-items: center; gap: 6px; }
.tip .d { width: 8px; height: 8px; border-radius: 50%; }
.tip b { font-family: var(--head); font-weight: 600; }

/* backlink card */
.bl .big { font-family: var(--head); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.bl .sub { font-size: 12px; color: #9A93B0; display: flex; align-items: center; gap: 8px; }
.spark { width: 100%; height: 52px; margin: 12px 0; overflow: visible; }
.spark path { fill: none; stroke: var(--accent-light); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bl-div { border-top: 1px solid #F4F1FB; padding-top: 12px; }

/* local seo card */
.map { position: relative; border-radius: 12px; overflow: hidden; height: 132px; margin-bottom: 12px; background: #EAF1F6; }
.map svg { display: block; width: 100%; height: 100%; }
.gauge { position: absolute; top: 10px; right: 10px; width: 74px; height: 74px; background: #fff; border-radius: 50%;
  box-shadow: 0 8px 20px -8px rgba(15,27,51,.3); display: grid; place-items: center; }
.gauge svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.gauge .gtrack { fill: none; stroke: #EAEFF6; stroke-width: 6; }
.gauge .gval { fill: none; stroke: #8B5CF6; stroke-width: 6; stroke-linecap: round; }
.gauge .glabel { position: absolute; text-align: center; }
.gauge .glabel .n { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1; }
.gauge .glabel .t { font-size: 7px; color: #9A93B0; font-weight: 600; }
.local-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #3A4863; font-weight: 500; padding: 4px 0; }
.local-row .k { color: #57526F; }

/* traffic donut card */
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { width: 112px; height: 112px; flex: 0 0 112px; position: relative; }
.donut svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.donut .seg { fill: none; stroke-width: 15; }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; place-content: center; text-align: center; }
.donut .center b { font-family: var(--head); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1; }
.donut .center span { font-size: 9px; color: #9A93B0; font-weight: 600; }
.tlegend { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #3A4863; font-weight: 500; }
.tl .d { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.tl .p { margin-left: auto; font-weight: 600; color: var(--ink); }

/* ai visibility card */
.ai-cap { font-size: 11.5px; color: #9A93B0; margin: -4px 0 12px; font-weight: 500; }
.ai-row { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: center; padding: 8px 0; }
.ai-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.ai-ico svg { width: 17px; height: 17px; }
.ai-mid { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ai-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ai-right { display: flex; align-items: center; gap: 7px; }
.ai-val { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--ink); }
.ai-track { height: 7px; border-radius: 6px; background: #EEECF6; overflow: hidden; }
.ai-bar { height: 100%; width: 0; border-radius: 6px; background: var(--c);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); transition: width 1.1s var(--ease); }

/* floating decor (desktop only) */
.decor { display: none; }

/* In G mode GSAP writes card transforms every frame; the base .card transition
   on transform would damp/fight it. Keep only the non-transform transitions. */
html.gsap .hero-collage .card, html.gsap .hero-collage .card.reveal {
  transition: box-shadow .4s var(--ease), border-color var(--t-fast); }

/* hero reveal states (orchestrated by hero-home.js, not site.js) */
.hero-collage .reveal, .trust.reveal { opacity: 0; transform: translateY(24px); }
.hero-collage .reveal.in, .trust.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-collage .card.reveal { transform: translateY(30px) scale(.96); }
.hero-collage .card.reveal.in { transform: none; }

/* ---------- Trust bar: floating card STRADDLING the hero -> dark-section
   boundary (no white band between sections) ---------- */
/* Homepage sub-hero (feature-grid) gets extra top breathing room so the eyebrow +
   heading are not jammed against the top edge under the trust card. */
.home-services { padding-block-start: clamp(80px, 11vw, 140px); }

/* Subtle film grain on plain light sections so they are not flat (matches the hero's
   textured feel). Low-alpha greyscale noise, tiled, sits behind all content. */
.section-white, .section-off { background-repeat: repeat; background-size: 170px 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='sg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.08'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23sg)'/%3E%3C/svg%3E"); }
.section-white { background-color: var(--white); }
.section-off { background-color: var(--off); }

.trust-wrap, #main > .trust-wrap { position: relative; z-index: 10; padding-inline: clamp(20px,5vw,56px);
  margin-block-start: -44px; margin-block-end: -58px; }
/* The lower half of the wrap paints DARK so any residual flow-height strip
   matches the section below - a white gap is physically impossible, at any
   card height or viewport (the straddle margins no longer need exact maths). */
.trust-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; bottom: -60px;
  background: var(--brand-dark); z-index: -1; }
.trust { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch;
  background: #fff; border: 1px solid #ECE9F5; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 60px -26px rgba(38,20,80,.38), 0 8px 20px -12px rgba(38,20,80,.14);
  max-width: 1320px; margin: 0 auto; } /* snapped to the wide rail so it aligns with the section below */
.trust::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-cta); }
.trust .ti { display: flex; align-items: center; gap: 14px; padding: 24px 26px; min-width: 0; }
.trust .ti + .ti { border-left: 1px solid #F0EDF8; }
.trust .ti-ico { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: #EFE9FE; color: var(--brand); }
.trust .ti-ico svg { width: 19px; height: 19px; }
.trust .ti-txt { display: grid; gap: 2px; min-width: 0; }
.trust .ti-txt strong { font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.trust .ti-txt small { font-size: 12px; color: #9A93B0; line-height: 1.45; }
@media (max-width: 1100px) {
  /* The trust card stacks into 2+ rows below 1100px, so the desktop straddle (negative
     top/bottom margins + dark under-paint) collides with the hero card above and the dark
     section below. Drop the straddle and let it sit in normal flow on the hero off-white. */
  .trust-wrap { margin-block: 0; background: var(--off); padding-block: 40px 28px; }
  .trust-wrap::before { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust .ti + .ti { border-left: 0; }
  .trust .ti:nth-child(2n) { border-left: 1px solid #F0EDF8; }
  .trust .ti:nth-child(n+3) { border-top: 1px solid #F0EDF8; }
}
@media (max-width: 620px) {
  .trust { grid-template-columns: 1fr; }
  .trust .ti { padding: 16px 20px; }
  .trust .ti:nth-child(2n) { border-left: 0; }
  .trust .ti:nth-child(n+2) { border-top: 1px solid #F0EDF8; }
}

/* ================= DESKTOP COLLAGE (overlapping) ================= */
@media (min-width: 1101px) {
  /* Lower cards (c-traffic/c-ai) extend past the collage box; the extra hero
     bottom padding contains them so they never collide with the trust bar. */
  .hero-collage { padding-bottom: 200px; }
  .collage { display: block; height: 800px; }
  .collage .card { position: absolute; }
  .c-keyword  { top: 4%;  left: 2%;  width: 31%; z-index: 4; }
  .c-perf     { top: 2%;  left: 26%; width: 52%; z-index: 5; }
  .c-local    { top: 16%; left: 80%; width: 26%; z-index: 6; }
  .c-backlink { top: 44%; left: 6%;  width: 24%; z-index: 4; }
  .c-traffic  { top: 57%; left: 52%; width: 34%; z-index: 6; }
  .c-ai       { top: 58%; left: 24%; width: 32%; z-index: 5; }

  .decor { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: transform .5s ease; }
  .orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(124,58,237,.16); }
  .orbit.o1 { width: 560px; height: 560px; top: 12%; left: 18%; }
  .orbit.o2 { width: 760px; height: 760px; top: 2%; left: 8%; border-color: rgba(37,99,235,.10); }
  .blob { position: absolute; width: 340px; height: 340px; right: -4%; bottom: -6%;
    border-radius: 46% 54% 40% 60%/55% 45% 55% 45%;
    background: radial-gradient(circle at 35% 35%, rgba(139,92,246,.5), rgba(124,58,237,.28));
    filter: blur(6px); opacity: .55; animation: blobMorph 14s ease-in-out infinite; }
  @keyframes blobMorph { 0%,100% { border-radius: 46% 54% 40% 60%/55% 45% 55% 45%; } 50% { border-radius: 58% 42% 55% 45%/42% 58% 42% 58%; } }
  .float-sq { position: absolute; top: -2%; right: 4%; width: 66px; height: 66px; border-radius: var(--r-lg);
    background: linear-gradient(150deg,#A78BFA,#7C3AED); box-shadow: 0 18px 34px -12px rgba(124,58,237,.6);
    display: grid; place-items: center; color: #fff; animation: floaty 6s ease-in-out infinite; }
  .float-sq svg { width: 30px; height: 30px; }
  .fdot { position: absolute; border-radius: 50%; animation: floaty 7s ease-in-out infinite; }
  .fdot.d1 { width: 14px; height: 14px; background: #8B5CF6; top: 20%; left: 12%; animation-delay: .4s; }
  .fdot.d2 { width: 10px; height: 10px; background: #2563EB; top: 8%; left: 44%; animation-delay: 1.2s; }
  .fdot.d3 { width: 12px; height: 12px; background: #2563EB; top: 74%; left: 2%; animation-delay: .8s; }
  .fdot.d4 { width: 9px; height: 9px; background: #8B5CF6; top: 64%; left: 44%; animation-delay: 1.6s; }
  .dots-grid { position: absolute; width: 100px; height: 80px;
    background-image: radial-gradient(#C7D2E4 1.6px, transparent 1.6px); background-size: 15px 15px; opacity: .6; }
  .dots-grid.g1 { top: 66%; left: 2%; }
  .dots-grid.g2 { top: 6%; right: -2%; width: 120px; height: 120px; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
}

/* =========================================================================
   Background sections (.bgsec) - the section-*.webp files ARE backgrounds.
   Copy sits on the image's empty side; a scrim keeps text AA-readable.
   Modifiers: --right (copy right), --dark (dark image, light text).
   ========================================================================= */
.bgsec { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; }
.bgsec::before { content: ""; position: absolute; inset: 0; }
.bgsec--light::before { background: linear-gradient(100deg, rgba(252,251,254,0.94) 0%, rgba(252,251,254,0.86) 42%, rgba(252,251,254,0.30) 78%, rgba(252,251,254,0.10) 100%); }
.bgsec--light.bgsec--right::before { background: linear-gradient(-100deg, rgba(252,251,254,0.94) 0%, rgba(252,251,254,0.86) 42%, rgba(252,251,254,0.30) 78%, rgba(252,251,254,0.10) 100%); }
.bgsec--dark { color: #fff; }
.bgsec--dark::before { background: linear-gradient(100deg, rgba(27,17,64,0.93) 0%, rgba(27,17,64,0.82) 45%, rgba(27,17,64,0.55) 100%); }
.bgsec--dark.bgsec--centre::before { background: rgba(27,17,64,0.85); }
.bgsec__inner { position: relative; max-width: 1320px; margin-inline: auto; padding: clamp(64px,9vw,130px) clamp(20px,5vw,56px); }
.bgsec__copy { max-width: 560px; }
.bgsec--right .bgsec__inner { display: flex; justify-content: flex-end; }
.bgsec--dark .section-title { color: #fff; }
.bgsec--dark .section-body, .bgsec--dark .section-sub { color: rgba(255,255,255,0.78); }
.bgsec--dark .eyebrow { color: var(--brand-light); }

/* Designed check-lists inside background sections: each point is a glass row
   card with a gradient tick chip (replaces the bare tick-list look). */
.bgsec .check-list { gap: 12px; }
.bgsec .check-list li { align-items: center; border-radius: var(--r-sm); padding: 13px 16px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.bgsec .check-list .check { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 9px;
  background: var(--grad-cta); color: #fff; display: grid; place-items: center; font-size: 12px;
  box-shadow: 0 6px 16px -6px rgba(124,58,237,0.6); }
.bgsec--dark .check-list li { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.11); backdrop-filter: blur(6px); }
.bgsec--dark .check-list li:hover { border-color: rgba(139,92,246,0.55); background: rgba(255,255,255,0.09); transform: translateX(4px); }
.bgsec--light .check-list li { background: rgba(255,255,255,0.85); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.bgsec--light .check-list li:hover { border-color: rgba(124,58,237,0.4); transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .bgsec .check-list li { transition: none; } .bgsec .check-list li:hover { transform: none; } }

/* Feature mini-cards (fx-grid): the designed replacement for tick-lists on the
   homepage background sections. Icon chip + bold title + muted line, 2-up,
   odd last item spans full width so counts of 3 or 5 stay balanced. */
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.fx-grid > .fx-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fx-card { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--r); padding: 16px 18px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.fx-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; }
.fx-ico svg { width: 19px; height: 19px; }
.fx-txt { display: grid; gap: 3px; min-width: 0; }
.fx-txt strong { font-family: var(--head); font-weight: 700; font-size: 15px; line-height: 1.35; }
.fx-txt small { font-size: 13px; line-height: 1.55; }
.bgsec--dark .fx-card { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.11); backdrop-filter: blur(6px); }
.bgsec--dark .fx-card:hover { border-color: rgba(139,92,246,0.55); background: rgba(255,255,255,0.09); transform: translateY(-3px); }
.bgsec--dark .fx-ico { background: rgba(124,58,237,0.2); border: 1px solid rgba(139,92,246,0.45); color: var(--brand-light);
  box-shadow: 0 0 20px -6px rgba(124,58,237,0.5); }
.bgsec--dark .fx-txt strong { color: #fff; }
.bgsec--dark .fx-txt small { color: rgba(255,255,255,0.72); }
.bgsec--light .fx-card { background: rgba(255,255,255,0.9); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.bgsec--light .fx-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.bgsec--light .fx-ico { background: #EFE9FE; border: 1px solid #E0D8F5; color: var(--brand); }
.bgsec--light .fx-txt strong { color: var(--ink); }
.bgsec--light .fx-txt small { color: var(--grey); }
@media (max-width: 640px) { .fx-grid { grid-template-columns: 1fr; } .fx-grid > .fx-card:last-child:nth-child(odd) { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .fx-card { transition: none; } .fx-card:hover { transform: none; } }
@media (max-width: 900px) {
  .bgsec--light::before, .bgsec--light.bgsec--right::before { background: rgba(252,251,254,0.93); }
  .bgsec--dark::before { background: rgba(27,17,64,0.88); }
  .bgsec--right .bgsec__inner { justify-content: flex-start; }
  .bgsec__copy { max-width: 100%; }
}

/* ---------- Interactive tool card (cost calculator / AI visibility checker) ----------
   Lives in the hero's right column (hero-collage grid reused). Real radios,
   label pills, aria-live result. Logic in assets/js/tools.js (tool pages only). */
.tool-card { background: #fff; border: 1px solid #ECE9F5; border-radius: var(--r-lg); padding: 26px;
  box-shadow: 0 24px 48px -24px rgba(38,20,80,.24), 0 8px 20px -12px rgba(38,20,80,.14); }
.tool-card__title { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink);
  margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.tool-card__sub { font-size: 12.5px; color: #9A93B0; margin: 0 0 18px; }
.tool-q { margin-bottom: 16px; border: 0; padding: 0; }
.tool-q legend { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.tool-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-opts label { position: relative; cursor: pointer; }
.tool-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tool-opts span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--wp--custom--radius--pill);
  font-size: 13px; font-weight: 600; color: #57526F; background: #fff; transition: all var(--t-fast); }
.tool-opts input:checked + span { background: var(--grad-cta); color: #fff; border-color: transparent; }
.tool-opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-result { margin-top: 20px; border-top: 1px solid #F4F1FB; padding-top: 18px; }
.tool-result__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9A93B0; font-weight: 600; margin-bottom: 4px; }
.tool-result__value { font-family: var(--head); font-weight: 800; font-size: clamp(24px,2.6vw,34px); color: var(--ink); line-height: 1.1; }
.tool-result__value .blue { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tool-result__verdict { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--brand); margin-top: 4px; }
.tool-tips { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tool-tips li { font-size: 13px; color: #57526F; line-height: 1.55; display: flex; gap: 8px; }
.tool-tips li::before { content: "\2192"; color: var(--brand); font-weight: 700; flex: 0 0 auto; }
.tool-note { font-size: 11.5px; color: #9A93B0; margin-top: 14px; line-height: 1.6; }
.tool-cta { margin-top: 16px; }
.tool-cta .btn { width: 100%; }

/* --- Upgraded tool internals (cost calculator + AI checker) --- */
.tool-opts--3 span, .tool-opts--multi span { padding: 7px 12px; font-size: 12.5px; }
.tool-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.tool-input { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink); }
.tool-input input { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; font: inherit; font-weight: 500; font-size: 14px; color: var(--ink); background: #fff; }
.tool-input input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--brand); }
@media (max-width: 480px) { .tool-inputs { grid-template-columns: 1fr; } }
.ai-prompts-block { background: var(--off); border: 1px solid #ECE9F5; border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; }
.ai-prompts__intro { font-size: 12px; color: #6A6484; margin: 4px 0 10px; line-height: 1.5; }
.ai-prompts { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ai-prompt__q { display: block; font-size: 13px; color: var(--ink); font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; }
.tool-breakdown__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9A93B0; font-weight: 700; margin: 16px 0 10px; }
.tool-breakdown__label--gap { margin-top: 22px; }
.tool-tier { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 6px; }
.tool-tier strong { font-family: var(--head); font-size: 14px; color: var(--brand); }
.tool-tier span { font-size: 12.5px; color: #6A6484; line-height: 1.5; }
.calc-breakdown, .ai-dims { display: grid; gap: 9px; }
.calc-bar { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 10px; }
.calc-bar__label, .ai-dim__label { font-size: 11.5px; color: var(--ink); font-weight: 600; line-height: 1.25; }
.calc-bar__track, .ai-dim__track { height: 8px; background: var(--off); border-radius: 99px; overflow: hidden; }
.calc-bar__fill { display: block; height: 100%; background: var(--grad-cta); border-radius: 99px; transition: width .5s var(--ease); }
.calc-bar__amt, .ai-dim__val { font-size: 12.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.tool-meta { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.tool-meta li { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; border-top: 1px solid #F4F1FB; padding: 9px 0; }
.tool-meta li span { color: #9A93B0; }
.tool-meta li strong { color: var(--ink); font-weight: 700; text-align: right; }
.ai-dim { display: grid; grid-template-columns: 106px 1fr 32px; align-items: center; gap: 10px; }
.ai-dim__fill { display: block; height: 100%; background: var(--success); border-radius: 99px; transition: width .6s var(--ease); }
.ai-dim__fill.is-mid { background: #F5A623; }
.ai-dim__fill.is-low { background: #E5484D; }
.ai-bench { font-size: 12px; color: #6A6484; line-height: 1.55; margin: 12px 0 0; padding: 10px 12px; background: var(--off); border-radius: var(--r-sm); }
.tool-result__value small { font-family: var(--body); font-weight: 600; font-size: 14px; color: #9A93B0; }
.tool-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: clamp(28px,4vw,64px); align-items: center; }
@media (max-width: 1100px) {
  .tool-card { max-width: 560px; margin-inline: auto; }
  .tool-hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Forminator forms, restyled to the brand (labels above inputs,
   1px line borders, accent focus ring, gradient submit, stacked on mobile) ---------- */
.form-shell { margin-top: 28px; }
.form-shell .forminator-custom-form .forminator-label { font-family: var(--head); font-weight: 600; font-size: 13.5px; color: var(--ink) !important; margin-bottom: 6px; }
.form-shell .forminator-custom-form .forminator-input,
.form-shell .forminator-custom-form .forminator-textarea,
.form-shell .forminator-custom-form select {
  width: 100%; background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--r-sm) !important;
  padding: 13px 16px !important; font-family: var(--body) !important; font-size: 15px !important; color: var(--ink) !important;
  box-shadow: none !important; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.form-shell .forminator-custom-form .forminator-input:focus,
.form-shell .forminator-custom-form .forminator-textarea:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important; outline: none !important; }
.form-shell .forminator-custom-form .forminator-textarea { min-height: 130px; }
.form-shell .forminator-custom-form .forminator-button-submit {
  background: var(--grad-cta) !important; color: #fff !important; border: 0 !important; border-radius: var(--r-sm) !important;
  font-family: var(--body) !important; font-weight: 600 !important; font-size: 15px !important; padding: 14px 26px !important;
  cursor: pointer; box-shadow: 0 16px 30px -12px rgba(124,58,237,.6) !important;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease) !important; }
.form-shell .forminator-custom-form .forminator-button-submit:hover {
  transform: translateY(-2px); box-shadow: 0 22px 40px -12px rgba(124,58,237,.72) !important; filter: brightness(1.05); }
.form-shell .forminator-custom-form .forminator-response-message.forminator-success { color: var(--success); font-weight: 600; }
.form-shell .forminator-custom-form .forminator-error-message { color: #DC2626; font-size: 13px; }
@media (max-width: 600px) {
  .form-shell .forminator-custom-form .forminator-row { flex-direction: column; }
  .form-shell .forminator-custom-form .forminator-col { width: 100%; margin-left: 0 !important; }
}

/* ---------- Inner page hero (light, coded; pill H1 + oversized display H2) ---------- */
.page-hero { position: relative; background: var(--off); padding: 150px 0 72px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(640px 480px at 90% 12%, rgba(147,51,234,.12), transparent 62%),
    radial-gradient(560px 420px at 8% 95%, rgba(59,130,246,.09), transparent 60%); }
.page-hero > .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px;
  color: var(--grey); margin: 0 0 20px; padding: 0; list-style: none; }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.page-display { font-family: var(--head); font-weight: 800; letter-spacing: -.025em; line-height: 1.02;
  font-size: clamp(38px,4.8vw,68px); color: var(--ink); margin: 0 0 22px; max-width: 20ch; }
.page-display .blue { background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-right: .04em; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-display .blue { color: var(--brand); background: none; }
}
.page-hero .lead { max-width: 58ch; }
.page-hero .cta-row { margin-bottom: 0; }

/* ---------- Fit section ("right for you / not for you" cards) ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.fit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow-card); }
.fit-card__title { font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 16px; }
.check-list .cross { color: var(--grey); font-weight: 800; flex: 0 0 auto; }

/* Honesty / disclosure note card */
.note-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow-card); margin-top: 36px; }
.note-card__title { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.note-card p { margin: 0; color: var(--grey); font-size: 15.5px; line-height: 1.7; }

/* Inline CTA row (cost band etc.) */
.inline-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

@media (max-width: 900px) { .fit-grid { grid-template-columns: 1fr; } }

/* ---------- Inner-page hero (image bg + overlay; used by page patterns) ---------- */
.hero { position: relative; min-height: 60vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(27,17,64,0.94) 0%, rgba(27,17,64,0.72) 50%, rgba(27,17,64,0.42) 100%); }
.hero-content { position: relative; padding-top: 110px; max-width: 760px; }
.hero-headline { font-family: var(--head); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem); margin: 0 0 8px; }
.hero-headline .line { display: block; }
.hero-headline .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-headline .accent { color: var(--brand-light); background: none; }
}
.hero-divider { width: 72px; height: 3px; background: var(--grad-cta);
  margin: 20px 0; transform: scaleX(0); transform-origin: left center; transition: transform 1s .4s var(--ease); }
.hero.in .hero-divider, .hero-divider.in { transform: scaleX(1); }
.hero-sub { font-size: 1.25rem; font-weight: 600; margin: 0 0 14px; }
.hero-body { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 0 30px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 44px; }
.feature-grid--3 { grid-template-columns: repeat(3,1fr); }
.feature-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px;
  text-decoration: none; color: inherit; transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base), background var(--t-base); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(124,58,237,0.35); }
.feature-card p { color: var(--grey); font-size: 15px; line-height: 1.7; }
.feature-icon { color: var(--brand); margin-bottom: 14px; }
.feature-title { font-family: var(--head); font-size: 1.2rem; margin: 0 0 8px; color: var(--ink); }
.feature-link { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.feature-card:hover .feature-link { text-decoration: underline; text-underline-offset: 3px; }

/* Dark glass variant: feature cards inside dark sections (approved concept).
   Light-section cards (e.g. the glossary) keep the white style above. */
.section-dark .feature-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09);
  backdrop-filter: blur(8px); }
.section-dark .feature-card:hover { border-color: transparent;
  background: linear-gradient(rgba(32,21,74,0.94), rgba(32,21,74,0.94)) padding-box, var(--grad-cta) border-box;
  box-shadow: 0 22px 50px -20px rgba(124,58,237,0.55); }
.section-dark .feature-title { color: #fff; }
.section-dark .feature-card p { color: rgba(255,255,255,0.72); }
.section-dark .feature-link { color: var(--accent-light); }
.section-dark .feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(124,58,237,0.14); border: 1px solid rgba(139,92,246,0.38); color: var(--brand-light);
  box-shadow: 0 0 26px -6px rgba(124,58,237,0.5); margin-bottom: 18px; }

/* Eyebrow pill badge variant (outlined, from the approved concept) */
.eyebrow--pill { width: fit-content; padding: 8px 18px; border-radius: var(--wp--custom--radius--pill);
  border: 1px solid rgba(139,92,246,0.45); background: rgba(124,58,237,0.12); gap: 9px; }
.eyebrow--pill.center { margin-inline: auto; }
.eyebrow--pill svg { width: 14px; height: 14px; flex: 0 0 auto; }
.section-dark .eyebrow--pill { color: var(--brand-light); }

/* Mini trust row anchoring a dark section (concept bottom strip) */
.mini-trust { display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  margin: 44px auto 0; max-width: 860px; border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03); border-radius: var(--r-sm); padding: 14px 10px; }
.mini-trust .mt { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.8); padding: 4px 26px; }
.mini-trust .mt + .mt { border-left: 1px solid rgba(255,255,255,0.10); }
.mini-trust svg { width: 17px; height: 17px; color: var(--brand-light); flex: 0 0 auto; }
@media (max-width: 680px) {
  .mini-trust { flex-direction: column; align-items: stretch; }
  .mini-trust .mt { justify-content: center; padding: 8px 12px; }
  .mini-trust .mt + .mt { border-left: 0; border-top: 1px solid rgba(255,255,255,0.10); }
}

/* Corner glows for dark sections (blue top-right, violet bottom-left) */
.glow-corners::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px 340px at 94% 4%, rgba(37,99,235,0.26), transparent 65%),
              radial-gradient(460px 320px at 4% 98%, rgba(147,51,234,0.30), transparent 65%); }

/* ---------- Dark textured band (shared: process, services grid, any dark section
   with a section-*-dark.webp behind an overlay). Pair with .section-dark for text colours;
   the element-level inline background-image beats .section-dark's shorthand. ---------- */
.texture-dark { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--brand-dark); color: #fff; }
.texture-dark::before { content: ""; position: absolute; inset: 0; background: rgba(27,17,64,0.88); }
.texture-dark > .container { position: relative; z-index: 1; }

/* ---------- Process / timeline ---------- */
.process-wrapper { position: relative; margin-top: 50px; }
.process-line { position: absolute; top: 36px; left: 12%; right: 12%; height: 2px; background: rgba(255,255,255,0.12); }
.process-grid { display: grid; gap: 32px; position: relative; }
.process-grid--4 { grid-template-columns: repeat(4,1fr); }
.process-grid--3 { grid-template-columns: repeat(3,1fr); max-width: 980px; margin-inline: auto; } /* LESSON: centered odd-count */
.process-step { text-align: center; padding: 0 18px; }
.step-num { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-cta); color: #fff; font-family: var(--head); font-weight: 800; font-size: 24px; }
.step-title { font-family: var(--head); font-weight: 700; color: #fff; margin-bottom: 8px; } /* white = dark section only */
.step-body { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,0.7); }
.process-cta { text-align: center; margin-top: 44px; }
.process-cta a { color: var(--accent-light); font-family: var(--head); font-weight: 700; text-decoration: none; }
.process-cta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Timeline scroll animation (site.js): steps enter one by one; re-animates on
   every pass; direction-aware - scrolling back up plays 4->3->2->1 from above. */
.process-step { opacity: 0; transform: translateY(30px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.process-grid.from-up .process-step { transform: translateY(-30px); }
.process-step.step-in { opacity: 1; transform: none; }
.process-line { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease); }
.process-line.step-in { transform: scaleX(1); }
.from-up ~ .process-line, .process-wrapper.from-up .process-line { transform-origin: right center; }
.no-js .process-step, .no-js .process-line { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .process-step, .process-line { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Split sections (kept for photo-led editorial rows) ---------- */
.split { padding-block: clamp(40px, 6vw, 80px); }
.split--light { background: #fff; } .split--off { background: var(--off); }
.split__inner { max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px,5vw,56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-card); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials (designed cards: mark, stars, avatar footer) ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 44px; max-width: 980px; margin-inline: auto; }
.testi-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 30px 26px; overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); transition-duration: .3s; }
.testi-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-cta); }
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(124,58,237,0.3); }
.testi-mark { position: absolute; top: 10px; right: 22px; font-family: var(--head); font-size: 84px;
  line-height: 1; color: rgba(124,58,237,0.12); pointer-events: none; }
.testi-stars { color: var(--wp--preset--color--star); letter-spacing: 3px; margin-bottom: 14px; font-size: 15px; }
.testi-quote { font-size: 1.05rem; line-height: 1.75; margin: 0 0 20px; color: var(--grey); }
.testi-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid #F4F1FB; padding-top: 16px; }
.testi-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--grad-cta);
  color: #fff; display: grid; place-items: center; }
.testi-who { display: grid; gap: 1px; min-width: 0; }
.testi-who strong { font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.testi-who small { font-size: 12.5px; color: var(--grey); }
.testi-note { text-align: center; font-size: 13px; color: var(--grey); margin-top: 26px; }

/* ---------- Reviews marquee (real Bubblehub Google reviews) ---------- */
.rev-marquee { overflow: hidden; margin-top: 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.rev-track { display: flex; width: max-content; animation: revScroll 48s linear infinite; }
.rev-track:hover { animation-play-state: paused; }
.rev-set { display: flex; gap: 22px; padding-right: 22px; }
@keyframes revScroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.rev-card { flex: 0 0 340px; width: 340px; box-sizing: border-box; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px 22px;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.rev-card__top { display: flex; align-items: center; justify-content: space-between; }
.rev-stars { color: var(--wp--preset--color--star); font-size: 16px; letter-spacing: 2px; }
.rev-src { font-size: 12px; font-weight: 600; color: var(--grey); }
.rev-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); font-style: normal;
  display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rev-who { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 4px; }
.rev-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--grad-cta);
  color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 15px; }
.rev-name { font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .rev-track { animation: none; } .rev-marquee { overflow-x: auto; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 0;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-icon::before { content: '+'; color: var(--accent); font-size: 22px; }
.faq-q[aria-expanded="true"] .faq-icon::before { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 0 20px; color: var(--grey); margin: 0; }
/* FAQ questions are wrapped in an <h3> for SEO structure; neutralise the heading so
   the accordion button keeps full control of its own appearance and spacing. */
.faq-q-h { margin: 0; font: inherit; letter-spacing: normal; }

/* ---------- SEO term index: thematic group headings ---------- */
.term-group__title { font-family: var(--head); font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em; color: var(--ink); margin: 44px 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.term-index-wrap .term-group__title:first-child { margin-top: 4px; }

/* ---------- HTML sitemap (/sitemap/) ---------- */
.htmlmap { columns: 260px 4; column-gap: 44px; margin-top: 8px; }
.htmlmap__col { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 34px; }
.htmlmap__h { font-family: var(--head); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 12px; padding-bottom: 9px; border-bottom: 2px solid var(--line); }
.htmlmap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.htmlmap__list a { color: var(--grey); text-decoration: none; font-size: 14.5px; line-height: 1.4; transition: color var(--t-fast); }
.htmlmap__list a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA banner (textured dark background section) ---------- */
.cta-section { background: var(--brand-dark); color: #fff; padding: clamp(48px,7vw,90px) clamp(20px,5vw,56px); position: relative; overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; }
.cta-section::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: rgba(27,17,64,0.82); }
.cta-section::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 320px at 85% 15%, rgba(124,58,237,0.35), transparent 70%),
              radial-gradient(520px 280px at 8% 92%, rgba(37,99,235,0.28), transparent 70%); }
.cta-inner { max-width: 1320px; margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.cta-title { font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem,3.4vw,2.4rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.cta-title span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .cta-title span { color: var(--brand-light); background: none; }
}
.cta-sub { color: rgba(255,255,255,0.78); max-width: 520px; line-height: 1.7; }
.cta-sub a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.cta-actions { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-lg); padding: 28px; text-align: center; backdrop-filter: blur(6px); }
.cta-phone { font-family: var(--head); font-weight: 800; font-size: 1.8rem; color: var(--accent-light); text-decoration: none; display: block; }
.cta-note { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 8px 0; }
.cta-sep { height: 1px; background: rgba(255,255,255,0.12); margin: 16px 0; }
.cta-reg { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 12px; }

/* ---------- Dark-surface Forminator variant (CTA banner card + exit popup) ---------- */
.cta-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 6px; text-align: left; }
.cta-form-title { font-family: var(--head); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 16px; text-align: left; }
.cta-actions { text-align: left; }
.cta-alt { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 12px; text-align: center; }
.dark-form .forminator-custom-form .forminator-label { position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dark-form .forminator-custom-form .forminator-input,
.dark-form .forminator-custom-form .forminator-textarea {
  width: 100%; background: rgba(255,255,255,0.09) !important; border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: var(--r-sm) !important; padding: 13px 16px !important; color: #fff !important;
  font-family: var(--body) !important; font-size: 15px !important; box-shadow: none !important; }
.dark-form .forminator-custom-form .forminator-input::placeholder { color: rgba(255,255,255,0.55); }
.dark-form .forminator-custom-form .forminator-input:focus {
  border-color: var(--accent-light) !important; box-shadow: 0 0 0 3px rgba(59,130,246,0.25) !important; outline: none !important; }
.dark-form .forminator-custom-form .forminator-row { margin-bottom: 12px !important; }
.dark-form .forminator-custom-form .forminator-button-submit {
  width: 100% !important; justify-content: center !important;
  background: var(--grad-cta) !important; color: #fff !important; border: 0 !important; border-radius: var(--r-sm) !important;
  font-family: var(--body) !important; font-weight: 600 !important; font-size: 15px !important; padding: 14px 22px !important;
  cursor: pointer; box-shadow: 0 16px 30px -12px rgba(124,58,237,.6) !important; }
.dark-form .forminator-custom-form .forminator-button-submit:hover { filter: brightness(1.06); }
.dark-form .forminator-response-message.forminator-success { color: var(--success); font-weight: 600; }
.dark-form .forminator-error-message { color: #FCA5A5; font-size: 13px; }

/* ---------- Exit-intent modal ---------- */
.exit-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
  padding: 20px; background: rgba(10,5,30,0.65); backdrop-filter: blur(6px); }
.exit-modal[hidden] { display: none; }
.exit-card { width: min(460px, 100%); border: 1px solid rgba(139,92,246,0.4);
  box-shadow: 0 40px 90px -30px rgba(10,5,30,0.85); }
/* Selector strength matters: .side-cta > *:not(.side-cta__glow) forces
   position:relative on card children, which was beating the plain class and
   dropping the X into the flow (top-left). */
.side-cta .exit-modal__close, .exit-modal__close { position: absolute; top: 14px; right: 14px; left: auto;
  z-index: 2; background: rgba(255,255,255,0.08);
  border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.exit-modal__close:hover { background: rgba(255,255,255,0.16); }
.exit-modal__dismiss { display: block; margin: 12px auto 0; background: none; border: 0; cursor: pointer;
  font-size: 12.5px; color: rgba(255,255,255,0.55); text-decoration: underline; text-underline-offset: 2px; }
.exit-modal__dismiss:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.7); padding: clamp(48px,7vw,80px) clamp(20px,5vw,56px) 28px; }
.footer-accent { max-width: 1320px; margin: 0 auto 42px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.65), rgba(59,130,246,0.55), transparent); }
.footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 170px; height: 78px; background: url('../images/logo-white.webp') left center / contain no-repeat; display: block; }
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,0.55); max-width: 260px; margin: 16px 0; }
.footer-reg { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.9; }
.footer-col-title { font-family: var(--head); font-weight: 700; color: #fff; margin-bottom: 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-col-title--gap { margin-top: 28px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links li { font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--accent-light); }
.footer-social__link { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-sm); color: rgba(255,255,255,0.7); margin-top: 16px; }
.footer-social__link:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.footer-bottom { max-width: 1320px; margin: 42px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: rgba(255,255,255,0.55); }
.footer-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--accent-light); }
.footer-top { background: none; border: 0; color: rgba(255,255,255,0.6); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.footer-top:hover { color: #fff; }

/* ---------- Cookie consent banner (self-hosted, Consent Mode v2) ---------- */
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500;
  padding: 15px clamp(16px, 4vw, 40px); background: var(--brand-dark);
  color: rgba(255,255,255,0.9); border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -10px 34px rgba(10,5,30,0.45); }
.cookie-consent[hidden] { display: none; }
.cookie-consent__inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center;
  gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.cookie-consent__text { font-size: 13px; line-height: 1.55; margin: 0; max-width: 760px; color: rgba(255,255,255,0.82); }
.cookie-consent__text a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent__btn { font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: var(--ls-btn);
  border-radius: var(--r-sm); padding: 11px 24px; cursor: pointer; border: 0;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.cookie-consent__btn--accept { background: var(--grad-cta); color: #fff; box-shadow: 0 10px 22px -12px rgba(124,58,237,.7); }
.cookie-consent__btn--reject { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.cookie-consent__btn:hover { transform: translateY(-2px); }
@media (max-width: 620px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-consent__actions { justify-content: stretch; }
  .cookie-consent__btn { flex: 1; }
}

/* =========================================================================
   BLOG - guides archive, category archives, single posts
   ========================================================================= */
/* Post hero (extends .page-hero) */
.post-hero { padding-bottom: 48px; }
.post-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.post-cat a, .card-cat a, .card-cat { font-family: var(--body); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #6D28D9; background: #EFE9FE;
  padding: 6px 12px; border-radius: var(--wp--custom--radius--pill); text-decoration: none; display: inline-block; }
.post-cat a:hover, .card-cat a:hover { background: var(--brand); color: #fff; }
.post-date, .blog-card__d { font-size: 13px; color: var(--grey); }
.post-rtime { font-size: 13px; color: var(--grey); }
.post-rtime::before { content: "\00B7"; margin-right: 14px; color: var(--line); }
.post-title-main { font-family: var(--head); font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(30px, 3.8vw, 50px); color: var(--ink); margin: 0; max-width: 22ch; }

/* Article shell: featured image lives INSIDE the article column so the
   sidebar (CTA first) is visible from the very top of the article. */
.post-shell { background: var(--white); padding-bottom: clamp(40px, 6vw, 72px); }
.post-main .post-hero-img { margin: 0 0 32px; }
.post-hero-img img { border-radius: var(--r-lg); box-shadow: var(--shadow-card); width: 100%; height: auto; }

/* Centred magazine header for posts */
.post-hero--center { text-align: center; }
.post-hero--center .breadcrumb { justify-content: center; }
.post-hero--center .post-meta { justify-content: center; }
.post-hero--center .post-title-main { margin-inline: auto; }
.post-hero__divider { width: 72px; height: 3px; background: var(--grad-cta); border-radius: 3px;
  margin: 26px auto 0; }

/* Three-column docs-style article layout: slim TOC rail LEFT, centred article,
   conversion card RIGHT. Stickiness is dual-mode: CSS sticky when ScrollSmoother
   is absent; motion.js pins both rails when it is (sticky is inert inside
   transformed content). WP's flow block-gap margins are killed inside the grid. */
/* NOTE: no align-items:start - the asides must STRETCH to the row height so
   position:sticky has runway and auto-releases at the article's end. */
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 290px;
  gap: clamp(28px, 3vw, 48px); max-width: 1320px;
  padding-top: clamp(28px, 4vw, 44px); }
.post-layout > * { margin-block-start: 0 !important; margin-block-end: 0; }
.post-toc-rail, .post-side { min-width: 0; }
.post-toc-rail__inner, .post-side__inner { position: sticky; top: 116px; }
.post-main { min-width: 0; max-width: 760px; margin-inline: auto; width: 100%; }
@media (min-width: 1440px) { .post-layout { grid-template-columns: 250px minmax(0, 1fr) 300px; } }

/* TOC rail (naked left-rail style on wide screens) */
@media (min-width: 1240px) {
  .post-toc-rail .toc-box { background: none; border: 0; padding: 0; }
  .post-toc-rail .toc-box__title { font-size: 11.5px; color: var(--grey); }
  .post-toc-rail .toc-box__list { list-style: none; padding: 0; display: block; border-left: 2px solid var(--line); }
  .post-toc-rail .toc-box__list li { margin: 0; }
  .post-toc-rail .toc-box__list a { display: block; padding: 7px 0 7px 14px; margin-left: -2px;
    border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.45; color: var(--grey); }
  .post-toc-rail .toc-box__list a:hover { color: var(--ink); text-decoration: none; }
  .post-toc-rail .toc-box__list a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
}

/* 1000-1239px: TOC becomes a full-width card above the article; CTA stays right */
@media (max-width: 1239px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .post-toc-rail, .post-toc-rail__inner { display: contents; }
  .post-toc-rail .toc-box { grid-column: 1 / -1; }
}

/* Sidebar CTA card (dark, glowing, conversion-focused) */
.side-cta { position: relative; overflow: hidden; background: var(--brand-dark); border-radius: var(--r-lg);
  padding: 30px 28px 26px; color: #fff; box-shadow: 0 24px 48px -24px rgba(27,17,64,.5);
  border: 1px solid rgba(139,92,246,0.35); }
.side-cta__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px 180px at 88% 0%, rgba(124,58,237,0.5), transparent 70%),
              radial-gradient(220px 170px at 0% 100%, rgba(37,99,235,0.35), transparent 70%); }
.side-cta > *:not(.side-cta__glow):not(.exit-modal__close) { position: relative; }
.side-cta__kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-light); margin-bottom: 10px; }
.side-cta__title { font-family: var(--head); font-weight: 800; font-size: 22px; line-height: 1.22;
  letter-spacing: -.01em; margin: 0 0 12px; color: #fff; }
.side-cta__sub { font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.65; margin: 0 0 18px; }
.side-cta__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.side-cta__list li { font-size: 13.5px; color: rgba(255,255,255,0.88); padding-left: 27px; position: relative; line-height: 1.55; }
.side-cta__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  border-radius: 6px; background: rgba(16,185,129,0.18); color: var(--success); font-weight: 800; font-size: 11px;
  display: grid; place-items: center; }
.side-cta__btn { width: 100%; padding: 15px 22px; }
.side-cta__alt { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 14px; text-align: center; padding-bottom: 2px; }
.side-cta__alt a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }

/* TOC jump box */
.toc-box { background: var(--off); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 26px; margin: 0; }
.toc-box__list a.is-active { color: var(--brand); font-weight: 600; }
.toc-box__title { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.toc-box__list { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.toc-box__list a { color: var(--ink); text-decoration: none; font-size: 15px; }
.toc-box__list a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Prose (post content): magazine-grade article typography */
.prose { font-size: 17px; line-height: 1.8; color: var(--ink); }
.prose p { margin: 0 0 1.35em; }
.prose > p:first-child { font-size: 18.5px; line-height: 1.75; }
.prose h2 { font-family: var(--head); font-weight: 800; letter-spacing: -.015em; line-height: 1.2;
  font-size: clamp(22px, 2.4vw, 28px); margin: 1.9em 0 .7em; color: var(--ink);
  padding-top: .5em; border-top: 1px solid var(--line); }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-family: var(--head); font-weight: 700; font-size: clamp(18px, 1.9vw, 21px); margin: 1.5em 0 .55em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand); }

/* Bulleted lists: gradient dot markers */
.prose ul { list-style: none; margin: 0 0 1.45em; padding: 0; display: grid; gap: .6em; }
.prose ul > li { position: relative; padding-left: 28px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .58em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--grad-cta); }
.prose ul ul { margin: .6em 0 0; }
.prose ul ul > li::before { width: 7px; height: 7px; background: none; border: 2px solid var(--brand); }

/* Numbered lists: violet number chips */
.prose ol { list-style: none; counter-reset: prose-ol; margin: 0 0 1.45em; padding: 0; display: grid; gap: .7em; }
.prose ol > li { position: relative; padding-left: 42px; counter-increment: prose-ol; }
.prose ol > li::before { content: counter(prose-ol); position: absolute; left: 0; top: .08em;
  width: 27px; height: 27px; border-radius: 9px; background: #EFE9FE; color: #6D28D9;
  font-family: var(--head); font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }

/* Tables: rounded shell, dark header, zebra rows, scrolls on mobile */
.prose figure.wp-block-table { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th { background: var(--brand-dark); color: #fff; font-family: var(--head); font-weight: 700;
  font-size: 13.5px; letter-spacing: .02em; text-align: left; padding: 13px 18px; }
.prose td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: var(--off); }

/* Blockquote: quote card */
.prose blockquote { background: var(--off); border-radius: var(--r); border-left: 0;
  margin: 1.8em 0; padding: 24px 28px 24px 58px; position: relative; color: var(--ink); }
.prose blockquote::before { content: "\201C"; position: absolute; left: 20px; top: 6px;
  font-family: var(--head); font-size: 46px; line-height: 1; color: var(--brand); }
.prose blockquote p:last-child { margin-bottom: 0; }
/* X/Twitter embed: strip the prose quote styling from the raw blockquote and show a clean
   fallback card; widgets.js replaces it with the live tweet where it can load. */
.prose .twitter-tweet { max-width: 550px; margin: 1.9em auto; padding: 16px 20px; background: var(--off); border: 1px solid var(--line); border-radius: var(--r); }
.prose .twitter-tweet::before { content: none; }
.prose .twitter-tweet p { margin: 0 0 8px; }
.prose .tweet-lead { text-align: center; font-weight: 600; color: var(--brand); margin: 1.9em 0 0.4em; }

/* Misc */
.prose hr { border: 0; height: 2px; background: linear-gradient(90deg, var(--line), transparent); margin: 2.4em 0; }
.prose code { background: var(--off); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: .88em; }
.prose img { border-radius: var(--r); }
.post-tags { margin: 30px 0 0; font-size: 13px; color: var(--grey); }
.post-tags a { color: var(--brand); text-decoration: none; }
.post-tags a:hover { text-decoration: underline; }

/* Author box */
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--off);
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; margin-top: 34px; }
.author-box img { border-radius: var(--r-sm); flex: 0 0 auto; object-fit: cover; }
.author-box__name { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 15px; }
.author-box__role { font-size: 12.5px; color: var(--brand); margin: 2px 0 8px; }
.author-box p { margin: 0; font-size: 14px; color: var(--grey); line-height: 1.65; }

/* Card grids (archives + related) */
.blog-list-wrap { padding-block: clamp(40px, 6vw, 64px); }
.blog-grid-q { gap: 24px !important; }
.blog-card-blk { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  transition: transform var(--ease), box-shadow var(--ease); transition-duration: .25s; }
.blog-card-blk:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.blog-card-blk .card-img { margin-bottom: 14px; }
.blog-card-blk .card-cat { margin-bottom: 10px; }
.blog-card__h { font-size: 1.1rem; line-height: 1.35; margin: 8px 0 6px; }
.blog-card__h a { color: var(--ink); text-decoration: none; }
.blog-card__h a:hover { color: var(--brand); }
.blog-card__x { font-size: 14px; color: var(--grey); line-height: 1.6; }
.blog-card__x .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
.blog-card__d { margin-top: 8px; }
.archive-badge { margin-bottom: 18px; }
.page-hero .lead.wp-block-term-description p { margin: 0; }

/* Blog category filter pills (rendered by [sag_blog_filter] on /guides/ + category archives). */
.blog-filter-wrap { padding-top: clamp(20px, 3vw, 30px); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 960px; margin: 0 auto; }
.blog-filter__pill { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; transition: color var(--ease), background var(--ease), border-color var(--ease); }
.blog-filter__pill:hover { border-color: var(--brand); color: var(--brand); }
.blog-filter__pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* SEO Term Guides: /seo-term-guides/ hub index + single answer page. */
.term-index-wrap { padding-block: clamp(36px, 5vw, 60px); }
.term-index { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; columns: 2; column-gap: 34px; }
.term-index__item { break-inside: avoid; margin-bottom: 12px; }
.term-index__item a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; transition: border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); }
.term-index__item a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.term-index__arw { color: var(--brand); font-weight: 700; }
.term-index__empty { text-align: center; }
.post-cat--static { display: inline-block; color: var(--brand); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.term-answer { padding-block: clamp(24px, 4vw, 40px); }
.term-back { margin-top: 30px; }
.term-back a { font-weight: 600; }
.term-related { list-style: none; margin: 22px auto 0; padding: 0; max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.term-related a { display: block; padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color var(--ease), color var(--ease); }
.term-related a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 640px) { .term-index { columns: 1; } .term-related { grid-template-columns: 1fr; } }

/* About page: team group photo + member cards. */
.team-photo { display: block; width: 100%; max-width: 1000px; margin: 36px auto 44px; border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lift); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1060px; margin-inline: auto; }
.team-card { background: #fff; border-radius: 16px; padding: 24px 20px; text-align: center; }
.team-card img { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.team-card__name { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 17px; margin: 0; }
.team-card__role { color: var(--brand); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 10px; }
.team-card__bio { color: var(--grey); font-size: 13.5px; line-height: 1.6; margin: 0; }
.team-card__bio a { font-weight: 600; }
/* team cards are white islands on the dark section; keep their links brand-coloured,
   not the global .section-dark white-link override. */
.section-dark .team-card a { color: var(--brand); text-decoration: underline; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } .team-photo { margin: 24px auto 32px; } }

/* Homepage "Latest guides" dark strip. Custom .latest-guides wrapper (NOT .section-dark)
   so the white blog cards keep their normal ink/brand link colours instead of the global
   dark-link override. Placed between testimonials (light) and faq (light) for rhythm. */
.latest-guides { background: var(--brand-dark); color: #fff; }
.latest-guides .eyebrow { color: var(--brand-light); }
.latest-guides .section-sub { color: rgba(255,255,255,0.72); margin-bottom: 40px; }
.latest-guides .latest-guides__q .blog-grid-q { margin-top: 8px; }
.latest-guides__more { text-align: center; margin-top: 34px; }
.latest-guides__empty { color: rgba(255,255,255,0.8); }

/* "Guides on this topic": down-links from a money page to its supporting cluster posts
   (audit fix: hubs now route authority down to the cluster, with descriptive anchors).
   Rendered inside the light FAQ section, so brand-coloured links on a light background. */
.topic-guides { margin-top: 44px; text-align: center; }
.topic-guides__t { font-family: var(--head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); margin-bottom: 14px; }
.topic-guides__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; }
.topic-guides__list a { font-weight: 600; color: var(--brand); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.topic-guides__list a:hover { border-bottom-color: var(--brand); }

/* Related grid (sag_related shortcode) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.blog-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; text-decoration: none; transition: transform var(--ease), box-shadow var(--ease); transition-duration: .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.blog-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-sm); background: var(--line); margin-bottom: 14px; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card .card-cat { margin-bottom: 10px; }
.blog-card__title { display: block; font-family: var(--head); font-weight: 700; font-size: 1.05rem;
  line-height: 1.35; color: var(--ink); margin: 8px 0 6px; }
.blog-card:hover .blog-card__title { color: var(--brand); }
.blog-card__meta { display: block; font-size: 13px; color: var(--grey); }

/* Pagination */
.blog-pagination { margin-top: 44px; font-family: var(--head); font-weight: 600; }
.blog-pagination a, .blog-pagination .page-numbers { color: var(--ink); text-decoration: none; padding: 8px 13px; border-radius: var(--r-sm); }
.blog-pagination a:hover { background: var(--off); color: var(--brand); }
.blog-pagination .current { background: var(--grad-cta); color: #fff; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1000px) {
  /* Stack (DOM order already reads TOC -> article -> CTA) */
  .post-layout { display: block; }
  .post-toc-rail, .post-toc-rail__inner, .post-side, .post-side__inner { display: block; position: static; }
  .toc-box { margin-bottom: 28px; }
  .side-cta { margin-top: 36px; max-width: 480px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .side-cta { max-width: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-collage__grid { grid-template-columns: 1fr; gap: clamp(36px,5vw,54px); }
  .lead { max-width: 52ch; }
  .collage { max-width: 560px; margin: 0 auto; width: 100%; }
  .feature-grid, .testi-grid, .feature-grid--3 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-bar { display: flex; }
  /* The fixed mobile CTA bar is ~50px tall and sits at the viewport bottom; add
     footer clearance so it never covers the copyright / "Website by BubbleHub" strip. */
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .process-grid--4 { grid-template-columns: repeat(2,1fr); }
  .process-line { display: none; }
  .split__inner { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .pmetrics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pm .pv { font-size: 20px; }
  .hero-display { font-size: clamp(40px,11vw,66px); }
  /* keep only the two chart cards on mobile */
  .c-keyword, .c-local, .c-backlink, .c-traffic { display: none; }
}
@media (max-width: 600px) {
  .feature-grid, .testi-grid, .feature-grid--3, .process-grid--3, .process-grid--4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-collage { padding: 116px 0 52px; }
  .cta-row { flex-direction: column; gap: 12px; }
  .cta-row .btn { width: 100%; justify-content: center; padding: 15px 20px; }
  .proof { gap: 14px; }
  .donut-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .donut { align-self: center; }
  .trust { padding: 16px 18px; gap: 10px 16px; }
  .trust .ti { font-size: 13.5px; }
  .card { padding: 16px; }
  .footer-bottom { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .collage { max-width: 100%; }
  .hero-display { font-size: clamp(34px,12vw,48px); }
  .stack .av, .stack .more { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .badge .dot, .blob, .float-sq, .fdot { animation: none !important; }
  .hero-collage .reveal, .trust.reveal { opacity: 1; transform: none; }
  .growth-badge { opacity: 1; transform: none; }
  .ai-bar { transition: none; }
  .m-menu { transition: none; }
  .star-anim, .star-anim.in { transition: none; transform: none; }
}
