/* ═══════════════════════════════════════════════════════════════════════
   Marketing pages (home + /custom) — scoped under body.site-page
   ═══════════════════════════════════════════════════════════════════════ */
.site-page {
  --sb-green: #3c9a74;
  --sb-green-bright: #5fd3a2;
  --sb-green-deep: #295544;
  --sb-glass: rgba(255, 255, 255, 0.04);
  --sb-glass-border: rgba(255, 255, 255, 0.08);
  --sb-muted: #a9b6c3;
  --sb-twitch: #9146ff;
  --sb-youtube: #ff3b3b;
  --sb-kick: #53fc18;
  overflow-x: hidden;
}

:where(.site-page) a { color: var(--sb-green-bright); }
:where(.site-page) a:hover { color: #8fe6c1; }

/* styles.css widens .container site-wide; keep the marketing pages at a readable width. */
@media (min-width: 1200px) {
  .site-page .container { max-width: 1200px; }
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-page .site-header {
  position: sticky;
  top: 0;
  padding: 14px 0;
  z-index: 997;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile nav. */
.site-page .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  z-index: -1;
}

.site-page.scrolled .site-header::before {
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--sb-glass-border);
}

.site-page .site-logo { gap: 10px; color: var(--heading-color); }
.site-page .site-logo img { width: 32px; height: 32px; margin: 0; }
.site-page .site-logo .sitename {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--heading-color);
}

.site-page .header-auth { margin-right: 0; gap: 12px; }

.site-page .mobile-nav-toggle {
  position: relative;
  top: auto;
  right: auto;
  font-size: 30px;
}

.site-page.mobile-nav-active .mobile-nav-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

@media (max-width: 1199px) {
  .site-page .navmenu ul { padding-top: 70px; }

  .site-page.mobile-nav-active .navmenu {
    background: rgba(24, 24, 24, 0.97);
    border-left: 1px solid var(--sb-glass-border);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  }
}

.site-page .navmenu a.active { color: var(--heading-color); }

@media (min-width: 1200px) {
  .site-page .navmenu {
    position: static;
    width: auto;
    overflow: visible;
    background: none;
  }

  .site-page .navmenu ul {
    display: flex;
    gap: 4px;
    padding: 0;
  }

  .site-page .navmenu a,
  .site-page .navmenu a:focus {
    color: var(--sb-muted);
    padding: 8px 14px;
    font-size: 16px;
    border-radius: 999px;
  }

  .site-page .navmenu a:hover,
  .site-page .navmenu a.active {
    color: var(--heading-color);
    background: var(--sb-glass);
  }

  .site-page .mobile-nav-toggle { display: none !important; }
}

@media (max-width: 575px) {
  .site-page .site-logo .sitename { font-size: 21px; }
  .site-page .auth-login-btn span,
  .site-page .auth-user-btn span { display: none; }
  .site-page .auth-login-btn { padding: 8px 11px; }
}

/* ── Play Store badge ─────────────────────────────────────────────────── */
.site-page .play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  line-height: 1.1;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-page .play-badge:hover {
  color: #fff;
  border-color: var(--sb-green-bright);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(60, 154, 116, 0.25);
}

.site-page .play-badge i { font-size: 26px; }
.site-page .play-badge-text { display: flex; flex-direction: column; text-align: left; }
.site-page .play-badge-text small { font-size: 10px; letter-spacing: 1px; opacity: 0.85; }
.site-page .play-badge-text strong { font-family: var(--nav-font); font-size: 20px; font-weight: 600; }

.site-page .play-badge-sm { padding: 6px 14px 6px 12px; border-radius: 10px; gap: 8px; }
.site-page .play-badge-sm i { font-size: 18px; }
.site-page .play-badge-sm .play-badge-text small { font-size: 8px; }
.site-page .play-badge-sm .play-badge-text strong { font-size: 14px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.site-page .secondary-btn,
.site-page .sb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.site-page .secondary-btn {
  border: 1px solid rgba(228, 237, 245, 0.25);
  background: transparent;
  color: var(--default-color);
}

.site-page .secondary-btn:hover {
  color: var(--heading-color);
  border-color: var(--default-color);
  transform: translateY(-3px);
}

.site-page .sb-btn-primary {
  background: linear-gradient(135deg, var(--sb-green), var(--sb-green-deep));
  color: #fff;
  margin-top: 1.5rem;
}

.site-page .sb-btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(60, 154, 116, 0.3);
}

/* ── Shared section heading ───────────────────────────────────────────── */
.sb-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.sb-kicker {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sb-green-bright);
  margin-bottom: 0.75rem;
}

