/*
  Global styles for Pulse Technologies website
  Colour palette:
    --color-primary: #2A7CFF;
    --color-accent: #9340FF;
    --color-cyan: #00D1FF;
    --color-dark: #0A0F1F;
    --color-black: #0E0E0E;
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
  --color-primary: #2A7CFF;
  --color-accent: #9340FF;
  --color-cyan: #00D1FF;
  --color-dark: #0A0F1F;
  --color-black: #0E0E0E;
  --color-white: #FFFFFF;

  --max-width: 1200px;
  --border-radius: 12px;
}

/* =========================
   Reset / Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-cyan);
}

/* =========================
   Layout
========================= */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Global sections rhythm */
section {
  padding: 5rem 0;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tighten the FIRST section after a hero, across internal pages */
.page .hero + section {
  padding-top: 56px;
}
@media (max-width: 768px) {
  .page .hero + section {
    padding-top: 44px;
  }
}

/* =========================
   Header / Navigation
========================= */
.site-header {
  width: 100%;
  background: rgba(10, 15, 31, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo { display:flex; align-items:center; gap:10px; }

.nav-logo { height: 100px; width: auto; display:block; }

@media (max-width: 768px){
  .nav-logo { height: 24px; }
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.main-nav a {
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

/* Prevent underline effect on Login */
.main-nav a.nav-login::after {
  content: none !important;
  display: none !important;
}

/* Dropdown (desktop) */
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.desktop-nav .dropdown {
  position: relative;
}

.desktop-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 1rem;
  min-width: 200px;
  z-index: 1000;
}

.desktop-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.desktop-nav .dropdown-menu li {
  margin-bottom: 0.5rem;
}
.desktop-nav .dropdown-menu li:last-child {
  margin-bottom: 0;
}

.desktop-nav .dropdown-menu a {
  display: block;
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Login button */
.nav-login {
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  background: transparent;
  color: #e5e7eb;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.nav-login:hover {
  background: rgba(255, 255, 255, 0.08);
}
.main-nav a.nav-login {
  padding: 6px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* CTA login (legacy support) */
.cta-login {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-dark);
  border-radius: var(--border-radius);
  font-weight: 600;
}
.cta-login:hover {
  background: var(--color-cyan);
}

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-white);
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-nav.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  padding: 1rem;
}

.mobile-nav-list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list a,
.mobile-nav-list button {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-white);
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav-list a.cta-login {
  background: var(--color-primary);
  color: var(--color-dark);
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 0.5rem;
}

.mobile-nav-list .submenu {
  list-style: none;
  padding-left: 1rem;
  display: none;
}
.mobile-nav-list .accordion-item.open .submenu {
  display: block;
}
.mobile-nav-list .accordion-item.open > .accordion-toggle {
  color: var(--color-cyan);
}

/* =========================
   Hero (single system)
========================= */
.hero {
  min-height: 70vh;
  background: url('images/hero-background.webp') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 31, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Keep for backward compatibility, but you can stop using it */
.hero.hero-small {
  min-height: 52vh;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-logo {
  max-width: 160px;
  width: 100%;
  margin-bottom: 24px;
  opacity: 0.95;
}

.page-pulsesentinel #visual-showcase {
  padding-top: 0;
}

.page-pulsesentinel .sentinel-visual-image {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-dark);
  box-shadow: 0 0 6px rgba(42, 124, 255, 0.22) !important;
}

.btn-primary:hover {
  background: var(--color-cyan);
  box-shadow: 0 0 8px rgba(0, 209, 255, 0.22) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-dark);
}

/* =========================
   Intro Bridge
========================= */
.intro-bridge {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.intro-bridge-inner {
  max-width: 900px;
  margin: 0 auto;
}
.intro-kicker {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.85);
}
.intro-title {
  margin: 0 0 1rem 0;
}
.intro-subtitle {
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.7;
  color: #cbd5e1;
}

/* =========================
   Cards / Grids
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 0 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.card a.btn-card {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

.card .btn-card {
  margin-top: auto;
  align-self: center;
}

/* =========================
   Ecosystem
========================= */
.ecosystem-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.ecosystem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.ecosystem-item span {
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Ecosystem boxed steps layout (authoritative) */
#ecosystem .section-intro {
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

#ecosystem .ecosystem-steps {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

#ecosystem .ecosystem-step {
  display: grid !important;
  grid-template-columns: 64px 1fr !important;
  gap: 1.25rem !important;
  align-items: center !important;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#ecosystem .step-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(56, 189, 248, 0.85);
  line-height: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  margin: 0 !important;
}

#ecosystem .step-content h4 {
  margin: 0 0 0.4rem 0;
  font-weight: 700;
  color: #e5e7eb;
}

#ecosystem .step-content p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 0.98rem;
}

#ecosystem .step-meta {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: rgba(56, 189, 248, 0.9);
}

@media (max-width: 768px) {
  #ecosystem .ecosystem-step {
    grid-template-columns: 1fr !important;
  }
  #ecosystem .step-number {
    font-size: 1.4rem;
    justify-content: flex-start !important;
  }
}

