/* -----------------------------------------------------------------------------
 * premium.css, the "looks like 100k was spent on it" layer for Smarta UK.
 * Loaded AFTER styles.css and uk-supplement.css so it layers cleanly on top.
 * Pure additive: new classes only, no resets that fight styles.css.
 * Uses the locked brand tokens: --magenta, --magenta-dark/--purple, --aqua,
 * --yellow, --orange, --charcoal, --pale-blush.
 *
 * Three jobs:
 *   1. Scroll reveal (fade-up on scroll, with optional stagger via --d)
 *   2. Infinite logo marquee (suppliers + clients)
 *   3. Premium helpers (grad-text, lift, eyebrow-pill, full-bleed, quote-card,
 *      section-xl, soft shadows)
 * --------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
 * 1. SCROLL REVEAL
 * Add data-reveal to any section/card. It starts faded + nudged down, then
 * fades up when it enters the viewport (reveal.js adds .is-visible).
 * Stagger a group by setting inline style="--d:.08s" (etc.) on each child.
 * --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
/* Reduced-motion: never hide or animate; content is visible immediately. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -----------------------------------------------------------------------------
 * 2. INFINITE LOGO MARQUEE
 * Seamless, auto-scrolling strip. The track must contain the logo list TWICE,
 * end to end, so when it has scrolled exactly -50% it loops with no visible
 * jump. Pauses on hover. Edges fade out via a mask so logos don't hard-clip.
 * Add .marquee--rev to a second strip to scroll the opposite way.
 * --------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: smarta-marquee 40s linear infinite;
}
.marquee--rev .marquee-track {
  animation-direction: reverse;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
.marquee-logo img {
  max-height: 54px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  /* Subtle desaturate so the colourful suppliers read as one calm strip;
     full colour on hover for life. Remove the two filter lines for full
     colour at rest. */
  filter: grayscale(0.25);
  opacity: 0.92;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.marquee-logo img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}
@keyframes smarta-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  /* With no animation, let the strip scroll naturally if it overflows. */
  .marquee { overflow-x: auto; }
}
@media (max-width: 600px) {
  .marquee-track { gap: 38px; }
  .marquee-logo { height: 54px; }
  .marquee-logo img { max-height: 44px; max-width: 130px; }
}

/* Dark plate variant for light/white supplier or client logos that vanish on
 * white. Put a single light logo inside a .marquee-logo.is-dark wrapper. */
.marquee-logo.is-dark {
  background: #0d0d0d;
  border-radius: 12px;
  padding: 0 18px;
}
.marquee-logo.is-dark img { filter: none; opacity: 1; }

/* -----------------------------------------------------------------------------
 * 3. PREMIUM HELPERS
 * --------------------------------------------------------------------------- */

/* Brand gradient text, for the one or two big display words per page. */
.grad-text {
  background: linear-gradient(90deg, var(--magenta), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Aqua-to-magenta variant for variety (use sparingly). */
.grad-text--cool {
  background: linear-gradient(90deg, var(--aqua), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lift-on-hover, the premium card interaction. Pair with any white card. */
.lift {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -28px rgba(45, 45, 45, 0.45);
}

/* Eyebrow pill, the little branded label above a heading. */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--pale-blush);
  color: var(--purple);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.eyebrow-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  flex: 0 0 auto;
}

/* Full-bleed band, breaks a section edge to edge even inside .container.
 * Use on a child wrapper, then put a .container inside it for the content. */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
/* Branded blush band + soft gradient band variants. */
.band-blush { background: var(--pale-blush); }
.band-soft {
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--magenta) 8%, #fff), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--aqua) 12%, #fff), transparent 60%),
    #fff;
}
.band-deep {
  background: linear-gradient(135deg, #2a1430, #4a1f54);
  color: #fff;
}
.band-deep h2, .band-deep h3 { color: #fff; }
.band-deep p { color: rgba(255, 255, 255, 0.86); }

/* Generous vertical rhythm for hero-adjacent feature bands. */
.section-xl { padding-block: clamp(64px, 9vw, 120px); }

/* Soft large shadow utilities. */
.shadow-soft { box-shadow: 0 18px 48px -28px rgba(45, 45, 45, 0.4); }
.shadow-lg { box-shadow: 0 30px 70px -32px rgba(45, 45, 45, 0.5); }

/* -----------------------------------------------------------------------------
 * Testimonial / quote card. Big opening quote mark, brand accent, optional
 * author row. Designed for REAL quotes only (real customers).
 * --------------------------------------------------------------------------- */
.quote-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 34px 30px 28px;
  box-shadow: 0 18px 48px -28px rgba(45, 45, 45, 0.4);
  text-align: left;
  overflow: hidden;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 110px;
  line-height: 1;
  font-weight: 800;
  color: color-mix(in srgb, var(--magenta) 16%, #fff);
  pointer-events: none;
}
.quote-card .quote-text {
  position: relative;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 20px;
}
.quote-card .quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote-card .quote-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
}
.quote-card .quote-name {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--charcoal);
  line-height: 1.25;
}
.quote-card .quote-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
}
/* Deep variant for placing a quote on a dark band. */
.quote-card.is-deep {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.quote-card.is-deep::before { color: rgba(255, 255, 255, 0.12); }
.quote-card.is-deep .quote-text { color: #fff; }
.quote-card.is-deep .quote-name { color: #fff; }
.quote-card.is-deep .quote-role { color: var(--aqua); }

/* Two-up quote grid for proof sections. */
.quote-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
}
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }

/* Headline accent: a short brand underline under a big H2. */
.headline-rule {
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--magenta), var(--yellow));
  margin: 18px auto 0;
}
.headline-rule.is-left { margin-inline: 0; }

