/* =========================================================================
   Signal — styles for the second-generation section types.

   Palette is the canonical Savior record, not a resample: #0a1628 is the
   ecosystem canvas, #00aeef the SaviorPay accent (7.17:1 on that canvas),
   #3d5aa8 the ecosystem blue lifted to #617dc6 where it sits on dark (the raw
   value measures 2.79:1 there and fails). Every colour is written through a
   custom property that falls back to the brand-token variable first, so a
   merchant who supplies their own ramp changes these sections too.

   Type is the theme's existing pair — Manrope for display, Inter for text —
   both already self-hosted, so nothing here adds a font request.
   ====================================================================== */

:root {
  --sg-canvas:  var(--spx-navy, #0a1628);
  --sg-canvas2: var(--spx-navy2, #0f2040);
  --sg-accent:  var(--spx-accent, #00aeef);
  --sg-blue:    var(--spx-blue, #3d5aa8);
  --sg-blue-up: #617dc6;             /* ecosystem blue, lifted for dark grounds */

  --sg-on-dark:       #eaf1fa;
  --sg-on-dark-muted: #9db0cb;
  --sg-on-dark-line:  rgba(255, 255, 255, .11);
  --sg-on-dark-line2: rgba(255, 255, 255, .18);

  --sg-ink:   var(--spx-ink, #0f172a);
  --sg-body:  var(--spx-body, #475569);
  --sg-muted: var(--spx-muted, #64748b);
  --sg-paper: var(--spx-paper, #fff);
  --sg-tint:  var(--spx-tint, #f4f7fc);
  --sg-line:  var(--spx-line, #dde5f2);

  --sg-display: var(--spx-font-display, Manrope), system-ui, sans-serif;
  --sg-text:    var(--spx-font-text, Inter), system-ui, sans-serif;

  --sg-wrap: min(1220px, calc(100% - 48px));
  --sg-r:    var(--spx-r-md, 20px);
  --sg-r-lg: var(--spx-r-lg, 28px);
  --sg-ease: cubic-bezier(.2, .7, .3, 1);
}

/* Sections own their own vertical rhythm through padding, so the editor's
   default block gap between them is a seam — invisible between two light
   sections and a white line between two dark ones. */
.entry-content > .sp-sg,
.entry-content > .sp-x { margin-block-start: 0; margin-block-end: 0; }

.sp-sg { position: relative; padding: clamp(64px, 7.5vw, 116px) 0; }
.sp-sg-wrap { width: var(--sg-wrap); margin: 0 auto; }
.sp-sg img { max-width: 100%; height: auto; display: block; }
.sp-sg *, .sp-sg *::before, .sp-sg *::after { box-sizing: border-box; }

/* ---------- type ---------- */

.sp-sg-eyebrow,
.sp-sg-onDark-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-family: var(--sg-text);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--spx-accent-tx, #0076a2);
}
.sp-sg-eyebrow > span,
.sp-sg-onDark-eyebrow > span {
  flex: 0 0 auto; width: 26px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .85;
}
.sp-sg-eyebrow--onDark, .sp-sg-onDark-eyebrow { color: var(--sg-accent); }

.sp-sg-display {
  margin: 0;
  max-width: 18ch;
  font-family: var(--sg-display);
  font-size: clamp(2.35rem, 1rem + 3.6vw, 3.95rem);
  line-height: 1.02;
  letter-spacing: -.038em;
  font-weight: 800;
  color: var(--sg-on-dark);
  text-wrap: balance;
}
.sp-sg-title, .sp-sg-onDark-title {
  margin: 0;
  font-family: var(--sg-display);
  font-size: clamp(1.85rem, 1rem + 2.4vw, 3rem);
  line-height: 1.07;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--sg-ink);
  text-wrap: balance;
}
.sp-sg-onDark-title { color: var(--sg-on-dark); }

.sp-sg-lead, .sp-sg-onDark-lead {
  margin: 20px 0 0;
  font-family: var(--sg-text);
  font-size: clamp(1.02rem, .96rem + .22vw, 1.16rem);
  line-height: 1.62;
  color: var(--sg-body);
  max-width: var(--spx-measure, 62ch);
}
.sp-sg-onDark-lead { color: var(--sg-on-dark-muted); }

/* ---------- buttons ---------- */

.sp-sg-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sp-sg-ctas--centre { justify-content: center; }

.sp-sg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sg-text); font-size: .95rem; font-weight: 650;
  letter-spacing: -.01em; text-decoration: none;
  transition: transform .18s var(--sg-ease), background-color .18s, border-color .18s, color .18s;
}
.sp-sg-btn:hover { transform: translateY(-1px); }
.sp-sg-btn:focus-visible { outline: 3px solid var(--sg-accent); outline-offset: 3px; }

.sp-sg-btn--primary { background: var(--sg-blue); color: #fff; }
.sp-sg-btn--primary:hover { background: var(--spx-blue-deep, #334c8e); color: #fff; }
.sp-sg-btn--ghost { border-color: var(--sg-line); color: var(--sg-ink); background: transparent; }
.sp-sg-btn--ghost:hover { border-color: var(--sg-ink); }
.sp-sg-btn--accent { background: var(--sg-accent); color: #05121f; }
.sp-sg-btn--accent:hover { background: #2bc0f5; color: #05121f; }
.sp-sg-btn--onDark { border-color: var(--sg-on-dark-line2); color: var(--sg-on-dark); background: transparent; }
.sp-sg-btn--onDark:hover { border-color: var(--sg-on-dark); background: rgba(255, 255, 255, .06); }

/* =========================================================================
   Hero
   ====================================================================== */

.sp-sg--hero {
  background: var(--sg-canvas);
  overflow: hidden;
  padding: clamp(76px, 8vw, 132px) 0 clamp(28px, 3vw, 44px);
  isolation: isolate;
}

/* The photograph is real and it is held right back — it gives the ground
   depth and texture without competing with a headline for attention. */
.sp-sg-hero__bg { position: absolute; inset: 0; z-index: -2; }
.sp-sg-hero__bgimg {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 72% 42%;
  opacity: .26;
  filter: grayscale(.45) contrast(1.04) blur(1.5px);
  transform: scale(1.08);
}
.sp-sg-hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(115% 85% at 8% 4%, rgba(0, 174, 239, .28) 0%, rgba(0, 174, 239, 0) 58%),
    radial-gradient(85% 70% at 96% 92%, rgba(61, 90, 168, .34) 0%, rgba(61, 90, 168, 0) 62%),
    linear-gradient(180deg, rgba(10, 22, 40, .74) 0%, rgba(10, 22, 40, .93) 46%, var(--sg-canvas) 100%);
}

.sp-sg-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}
.sp-sg-hero__copy { min-width: 0; }
.sp-sg-lead--hero { color: #c3d2e6; max-width: 46ch; margin-top: 24px; }
.sp-sg-ctas--hero { margin-top: 34px; }
.sp-sg-hero__credit {
  margin: 30px 0 0;
  font-family: var(--sg-text); font-size: .78rem; line-height: 1.5;
  color: rgba(157, 176, 203, .78); max-width: 42ch;
}
.sp-sg-hero__note {
  margin: clamp(34px, 4vw, 54px) 0 0;
  font-family: var(--sg-text); font-size: .82rem; color: var(--sg-on-dark-muted);
}
.sp-sg-hero__note .sp-sg-wrap {
  display: block; padding-top: 20px; border-top: 1px solid var(--sg-on-dark-line);
}

/* =========================================================================
   Router
   ====================================================================== */

.sp-router--panel {
  position: relative;
  background: linear-gradient(158deg, rgba(24, 44, 76, .94) 0%, rgba(12, 26, 47, .96) 100%);
  border: 1px solid var(--sg-on-dark-line2);
  border-radius: var(--sg-r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
}
.sp-router--band {
  border: 1px solid var(--sg-on-dark-line2);
  border-radius: var(--sg-r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  background: rgba(255, 255, 255, .03);
}

.sp-router__q {
  margin: 0 0 20px;
  font-family: var(--sg-display);
  font-size: clamp(1.28rem, 1.06rem + .7vw, 1.62rem);
  line-height: 1.2; letter-spacing: -.022em; font-weight: 800;
  color: var(--sg-on-dark);
}
.sp-router__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }

.sp-router__branch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px; padding: 11px 16px;
  border: 1px solid var(--sg-on-dark-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: var(--sg-on-dark);
  font-family: var(--sg-text); font-size: .96rem; font-weight: 550;
  letter-spacing: -.008em; text-decoration: none;
  transition: background-color .18s, border-color .18s, transform .18s var(--sg-ease);
}
.sp-router__branch:hover {
  background: rgba(0, 174, 239, .12);
  border-color: rgba(0, 174, 239, .55);
  transform: translateX(3px);
}
.sp-router__branch:focus-visible { outline: 3px solid var(--sg-accent); outline-offset: 2px; }
.sp-router__label { min-width: 0; }
.sp-router__arrow {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: var(--sg-accent);
  transition: background-color .18s, transform .18s var(--sg-ease);
}
.sp-router__branch:hover .sp-router__arrow { background: rgba(0, 174, 239, .2); transform: translateX(2px); }
.sp-router__hint {
  margin: 18px 0 0; font-family: var(--sg-text); font-size: .8rem; line-height: 1.5;
  color: var(--sg-on-dark-muted);
}

/* ---------- upgraded panel ---------- */

.sp-router__panel[hidden] { display: none; }
.sp-router__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 12px 6px 8px;
  background: none; border: 1px solid var(--sg-on-dark-line); border-radius: 999px;
  color: var(--sg-on-dark-muted);
  font-family: var(--sg-text); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: color .16s, border-color .16s;
}
.sp-router__back:hover { color: var(--sg-on-dark); border-color: var(--sg-on-dark-line2); }
.sp-router__back:focus-visible { outline: 3px solid var(--sg-accent); outline-offset: 2px; }

.sp-router__chosen {
  margin: 0 0 10px;
  font-family: var(--sg-display); font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem);
  line-height: 1.18; letter-spacing: -.02em; font-weight: 800; color: var(--sg-on-dark);
}
.sp-router__answer {
  margin: 0 0 22px; font-family: var(--sg-text); font-size: .96rem; line-height: 1.6;
  color: var(--sg-on-dark-muted); max-width: 48ch;
}
.sp-router__fields { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 560px) { .sp-router__fields { grid-template-columns: 1fr 1fr; } }

.sp-router__field { display: grid; gap: 7px; }
.sp-router__field label {
  font-family: var(--sg-text); font-size: .82rem; font-weight: 600; color: var(--sg-on-dark);
}
.sp-router__field small {
  font-family: var(--sg-text); font-size: .74rem; color: var(--sg-on-dark-muted); line-height: 1.4;
}
.sp-router__input {
  width: 100%; min-height: 52px; padding: 0 16px;
  background: rgba(4, 12, 24, .6);
  border: 1px solid var(--sg-on-dark-line2); border-radius: 12px;
  color: var(--sg-on-dark);
  font-family: var(--sg-text); font-size: 1.02rem; font-weight: 600;
}
.sp-router__input::placeholder { color: rgba(157, 176, 203, .55); font-weight: 400; }
.sp-router__input:focus { outline: 3px solid var(--sg-accent); outline-offset: 1px; border-color: transparent; }
.sp-router__error {
  margin: -6px 0 16px; font-family: var(--sg-text); font-size: .82rem; color: #ffb4a8;
}
.sp-router__error[hidden] { display: none; }
.sp-router__go { width: 100%; }
.sp-router__fine {
  margin: 16px 0 0; font-family: var(--sg-text); font-size: .76rem; line-height: 1.5;
  color: rgba(157, 176, 203, .8);
}

/* =========================================================================
   Trust strip

   The shared trust_bar type follows the hero, so on this page it has to be a
   dark component. Its own stylesheet colours it for a light ground, which is
   correct there and unreadable here — everything below is a recolour and a
   layout change, no new markup.
   ====================================================================== */

.sp-sg--hero + .sp-x--trust { background: var(--sg-canvas); padding: 0 0 clamp(28px, 3vw, 44px); }
.sp-sg--hero + .sp-x--trust .sp-x-wrap {
  width: var(--sg-wrap);
  border-block: 0;
  border-top: 1px solid var(--sg-on-dark-line);
  padding: clamp(22px, 2.4vw, 30px) 0 0;
}
.sp-sg--hero + .sp-x--trust .sp-x-trust__list {
  display: grid; gap: 20px 32px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.sp-sg--hero + .sp-x--trust .sp-x-trust__list li {
  display: grid; gap: 4px; align-items: start;
}
.sp-sg--hero + .sp-x--trust .sp-x-trust__list strong {
  font-family: var(--sg-display); font-size: 1.42rem; font-weight: 800;
  letter-spacing: -.025em; color: var(--sg-on-dark);
}
.sp-sg--hero + .sp-x--trust .sp-x-trust__list span {
  font-family: var(--sg-text); font-size: .84rem; line-height: 1.45; color: var(--sg-on-dark-muted);
}

/* =========================================================================
   Header, on a page that opens dark

   The body class is set by the section module when the first section is a
   signal hero, so this is a property of the page composition rather than a
   rule about which page it is — a merchant whose home page opens dark gets
   the same header without anyone writing another selector.
   ====================================================================== */

.sp-hero-dark .wp-site-blocks > header.wp-block-template-part {
  position: relative; z-index: 60;
  background: var(--sg-canvas);
  border-bottom: 1px solid var(--sg-on-dark-line);
}
.sp-hero-dark .wp-site-blocks > header .sp-primary-nav a,
.sp-hero-dark .wp-site-blocks > header .sp-brand-wordmark { color: var(--sg-on-dark); }
.sp-hero-dark .wp-site-blocks > header .sp-primary-nav a:hover { color: var(--sg-accent); }
.sp-hero-dark .wp-site-blocks > header .sp-primary-nav a[aria-current="page"] { color: var(--sg-accent); }
/* `!important` matched, not chosen: style.css line 964 already declares
   `.sp-button-secondary { color:#0f172a !important }`, and that value is
   2.2:1 on this ground. Removing the legacy declaration would change every
   other page in the theme, so the override is scoped to the dark header. */
.sp-hero-dark .wp-site-blocks > header .sp-button-secondary {
  border-color: var(--sg-on-dark-line2); color: var(--sg-on-dark) !important; background: transparent;
}
.sp-hero-dark .wp-site-blocks > header .sp-button-secondary:hover {
  border-color: var(--sg-on-dark); background: rgba(255, 255, 255, .07);
}
.sp-hero-dark .wp-site-blocks > header .sp-mobile-toggle {
  background: transparent; border-color: var(--sg-on-dark-line2); color: var(--sg-on-dark);
}
/* wpautop leaves stray empty paragraphs in the shortcode's output; they add
   vertical space to a header that is otherwise correct. */
.sp-hero-dark .wp-site-blocks > header > p:empty { display: none; }

/* The block gap between the header and main is a light seam above a dark
   hero. Close it, and only on the pages that open dark. */
.sp-hero-dark .wp-site-blocks > main { margin-block-start: 0; }

/* Two marks, one shown at a time. The light-ground mark is the default and
   the dark-ground mark only exists when the profile supplies one. */
.sp-brand-logo--dark { display: none; }
.sp-hero-dark .wp-site-blocks > header .sp-brand-logo--light { display: none; }
.sp-hero-dark .wp-site-blocks > header .sp-brand-logo--dark { display: block; }

/* =========================================================================
   Capability map
   ====================================================================== */

.sp-sg--map { background: var(--sg-paper); }
.sp-sg-map__head { max-width: 46ch; margin-bottom: clamp(36px, 4vw, 56px); }
.sp-sg-map__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 64px);
}
@media (min-width: 900px) { .sp-sg-map__grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); } }

.sp-sg-map__spine { display: none; }
@media (min-width: 900px) {
  .sp-sg-map__spine {
    display: block; position: absolute; top: 6px; bottom: 6px; left: 50%;
    width: 1px; transform: translateX(-.5px);
    background: linear-gradient(180deg, transparent, var(--sg-line) 12%, var(--sg-line) 88%, transparent);
  }
}

.sp-sg-map__colhead { padding-bottom: 18px; border-bottom: 2px solid var(--sg-ink); margin-bottom: 6px; }
.sp-sg-map__colhead h3 {
  margin: 0; font-family: var(--sg-display); font-size: 1.35rem; font-weight: 800;
  letter-spacing: -.022em; color: var(--sg-ink);
}
.sp-sg-map__colhead p {
  margin: 8px 0 0; font-family: var(--sg-text); font-size: .9rem; line-height: 1.55; color: var(--sg-muted);
}
.sp-sg-map__list { list-style: none; margin: 0; padding: 0; }
.sp-sg-map__list > li + li { border-top: 1px solid var(--sg-line); }

.sp-sg-map__item {
  display: grid; gap: 4px; padding: 18px 34px 18px 0;
  text-decoration: none; color: inherit; position: relative;
  transition: padding-left .2s var(--sg-ease);
}
a.sp-sg-map__item::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%);
  background: currentColor; color: var(--sg-muted); opacity: .5;
  -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M10.5 5.5 15 10l-4.5 4.5'/%3E%3C/svg%3E");
          mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M10.5 5.5 15 10l-4.5 4.5'/%3E%3C/svg%3E");
  transition: transform .2s var(--sg-ease), opacity .2s;
}
a.sp-sg-map__item:hover { padding-left: 14px; }
a.sp-sg-map__item:hover::after { transform: translate(3px, -50%); opacity: 1; color: var(--spx-accent-tx, #0076a2); }
a.sp-sg-map__item::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: var(--sg-accent); opacity: 0; transition: opacity .2s;
}
a.sp-sg-map__item:hover::before { opacity: 1; }
a.sp-sg-map__item:focus-visible { outline: 3px solid var(--sg-accent); outline-offset: 2px; border-radius: 6px; }

.sp-sg-map__label {
  font-family: var(--sg-display); font-size: 1.06rem; font-weight: 750;
  letter-spacing: -.015em; color: var(--sg-ink);
}
.sp-sg-map__desc { font-family: var(--sg-text); font-size: .9rem; line-height: 1.55; color: var(--sg-body); }
.sp-sg-map__note {
  margin: clamp(32px, 4vw, 52px) auto 0; max-width: 62ch; text-align: center;
  font-family: var(--sg-text); font-size: .92rem; line-height: 1.6; color: var(--sg-muted);
}

/* =========================================================================
   Product frame
   ====================================================================== */

.sp-sg--frame {
  background:
    radial-gradient(90% 70% at 88% 0%, rgba(0, 174, 239, .16) 0%, rgba(0, 174, 239, 0) 60%),
    linear-gradient(180deg, #081324 0%, var(--sg-canvas) 100%);
  color: var(--sg-on-dark);
  overflow: hidden;
}
.sp-sg-frame__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(36px, 4.5vw, 64px); align-items: center;
}
@media (min-width: 960px) { .sp-sg-frame__grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); } }

.sp-sg-frame__points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.sp-sg-frame__points li {
  display: grid; gap: 3px; padding-left: 22px; position: relative;
  font-family: var(--sg-text);
}
.sp-sg-frame__points li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sg-accent);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, .16);
}
.sp-sg-frame__points strong { font-size: .98rem; font-weight: 700; color: var(--sg-on-dark); }
.sp-sg-frame__points span { font-size: .92rem; line-height: 1.6; color: var(--sg-on-dark-muted); }
.sp-sg-frame__note {
  margin: 26px 0 0; font-family: var(--sg-text); font-size: .8rem; line-height: 1.55;
  color: rgba(157, 176, 203, .82); max-width: 52ch;
}

