/** Shopify CDN: Minification failed

Line 2460:15 Unexpected "{"
Line 2460:24 Expected ":"
Line 2467:15 Unexpected "{"
Line 2467:24 Expected ":"
Line 2493:12 Expected identifier but found whitespace
Line 2493:29 Unexpected "{"
Line 2493:38 Expected ":"
Line 2493:45 Expected identifier but found "3.6s"
Line 2497:15 Unexpected "{"
Line 2497:24 Expected ":"
... and 10 more hidden warnings

**/
/* ================================
   GLOBAL
================================== */

:root {
  --sg-primary: #0a2a66;
  --sg-accent: #0ab8aa;
  --sg-bg: #ffffff;
  --sg-muted: #6b7280;
  --sg-apple-blue: #0071e3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  margin: 0;
  color: #111111;
  background: var(--sg-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================================
   HEADER – FLOATING APPLE BAR
================================== */

.sg-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  /* Apple-like light grey, slightly opaque, with blur */
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(210, 210, 215, 0.85);
  display: flex;
  justify-content: center;
}

.sg-header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo area (left) */

.sg-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sg-cap-icon {
  height: 22px;
  width: auto;
  display: block;
}

.sg-logo-wrap img {
  height: 28px;
}

.sg-logo-text {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Desktop nav (right) */

.sg-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.sg-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 2px 0;
  color: #222222;
  transition: color 0.2s ease;
}

.sg-nav a:hover {
  color: var(--sg-apple-blue);
}

.sg-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--sg-apple-blue);
  transition: width 0.2s ease;
}

.sg-nav a:hover::after {
  width: 100%;
}

/* ================================
   BUTTONS
================================== */

.sg-btn {
  min-width: 150px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sg-btn-primary {
  background: var(--sg-apple-blue);
  color: #ffffff;
  border-color: var(--sg-apple-blue);
}

.sg-btn-primary:hover {
  background: #0077ed;
}

.sg-btn-ghost {
  background: transparent;
  color: var(--sg-apple-blue);
  border-color: var(--sg-apple-blue);
}

.sg-btn-ghost:hover {
  background: rgba(0, 113, 227, 0.06);
}

/* ================================
   BANDS / LAYOUT WRAPPER
================================== */

.sg-band {
  background: #ffffff;
}

.sg-band-inner {
  max-width: 1040px;
  margin: 0 auto;
}

/* ================================
   HERO – CELESTIAL BLUEPRINT
================================== */

.sg-band-hero {
  margin-top: 20px;
  padding: 60px 18px 70px;
}

.sg-band-inner-hero {
  text-align: center;
}

.sg-hero-title {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 6px;
}

.sg-hero-subtitle {
  font-size: 1.05rem;
  color: #424245;
  margin-bottom: 22px;
}

.sg-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.sg-hero-image img {
  max-width: 520px;
  margin: 0 auto;
}

/* ================================
   TWO-UP – NUMBER CODE / ASTRO MAP
================================== */

/* Whole band background (same light grey as Apple) */
.sg-two-up-wrapper {
  background: #f5f5f7;
}

/* Apple-style product grid (iPad / MacBook look) */
.sg-two-up {
  max-width: 1100px;
  margin: 24px auto 80px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;                 /* thin divider line between products */
  background: #d2d2d7;      /* divider color (Apple gray) */
  border-top: 1px solid #d2d2d7;
  border-bottom: 1px solid #d2d2d7;
  overflow: hidden;
}

/* Each product tile (Number Code / Life Map) */
.sg-band-half {
  background: #f5f5f7;      /* slightly off-white card, like Apple */
  padding: 60px 40px 70px;
  text-align: center;
  position: relative;
}

.sg-band-inner-half {
  max-width: 480px;
  margin: 0 auto;
}

/* Title + subtitle spacing (Apple-style) */
.sg-product-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.sg-product-subtitle {
  font-size: 0.98rem;
  color: #424245;
  margin-bottom: 26px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Product images */
.sg-product-image img,
.sg-mockup {
  max-width: 340px;
  display: block;
  margin: 32px auto 0;
  width: 100%;
  height: auto;
}

/* Soft blue fade behind each product (like iPad / MacBook tiles) */
.sg-band-number {
  background:
    radial-gradient(circle at top center,
      rgba(0,113,227,0.18) 0,
      rgba(0,113,227,0.0) 55%),
    #f5f5f7;
}

.sg-band-life {
  background:
    radial-gradient(circle at top center,
      rgba(0,113,227,0.16) 0,
      rgba(0,113,227,0.0) 55%),
    #f5f5f7;
}

/* ================================
   FREE MINI REPORT BAND
================================== */

.sg-band-free {
  margin-top: 12px;
  padding: 50px 18px 60px;
}

.sg-band-inner-free {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

.sg-free-copy h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.sg-free-copy p {
  font-size: 0.98rem;
  color: #424245;
}

/* ================================
   SG — WHY SKILLGROOVE (APPLE CARDS)
================================== */

.sg-why {
  background: #ffffff;
  padding: 80px 18px 90px;
}

.sg-why-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.sg-why-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.sg-why-title {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 600;
  color: #111111;
  margin: 0 0 10px;
}

.sg-why-sub {
  font-size: 1.02rem;
  color: #424245;
  max-width: 720px;
  margin: 0 auto 38px;
}

/* Cards row */
.sg-why-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Tall Apple-style card */
.sg-why-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.45)),
    var(--sg-why-bg);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 10px 30px rgba(2, 6, 23, 0.08);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.sg-why-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 42px rgba(2, 6, 23, 0.14);
  filter: saturate(1.05);
}

/* Soft overlay for legibility */
.sg-why-card-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 250px at 20% 10%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(800px 300px at 90% 90%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}

/* Text content bottom-left like Apple */
.sg-why-card-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 26px;
  text-align: left;
  color: #ffffff;
  z-index: 2;
}

.sg-why-card-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sg-why-card-title {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

/* Plus button */
.sg-why-plus {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(8px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.sg-why-plus:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}

/* ================================
   Modal
================================== */

.sg-why-lock {
  overflow: hidden;
}

.sg-why-modal[hidden] {
  display: none !important;
}

.sg-why-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.sg-why-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}

/* Apple-ish rounded sheet */
.sg-why-modal-panel {
  position: relative;
  width: min(980px, 92vw);
  max-height: 88vh;
  margin: 6vh auto 0;
  background: #f5f5f7;
  border-radius: 26px;
  border: 1px solid rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
}

.sg-why-modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.8);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sg-why-modal-body {
  padding: 46px 44px 40px;
  overflow: auto;
}