/* =============================================================================
 * PREMIUM UPGRADE LAYER (appended). Loads last, so these refine the base.
 * Three jobs: (A) modern purple bands, (B) video frame system, (C) richer
 * service-card hover. All motion is wrapped in prefers-reduced-motion.
 * ========================================================================== */

/* -----------------------------------------------------------------------------
 * A. MODERNISE THE PURPLE BANDS  (.band-deep + section.final-cta)
 * The old flat purple looked "cliparty". This rebuilds it as a deep
 * purple->magenta diagonal with a radial magenta glow, a faint grain speckle
 * and a soft light sheen, crisp white type, generous padding, and genuinely
 * interactive buttons/links inside.
 * --------------------------------------------------------------------------- */

/* Shared deep-band surface. The radial glow + sheen + grain are layered
 * background images; the diagonal gradient is the base paint underneath. */
.band-deep,
section.final-cta {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: #4a1f54;
  background-image:
    /* magenta glow, top-right */
    radial-gradient(80% 120% at 82% 8%,
      color-mix(in srgb, var(--magenta) 60%, transparent), transparent 58%),
    /* aqua kiss, bottom-left, very faint, for depth */
    radial-gradient(70% 90% at 8% 100%,
      color-mix(in srgb, var(--aqua) 22%, transparent), transparent 60%),
    /* soft top light sheen */
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 32%),
    /* the core diagonal */
    linear-gradient(135deg, #3a1846 0%, #5e2470 45%, #7a2d6d 100%);
  background-repeat: no-repeat;
}
/* Faint film grain over the whole band so the gradient reads as a rich
 * surface, not a flat banner. Sits above the paint, below the content. */
.band-deep::after,
section.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
/* Crisp white type + readable body on the deep bands. */
.band-deep h1, .band-deep h2, .band-deep h3,
section.final-cta h1, section.final-cta h2, section.final-cta h3 {
  color: #fff;
}
.band-deep p,
section.final-cta p {
  color: rgba(255, 255, 255, 0.88);
}
.band-deep a:not(.btn):not([class*="btn-"]),
section.final-cta a:not(.btn):not([class*="btn-"]) {
  color: #fff;
  text-decoration-color: color-mix(in srgb, var(--aqua) 70%, transparent);
  text-underline-offset: 3px;
}
.band-deep a:not(.btn):not([class*="btn-"]):hover,
section.final-cta a:not(.btn):not([class*="btn-"]):hover {
  color: var(--aqua);
}
/* grad-text on dark bands: the magenta->purple gradient disappears on a purple
 * background (the "can't see the pink Smarta" bug). Swap to a bright on-brand
 * pink so highlighted words stay vivid and legible on the deep bands, without
 * drifting off-brand into gold/orange. */
.band-deep .grad-text,
section.final-cta .grad-text {
  background: linear-gradient(90deg, #ffa6d8 0%, #ff2f9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* More generous breathing room than the base sections. */
.band-deep { padding-block: clamp(72px, 10vw, 132px); }
section.final-cta { padding-block: clamp(76px, 9vw, 128px); }

/* Interactive buttons sitting ON a deep band. A bright white primary that
 * lifts + warms on hover, and a glassy outline secondary. These layer over the
 * site .btn styles when an element also carries .btn-on-deep. */
.btn-on-deep {
  transition:
    transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-on-deep:hover { transform: translateY(-3px); }
}
/* Solid light CTA on the dark band (e.g. Upload your bill). */
.btn-on-deep--solid {
  background: #fff;
  color: var(--purple);
  border: 1px solid transparent;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.55);
}
.btn-on-deep--solid:hover {
  background: var(--yellow);
  color: #3a1846;
  box-shadow: 0 22px 44px -16px rgba(255, 185, 0, 0.5);
}
/* Glassy outline CTA on the dark band (e.g. Call us). */
.btn-on-deep--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn-on-deep--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.6);
}