.sp-sg-frame__shot {
  margin: 0; position: relative;
  border: 1px solid var(--sg-on-dark-line2); border-radius: var(--sg-r-lg);
  background: #060f1c; overflow: hidden;
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 174, 239, .1);
}
.sp-sg-frame__chrome {
  display: flex; gap: 7px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--sg-on-dark-line);
  background: rgba(255, 255, 255, .03);
}
.sp-sg-frame__chrome span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.sp-sg-frame__img { width: 100%; }
.sp-sg-frame__shot figcaption {
  padding: 14px 18px; border-top: 1px solid var(--sg-on-dark-line);
  font-family: var(--sg-text); font-size: .8rem; line-height: 1.5; color: var(--sg-on-dark-muted);
  background: rgba(255, 255, 255, .02);
}

/* =========================================================================
   Story rail
   ====================================================================== */

.sp-sg--rail { background: var(--sg-tint); }
.sp-sg-rail__head { margin-bottom: clamp(30px, 3.5vw, 48px); }
.sp-sg-rail__head .sp-sg-title,
.sp-sg-rail__head .sp-sg-lead { max-width: 46ch; }

.sp-sg-rail__scroller {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 18px;
}
.sp-sg-rail__track {
  list-style: none; margin: 0;
  padding-inline: calc((100% - var(--sg-wrap)) / 2);
  display: flex; gap: 20px;
}
.sp-sg-rail__item { flex: 0 0 min(84vw, 340px); scroll-snap-align: start; }