.sb-section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sb-section-head p {
  color: var(--sb-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.home-page .sb-hero {
  min-height: min(calc(100vh - 70px), 860px);
  padding-top: 40px;
}

.custom-page .custom-hero { min-height: min(calc(100vh - 70px), 860px); }

.home-page .sb-hero::before {
  background-image: radial-gradient(circle, rgba(95, 211, 162, 0.08) 1px, transparent 1px);
}

.home-page .hero .hero-content .title {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  letter-spacing: -0.5px;
}

.site-page .hero .hero-content .title .highlight {
  background: linear-gradient(120deg, var(--sb-green-bright), #b8f5da);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-page .hero .hero-content .title .highlight::after { display: none; }
.site-page .hero .hero-content .subtitle span { color: var(--sb-green-bright); }
.site-page .hero .hero-content .subtitle span::after { background-color: var(--sb-green-bright); }

.home-page .hero .hero-content .hero-buttons { flex-wrap: wrap; align-items: center; }

@media (max-width: 480px) {
  .home-page .hero .hero-content .hero-buttons { align-items: stretch; }
  .home-page .hero .hero-content .hero-buttons .play-badge { justify-content: center; }
}

.sb-phone-stage {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 0;
}

.sb-glow {
  position: absolute;
  inset: 10% 5% 5% 0;
  background:
    radial-gradient(circle at 40% 40%, rgba(95, 211, 162, 0.45), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(145, 70, 255, 0.28), transparent 55%);
  filter: blur(50px);
  animation: sb-pulse 8s ease-in-out infinite alternate;
}

@keyframes sb-pulse {
  from { transform: scale(0.95); opacity: 0.8; }
  to { transform: scale(1.08); opacity: 1; }
}

/* The screenshot has transparent padding on the right; crop it so the phone is centred. */
.sb-phone {
  position: relative;
  width: 72%;
  margin: 0 auto;
  aspect-ratio: 370 / 768;
  overflow: hidden;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  animation: sb-bob 6s ease-in-out infinite;
}

.sb-phone img {
  width: 135%;
  max-width: none;
  height: auto;
  display: block;
}

@keyframes sb-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.sb-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(30, 30, 30, 0.72);
  border: 1px solid var(--sb-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 14px;
  color: var(--heading-color);
  white-space: nowrap;
  animation: sb-bob 7s ease-in-out infinite;
}

.sb-float-chat { top: 12%; left: -6%; animation-delay: -2s; }
.sb-float-follow { top: 45%; right: -4%; animation-delay: -4s; }
.sb-float-follow i { color: #ff5f7e; }
.sb-float-obs { bottom: 12%; left: 0; animation-delay: -1s; }

.sb-platforms { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.sb-twitch { color: var(--sb-twitch); }
.sb-youtube { color: var(--sb-youtube); }
.sb-tiktok { color: #fff; text-shadow: -1px -1px 0 #25f4ee, 1px 1px 0 #fe2c55; }

.sb-kick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--sb-kick);
  color: #000;
  font-family: var(--default-font);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

.sb-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6);
  animation: sb-live 1.6s infinite;
}

@keyframes sb-live {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

@media (max-width: 575px) {
  .sb-float { font-size: 12px; padding: 8px 12px; }
  .sb-float-chat { left: 0; }
  .sb-float-follow { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-phone, .sb-float, .sb-glow, .sb-live-dot { animation: none; }
}

/* ── Platform strip ───────────────────────────────────────────────────── */
.sb-platform-strip {
  padding: 26px 0;
  border-top: 1px solid var(--sb-glass-border);
  border-bottom: 1px solid var(--sb-glass-border);
  background: rgba(255, 255, 255, 0.015);
}

.sb-platform-strip .container { gap: 14px 38px; }

.sb-strip-label {
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sb-muted);
  opacity: 0.7;
}

.sb-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nav-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--sb-muted);
  transition: color 0.3s;
}

.sb-strip-item:hover { color: var(--heading-color); }
.sb-strip-item i { font-size: 20px; }

/* Monochrome in the strip so Kick matches the other icon-font logos. */
.sb-strip-item .sb-kick {
  width: 20px;
  height: 20px;
  background: var(--sb-muted);
  color: #121212;
  font-size: 13px;
  transition: background 0.3s;
}

.sb-strip-item:hover .sb-kick { background: var(--heading-color); }

/* ── App features ─────────────────────────────────────────────────────── */
.sb-features { padding: 100px 0 80px; }

.sb-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sb-card {
  position: relative;
  padding: 30px;
  border-radius: 20px;
  background: var(--sb-glass);
  border: 1px solid var(--sb-glass-border);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.sb-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(95, 211, 162, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sb-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 211, 162, 0.35);
}

.sb-card:hover::after { opacity: 1; }
.sb-card-wide { grid-column: span 2; }

.sb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(95, 211, 162, 0.2), rgba(41, 85, 68, 0.35));
  color: var(--sb-green-bright);
  font-size: 24px;
  margin-bottom: 18px;
}

.sb-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.sb-card p { color: var(--sb-muted); margin: 0; line-height: 1.65; }

@media (max-width: 991px) {
  .sb-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sb-card-wide { grid-column: span 2; }
  .sb-card-wide:last-child { grid-column: auto; }
}

@media (max-width: 575px) {
  .sb-feature-grid { grid-template-columns: 1fr; }
  .sb-card-wide { grid-column: auto; }
}

/* ── Web dashboard ────────────────────────────────────────────────────── */
.sb-dashboard {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(41, 85, 68, 0.25), transparent 60%),
    var(--background-color);
}

.sb-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 26px;
}