/* -----------------------------------------------------------------------------
 * B. VIDEO FRAME SYSTEM  (.video-frame, .video-feature, .video-unmute, badge)
 * A premium rounded film frame + a 2-up "video beside copy" layout that stacks
 * on mobile, plus a tasteful "Sound on" unmute pill.
 * --------------------------------------------------------------------------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px -32px rgba(45, 45, 45, 0.6);
  isolation: isolate;
}
.video-frame > video,
.video-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hairline inner ring so the frame reads as crafted, not a raw rectangle. */
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 2;
}
/* Optional accent glow ring (brand) for hero placements. */
.video-frame.is-glow {
  box-shadow:
    0 30px 70px -30px rgba(120, 64, 144, 0.7),
    0 0 0 1px color-mix(in srgb, var(--magenta) 20%, transparent);
}

/* 2-up: video + copy beside it. Video left by default; add .is-reverse to flip.
 * Stacks (copy first, then video) on mobile. */
.video-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.video-feature.is-reverse .video-feature-media { order: 2; }
.video-feature.is-reverse .video-feature-copy { order: 1; }
@media (max-width: 860px) {
  .video-feature { grid-template-columns: 1fr; gap: 28px; }
  .video-feature .video-feature-media { order: 2; }
  .video-feature .video-feature-copy { order: 1; }
}

/* Tasteful "Sound on" pill, bottom-right over a video. */
.video-unmute {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 10, 24, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.video-unmute svg,
.video-unmute .video-unmute-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.video-unmute:hover {
  background: rgba(231, 28, 142, 0.85);
  border-color: #fff;
  box-shadow: 0 12px 28px -12px rgba(231, 28, 142, 0.7);
}
@media (prefers-reduced-motion: no-preference) {
  .video-unmute:hover { transform: translateY(-2px); }
}
/* When the video is unmuted, JS can add .is-on to swap the label/state. */
.video-unmute.is-on {
  background: rgba(20, 10, 24, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Small caption/label badge that floats over a video (e.g. "Brisbane"). */
.video-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(20, 10, 24, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.video-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  flex: 0 0 auto;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--aqua) 70%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .video-badge::before { animation: smarta-badge-pulse 2.4s ease-out infinite; }
}
@keyframes smarta-badge-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--aqua) 70%, transparent); }
  70% { box-shadow: 0 0 0 7px rgba(96, 195, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 195, 212, 0); }
}

/* -----------------------------------------------------------------------------
 * C. RICHER SERVICE-CARD HOVER  (.svc-card)
 * Strengthen the existing hover: bigger lift, an accent-tinted glow + a
 * 2026-feel coloured border in the card's own --svc-accent. Layers on top of
 * the base rule in uk-supplement.css (this file loads last).
 * --------------------------------------------------------------------------- */
.svc-card {
  transition:
    transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.22s ease;
}
/* The accent top-bar grows into a soft glow on hover. */
.svc-card::before {
  transition: height 0.22s ease, box-shadow 0.22s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .svc-card:hover {
    transform: translateY(-10px);
    border-color: color-mix(in srgb, var(--svc-accent, var(--magenta)) 55%, transparent);
    box-shadow:
      0 34px 70px -28px color-mix(in srgb, var(--svc-accent, var(--magenta)) 45%, rgba(45, 45, 45, 0.55)),
      0 0 0 1px color-mix(in srgb, var(--svc-accent, var(--magenta)) 22%, transparent);
  }
  .svc-card:hover::before {
    height: 7px;
    box-shadow: 0 0 22px 1px color-mix(in srgb, var(--svc-accent, var(--magenta)) 65%, transparent);
  }
  .svc-card:hover .svc-icon {
    transform: translateY(-1px) scale(1.04);
  }
}
.svc-icon {
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Reduced-motion: keep a clear but static hover affordance. */
@media (prefers-reduced-motion: reduce) {
  .svc-card:hover {
    border-color: color-mix(in srgb, var(--svc-accent, var(--magenta)) 55%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--svc-accent, var(--magenta)) 35%, transparent);
  }
}