.sp-sg-rail__card {
  display: flex; flex-direction: column; height: 100%; gap: 10px;
  padding: 30px 26px 26px;
  background: var(--sg-paper);
  border: 1px solid var(--sg-line); border-radius: var(--sg-r);
  text-decoration: none; color: inherit;
  transition: transform .22s var(--sg-ease), box-shadow .22s, border-color .22s;
}
a.sp-sg-rail__card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, .5);
  box-shadow: var(--spx-shadow-l, 0 2px 4px rgba(15, 23, 42, .05), 0 28px 60px -32px rgba(15, 23, 42, .4));
}
a.sp-sg-rail__card:focus-visible { outline: 3px solid var(--sg-accent); outline-offset: 3px; }

.sp-sg-rail__index {
  font-family: var(--sg-display); font-size: .82rem; font-weight: 800;
  letter-spacing: .1em;
  /* the raw accent is 2.53:1 on this card; the measured text derivation is 5.11:1 */
  color: var(--spx-accent-tx, #0076a2);
}
.sp-sg-rail__merchant {
  font-family: var(--sg-text); font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--sg-muted);
}
.sp-sg-rail__title {
  margin: 2px 0 0; font-family: var(--sg-display);
  font-size: 1.22rem; line-height: 1.24; letter-spacing: -.022em; font-weight: 780; color: var(--sg-ink);
}
.sp-sg-rail__body {
  margin: 0; font-family: var(--sg-text); font-size: .92rem; line-height: 1.6; color: var(--sg-body);
}
.sp-sg-rail__stat {
  margin-top: 4px; font-family: var(--sg-display); font-size: .9rem; font-weight: 750; color: var(--spx-accent-tx, #0076a2);
}
.sp-sg-rail__more {
  margin-top: auto; padding-top: 14px;
  font-family: var(--sg-text); font-size: .85rem; font-weight: 650; color: var(--spx-accent-tx, #0076a2);
}
.sp-sg-rail__more::after { content: " →"; }

/* =========================================================================
   Video feature
   ====================================================================== */

.sp-sg--videos { background: var(--sg-canvas); color: var(--sg-on-dark); }
.sp-sg-videos__head { max-width: 46ch; margin-bottom: clamp(30px, 3.5vw, 48px); }
/* A row rather than a grid, so the section reads the same with two videos or
   four, and the lead simply takes more of it. */
.sp-sg-videos__grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.sp-sg-videos__grid > .sp-sg-video { flex: 1 1 240px; min-width: 0; }
/* The lead only takes more room when there is a supporting cast to lead.
   With two videos they are peers and equal width reads better. */
@media (min-width: 760px) {
  .sp-sg-videos__grid > .sp-sg-video--lead:nth-last-child(n+3) { flex-grow: 1.35; }
}

.sp-sg-video { margin: 0; }
.sp-sg-video__frame {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  background-color: #05101d; background-size: cover; background-position: center 22%;
  border: 1px solid var(--sg-on-dark-line2); border-radius: var(--sg-r);
  transition: transform .22s var(--sg-ease), border-color .22s;
}
.sp-sg-video__frame:hover { transform: translateY(-3px); border-color: rgba(0, 174, 239, .55); }
.sp-sg-video__frame:focus-visible { outline: 3px solid var(--sg-accent); outline-offset: 3px; }
.sp-sg-video__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 16, 29, .1) 0%, rgba(5, 16, 29, 0) 40%, rgba(5, 16, 29, .55) 100%);
}
.sp-sg-video__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-radius: 50%; color: #05121f;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  transition: transform .22s var(--sg-ease), background-color .22s;
}
.sp-sg-video__play svg { margin-left: 3px; }
.sp-sg-video__frame:hover .sp-sg-video__play { transform: scale(1.07); background: var(--sg-accent); }
.sp-sg-video--lead .sp-sg-video__frame { box-shadow: 0 50px 100px -55px rgba(0, 0, 0, 1); }

