@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* === SPINAWAY SPB: WHEEL & DROPS PORTAL === */
:root {
  --spb-dark: #140F2D;
  --spb-card-bg: #251E4B;
  --spb-soft-bg: #1C163A;
  --spb-fg: #F5F3FF;
  --spb-sub: #BEB7E0;
  --spb-hi: #2EE5B5;
  --spb-alt: #A22687;
  --spb-canvas: #140F2D;
  --spb-pane: #251E4B;
  --spb-ink: #F5F3FF;
  --spb-dim: #BEB7E0;
  --spb-teal: #2EE5B5;
  --spb-magenta: #A22687;
  --spb-head-font: 'Fredoka', sans-serif;
  --spb-text-font: 'Nunito', sans-serif;
}


*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}


html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  background: radial-gradient(circle at 76% 14%, rgba(162, 38, 135, 0.22), transparent 40%), var(--spb-canvas);
  color: var(--spb-ink);
  font-family: var(--spb-text-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

i[class] { font-style: normal; }


p, li, td, th, dd, dt {
  color: var(--spb-ink);
  text-align: left;
  hyphens: auto;
  overflow-wrap: break-word;
}


p {
  margin-top: 0;
  margin-bottom: 1.15rem;
}


main a:not(.spb-press):not(.spb-cta):not(.spb-tile-go),
.spb-bottom-zone a:not(.spb-brand-anchor) {
  color: #5CF2C9;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(92, 242, 201, 0.55);
  font-weight: 700;
}


main a:not(.spb-press):not(.spb-cta):not(.spb-tile-go):hover,
.spb-bottom-zone a:not(.spb-brand-anchor):hover {
  color: #FFFFFF;
}


h1, h2, h3, h4, h5, h6, nav a, .spb-press, .spb-cta, button {
  hyphens: manual !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}


h1 {
  font-family: var(--spb-head-font);
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--spb-ink);
  text-align: left;
  margin: 0 0 0.85rem;
}


h2 {
  font-family: var(--spb-head-font);
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--spb-ink);
  text-align: left;
  border-bottom: 2px solid var(--spb-magenta);
  padding-bottom: 0.45rem;
  margin: 2.25rem 0 1.2rem;
}


h3 {
  font-family: var(--spb-head-font);
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
  line-height: 1.28;
  color: var(--spb-teal);
  margin: 0 0 0.6rem;
}


img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}


.spb-shell-box {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}


.spb-margin-rails {
  position: relative;
  border-left: 1px dashed rgba(165, 158, 201, 0.22);
  border-right: 1px dashed rgba(165, 158, 201, 0.22);
  padding-bottom: 3rem;
}


.spb-margin-rails::before,
.spb-margin-rails::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--spb-teal);
  background: var(--spb-canvas);
  top: 0;
  z-index: 2;
}


.spb-margin-rails::before { left: -3px; }

.spb-margin-rails::after { right: -3px; }


.spb-grain-bg {
  background-image: radial-gradient(rgba(165, 158, 201, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}


/* Btn_09_Neon_Border_Pulse */
.spb-press, .spb-cta {
  background: var(--spb-teal);
  color: #140F2D;
  border: 2px solid var(--spb-magenta);
  border-radius: 999px;
  padding: 0.78rem 1.6rem;
  font-family: var(--spb-head-font);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 16px rgba(46, 229, 181, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}


.spb-press:hover, .spb-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(46, 229, 181, 0.45);
}


.spb-press-line {
  background: rgba(37, 30, 75, 0.85);
  color: #FFFFFF;
  border: 2px solid var(--spb-teal);
  box-shadow: none;
}


.spb-press-line:hover {
  background: rgba(46, 229, 181, 0.18);
}

/* === Shell_2_Floating_Pill_Navbar === */
.spb-topband {
  max-width: 1220px;
  margin: 14px auto 6px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(37, 30, 75, 0.92);
  color: var(--spb-ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(165, 158, 201, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}


.spb-brand-anchor {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}


.spb-brand-anchor img {
  width: 158px;
  height: 36px;
  object-fit: contain;
}


.spb-topband nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}


.spb-topband nav a {
  flex-shrink: 0;
  white-space: nowrap;
  color: #E9E4FF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s ease, color 0.18s ease;
}


.spb-topband nav a:hover,
.spb-topband nav a.spb-on {
  background: rgba(46, 229, 181, 0.16);
  color: var(--spb-teal);
}


@media (max-width: 768px) {
  .spb-topband {
    border-radius: 20px;
    margin: 8px 10px 6px;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.4rem;
  }

  .spb-brand-anchor {
    order: 1;
    flex: 0 0 auto;
  }

  .spb-brand-anchor img {
    width: 128px;
    height: auto;
  }

  .spb-topband .spb-head-cta {
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
    padding: 0.46rem 0.9rem;
    font-size: 0.82rem;
    min-height: 36px;
  }

  .spb-topband nav {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 0.15rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(165, 158, 201, 0.15);
  }
}

/* === Hero_10_HUD_Command_Deck (Compact: H1 + CTA + Banner visible on 390px first screen) === */
.spb-intro-deck {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.9rem;
  padding: 1.35rem 1.5rem;
  margin-top: 1.15rem;
  border: 1px solid rgba(46, 229, 181, 0.45);
  background: linear-gradient(145deg, rgba(37, 30, 75, 0.78), rgba(20, 15, 45, 0.88));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(162, 38, 135, 0.18);
}


.spb-intro-lead {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}


.spb-spec-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #D7D1F5;
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 18, 42, 0.72);
  border: 1px solid rgba(46, 229, 181, 0.3);
}


.spb-intro-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}