/* =============================================================================
 * PREMIUM UPGRADE LAYER II (appended). Our design calls, loads last.
 *   D. Fresh primary button  (.btn-yellow restyled: white + pink + yellow glow)
 *   E. Case-study slider      (.cs-slider / .cs-slide / .cs-slider-nav)
 *   G. How-it-works steps      (.ix-steps / .ix-step)
 * All motion wrapped in prefers-reduced-motion.
 * ========================================================================== */

/* -----------------------------------------------------------------------------
 * D. FRESH PRIMARY BUTTON  (.btn-yellow auto-upgrade, site-wide)
 * we found the flat yellow CTA tacky and loves the clean white button on the
 * dark band. So on LIGHT backgrounds the primary now renders as a premium WHITE
 * button: white fill, charcoal text, a magenta/pink hairline ring, and a soft
 * YELLOW GLOW that intensifies on hover, plus a subtle lift. Yellow stays the
 * glow/accent, never the flat fill. Because .btn-yellow is the primary used
 * everywhere, restyling it here upgrades the whole site at once.
 * (The white-on-dark .btn-on-deep--solid above is untouched.)
 * --------------------------------------------------------------------------- */
.btn-yellow {
  /* Crisp white, pink-ringed pill with a warm yellow halo. */
  background: #fff !important;
  color: var(--charcoal) !important;
  border: 1.5px solid color-mix(in srgb, var(--magenta) 45%, transparent) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 26px -16px rgba(45, 45, 45, 0.4),
    0 0 0 0 color-mix(in srgb, var(--yellow) 75%, transparent),
    0 8px 30px -10px color-mix(in srgb, var(--yellow) 55%, transparent);
  transition:
    transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.22s ease,
    border-color 0.18s ease;
}
.btn-yellow:hover,
.btn-yellow:focus-visible {
  color: var(--charcoal) !important;
  /* Pink ring firms up; the yellow glow blooms wider + brighter. */
  border-color: color-mix(in srgb, var(--magenta) 70%, transparent) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 34px -18px rgba(45, 45, 45, 0.4),
    0 0 0 4px color-mix(in srgb, var(--yellow) 38%, transparent),
    0 14px 46px -8px color-mix(in srgb, var(--yellow) 75%, transparent);
}
.btn-yellow:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--magenta) 60%, transparent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-yellow:hover,
  .btn-yellow:focus-visible { transform: translateY(-2px); }
  .btn-yellow:active { transform: translateY(0); }
}

/* Consistent branded SECONDARY on light backgrounds: white fill + magenta
 * outline and text, subtle lift. Pairs with the white+glow primary so the whole
 * site reads as one clean pink-and-white system (yellow stays a glow accent).
 * Buttons on dark bands use .btn-on-deep variants and are unaffected. */