.sg-why-modal-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.sg-why-modal-title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600;
  color: #111111;
  margin: 0 0 14px;
}

.sg-why-modal-text {
  font-size: 1.02rem;
  color: #424245;
  line-height: 1.55;
}

.sg-why-modal-image-wrap {
  background: #ffffff;
  border-left: 1px solid rgba(0,0,0,0.06);
  display: grid;
  place-items: center;
  padding: 24px;
}

.sg-why-modal-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 980px) {
  .sg-why-cards {
    grid-template-columns: 1fr;
  }

  .sg-why-card {
    min-height: 360px;
  }

  .sg-why-modal-panel {
    grid-template-columns: 1fr;
  }

  .sg-why-modal-image-wrap {
    border-left: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
}

/* ================================
   LEGACY UTILITY CLASSES
================================== */

.sg-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.sg-hero {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: #f7f8fb;
  border-radius: 12px;
}

.sg-hero h1 {
  font-size: 42px;
  margin: 0 0 12px;
  line-height: 1.02;
  font-weight: 700;
}

.sg-hero p {
  color: var(--sg-muted);
  font-size: 18px;
  margin: 0 0 24px;
}

.sg-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0;
}

.sg-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(2, 6, 23, 0.03);
  transition: transform .22s ease, box-shadow .22s ease;
}

.sg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.08);
}

.sg-email {
  display: flex;
  gap: 12px;
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(10,42,102,0.02), rgba(10,184,170,0.00));
  align-items: center;
}

/* ================================
   RESPONSIVE
================================== */

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

  .sg-band-half {
    padding: 40px 20px 50px;
  }

  .sg-band-inner-free {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 749px) {
  .sg-mockup {
    max-width: 320px;
    width: 80vw;
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .sg-header {
    padding: 0 16px; /* keep bar slim on mobile */
  }

  .sg-band-hero {
    padding: 32px 16px 40px;
  }

  .sg-band-half {
    padding: 40px 16px 50px;
  }

  .sg-hero-title {
    font-size: 2.1rem;
  }

  .sg-hero-subtitle {
    font-size: 0.95rem;
  }

  /* shrink hero mockup so all 3 reports fit on screen */
  .sg-hero-image img {
    max-width: 320px;
  }

  .sg-hero-image {
    margin-top: 16px;
    display: flex;
    justify-content: center;
  }

  .sg-hero-cta {
    margin-bottom: 20px;
  }
}

/* ================================
   SKILLGROOVE PREMIUM PRODUCT PAGE
================================== */

.sg-product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

/* HERO */
.sg-product-hero-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.sg-product-hero-left {
  flex: 1;
  min-width: 300px;
}

.sg-product-hero-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.15);
}

.sg-product-hero-right {
  flex: 1;
  min-width: 300px;
}

.sg-product-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
}

.sg-product-price {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* BUY BUTTON */
.sg-product-buy-btn {
  display: inline-block;
  padding: 16px 32px;
  background: #0a2a66;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  transition: 0.2s ease;
}

.sg-product-buy-btn:hover {
  background: #0a3a80;
}

.sg-product-guarantee {
  margin-top: 15px;
  color: #555;
}

/* SECTIONS */
.sg-product-section {
  margin-top: 70px;
}

.sg-product-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.sg-product-section p,
.sg-product-description p,
.sg-product-section li {
  font-size: 18px;
  line-height: 1.6;
}

/* FAQ */
details {
  margin-bottom: 15px;
  font-size: 18px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 5px;
}

details p {
  margin-top: 5px;
}

/* MOBILE – PRODUCT PAGE */
@media (max-width: 768px) {
  .sg-product-title {
    font-size: 32px;
  }
  .sg-product-hero-inner {
    gap: 30px;
  }
}

/* ===============================
   DARK APPLE - GLOBAL STYLING
================================ */

.sg-dark {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, sans-serif;
  padding-bottom: 200px;
}

/* HERO */
.sgd-hero {
  padding: 120px 20px 100px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.sgd-title {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.sgd-sub {
  font-size: 22px;
  color: #aaa;
  margin-bottom: 50px;
  line-height: 1.6;
}

.sgd-hero-img {
  max-width: 650px;
  margin: 40px auto 60px;
  display: block;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
  transition: transform 0.8s ease;
}

.sgd-buybtn {
  display: inline-block;
  padding: 18px 50px;
  background: #0a84ff;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.sgd-buybtn:hover {
  background: #409CFF;
  transform: scale(1.03);
}

/* FEATURE SECTIONS */
.sgd-section {
  max-width: 900px;
  margin: 140px auto 0;
  padding: 0 20px;
  text-align: center;
}

.sgd-h2 {
  font-size: 44px;
  margin-bottom: 20px;
  font-weight: 700;
}

.sgd-p {
  font-size: 22px;
  line-height: 1.7;
  color: #cfcfcf;
  max-width: 750px;
  margin: 0 auto;
}

/* Apple-style fade-in reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile – dark page */
@media (max-width: 768px) {
  .sgd-title { font-size: 42px; }
  .sgd-h2 { font-size: 32px; }
  .sgd-p,
  .sgd-sub { font-size: 18px; }
}
/* ================================
   FINAL FLOATING BAR OVERRIDE
================================== */

#sg-floating-nav.sg-floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;

  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(210, 210, 215, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);

  transition: opacity 0.25s ease, transform 0.25s ease;
}

#sg-floating-nav.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}
/* ================================
   FLOATING NAV - MOBILE FIX
================================== */

@media (max-width: 768px) {
  #sg-floating-nav .sg-header-container {
    padding: 8px 12px;
    gap: 10px;
  }

  /* Hide the text links on mobile */
  #sg-floating-nav .sg-nav {
    display: none;
  }

  /* Keep logo tight */
  #sg-floating-nav .sg-logo-text {
    font-size: 0.98rem;
  }

  #sg-floating-nav .sg-cap-icon {
    height: 20px;
  }

  /* Make CTA smaller so it fits clean */
  #sg-floating-nav .sg-header-cta {
    min-width: unset;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}
/* ================================
   CELESTIAL BLUEPRINT PRODUCT PAGE — MOBILE FIX
   Paste at the very bottom of skillgroove-theme.css
================================== */