/* The element swapped in on click. */
.sp-sg-video__el {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; display: block;
  object-fit: cover; background: #05101d;
}
.sp-sg-video figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 12px;
  font-family: var(--sg-text);
}
.sp-sg-video figcaption strong { font-size: .95rem; font-weight: 700; color: var(--sg-on-dark); }
.sp-sg-video figcaption span { font-size: .87rem; color: var(--sg-on-dark-muted); }
.sp-sg-videos__note {
  margin: clamp(26px, 3vw, 40px) 0 0; padding-top: 20px; border-top: 1px solid var(--sg-on-dark-line);
  font-family: var(--sg-text); font-size: .82rem; color: var(--sg-on-dark-muted);
}

/* =========================================================================
   Before / after
   ====================================================================== */

.sp-sg--ba { background: var(--sg-tint); }
.sp-sg-ba__intro { max-width: 52ch; margin-bottom: clamp(30px, 3.5vw, 46px); }

/* The comparison is the argument this section makes, so it gets the whole
   column rather than half of it. */
.sp-sg-ba__foot {
  display: grid; grid-template-columns: 1fr; gap: clamp(26px, 3vw, 48px);
  margin-top: clamp(28px, 3vw, 40px);
}
@media (min-width: 900px) { .sp-sg-ba__foot { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); } }
.sp-sg-ba__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
@media (min-width: 620px) { .sp-sg-ba__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; } }
.sp-sg-ba__points li { display: grid; gap: 3px; padding-left: 20px; position: relative; font-family: var(--sg-text); }
.sp-sg-ba__points li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--sg-blue);
}
.sp-sg-ba__points strong { font-size: .96rem; font-weight: 700; color: var(--sg-ink); }
.sp-sg-ba__points span { font-size: .91rem; line-height: 1.58; color: var(--sg-body); }
.sp-sg-ba__act .sp-sg-ctas { margin-top: 0; }
/* --sg-muted measures 4.43:1 on the tinted ground this section uses, which is
   just under AA. The body tone clears it and reads the same at this size. */