.sb-mini { display: flex; gap: 14px; }

.sb-mini > i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(95, 211, 162, 0.12);
  color: var(--sb-green-bright);
  font-size: 18px;
}

.sb-mini h3 { font-size: 1.1rem; font-weight: 700; margin: 2px 0 4px; }
.sb-mini p { font-size: 0.92rem; color: var(--sb-muted); margin: 0; line-height: 1.55; }

.sb-same-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(145, 70, 255, 0.08);
  border: 1px solid rgba(145, 70, 255, 0.25);
  color: var(--default-color);
  font-size: 0.95rem;
}

.sb-same-account i { color: var(--sb-twitch); font-size: 18px; }

@media (max-width: 575px) {
  .sb-mini-grid { grid-template-columns: 1fr; }
}

/* Dashboard mockup */
.sb-browser {
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid var(--sb-glass-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.sb-browser:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.sb-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #222;
  border-bottom: 1px solid var(--sb-glass-border);
}

.sb-browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #444; }
.sb-browser-bar > span:nth-child(1) { background: #ff5f57; }
.sb-browser-bar > span:nth-child(2) { background: #febc2e; }
.sb-browser-bar > span:nth-child(3) { background: #28c840; }

.sb-browser-url {
  flex: 1;
  margin-left: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #151515;
  color: var(--sb-muted);
  font-size: 12px;
}

.sb-browser-body { display: flex; min-height: 320px; }

.sb-browser-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 16px;
  background: #171717;
  border-right: 1px solid var(--sb-glass-border);
  color: #666;
  font-size: 18px;
}

.sb-browser-side .active {
  color: var(--sb-green-bright);
  background: rgba(95, 211, 162, 0.12);
  padding: 6px;
  margin: -6px;
  border-radius: 8px;
}

.sb-browser-main { flex: 1; padding: 22px; }

.sb-browser-title {
  font-family: var(--heading-font);
  font-size: 22px;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.sb-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--sb-glass);
  border: 1px solid var(--sb-glass-border);
  font-size: 14px;
  color: var(--default-color);
}

.sb-rule i { color: var(--sb-green-bright); }
.sb-rule span:nth-of-type(1) { flex: 1; }

.sb-toggle {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #3a3a3a;
}

.sb-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #888;
  transition: all 0.3s;
}

.sb-toggle.on { background: var(--sb-green); }
.sb-toggle.on::after { left: 17px; background: #fff; }

.sb-preview {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding: 22px;
  border-radius: 12px;
  background: repeating-conic-gradient(#202020 0% 25%, #1b1b1b 0% 50%) 50% / 18px 18px;
}

.sb-preview-alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(60, 154, 116, 0.9), rgba(41, 85, 68, 0.9));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  animation: sb-bob 4s ease-in-out infinite;
}

.sb-preview-alert i { color: #ffd1dc; font-size: 20px; }
.sb-preview-alert span { font-family: var(--nav-font); font-weight: 700; font-size: 17px; }
.sb-preview-alert small { opacity: 0.85; }

@media (max-width: 991px) {
  .sb-browser { transform: none; }
}

/* ── How it works ─────────────────────────────────────────────────────── */
.sb-how { padding: 90px 0; }

.sb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.sb-steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(95, 211, 162, 0.4), transparent);
}

.sb-step { position: relative; text-align: center; padding: 0 12px; }

.sb-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #121212;
  border: 2px solid var(--sb-green);
  color: var(--sb-green-bright);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  position: relative;
  box-shadow: 0 0 0 8px #121212, 0 0 30px rgba(95, 211, 162, 0.25);
}

.sb-step h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.sb-step p { color: var(--sb-muted); margin: 0 auto; max-width: 300px; line-height: 1.6; }

@media (max-width: 767px) {
  .sb-steps { grid-template-columns: 1fr; gap: 36px; }
  .sb-steps::before { display: none; }
}

/* ── Final CTA ────────────────────────────────────────────────────────── */
.sb-cta-section { padding: 40px 0 100px; }

.sb-cta {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(95, 211, 162, 0.28), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(145, 70, 255, 0.2), transparent 50%),
    #181818;
  border: 1px solid var(--sb-glass-border);
}

.sb-cta h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 14px; }
.sb-cta p { color: var(--default-color); opacity: 0.85; max-width: 560px; margin: 0 auto 30px; font-size: 1.05rem; }

.sb-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-page .site-footer { border-top: 1px solid var(--sb-glass-border); }
.site-page .site-footer .footer-about p { color: var(--sb-muted); max-width: 380px; }
.site-page .site-footer .footer-links ul a { color: var(--sb-muted); }
.site-page .site-footer .footer-links ul a:hover { color: var(--heading-color); }
.site-page .site-footer .copyright p { color: var(--sb-muted); font-size: 14px; }

.site-socials { display: flex; gap: 10px; }

.site-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sb-glass);
  border: 1px solid var(--sb-glass-border);
  color: var(--default-color);
  font-size: 18px;
}

.site-socials a:hover { color: #fff; background: var(--sb-green-deep); }

.site-page .scroll-top { background-color: var(--sb-green-deep); }