/* 1) If you're using the "sg-product-page" layout */
@media (max-width: 900px) {
  .sg-product-page {
    padding: 28px 16px;
  }

  .sg-product-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }

  .sg-product-hero-left,
  .sg-product-hero-right {
    min-width: 0;
    width: 100%;
  }

  .sg-product-hero-image {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 18px;
  }

  .sg-product-title {
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .sg-product-price {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .sg-product-buy-btn {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    font-size: 17px;
    border-radius: 12px;
  }

  .sg-product-guarantee {
    font-size: 14px;
  }

  .sg-product-section {
    margin-top: 46px;
  }

  .sg-product-section h2 {
    font-size: 24px;
  }

  .sg-product-section p,
  .sg-product-description p,
  .sg-product-section li {
    font-size: 16px;
  }
}

/* 2) If you're using the darker Apple-style product page */
@media (max-width: 900px) {
  .sg-dark .sgd-hero {
    padding: 80px 16px 60px;
  }

  .sg-dark .sgd-title {
    font-size: 38px;
    line-height: 1.08;
  }

  .sg-dark .sgd-sub {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .sg-dark .sgd-hero-img {
    max-width: 360px;
    width: 100%;
    margin: 26px auto 36px;
  }

  .sg-dark .sgd-buybtn {
    width: 100%;
    max-width: 360px;
    text-align: center;
    padding: 14px 22px;
    font-size: 17px;
  }

  .sg-dark .sgd-section {
    margin-top: 80px;
  }

  .sg-dark .sgd-h2 {
    font-size: 26px;
  }

  .sg-dark .sgd-p {
    font-size: 17px;
  }
}

/* 3) If your product hero uses any generic two-column split */
@media (max-width: 900px) {
  .sg-two-col,
  .sg-split,
  .product-hero-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px;
  }
}
/* ================================
   SG — HOW IT WORKS (APPLE HORIZONTAL)
================================== */

.sg-how {
  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  border-bottom: 1px solid #d2d2d7;
  padding: 70px 18px 80px;
}

.sg-how-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.sg-how-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.sg-how-title {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: #111111;
  margin: 0 0 10px;
}

.sg-how-sub {
  font-size: 1.02rem;
  color: #424245;
  max-width: 680px;
  margin: 0 auto 36px;
}

/* Horizontal steps */
.sg-how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Step card */
/* Base card glow */
.sg-how-step {
  /* keep all your existing properties */
  position: relative;
  overflow: visible;

  /* replace your current box-shadow (if any) with this */
  box-shadow:
    0 0 0 1px rgba(210,210,215,0.55),
    0 8px 18px rgba(2, 6, 23, 0.06),
    0 0 18px rgba(0, 122, 255, 0.10),
    0 0 22px rgba(88, 86, 214, 0.08),
    0 0 24px rgba(52, 199, 89, 0.07),
    0 0 26px rgba(255, 45, 85, 0.06);
}

/* Hover glow boost */
.sg-how-step:hover {
  /* keep your transform + background changes */
  box-shadow:
    0 0 0 1px rgba(210,210,215,0.75),
    0 14px 30px rgba(2, 6, 23, 0.10),
    0 0 22px rgba(0, 122, 255, 0.16),
    0 0 28px rgba(88, 86, 214, 0.12),
    0 0 30px rgba(52, 199, 89, 0.10),
    0 0 34px rgba(255, 45, 85, 0.09);
}

/* Mobile: tone it down */
@media (max-width: 768px) {
  .sg-how-step {
    box-shadow:
      0 0 0 1px rgba(210,210,215,0.55),
      0 6px 14px rgba(2, 6, 23, 0.05),
      0 0 14px rgba(0, 122, 255, 0.08),
      0 0 16px rgba(88, 86, 214, 0.06),
      0 0 18px rgba(52, 199, 89, 0.05),
      0 0 20px rgba(255, 45, 85, 0.04);
  }
}

/* Number ABOVE icon */
.sg-how-number {
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid rgba(210,210,215,0.9);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
}

/* Icon */
.sg-how-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(210,210,215,0.9);
  display: grid;
  place-items: center;
}

.sg-how-icon svg {
  width: 22px;
  height: 22px;
  fill: #0b0b0b;
  opacity: 0.9;
}

.sg-how-step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 6px;
}

.sg-how-step-text {
  font-size: 0.95rem;
  color: #424245;
  line-height: 1.45;
  max-width: 260px;
  margin: 0 auto;
}

/* CTA */
.sg-how-cta {
  margin-top: 34px;
}

/* Responsive */
@media (max-width: 980px) {
  .sg-how-steps {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }

  .sg-how-step-text {
    max-width: 420px;
  }
}
/* ================================
   HOW IT WORKS – SUBTLE NEON AURA
   Applied to your real card class
================================== */

.sg-how-step {
  position: relative;
  overflow: visible;
}

/* The neon aura */
.sg-how-step::before {
  content: "";
  position: absolute;
  inset: -10px;              /* aura size */
  border-radius: 22px;
  z-index: -1;
  opacity: 0.20;             /* subtle */
  filter: blur(18px);
  background:
    radial-gradient(120px 80px at 15% 20%, rgba(0, 122, 255, 0.30), transparent 60%),
    radial-gradient(120px 80px at 85% 25%, rgba(88, 86, 214, 0.26), transparent 60%),
    radial-gradient(140px 90px at 20% 85%, rgba(52, 199, 89, 0.22), transparent 60%),
    radial-gradient(140px 90px at 90% 85%, rgba(255, 45, 85, 0.20), transparent 60%);
}

/* Keep your existing hover, just add glow boost */
.sg-how-step:hover::before {
  opacity: 0.30;
  filter: blur(20px);
}

/* Mobile: reduce glow intensity */
@media (max-width: 768px) {
  .sg-how-step::before {
    inset: -8px;
    opacity: 0.16;
    filter: blur(14px);
  }
}
/* ================================
   HOW IT WORKS – APPLE SOFT CARDS + RAINBOW AURA
   Drop this at the END of your CSS
================================== */

/* Slightly more breathing room */
.sg-how-steps {
  gap: 22px;
}