.sp-sg-ba__note { margin: 16px 0 0; font-family: var(--sg-text); font-size: .8rem; line-height: 1.55; color: var(--sg-body); }

.sp-sg-ba__stage {
  position: relative; border-radius: var(--sg-r); overflow: hidden;
  border: 1px solid var(--sg-line);
  box-shadow: var(--spx-shadow-l, 0 2px 4px rgba(15, 23, 42, .05), 0 28px 60px -32px rgba(15, 23, 42, .4));
  --sg-split: 50%;
  touch-action: pan-y;
}
.sp-sg-ba__pane { margin: 0; position: relative; }
.sp-sg-ba__pane--before { position: absolute; inset: 0; }
.sp-sg-ba__img { width: 100%; display: block; }
.sp-sg-ba__pane figcaption {
  position: absolute; bottom: 14px; z-index: 3;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--sg-text); font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  background: rgba(5, 15, 28, .8); color: #fff; backdrop-filter: blur(4px);
}
.sp-sg-ba__pane--before figcaption { left: 14px; }
.sp-sg-ba__pane--after figcaption { right: 14px; background: rgba(0, 174, 239, .92); color: #05121f; }

/* The clip is the enhancement. Without JavaScript the range control is inert
   and the "before" pane simply sits on top at full width — which still reads
   as a labelled screenshot of the previous site, not as a broken widget. */
.sp-sg-ba__stage.is-live .sp-sg-ba__pane--before {
  clip-path: inset(0 calc(100% - var(--sg-split)) 0 0);
}
.sp-sg-ba__range {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.sp-sg-ba__range:focus-visible { opacity: 0; }
.sp-sg-ba__stage:focus-within { outline: 3px solid var(--sg-accent); outline-offset: 3px; }

.sp-sg-ba__handle { display: none; }
.sp-sg-ba__stage.is-live .sp-sg-ba__handle {
  display: block; position: absolute; top: 0; bottom: 0; z-index: 4;
  left: var(--sg-split); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(5, 15, 28, .25);
  pointer-events: none;
}
.sp-sg-ba__stage.is-live .sp-sg-ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff center/18px 18px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 4 12l5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  box-shadow: 0 6px 18px rgba(5, 15, 28, .35);
}

/* =========================================================================
   Closing band

   The shared cta_band type again — recoloured for a page that opens dark so
   the composition closes on the same ground it opened on.
   ====================================================================== */

.sp-hero-dark .sp-x--cta {
  background:
    radial-gradient(80% 100% at 15% 0%, rgba(0, 174, 239, .2) 0%, rgba(0, 174, 239, 0) 62%),
    linear-gradient(180deg, #07101f 0%, var(--sg-canvas) 100%);
}
.sp-hero-dark .sp-x--cta .sp-x-eyebrow { color: var(--sg-accent); }
.sp-hero-dark .sp-x--cta .sp-x-title { color: var(--sg-on-dark); }
.sp-hero-dark .sp-x--cta .sp-x-lead { color: var(--sg-on-dark-muted); }
.sp-hero-dark .sp-x--cta .sp-x-btn--primary { background: var(--sg-accent); color: #05121f; }
.sp-hero-dark .sp-x--cta .sp-x-btn--primary:hover { background: #2bc0f5; color: #05121f; }
.sp-hero-dark .sp-x--cta .sp-x-btn--ghost {
  background: transparent; border-color: var(--sg-on-dark-line2); color: var(--sg-on-dark);
}
.sp-hero-dark .sp-x--cta .sp-x-btn--ghost:hover { border-color: var(--sg-on-dark); background: rgba(255, 255, 255, .06); }

.sp-sg--close {
  background:
    radial-gradient(80% 90% at 12% 0%, rgba(0, 174, 239, .2) 0%, rgba(0, 174, 239, 0) 62%),
    linear-gradient(180deg, var(--sg-canvas) 0%, #07101f 100%);
  color: var(--sg-on-dark);
}
.sp-sg-close__grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
@media (min-width: 900px) { .sp-sg-close__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); } }

/* =========================================================================
   Responsive
   ====================================================================== */

@media (max-width: 900px) {
  .sp-sg-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .sp-sg-hero__credit { display: none; }
  .sp-sg--hero { padding-top: clamp(52px, 12vw, 76px); }
  .sp-sg-frame__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --sg-wrap: calc(100% - 36px); }
  .sp-sg { padding: clamp(52px, 12vw, 72px) 0; }
  .sp-sg-display { font-size: clamp(2.15rem, 1.1rem + 6.2vw, 3rem); }
  .sp-router--panel { padding: 22px 18px; border-radius: 22px; }
  .sp-router__branch { min-height: 56px; font-size: .94rem; }
  .sp-sg-btn { width: 100%; }
  .sp-sg-ctas--hero .sp-sg-btn { width: 100%; }
  .sp-sg-rail__item { flex-basis: min(86vw, 320px); }
  .sp-sg-ba__pane figcaption { font-size: .66rem; padding: 5px 10px; }
}

@media (max-width: 360px) {
  :root { --sg-wrap: calc(100% - 28px); }
  .sp-sg-display { font-size: 1.95rem; letter-spacing: -.03em; }
  .sp-router__q { font-size: 1.16rem; }
  .sp-router__branch { padding: 10px 13px; font-size: .9rem; }
  .sp-sg-rail__item { flex-basis: 82vw; }
}

/* =========================================================================
   Motion
   ====================================================================== */

/* The starting offset is applied only once a script has confirmed it can take
   it away again. Without JavaScript the class never lands and every element is
   simply visible, which is also what a crawler and a print stylesheet see. */
@media (prefers-reduced-motion: no-preference) {
  .sg-js .sp-sg-reveal { opacity: 0; transform: translateY(18px); }
  .sg-js .sp-sg-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--sg-ease), transform .7s var(--sg-ease);
  }
  .sp-sg-hero__bgimg { animation: sg-drift 34s ease-in-out infinite alternate; }
  @keyframes sg-drift {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(-1.4%, -1%, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-js .sp-sg-reveal, .sp-sg-reveal { opacity: 1; transform: none; }
  .sp-sg *, .sp-sg *::before, .sp-sg *::after { animation: none !important; transition: none !important; }
}