.spb-intro-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: rgba(162, 38, 135, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FDE8FF;
  font-family: var(--spb-head-font);
  font-size: 0.8rem;
  font-weight: 600;
}


.spb-intro-media {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(46, 229, 181, 0.32);
}


.spb-intro-media img {
  width: 100%;
  height: auto;
  display: block;
}


.spb-intro-media .spb-intro-btns {
  position: absolute;
  left: clamp(0.85rem, 3vw, 2.25rem);
  bottom: clamp(0.75rem, 2.5vw, 1.75rem);
  z-index: 3;
}


@media (max-width: 640px) {
  .spb-intro-deck {
    padding: 0.95rem 1rem;
    gap: 0.75rem;
    border-radius: 16px;
    margin-top: 0.75rem;
  }

  .spb-intro-deck h1 {
    font-size: 1.55rem;
    margin-bottom: 0.25rem;
  }

  .spb-intro-media .spb-intro-btns {
    left: 0.65rem;
    bottom: 0.55rem;
  }

  .spb-intro-media .spb-intro-btns .spb-press {
    padding: 0.45rem 0.95rem;
    font-size: 0.76rem;
    min-height: 36px;
  }
}

/* === Material_4_Frosted_Liquid_Glass Cards === */
.spb-glass-tile, .spb-panel {
  border-radius: 20px;
  background: linear-gradient(rgba(37, 30, 75, 0.68), rgba(24, 18, 56, 0.78)) padding-box,
              linear-gradient(135deg, var(--spb-teal), rgba(255, 255, 255, 0.16), var(--spb-magenta)) border-box;
  border: 1px solid transparent;
  color: var(--spb-ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(162, 38, 135, 0.14);
  padding: 1.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* === Topology_6_Numbered_Spine_Timeline (01..07 Sections) === */
.spb-track-column {
  position: relative;
  margin-top: 2rem;
  padding-left: 2.25rem;
  border-left: 2px solid rgba(46, 229, 181, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}


.spb-track-chapter {
  position: relative;
}


.spb-spine-num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 18, 42, 0.9);
  border: 1px solid var(--spb-teal);
  color: var(--spb-teal);
  font-family: var(--spb-head-font);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}


.spb-track-chapter h2 {
  margin-top: 0;
}


@media (max-width: 640px) {
  .spb-track-column {
    padding-left: 1.15rem;
  }
}


.spb-glass-tile:hover, .spb-panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--spb-magenta);
}

/* === Bonus Cards Grid === */
.spb-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}


@media (max-width: 960px) {
  .spb-reward-grid {
    grid-template-columns: 1fr;
  }
}


.spb-reward-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}


.spb-reward-sum {
  font-family: var(--spb-head-font);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--spb-teal);
}

/* === Slot Posters Grid === */
.spb-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}


@media (max-width: 992px) {
  .spb-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}


@media (max-width: 480px) {
  .spb-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}


.spb-tile-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--spb-pane);
  border: 1px solid rgba(165, 158, 201, 0.25);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}


.spb-tile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.spb-tile-flag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-family: var(--spb-head-font);
  font-size: 0.74rem;
  font-weight: 700;
  background: #140F2D;
  color: var(--spb-teal);
  border: 1px solid var(--spb-teal);
}


.spb-tile-flag.spb-flag-new {
  background: var(--spb-magenta);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}


.spb-tile-flag.spb-flag-pot {
  background: #F59E0B;
  color: #140F2D;
  border-color: #FEF3C7;
}


.spb-tile-hover {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(20, 15, 45, 0.2) 0%, rgba(20, 15, 45, 0.94) 74%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}


.spb-tile-card:hover .spb-tile-hover,
.spb-tile-card:focus-within .spb-tile-hover,
.spb-tile-card.spb-tap-on .spb-tile-hover {
  opacity: 1;
}


.spb-tile-cap {
  font-family: var(--spb-head-font);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}


.spb-tile-actions {
  display: flex;
  gap: 0.5rem;
}