.btn-secondary:not(.btn-on-deep) {
  background: #fff;
  color: var(--magenta-dark, #c01177);
  border: 1.5px solid color-mix(in srgb, var(--magenta) 42%, transparent);
  box-shadow: 0 6px 18px -12px rgba(231, 28, 142, 0.32);
}
.btn-secondary:not(.btn-on-deep):hover,
.btn-secondary:not(.btn-on-deep):focus-visible {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: 0 10px 24px -12px rgba(231, 28, 142, 0.45);
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
 * E. CASE-STUDY SLIDER  (.cs-slider / .cs-slide / .cs-slider-nav)
 * A reusable horizontal scroll-snap carousel: swipeable on touch, scrollable by
 * trackpad, and arrow-navigable on desktop. Hidden scrollbar, soft edge mask so
 * cards fade out instead of hard-clipping at the rails.
 *
 * Markup:
 *   <div class="cs-slider-wrap">
 *     <div class="cs-slider">
 *       <article class="cs-slide quote-card lift"> ... </article>
 *       <article class="cs-slide quote-card lift"> ... </article>
 *     </div>
 *     <div class="cs-slider-nav">
 *       <button class="cs-nav-btn" data-cs-prev aria-label="Previous">‹</button>
 *       <button class="cs-nav-btn" data-cs-next aria-label="Next">›</button>
 *     </div>
 *   </div>
 * Wire the two buttons in your page with a tiny inline script:
 *   slider.scrollBy({ left: ±(slider.querySelector('.cs-slide').offsetWidth + 24), behavior:'smooth' })
 * --------------------------------------------------------------------------- */
.cs-slider {
  display: flex;
  gap: clamp(16px, 2.4vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;             /* Firefox */
  padding: 6px 2px 22px;             /* room for card shadow/lift */
  /* Fade the left + right edges so partial cards melt out. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.cs-slider::-webkit-scrollbar { display: none; }  /* Safari/Chrome */

.cs-slide {
  scroll-snap-align: start;
  flex: 0 0 auto;
  /* One card on mobile, ~2 on tablet, ~3 on wide. */
  width: min(86%, 360px);
}
@media (min-width: 720px) {
  .cs-slide { width: 380px; }
}

/* Optional prev/next control row, right-aligned under the rail. */
.cs-slider-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.cs-nav-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--purple);
  border: 1.5px solid color-mix(in srgb, var(--purple) 22%, transparent);
  box-shadow: 0 10px 26px -16px rgba(45, 45, 45, 0.4);
  transition:
    transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.cs-nav-btn:hover {
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 32px -14px rgba(120, 64, 144, 0.55);
}
.cs-nav-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--magenta) 60%, transparent);
  outline-offset: 2px;
}
.cs-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cs-nav-btn:hover { transform: translateY(-2px); }
  .cs-nav-btn:active { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-slider { scroll-behavior: auto; }
}
/* Nav buttons sitting on a deep band stay readable. */
.band-deep .cs-nav-btn,
section.final-cta .cs-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.band-deep .cs-nav-btn:hover,
section.final-cta .cs-nav-btn:hover {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
}
/* -----------------------------------------------------------------------------
 * G. HOW-IT-WORKS STEPS  (.ix-steps / .ix-step)
 * A dynamic numbered-steps row: big gradient number, a connector line between
 * steps, and a hover lift. Three across on desktop, stacks to one on mobile
 * with a vertical connector instead of horizontal.
 *
 * Markup:
 *   <ol class="ix-steps">
 *     <li class="ix-step">
 *       <span class="ix-num">1</span>
 *       <h3 class="ix-step-title">Upload your bill</h3>
 *       <p class="ix-step-body">Snap it or drop the PDF. Takes about a minute.</p>
 *     </li>
 *     ... (repeat) ...
 *   </ol>
 * --------------------------------------------------------------------------- */
.ix-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: repeat(3, 1fr);
  counter-reset: ix;
}
@media (max-width: 760px) {
  .ix-steps { grid-template-columns: 1fr; gap: 18px; }
}
.ix-step {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 30px 26px 26px;
  box-shadow: 0 18px 48px -30px rgba(45, 45, 45, 0.4);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
/* Connector line running from each step to the next (desktop: horizontal). */
.ix-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  right: clamp(-20px, -1.5vw, -11px);
  width: clamp(22px, 3vw, 40px);
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--magenta) 60%, transparent), color-mix(in srgb, var(--purple) 60%, transparent));
  z-index: 1;
}
@media (max-width: 760px) {
  /* Vertical connector when stacked. */
  .ix-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: clamp(-18px, -2vw, -10px);
    left: 48px;
    width: 2px;
    height: clamp(18px, 3vw, 30px);
    background: linear-gradient(180deg, color-mix(in srgb, var(--magenta) 60%, transparent), color-mix(in srgb, var(--purple) 60%, transparent));
  }
}
/* Big gradient step number. */
.ix-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--magenta) 70%, transparent);
}
.ix-step-title {
  margin: 0 0 8px;
  color: var(--charcoal);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.2;
}
.ix-step-body {
  margin: 0;
  color: color-mix(in srgb, var(--charcoal) 78%, #fff);
  font-size: 15.5px;
  line-height: 1.55;
}
@media (prefers-reduced-motion: no-preference) {
  .ix-step:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--magenta) 40%, transparent);
    box-shadow: 0 34px 70px -30px color-mix(in srgb, var(--purple) 45%, rgba(45, 45, 45, 0.5));
  }
  .ix-step { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .ix-step:hover {
    border-color: color-mix(in srgb, var(--magenta) 40%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--magenta) 28%, transparent);
  }
}
/* Steps placed on a deep band: invert the card to glass. */
.band-deep .ix-step,
section.final-cta .ix-step {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.band-deep .ix-step-title,
section.final-cta .ix-step-title { color: #fff; }
.band-deep .ix-step-body,
section.final-cta .ix-step-body { color: rgba(255, 255, 255, 0.86); }

/* ============================================================
   Mobile polish pass (2026-06-22) — small-screen QA fixes
   Loaded last, so these win at narrow widths.
   ============================================================ */
body { overflow-x: clip; } /* kill any full-bleed sideways scroll sliver */
@media (max-width: 600px) {
  h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.14; }
  .home-cinema { height: clamp(420px, 70vh, 560px); min-height: 0; }
}
@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { flex: none; width: 100%; }
  .problem-stats { grid-template-columns: 1fr; }
}