/* Soften the card look */
.sg-how-step {
  position: relative;
  isolation: isolate; /* ensures glow stays behind */
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(210, 210, 215, 0.55);
  border-radius: 20px;
  padding: 28px 24px 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* softer “Apple” shadow */
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 10px 26px rgba(2, 6, 23, 0.06);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

/* Rainbow glow layer */
.sg-how-step::before {
  content: "";
  position: absolute;
  inset: -18px; /* glow size */
  border-radius: 26px;
  z-index: -1;

  /* The blended rainbow */
  background:
    radial-gradient(140px 100px at 10% 20%, rgba(0,122,255,0.45), transparent 62%),
    radial-gradient(140px 100px at 90% 20%, rgba(175,82,222,0.45), transparent 62%),
    radial-gradient(150px 110px at 20% 90%, rgba(52,199,89,0.40), transparent 62%),
    radial-gradient(150px 110px at 80% 90%, rgba(255,159,10,0.40), transparent 62%),
    radial-gradient(160px 120px at 50% 50%, rgba(255,45,85,0.22), transparent 70%);

  filter: blur(26px);
  opacity: 0.55; /* brighter but still soft */
  transition: opacity 180ms ease, filter 180ms ease, inset 180ms ease;
}

/* Hover = a touch more lift + glow */
.sg-how-step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(210, 210, 215, 0.9);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 18px 40px rgba(2, 6, 23, 0.10);
}

.sg-how-step:hover::before {
  opacity: 0.75;
  filter: blur(30px);
  inset: -22px;
}

/* Keep icon + number feeling light and premium */
.sg-how-number {
  background: #f1f5f9;
  border: 1px solid rgba(210,210,215,0.7);
}

.sg-how-icon {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(210,210,215,0.7);
}

/* Mobile: reduce intensity slightly */
@media (max-width: 768px) {
  .sg-how-step::before {
    inset: -14px;
    filter: blur(20px);
    opacity: 0.45;
  }
}
/* ================================
   HOW IT WORKS – BORDER-ONLY RAINBOW AURA
   (No color inside the card)
================================== */

.sg-how-step{
  position: relative;
  isolation: isolate;
  border-radius: 18px;

  /* Clean interior */
  background: rgba(255,255,255,0.85) !important;

  /* Normal subtle border */
  border: 1px solid rgba(210,210,215,0.65) !important;

  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
}

/* The rainbow ring ONLY */
.sg-how-step::before{
  content: "";
  position: absolute;
  inset: -10px;                /* space outside card */
  border-radius: 24px;
  padding: 3px;                /* ring thickness */
  z-index: -1;

  background: conic-gradient(
    rgba(0,122,255,1),
    rgba(88,86,214,1),
    rgba(255,45,85,1),
    rgba(255,159,10,1),
    rgba(52,199,89,1),
    rgba(0,122,255,1)
  );

  /* Mask to keep ONLY the border ring */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  /* Glow strength */
  filter: blur(12px);
  opacity: 0.95;
}

/* Avoid clipping */
.sg-how,
.sg-how-inner,
.sg-how-steps{
  overflow: visible;
}
/* ================================
   HOW IT WORKS – TIGHT NEON RAINBOW BORDER
   (Hugs border, brighter + softer blend)
================================== */

.sg-how-step{
  position: relative;
  isolation: isolate;
  border-radius: 18px;

  /* Clean interior */
  background: rgba(255,255,255,0.88) !important;

  /* Keep a subtle base border */
  border: 1px solid rgba(210,210,215,0.55) !important;

  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
}

/* 1) TIGHT RAINBOW BORDER (no outside spacing) */
.sg-how-step::before{
  content: "";
  position: absolute;
  inset: 0;                 /* <-- hugs the card edge */
  border-radius: inherit;
  padding: 2px;             /* border thickness */
  z-index: -1;

  background: conic-gradient(
    #00c6ff,
    #007aff,
    #5856d6,
    #ff2d55,
    #ff9f0a,
    #34c759,
    #00c6ff
  );

  /* Mask to keep only the border ring */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  opacity: 0.9;
  filter: blur(0.6px);      /* tiny soften so it blends */
}

/* 2) NEON BLOOM (brighter but faded) */
.sg-how-step::after{
  content: "";
  position: absolute;
  inset: 0;                 /* <-- still tight to edge */
  border-radius: inherit;
  padding: 2px;
  z-index: -2;

  background: conic-gradient(
    rgba(0,198,255,1),
    rgba(0,122,255,1),
    rgba(88,86,214,1),
    rgba(255,45,85,1),
    rgba(255,159,10,1),
    rgba(52,199,89,1),
    rgba(0,198,255,1)
  );

  /* same border-only mask */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  opacity: 0.75;            /* bright but soft */
  filter: blur(10px);       /* neon glow */
}

/* Ensure nothing clips the glow */
.sg-how,
.sg-how-inner,
.sg-how-steps{
  overflow: visible;
}

/* Optional: slightly stronger on hover */
.sg-how-step:hover::after{
  opacity: 0.9;
  filter: blur(12px);
}
.sg-how-step::after{
  opacity: 0.95;
  filter: blur(13px);
}
/* ================================
   PER-CARD COLOR SETS
================================== */

/* Card 1 – Blue → Teal → Violet */
.sg-how-step:nth-child(1)::before,
.sg-how-step:nth-child(1)::after {
  background: conic-gradient(
    #00c6ff,
    #007aff,
    #5ac8fa,
    #00e5ff,
    #5856d6,
    #00c6ff
  );
}

/* Card 2 – Violet → Pink → Orange */
.sg-how-step:nth-child(2)::before,
.sg-how-step:nth-child(2)::after {
  background: conic-gradient(
    #5856d6,
    #7b61ff,
    #ff2d55,
    #ff6b6b,
    #ff9f0a,
    #5856d6
  );
}

/* Card 3 – Green → Teal → Blue */
.sg-how-step:nth-child(3)::before,
.sg-how-step:nth-child(3)::after {
  background: conic-gradient(
    #34c759,
    #2bd2a4,
    #00c6ff,
    #007aff,
    #00e5ff,
    #34c759
  );
}
/* ================================
   SG — WHY (APPLE CARDS) — WORKING
   Matrix ONLY for Number Code Pro
   No stars / no extra effects
================================== */

/* Section */
.sg-why-apple{
  background: #ffffff;
  padding: 70px 18px 60px;
}

.sg-why-apple-inner{
  max-width: 1140px;
  margin: 0 auto;
}