.spb-tile-go {
  flex: 1 1 auto;
  min-height: 38px;
  border-radius: 999px;
  font-family: var(--spb-head-font);
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  background: var(--spb-teal);
  color: #140F2D;
}


.spb-tile-go.spb-try-cta {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* === DataViz_02_Bullet_Benchmark_Bars === */
.spb-bar-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.35rem;
  border-radius: 20px;
  background: var(--spb-soft-bg);
  border: 1px solid rgba(165, 158, 201, 0.22);
}


.spb-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}


.spb-bar-bg {
  position: relative;
  height: 14px;
  background: rgba(165, 158, 201, 0.2);
  border-radius: 999px;
  overflow: hidden;
}


.spb-bar-level {
  height: 100%;
  background: linear-gradient(90deg, var(--spb-teal), var(--spb-magenta));
  border-radius: 999px;
}

/* === Pros & Cons Pair === */
.spb-compare-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}


@media (max-width: 768px) {
  .spb-compare-pair {
    grid-template-columns: 1fr;
  }
}


.spb-split-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}


@media (max-width: 768px) {
  .spb-split-pair {
    grid-template-columns: 1fr;
  }
}


.spb-plus-box {
  border-top: 4px solid var(--spb-teal);
}


.spb-limit-box {
  border-top: 4px solid var(--spb-magenta);
}


.spb-tick-rows {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

/* === Topology_6_Numbered_Spine_Timeline (Signup Steps 1 -> 2 -> 3) === */
.spb-road-list {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--spb-teal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}


.spb-road-node {
  position: relative;
}


.spb-step-ord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--spb-magenta);
  color: #FFFFFF;
  font-family: var(--spb-head-font);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

/* === Cashier Logo Grid (All Visible, No Tabs) + Variant_E_Metric_Pills === */
.spb-pay-matrix {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}


@media (max-width: 900px) {
  .spb-pay-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


@media (max-width: 480px) {
  .spb-pay-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.spb-pay-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.6rem;
  background: rgba(15, 18, 42, 0.88);
  color: #F5F3FF;
  border-radius: 14px;
  border: 1px solid rgba(46, 229, 181, 0.45);
  min-height: 76px;
}


.spb-pay-item img {
  width: 56px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}


.spb-pay-item :is(span, i) {
  font-family: var(--spb-head-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: #F5F3FF;
}


.spb-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}


.spb-stat-pill {
  flex: 1 1 200px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--spb-pane);
  border: 1px solid rgba(46, 229, 181, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}


.spb-stat-pill strong {
  color: var(--spb-teal);
  font-family: var(--spb-head-font);
}

/* === FAQ Tabbed Categories === */
.spb-tab-bar {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}


.spb-tab-trigger {
  padding: 0.55rem 1.15rem;
  min-height: 44px;
  border-radius: 999px;
  background: var(--spb-pane);
  color: #E9E4FF;
  border: 1px solid rgba(165, 158, 201, 0.28);
  font-family: var(--spb-head-font);
  font-weight: 600;
  cursor: pointer;
}


.spb-tab-trigger.spb-on {
  background: var(--spb-teal);
  color: #140F2D;
  border-color: var(--spb-teal);
}


.spb-tab-pane {
  display: none;
  gap: 0.75rem;
}


.spb-tab-pane.spb-on {
  display: grid;
}


.spb-qa-box {
  background: var(--spb-pane);
  border: 1px solid rgba(165, 158, 201, 0.22);
  border-radius: 14px;
  overflow: hidden;
}


.spb-qa-head {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #FFFFFF;
  border: none;
  padding: 0.95rem 1.2rem;
  font-family: var(--spb-head-font);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  min-height: 48px;
}


.spb-qa-head::after {
  content: '+';
  color: var(--spb-teal);
  font-size: 1.25rem;
}


.spb-qa-box.spb-open .spb-qa-head::after {
  content: '−';
}


.spb-qa-ans {
  display: none;
  padding: 0 1.2rem 1rem;
}


.spb-qa-box.spb-open .spb-qa-ans {
  display: block;
}

/* === Subpage Table & Grid Compatibility === */
.spb-sheet-wrap, .spb-xscroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}


table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--spb-pane);
}


th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(165, 158, 201, 0.16);
}


.spb-slot-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* === Footer === */
.spb-bottom-zone {
  background: var(--spb-soft-bg);
  border-top: 1px solid rgba(165, 158, 201, 0.2);
  padding: 2.25rem 0 1.75rem;
  margin-top: 2.5rem;
}


.spb-foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}


@media (max-width: 900px) {
  .spb-foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 560px) {
  .spb-foot-cols {
    grid-template-columns: 1fr;
  }
}


.spb-foot-col h4 {
  font-family: var(--spb-head-font);
  color: var(--spb-teal);
  margin: 0 0 0.75rem;
}


.spb-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
