/* TEMP: remove once base.css is redeployed */
body { overflow: visible !important; }

/* ── Hero typing ── */
.hero-typing-static { color: #ffffff; }
.platforms-typing-text { display: inline; color: var(--color-accent); }
.hero-typing-cursor { display: inline; color: var(--color-accent); font-weight: 300; animation: hero-blink 0.7s step-end infinite; }
@keyframes hero-blink { 50% { opacity: 0; } }

/* ── Hero subtext pill dark variant ── */
.subtext--dark { background: rgba(255,255,255,0.06); border-color: rgba(96,165,250,0.25); }
.subtext--dark .subtitle-copy { color: rgba(255,255,255,0.7); }

/* ── SHARED: tags / download buttons / cta ── */
.plat-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.plat-tag { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: rgba(37,99,235,0.07); border: 1px solid rgba(37,99,235,0.15); color: var(--color-accent); }
.platform-tag--coming-soon { background: rgba(250,204,21,0.08); border-color: rgba(250,204,21,0.2); color: #ca8a04; }
.plat-dl-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.plat-dl-btn { display: flex; align-items: center; gap: 5px; padding: 8px 14px; background: #fff; border: 1px solid rgba(37,99,235,0.15); border-radius: 10px; font-size: 11.5px; font-weight: 600; color: #1e3a8a; text-decoration: none; font-family: var(--font); transition: all 0.2s; box-shadow: 0 2px 8px rgba(37,99,235,0.05); }
.plat-dl-btn:hover { border-color: rgba(37,99,235,0.3); transform: translateY(-1px); }
.plat-dl-btn svg { width: 13px; height: 13px; }
.plat-cta-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--color-accent); text-decoration: none; transition: gap 0.2s; }
.plat-cta-link:hover { gap: 11px; }
.platform-cta-muted { font-size: 13px; color: rgba(15,23,42,0.4); }

/* ══════════════════════════════════════
   DESKTOP — plat-v2
   ══════════════════════════════════════ */
.plat-v2 { background: #ffffff; position: relative; padding: 0; }
.plat-v2::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; z-index: 0; }

.plat-head-section { background: #ffffff; padding: 80px 0 0; }
.plat-head { text-align: center; position: relative; z-index: 3; }
.plat-head h2 { font-size: 42px; font-weight: 800; color: #0d1321; letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.2; }
.plat-head h2 span { color: var(--color-accent); }
.plat-head p { font-size: 15px; color: rgba(15,23,42,0.5); max-width: 460px; margin: 0 auto; line-height: 1.7; }

/* ── Sticky wrap ──
   FIX: no overflow set on this element — overflow:hidden/auto
   on any ancestor breaks position:sticky in Chrome/Safari.
   The overflow-x:hidden was on body in base.css (now moved to html)
   which was the root cause of sticky not working.                  */
.plat-sticky-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  position: relative;
  z-index: 3;
}

/* ── LEFT sticky ──
   FIX: explicit height so the sticky element has a defined
   viewport to stick within. Without this some browsers don't
   correctly calculate the sticky scroll range.               */
.plat-sticky-left {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 0 48px 0 80px;
  height: calc(100vh - 40px);
  display: flex;
  align-items: center;
}

.plat-img-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef3ff, #dbeafe);
  box-shadow: 0 24px 80px rgba(37,99,235,0.15);
}
.plat-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.96);
}
.plat-stage-img.active { opacity: 1; transform: scale(1); }
.plat-stage-label {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 5px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

/* ── RIGHT scrolling ── */
.plat-sticky-right {
  display: flex;
  flex-direction: column;
  padding: 0 120px 0 48px;
}

.plat-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(37,99,235,0.07);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.plat-section:last-of-type { border-bottom: none; padding-bottom: 100px; }
.plat-section.dimmed { opacity: 0.3; transform: translateX(12px); }
.plat-section-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(37,99,235,0.4); margin-bottom: 12px; }
.plat-section h3 { font-size: 30px; font-weight: 800; color: #0d1321; letter-spacing: -0.3px; line-height: 1.25; margin-bottom: 14px; }
.plat-section h3 span { color: var(--color-accent); }
.plat-section p { font-size: 15px; line-height: 1.75; color: rgba(15,23,42,0.5); margin-bottom: 20px; max-width: 460px; }

/* ── CTA section ── */
.platforms-cta-section { position: relative; overflow: hidden; background: #020c1b; }
.platforms-cta-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; z-index: 0; }
.platforms-cta-section > .container { position: relative; z-index: 1; }

/* ── Desktop/Mobile visibility ── */
@media (min-width: 901px) { .platforms-mobile { display: none; } }
@media (max-width: 900px) { .plat-v2 { display: none; } }

/* ══════════════════════════════════════
   MOBILE
   ══════════════════════════════════════ */
@media (max-width: 900px) {

  .platforms-mobile {
    display: block;
    background: #d8e8f8;
    height: 110svh;
    overflow: hidden;
    position: relative;
  }

  .platforms-mobile-shell {
    height: 110svh;
    display: flex;
    flex-direction: column;
    padding: 8px 14px 8px;
    padding-top: calc(var(--header-height) + 8px);
    padding-bottom: calc(var(--header-height) + 8px);
    box-sizing: border-box;
    gap: 20px;
    overflow: hidden;
  }

  .platforms-mobile-header {
    flex: 0 0 auto;
    text-align: center;
  }
  .platforms-mobile-header .section-heading { margin-bottom: 4px; }
  .platforms-mobile-header .section-heading span { color: var(--color-accent); }
  .platforms-mobile-header .section-sub { margin: 0; max-width: 100%; }

  .platforms-mobile-image-stage {
    flex: 0 0 32%;
    min-height: 0;
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, #eef3ff, #dbeafe);
  }
  .platforms-mobile-image-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.95);
  }
  .platforms-mobile-image-stage img.active { opacity: 1; transform: scale(1); }
  .platforms-mobile-image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(37,99,235,0.15);
    padding: 4px 10px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
  }

  .platforms-mobile-body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    gap: 10px;
    overflow: hidden;
  }

  .platforms-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 2px;
  }
  .platforms-mobile-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(37,99,235,0.18);
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
  }
  .platforms-mobile-nav-dot.active { background: var(--color-accent); transform: scale(1.6); }

  .platforms-mobile-panels {
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
  }
  .platforms-mobile-panels::-webkit-scrollbar { display: none; }

  .platforms-mobile-panel {
    scroll-snap-align: start;
    height: 100%;
    flex-shrink: 0;
    padding: 22px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .platforms-mobile-panel .platform-number { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(37,99,235,0.35); margin-bottom: 7px; }
  .platforms-mobile-panel h3 { font-size: 20px; font-weight: 800; color: #0d1321; letter-spacing: -0.4px; line-height: 1.2; margin-bottom: 9px; }
  .platforms-mobile-panel h3 span { color: var(--color-accent); }
  .platforms-mobile-panel p { font-size: 12.5px; line-height: 1.65; color: rgba(15,23,42,0.48); margin-bottom: 12px; margin-top: 0; }

  .platform-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
  .platform-tag { font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 100px; background: rgba(37,99,235,0.06); border: 1px solid rgba(37,99,235,0.14); color: var(--color-accent); line-height: 1; }
  .platform-tag--coming-soon { background: rgba(250,204,21,0.08); border-color: rgba(250,204,21,0.25); color: #b45309; }

  .platform-downloads { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
  .platform-download-btn { display: flex; align-items: center; gap: 5px; padding: 7px 11px; background: #ffffff; border: 1px solid rgba(37,99,235,0.15); border-radius: 9px; font-size: 11px; font-weight: 600; color: #1e3a8a; text-decoration: none; font-family: var(--font); transition: border-color 0.2s ease, transform 0.2s ease; box-shadow: 0 2px 8px rgba(37,99,235,0.06); }
  .platform-download-btn svg { width: 11px; height: 11px; flex-shrink: 0; }

  .platform-cta-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--color-accent); text-decoration: none; transition: gap 0.2s ease; margin-top: auto; }
  .platform-cta-muted { font-size: 11.5px; color: rgba(15,23,42,0.38); margin-top: auto; }

}