.sg-why-apple-eyebrow{
  font-size: .72rem;
  letter-spacing: .18em;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.sg-why-apple-title{
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 650;
  color: #0b0b0b;
  margin: 0 0 8px;
}

.sg-why-apple-sub{
  font-size: 1.05rem;
  color: #424245;
  max-width: 720px;
  margin: 0 0 26px;
}

/* Desktop track */
.sg-why-apple-track{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

/* Card wrapper */
.sg-why-apple-card{
  position: relative;
}

/* Media shell */
.sg-why-apple-media{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #0b0b0b;
  height: clamp(420px, 34vw, 520px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.08);
  transition: transform .22s ease, box-shadow .22s ease;
  isolation: isolate; /* IMPORTANT: keeps z-index layers reliable */
}

.sg-why-apple-media:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.12);
}

/* Image base */
.sg-why-apple-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .5s ease;
  z-index: 1;
}

.sg-why-apple-media:hover .sg-why-apple-img{
  transform: scale(1.06);
}

.sg-why-apple-media-placeholder{
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a, #111827);
  z-index: 1;
}

/* ================================
   MATRIX — ONLY Number Code Pro
   Layer sits ABOVE image
================================== */

.sg-why-apple-card--number_code .sg-matrix-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  /* Visible by default so you can confirm it's working */
  opacity: 1;
}

/* Falling digit columns */
.sg-why-apple-card--number_code .sg-matrix-overlay span{
  position: absolute;
  top: -35%;
  left: var(--x, 10%);
  width: 1.1em;
  white-space: pre;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  line-height: 1.12;
  letter-spacing: 0.08em;

  color: rgba(180,255,225,1);
  text-shadow:
    0 0 8px rgba(180,255,225,0.85),
    0 0 18px rgba(180,255,225,0.60),
    0 0 34px rgba(180,255,225,0.40);

  mix-blend-mode: screen;

  animation: sg-matrix-fall var(--dur, 3.2s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes sg-matrix-fall{
  0%   { transform: translateY(0); opacity: 0; }
  6%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(230%); opacity: 0; }
}

/* Readability overlay (ABOVE matrix) */
.sg-why-apple-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.38) 0%,
      rgba(0,0,0,0.18) 35%,
      rgba(0,0,0,0.10) 60%,
      rgba(0,0,0,0.25) 100%
    );
  z-index: 3;
}

/* Text layer */
.sg-why-apple-text{
  position: relative;
  z-index: 4;
  padding: 26px 24px 70px;
  color: #ffffff;
}

.sg-why-apple-card-name{
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: .02em;
  opacity: .95;
  margin-bottom: 8px;
}

.sg-why-apple-card-eyebrow{
  font-size: .78rem;
  letter-spacing: .06em;
  font-weight: 600;
  opacity: .85;
  margin-bottom: 6px;
}

.sg-why-apple-card-title{
  font-size: clamp(1.35rem, 1.6vw, 1.65rem);
  font-weight: 650;
  line-height: 1.15;
  margin: 0;
  max-width: 92%;
}

/* Plus button */
.sg-why-apple-plus{
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.96);
  color: #0b0b0b;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border .18s ease;
}

.sg-why-apple-plus:hover{
  transform: scale(1.05);
  background: #ffffff;
}