/* =========================
   Timeline / Roadmap
========================= */
.timeline {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  max-width: 100%;
}

.container.timeline {
  margin-left: auto;
  margin-right: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.timeline-intro {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
  font-weight: 500;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
  width: 100%;
  max-width: 100%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 2px solid var(--color-dark);
}

.timeline-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.timeline-item h4,
.timeline-item p,
.timeline-intro {
  max-width: 100%;
  min-width: 0;
}

/* =========================
   Community CTA
========================= */
.community {
  padding: 5rem 1.5rem;
  background: none;
}

.community-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.community-inner h2 {
  margin-bottom: 1.25rem;
}

.community-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.community-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* End-of-page CTA spacing helper */
.end-cta {
  padding: 5rem 0;
}
@media (max-width: 768px) {
  .end-cta {
    padding: 4rem 0;
  }
}

/* =========================
   Footer
========================= */
.site-footer {
  background: var(--color-dark);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-cyan);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-links a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: var(--color-cyan);
}

/* =========================
   Forms (base)
========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

form input,
form textarea {
  padding: 0.8rem;
  border-radius: var(--border-radius);
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  resize: vertical;
}

form input:focus,
form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
}

form button {
  align-self: flex-start;
  padding: 0.8rem 1.6rem;
  border-radius: var(--border-radius);
  border: none;
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button:hover {
  background: var(--color-cyan);
}

/* =========================
   Utilities
========================= */
.text-center {
  text-align: center;
}

.max-width-sm {
  max-width: 700px;
  margin: 0 auto;
}

.max-width-md {
  max-width: 800px;
  margin: 0 auto;
}

.status-badge {
  display: inline-block;
  align-self: center;
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: rgba(0, 209, 255, 0.15);
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* LIVE badge variant (PulsePlay) */
.status-badge.status-badge-live {
}

/* Store badges */
.store-badges {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badges-center {
  justify-content: center;
}

.store-badge-link,
.store-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;      /* unified container height */
}

.store-badge-img {
  height: 44px;
  width: auto;
  display: block;
}

.store-badge-img.is-disabled {
  opacity: 0.55;
}

.store-coming-soon {
  flex-direction: column;
  user-select: none;
}

.coming-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
  .store-badges {
    width: 100%;
  }
  .store-badge-link,
  .store-coming-soon {
    width: 100%;
    justify-content: center;
  }
  .store-badge-img {
    height: 46px;
    margin: 0 auto;
  }
}

.disclaimer-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

/* =========================================
   Email / contact links (global)
   (exclude buttons)
========================================= */