/* Arrows */
.sg-why-apple-arrows{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.sg-why-apple-arrow{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

/* ================================
   MODAL (Apple-like)
================================== */

.sg-why-apple-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.sg-why-apple-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.sg-why-apple-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.sg-why-apple-modal-panel{
  position: relative;
  max-width: 980px;
  width: calc(100% - 36px);
  margin: 7vh auto 0;
  background: #f5f5f7;
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  overflow: hidden;
}

.sg-why-apple-modal-close{
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.sg-why-apple-modal-content{
  padding: 48px 44px 36px;
}

.sg-why-apple-modal-name{
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sg-why-apple-modal-eyebrow{
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sg-why-apple-modal-title{
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 650;
  margin: 0 0 14px;
  color: #0b0b0b;
}

.sg-why-apple-modal-body{
  font-size: 1.05rem;
  color: #333336;
  max-width: 720px;
}

.sg-why-apple-modal-image-wrap{
  margin-top: 26px;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
}

.sg-why-apple-modal-image-wrap img{
  width: 100%;
  height: auto;
  display: block;
}

.sg-modal-lock{
  overflow: hidden;
}

/* ================================
   MOBILE — iPhone-sized cards
================================== */

@media (max-width: 980px){
  .sg-why-apple-track{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 88vw;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .sg-why-apple-card{
    scroll-snap-align: center;
  }

  .sg-why-apple-media{
    height: clamp(460px, 78vh, 560px);
  }

  .sg-why-apple-arrows{
    display: none;
  }
}

@media (max-width: 640px){
  .sg-why-apple-modal-content{
    padding: 36px 22px 26px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .sg-why-apple-card--number_code .sg-matrix-overlay span{
    animation: none !important;
  }
}
/* ================================
   WHY CARDS — MATRIX (FINAL)
   Paste at VERY BOTTOM of CSS
================================== */

.sg-why-apple-card--number_code .sg-why-apple-media{
  position: relative !important;
  overflow: hidden !important;
}

/* Matrix layer */
.sg-why-apple-card--number_code .sg-matrix-overlay{
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

/* Make each span a vertical digit column */
.sg-why-apple-card--number_code .sg-matrix-overlay span{
  position: absolute !important;
  top: -40% !important;
  left: var(--x, 10%) !important;

  width: 1ch !important;          /* key */
  white-space: normal !important; /* allow wrapping */
  word-break: break-all !important;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 14px !important;
  line-height: 1.05 !important;
  filter:blur(0.15px);
  letter-spacing: 0.02em !important;
  opacity: 0.0; /* base state for hover-start */

  color: rgba(170, 220, 210, 0.38);

text-shadow:
  0 0 3px rgba(170, 220, 210, 0.18),
  0 0 8px rgba(170, 220, 210, 0.12);

/* Remove the neon wash */
mix-blend-mode: normal;

  animation: sg-matrix-fall-final var(--dur, 3.2s) linear infinite !important;
  animation-delay: var(--delay, 0s) !important;
}

@keyframes sg-matrix-fall-final{
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}
/* Ensure the card is the animation container */
.sg-why-apple-card--number_code .sg-why-apple-media{
  position: relative;
  overflow: hidden;
}

/* Matrix layer */
.sg-why-apple-card--number_code .sg-matrix-overlay{
  position: absolute;
  inset: 0;
  z-index: 3;               /* above image, below readability overlay if you want */
  pointer-events: none;
  opacity: 1;
}
/* ================================
   MATRIX — HOVER ONLY
   Default: hidden + paused
   Hover: visible + running
================================== */

/* 1) Hide the whole matrix layer by default */
.sg-why-apple-card--number_code .sg-matrix-overlay{
  opacity: 0 !important;
  transition: opacity .18s ease !important;
}

/* 2) Pause all the falling spans by default */
.sg-why-apple-card--number_code .sg-matrix-overlay span{
  animation-play-state: paused !important;
}

/* 3) On hover, show + run */
.sg-why-apple-card--number_code .sg-why-apple-media:hover .sg-matrix-overlay{
  opacity: 1 !important;
}

.sg-why-apple-card--number_code .sg-why-apple-media:hover .sg-matrix-overlay span{
  animation-play-state: running !important;
}

/* 4) Touch fallback if you're using the .sg-animate class */
.sg-why-apple-card--number_code.sg-animate .sg-matrix-overlay{
  opacity: 1 !important;
}

.sg-why-apple-card--number_code.sg-animate .sg-matrix-overlay span{
  animation-play-state: running !important;
}
/* Astro Map Pro — Twinkle field layer */
.sg-why-apple-card--astro_map .sg-why-apple-media{
  position: relative;
  overflow: hidden;
}

/* Field container */
.sg-why-apple-card--astro_map .sg-twinkle-field{
  position: absolute;
  inset: 0;
  z-index: 2;              /* above image */
  pointer-events: none;

  opacity: 0;
  transition: opacity .18s ease;
}

/* Only show on hover */
.sg-why-apple-card--astro_map:hover .sg-twinkle-field{
  opacity: 1;
}

/* Individual stars */
.sg-why-apple-card--astro_map .sg-tw{
  position: absolute;
  left: var(--x, 50%);
  top:  var(--y, 50%);

  width: var(--s, 1.4px);
  height: var(--s, 1.4px);
  border-radius: 999px;

  background: rgba(255,255,255,0.85);
  box-shadow:
    0 0 6px rgba(255,255,255,0.35),
    0 0 14px rgba(180,210,255,0.18);

  opacity: 0.15;

  animation: sg-twinkle var(--dur, 3.2s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* Natural twinkle */
@keyframes sg-twinkle{
  0%, 100% { opacity: 0.08; transform: scale(0.9); }
  40%      { opacity: 0.35; transform: scale(1.0); }
  60%      { opacity: 0.85; transform: scale(1.25); }
  80%      { opacity: 0.22; transform: scale(1.0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .sg-why-apple-card--astro_map .sg-tw{
    animation: none !important;
  }
}
/* Ensure proper stacking context */
.sg-why-apple-media{
  position: relative;
  overflow: hidden;
  isolation: isolate; /* important */
}

/* Earth image */
.sg-why-apple-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Twinkle layer ABOVE image */
.sg-twinkle-field{
  position: absolute;
  inset: 0;
  z-index: 3;  /* <-- above image */
  pointer-events: none;
  opacity: 0;  /* off by default */
  transition: opacity .18s ease;
}

/* Show only on hover of the Astro card */
.sg-why-apple-card--astro_map .sg-why-apple-media:hover .sg-twinkle-field{
  opacity: 1;
}

/* Twinkle dots */
.sg-tw{
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 999px;

  /* BRIGHTER STAR LOOK */
  background: rgba(255,255,255,0.95);
  box-shadow:
    0 0 6px rgba(255,255,255,0.9),
    0 0 14px rgba(180,220,255,0.6),
    0 0 26px rgba(120,200,255,0.35);

  opacity: 0.15;

  /* Only animate when visible */
  animation: sg-twinkle var(--dur, 3.2s) ease-in-out infinite;
  animation-delay: var(--d, 0s);

  /* Helps stars pop over photos */
  mix-blend-mode: screen;
}

/* Twinkle animation */
@keyframes sg-twinkle{
  0%, 100% { opacity: 0.12; transform: scale(1); }
  45%      { opacity: 0.9;  transform: scale(1.25); }
  70%      { opacity: 0.25; transform: scale(1.05); }
}
/* Twinkle layer */
.sg-twinkle-field{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}

/* Show only on Astro Map hover */
.sg-why-apple-card--astro_map .sg-why-apple-media:hover .sg-twinkle-field{
  opacity: 1;
}

/* Star particle */
.sg-tw{
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 999px;

  background: rgba(255,255,255,1);

  /* Stronger glow */
  box-shadow:
    0 0 8px  rgba(255,255,255,1),
    0 0 18px rgba(200,230,255,0.85),
    0 0 34px rgba(120,200,255,0.55);

  opacity: 0.10;
  transform: scale(1);

  mix-blend-mode: screen;

  animation: sg-twinkle var(--dur, 3.4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* Brighter peak twinkle */
@keyframes sg-twinkle{
  0%, 100% { opacity: 0.08; transform: scale(1); }
  45%      { opacity: 0.95; transform: scale(1.35); }
  70%      { opacity: 0.22; transform: scale(1.08); }
}
/* =========================================
   SG — WHY APPLE CARDS
   MOBILE STACK OVERRIDE (NO SWIPE)
   Paste LAST in your CSS
========================================= */

@media (max-width: 980px){

  /* Track: switch to vertical stack */
  .sg-why-apple-track{
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    gap: 16px !important;

    overflow: visible !important;
    padding-bottom: 0 !important;

    /* disable snap + momentum swipe layout */
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: auto !important;
  }

  /* Each card full width */
  .sg-why-apple-card{
    width: 100% !important;
    min-width: 0 !important;
    scroll-snap-align: none !important;
  }

  /* Keep your tall iPhone-like feel */
  .sg-why-apple-media{
    height: 68vh !important;     /* adjust 60–75 if you want */
    min-height: 520px !important;
    max-height: 640px !important;
  }

  /* Hide arrows on mobile */
  .sg-why-apple-arrows{
    display: none !important;
  }
}
/* Make Celestial card image fit fully inside the card */
.sg-why-apple-card--celestial .sg-why-apple-img{
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  padding: 29px; /* gives breathing room inside rounded corners */
}
/* Sun container */
.sg-sun-wrap{
  position: relative;
  width: min(180px, 38vw); /* adjust size as needed */
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  pointer-events: none; /* keeps hover handling on the card */
}

/* Your realistic PNG */
.sg-sun-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(255,150,30,0.25))
    drop-shadow(0 0 28px rgba(255,90,0,0.18));
  transition: filter 220ms ease, transform 220ms ease;
}

/* FLARES layer */
.sg-sun-flares{
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.98);
  mix-blend-mode: screen;
  pointer-events: none;

  /* Multi radial bursts around the edge */
  background:
    radial-gradient(24px 60px at 12% 22%, rgba(255,170,60,0.55), transparent 70%),
    radial-gradient(28px 70px at 86% 28%, rgba(255,120,30,0.50), transparent 72%),
    radial-gradient(22px 55px at 78% 82%, rgba(255,200,90,0.45), transparent 70%),
    radial-gradient(26px 65px at 18% 78%, rgba(255,110,20,0.50), transparent 72%),
    radial-gradient(18px 45px at 50% 6%, rgba(255,210,110,0.40), transparent 70%),
    radial-gradient(18px 45px at 50% 94%, rgba(255,140,40,0.38), transparent 70%);
  
  filter: blur(6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* SHIMMER layer */
.sg-sun-shimmer{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;

  /* Soft animated plasma feel */
  background:
    radial-gradient(circle at 30% 30%, rgba(255,180,60,0.18), transparent 45%),
    radial-gradient(circle at 70% 40%, rgba(255,120,30,0.16), transparent 48%),
    radial-gradient(circle at 45% 75%, rgba(255,220,120,0.14), transparent 50%);

  filter: blur(10px);
  transition: opacity 200ms ease;
}

/* Trigger only on card hover */
.sg-why-apple-card--celestial:hover .sg-sun-flares,
.sg-why-apple-card--celestial:hover .sg-sun-shimmer{
  opacity: 1;
}

/* Make the flares "pop" subtly */
.sg-why-apple-card--celestial:hover .sg-sun-flares{
  animation: sg-sun-flare-pulse 2.8s ease-in-out infinite;
}

/* Give the heat shimmer a gentle drift */
.sg-why-apple-card--celestial:hover .sg-sun-shimmer{
  animation: sg-sun-shimmer-drift 3.6s ease-in-out infinite;
}

/* Slightly intensify base sun on hover */
.sg-why-apple-card--celestial:hover .sg-sun-img{
  transform: scale(1.01);
  filter:
    drop-shadow(0 0 18px rgba(255,150,30,0.30))
    drop-shadow(0 0 40px rgba(255,80,0,0.22));
}

@keyframes sg-sun-flare-pulse{
  0%   { transform: scale(0.985); opacity: 0.70; }
  45%  { transform: scale(1.02);  opacity: 1.00; }
  100% { transform: scale(0.99);  opacity: 0.78; }
}

@keyframes sg-sun-shimmer-drift{
  0%   { background-position: 0% 0%;   opacity: 0.55; }
  50%  { background-position: 20% 10%; opacity: 0.85; }
  100% { background-position: 0% 0%;   opacity: 0.60; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .sg-why-apple-card--celestial:hover .sg-sun-flares,
  .sg-why-apple-card--celestial:hover .sg-sun-shimmer{
    animation: none !important;
  }
}
.sg-why-apple-card--celestial .sg-celestial-system{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: grid;
  place-items: center;
}

/* Keep text above effects */
.sg-why-apple-text{ position: relative; z-index: 5; }
.sg-why-apple-plus{ z-index: 6; }
.sg-why-apple-overlay{ z-index: 4; }
/* =========================================
   ASTRO MAP PRO — MOBILE FIT FIX
   Ensures Earth + rings stay inside card
========================================= */

@media (max-width: 980px){

  /* Target ONLY the Astro Map card image */
  .sg-why-apple-card--astro_map .sg-why-apple-img{
    object-fit: contain;                 /* key change */
    object-position: center 55%;         /* nudge down slightly */
    transform: scale(0.96);              /* remove the crop-causing zoom */
  }

  /* Prevent hover zoom from breaking fit on touch devices */
  .sg-why-apple-card--astro_map .sg-why-apple-media:hover .sg-why-apple-img{
    transform: scale(0.96);
  }
}

/* Even tighter phones */
@media (max-width: 640px){
  .sg-why-apple-card--astro_map .sg-why-apple-img{
    transform: scale(0.94);
    object-position: center 58%;
  }
}
@media (max-width: 980px){
  .sg-why-apple-card--astro_map .sg-why-apple-media{
    height: clamp(500px, 82vh, 600px);
  }
}
.sg-why-apple-card--celestial .sg-why-apple-media{
  position: relative;
}

.sg-celestial-zodiac,
.sg-celestial-sun{
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sg-celestial-zodiac{
  width: min(78%, 360px);
  height: auto;
  z-index: 2;
}

.sg-celestial-sun{
  width: min(22%, 120px);
  height: auto;
  z-index: 3;
}
/* =========================
   CELESTIAL SOLAR FLARE
   CSS-only (no extra HTML)
========================= */

#sg-why-apple-{{ section.id }} 
.sg-why-apple-card--celestial 
.sg-why-apple-media{
  position: relative;
}

/* flare glow behind the image */
#sg-why-apple-{{ section.id }} 
.sg-why-apple-card--celestial 
.sg-why-apple-media::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(200px, 45%, 340px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;

  background: radial-gradient(
    circle,
    rgba(255, 210, 120, 0.55) 0%,
    rgba(255, 150, 40, 0.30) 38%,
    rgba(255, 90, 0, 0.14) 60%,
    transparent 72%
  );

  filter: blur(14px) saturate(1.4);
  opacity: 0.95;

  z-index: 1;
  pointer-events: none;

  animation: sg-solar-pulse-{{ section.id }} 3.6s ease-in-out infinite;
}

/* make sure your PNG sits above the flare */
#sg-why-apple-{{ section.id }} 
.sg-why-apple-card--celestial 
.sg-why-apple-img{
  z-index: 2;
}

/* keep overlay/text/plus above everything */
#sg-why-apple-{{ section.id }} .sg-why-apple-overlay{
  z-index: 4;
  pointer-events: none;
}
#sg-why-apple-{{ section.id }} .sg-why-apple-text{
  z-index: 5;
  pointer-events: none;
}
#sg-why-apple-{{ section.id }} .sg-why-apple-plus{
  z-index: 6;
}

/* subtle energy pulse */
@keyframes sg-solar-pulse-{{ section.id }}{
  0%,100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50%     { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}
/* ===============================
   SG — Free Preview CTA (Subtle)
   - Keeps exact button shape
   - Gentle pulse only
   Targets:
   - Any link to #free-preview
   - Any element with data-sg-preview-open
   - Header CTA
================================= */

a[href="#free-preview"],
button[data-sg-preview-open],
a[data-sg-preview-open],
.sg-header-cta {
  /* IMPORTANT: do NOT set border-radius here */
  position: relative;
  isolation: isolate;
  overflow: hidden;

  animation: sgFreePreviewPulse 3.6s ease-in-out infinite;
  will-change: transform, filter, box-shadow;
}

/* Soft “alive” glow without changing shape */
a[href="#free-preview"]::before,
button[data-sg-preview-open]::before,
a[data-sg-preview-open]::before,
.sg-header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  /* subtle brand-tinted overlay */
  background: linear-gradient(
    120deg,
    rgba(0,113,227,0.10),
    rgba(90,167,255,0.12),
    rgba(10,184,170,0.08),
    rgba(0,113,227,0.10)
  );

  opacity: 0.9;
  transition: opacity .2s ease;
}

/* Hover: tiny lift, still premium */
a[href="#free-preview"]:hover,
button[data-sg-preview-open]:hover,
a[data-sg-preview-open]:hover,
.sg-header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* The pulse is intentionally minimal */
@keyframes sgFreePreviewPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 6px 16px rgba(0,0,0,0.14);
  }
  50% {
    transform: scale(1.01);
    box-shadow:
      0 10px 22px rgba(0,0,0,0.18),
      0 0 14px rgba(0,113,227,0.14);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  a[href="#free-preview"],
  button[data-sg-preview-open],
  a[data-sg-preview-open],
  .sg-header-cta {
    animation: none !important;
  }
}
/* ==========================================
   SG — Free Preview CTA (Refined)
   - Keeps Buy Now shape
   - Subtle pulse desktop
   - Stronger pulse mobile
   - More dramatic shimmer
   Targets:
   - links using #free-preview
   - elements with data-sg-preview-open
   - header CTA
========================================== */

a[href="#free-preview"],
button[data-sg-preview-open],
a[data-sg-preview-open],
.sg-header-cta {
  /* DO NOT set border-radius — inherits your button system */
  position: relative;
  isolation: isolate;
  overflow: hidden;

  will-change: transform, filter, box-shadow;
  animation: sgFreePreviewPulseDesktop 3.8s ease-in-out infinite;

  /* keep your existing button colors/classes intact */
}

/* Soft brand-tinted wash */
a[href="#free-preview"]::before,
button[data-sg-preview-open]::before,
a[data-sg-preview-open]::before,
.sg-header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    120deg,
    rgba(0,113,227,0.10),
    rgba(90,167,255,0.16),
    rgba(10,184,170,0.10),
    rgba(0,113,227,0.12)
  );

  opacity: 0.95;
  transition: opacity .2s ease;
}

/* ==========================================
   DRAMATIC SHIMMER
========================================== */

a[href="#free-preview"]::after,
button[data-sg-preview-open]::after,
a[data-sg-preview-open]::after,
.sg-header-cta::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -60%;
  width: 85%;
  height: 170%;
  z-index: 0;

  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.10) 35%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.10) 65%,
    transparent 100%
  );

  transform: translateX(-140%);
  opacity: 0;

  /* more frequent + punchier than before */
  animation: sgFreePreviewShimmer 4.2s ease-in-out infinite;
}

/* Hover stays premium */
a[href="#free-preview"]:hover,
button[data-sg-preview-open]:hover,
a[data-sg-preview-open]:hover,
.sg-header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04) saturate(1.03);
}

/* Click feedback */
a[href="#free-preview"]:active,
button[data-sg-preview-open]:active,
a[data-sg-preview-open]:active,
.sg-header-cta:active {
  transform: translateY(0);
}

/* Desktop pulse: very subtle */
@keyframes sgFreePreviewPulseDesktop {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 6px 16px rgba(0,0,0,0.14);
  }
  50% {
    transform: scale(1.006);
    box-shadow:
      0 10px 22px rgba(0,0,0,0.18),
      0 0 12px rgba(0,113,227,0.10);
  }
}

/* Shimmer sweep: brighter + wider + faster */
@keyframes sgFreePreviewShimmer {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  45% {
    opacity: 0.9;
  }
  60% {
    opacity: 0.0;
  }
  100% {
    transform: translateX(220%);
    opacity: 0;
  }
}

/* Mobile: slightly stronger pulse for attention */
@media (max-width: 749px) {
  a[href="#free-preview"],
  button[data-sg-preview-open],
  a[data-sg-preview-open],
  .sg-header-cta {
    animation: sgFreePreviewPulseMobile 3.2s ease-in-out infinite;
  }

  @keyframes sgFreePreviewPulseMobile {
    0%, 100% {
      transform: scale(1);
      box-shadow:
        0 6px 16px rgba(0,0,0,0.16);
    }
    50% {
      transform: scale(1.012);
      box-shadow:
        0 12px 26px rgba(0,0,0,0.22),
        0 0 16px rgba(0,113,227,0.16);
    }
  }

  /* slightly more visible shimmer on mobile */
  a[href="#free-preview"]::after,
  button[data-sg-preview-open]::after,
  a[data-sg-preview-open]::after,
  .sg-header-cta::after {
    animation-duration: 3.8s;
  }
}

/* Stop the effects when the drawer is open (keeps UI calm) */
.sg-preview-drawer-root.is-open a[href="#free-preview"],
.sg-preview-drawer-root.is-open button[data-sg-preview-open],
.sg-preview-drawer-root.is-open a[data-sg-preview-open],
.sg-preview-drawer-root.is-open .sg-header-cta {
  animation: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  a[href="#free-preview"],
  button[data-sg-preview-open],
  a[data-sg-preview-open],
  .sg-header-cta {
    animation: none !important;
  }

  a[href="#free-preview"]::after,
  button[data-sg-preview-open]::after,
  a[data-sg-preview-open]::after,
  .sg-header-cta::after {
    animation: none !important;
  }
}
.sgd-hero-cta{
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
/* Ensure all SG buttons render as pills */
.sg-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Primary */
.sg-btn-primary{
  background: #0071e3;
  color: #fff;
  border: 1px solid transparent;
}

/* Secondary - outlined, visible on dark */
.sg-btn-secondary{
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sg-btn-secondary:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.40);
  transform: translateY(-1px);
}