/* Plain email links */
a[href^="mailto:"]:not(.btn) {
  color: var(--color-cyan);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a[href^="mailto:"]:not(.btn):hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* =========================
   Page-scoped polish
========================= */
/* Contact form */
.page-contact .contact-section {
  padding: 5rem 0;
}

.page-contact .contact-form {
  display: grid;
  gap: 14px;
  margin: 18px auto 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.page-contact .contact-form .field {
  display: grid;
  gap: 8px;
}

.page-contact .contact-form label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.page-contact .contact-form input,
.page-contact .contact-form textarea {
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  outline: none;
}

.page-contact .contact-form input::placeholder,
.page-contact .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.page-contact .contact-form input:focus,
.page-contact .contact-form textarea:focus {
  border-color: rgba(42, 124, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(42, 124, 255, 0.18);
}

.page-contact .contact-note {
  margin-top: 16px;
  opacity: 0.85;
}

/* Pricing: tighten tiers spacing + subtitle gap (single source of truth) */
.page-pricing #pricing-tiers {
  padding-top: 40px;
  padding-bottom: 80px;
}
.page-pricing #pricing-tiers .container > p.max-width-sm {
  margin: 0 auto 28px auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

/* Anchor offsets (sticky header) */
.page #pricing-tiers,
.page #contact-form {
  scroll-margin-top: 110px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  section h2 {
    font-size: 2rem;
  }
  .timeline-item {
    margin-bottom: 1.5rem;
  }
  /* Mobile timeline: keep markers aligned without shrinking text width */
  .timeline {
    margin: 0;
    padding-left: 0;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 2.25rem;
  }

  .timeline-intro {
    padding-left: 2.25rem;
  }

  .timeline-item::before {
    left: 4px;
    top: 6px;
  }

  .timeline-item h4 {
    line-height: 1.25;
    font-size: 1.05rem;
  }

  .timeline-item p {
    line-height: 1.6;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Readable body copy spacing (used across pages) */
.prose p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.prose p + p {
  margin-top: 14px;
}

/* =========================================
   FIX: Anchor buttons text invisible
   Force <a class="btn btn-primary"> to render like <button>
========================================= */

/* Cover all anchor link states so nothing overrides button text */
a.btn.btn-primary,
a.btn.btn-primary:link,
a.btn.btn-primary:visited,
a.btn.btn-primary:hover,
a.btn.btn-primary:active {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* If any pseudo-element overlay exists anywhere, ensure it can’t cover text */
a.btn.btn-primary::before,
a.btn.btn-primary::after {
  content: none !important;
  display: none !important;
}

/* =========================
   FINAL: Vertically center button text
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;              /* key fix */
}

/* === Store badge normalization (FINAL OVERRIDE) === */
.store-badges {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge-link,
.store-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;           /* unified row height */
}

/* CRITICAL: force images to respect the container height */
.store-badge-img {
  height: 100% !important;
  width: auto !important;
  max-height: 56px;
  display: block;
  object-fit: contain;
}

/* Google badge is naturally wide - cap it a bit */
.store-badge-link .store-badge-img {
  max-width: 260px;
}

/* Apple badge tends to look smaller; scale it up slightly for visual parity */
.store-coming-soon .store-badge-img {
  transform: scale(1.12);
  transform-origin: left center;
}

/* Keep "Coming Soon" as a single unit and align it */
.store-coming-soon {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.coming-label {
  display: block;
  white-space: nowrap;       /* prevents Coming / Soon split */
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* Mobile: stack nicely */
@media (max-width: 768px) {
  .store-badge-link,
  .store-coming-soon {
    width: 100%;
    justify-content: center;
    height: 58px;
  }

  .store-coming-soon {
    align-items: center;
  }

  .store-badge-link .store-badge-img {
    max-width: 320px;
  }

  .store-coming-soon .store-badge-img {
    transform: scale(1.10);
    transform-origin: center;
  }
}

/* === Store badge normalization (FINAL FIX) === */
/* The previous override forced a 56px height on the whole App Store + label column,
   which causes the label to wrap/overflow. Keep the visual sizing on the images instead. */
.store-badge-link,
.store-coming-soon {
  height: auto;
}

.store-badges {
  align-items: flex-start;
}

.store-badge-link .store-badge-img {
  height: 44px !important;
  max-height: 44px;
  max-width: 220px;
}

.store-coming-soon .store-badge-img {
  height: 38px !important;
  max-height: 38px;
  transform: none;
}

.store-coming-soon {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
}

.coming-label {
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 768px) {
  .store-badges {
    align-items: center;
  }

  .store-badge-link,
  .store-coming-soon {
    width: 100%;
    justify-content: center;
    height: auto;
  }

  .store-badge-link .store-badge-img {
    height: 46px !important;
    max-height: 46px;
    max-width: 300px;
  }

  .store-coming-soon .store-badge-img {
    height: 40px !important;
    max-height: 40px;
  }

  .store-coming-soon {
    align-items: center;
  }
}

/* === Store badge polish (label centering) === */
.store-coming-soon {
  align-items: center !important;
}

.coming-label {
  width: 100%;
  text-align: center;
}


/* === PulsePlay CTA badge sizing (context-specific) === */
.page-pulseplay #cta .store-badges {
  gap: 14px;
  justify-content: center;
}

.page-pulseplay #cta .store-badge-link .store-badge-img {
  height: 48px !important;
  max-height: 48px;
  max-width: 260px;
}

.page-pulseplay #cta .store-coming-soon .store-badge-img {
  height: 42px !important;
  max-height: 42px;
}

@media (max-width: 768px) {
  .page-pulseplay #cta .store-badge-link .store-badge-img {
    height: 46px !important;
    max-height: 46px;
    max-width: 280px;
  }

  .page-pulseplay #cta .store-coming-soon .store-badge-img {
    height: 40px !important;
    max-height: 40px;
  }
}

/* === PulsePlay CTA badge sizing (visual parity tweak) === */
.page-pulseplay #cta .store-badge-link .store-badge-img {
  height: 44px !important;
  max-height: 44px !important;
  max-width: 240px !important;
}

.page-pulseplay #cta .store-coming-soon .store-badge-img {
  height: 44px !important;
  max-height: 44px !important;
  transform: scale(1.08) !important;
  transform-origin: center !important;
}

@media (max-width: 768px) {
  .page-pulseplay #cta .store-badge-link .store-badge-img,
  .page-pulseplay #cta .store-coming-soon .store-badge-img {
    height: 42px !important;
    max-height: 42px !important;
  }

  .page-pulseplay #cta .store-coming-soon .store-badge-img {
    transform: scale(1.06) !important;
  }
}

/* === PulsePlay CTA badge sizing (fine tune parity) === */
.page-pulseplay #cta .store-coming-soon .store-badge-img {
  transform: scale(1.04) !important;
}

@media (max-width: 768px) {
  .page-pulseplay #cta .store-coming-soon .store-badge-img {
    transform: scale(1.03) !important;
  }
}

/* === PulsePlay CTA badge sizing (match PNG badges exactly) === */
.page-pulseplay #cta .store-badge-link .store-badge-img,
.page-pulseplay #cta .store-coming-soon .store-badge-img {
  height: 44px !important;
  max-height: 44px !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .page-pulseplay #cta .store-badge-link .store-badge-img,
  .page-pulseplay #cta .store-coming-soon .store-badge-img {
    height: 42px !important;
    max-height: 42px !important;
    transform: none !important;
  }
}
