/* =============================================================================
   RESET & BOX MODEL
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */
:root {
  /* Brand colours */
  --purple:       #630B78;
  --purple-mid:   #7D1296;
  --purple-pale:  #F5EEF8;

  /* Neutrals */
  --off-white:    #FAFAF9;
  --white:        #FFFFFF;
  --ink:          #1A1018;
  --ink-mid:      #4A3B52;
  --ink-light:    #9B8EA4;

  /* Utility */
  --rule:         rgba(99, 11, 120, 0.1);
  --gold:         #C4973A;

  /* Spacing scale */
  --space-xs:     0.5rem;
  --space-sm:     1rem;
  --space-md:     2rem;
  --space-lg:     3.5rem;
  --space-xl:     7rem;

  /* Border radii */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-full:  100px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* =============================================================================
   BASE
   ============================================================================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Archivo', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
h1 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--purple);
}

h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* =============================================================================
   REUSABLE PATTERNS
   ============================================================================= */

/* Eyebrow label used in multiple sections */
.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}

.hero-eyebrow {
  margin-bottom: 1.6rem;
}

.section-eyebrow {
  margin-bottom: var(--space-sm);
}

.hero-eyebrow::before,
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--purple);
  flex-shrink: 0;
}

/* Primary CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--purple);
  color: var(--white);
  font-family: 'Archivo', sans-serif;
  font-size: var(--space-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  will-change: transform;
}

.btn-primary:hover {
  background: var(--purple-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 11, 120, 0.25);
}

/* =============================================================================
   NAVIGATION
   Scoped to .stagedoor-nav so it doesn't override any parent layout nav
   ============================================================================= */
.stagedoor-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  height: 88px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Safari */
  border-bottom: 1px solid var(--rule);
  gap: 10px;
  text-decoration: none;
}

.navlogo {
  border-radius: 50%;
  overflow: hidden;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.nav-mark {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-size: var(--space-sm);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-name {
  font-size: var(--space-sm);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.nav-name small {
  color: var(--purple);
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  font-size: var(--space-sm);
  font-weight: 700;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--purple);
}

/* =============================================================================
   HERO
   ============================================================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 7rem 10% 5rem;
  background: var(--white);
}

.herologo {
  border-radius: 10px;
  margin-right: 10px;
}

.hero-body {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.store-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.badge-link {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
}

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

.hero-trust {
  display: flex;
  gap: 2.4rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}

.trust-num {
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.trust-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 3px;
  display: block;
}

/* =============================================================================
   HERO VISUAL / PHONE MOCKUP
   ============================================================================= */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 3rem var(--space-md);
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--purple-pale) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.phone-wrap {
  position: relative;
  z-index: 1;
}

.phone {
  width: 312px;
  border-radius: 40px;
  padding: 10px;
  position: relative;
  background: linear-gradient(145deg, #A8A8A8 0%, #6E6E6E 40%, #8A8A8A 60%, #5A5A5A 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 0 0 2px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 10px 30px rgba(99, 11, 120, 0.25);
}

/* Phone hardware buttons — shared base */
.phone-btn-silent,
.phone-btn-vol-up,
.phone-btn-vol-down {
  position: absolute;
  left: -3px;
  width: 3px;
  background: linear-gradient(to right, #4a4a4a, #6e6e6e);
  border-radius: 2px 0 0 2px;
  box-shadow: -1px 0 2px rgba(0, 0, 0, 0.4);
}

.phone-btn-silent   { top: 100px; height: 28px; }
.phone-btn-vol-up   { top: 148px; height: 52px; }
.phone-btn-vol-down { top: 214px; height: 52px; }

.phone-btn-power {
  position: absolute;
  right: -3px;
  top: 160px;
  width: 3px;
  height: 72px;
  background: linear-gradient(to left, #4a4a4a, #6e6e6e);
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  background: var(--off-white);
  border-radius: 30px;
  overflow: hidden;
  height: 640px;
  position: relative;
}

/* Floating info pills */
.pill {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 0.55rem 0.9rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pill-icon { font-size: var(--space-sm); }

.pill-text { line-height: 1.2; }
.pill-text small  { font-size: 0.85rem; color: var(--ink-light); display: block; }
.pill-text strong { font-size: var(--space-sm); color: var(--ink); font-weight: 600; }

.pill-1 { top: 10%;  right: 2%; animation: gentleFloat 4s   0.5s ease-in-out infinite; }
.pill-2 { bottom: 20%; left: 2%; animation: gentleFloat 4.5s 1s   ease-in-out infinite; }

/* =============================================================================
   FEATURES SECTION
   ============================================================================= */
.section-features {
  padding: var(--space-xl) 10%;
  background: var(--off-white);
  position: relative;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  margin-bottom: 4.5rem;
}

.section-intro {
  font-size: var(--space-sm);
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink-mid);
  align-self: end;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--rule);
}

.feat {
  background: var(--white);
  padding: 2.4rem var(--space-md);
  transition: background var(--transition-base);
}

.feat:hover { background: var(--purple-pale); }

.feat-num {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
  display: block;
}

.feat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--purple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  transition: background var(--transition-base);
}

.feat:hover .feat-icon-wrap { background: rgba(99, 11, 120, 0.15); }

.feat-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feat-desc {
  font-size: var(--space-sm);
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* =============================================================================
   HOW IT WORKS SECTION
   ============================================================================= */
.section-how {
  padding: var(--space-xl) 10%;
  background: var(--white);
}

.section-how .section-header { margin-bottom: 4rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 3rem;
}

.step                { padding: 0 2.5rem 0 0;    border-right: 1px solid var(--rule); }
.step:nth-child(2)   { padding: 0 2.5rem;                                             }
.step:last-child     { padding: 0 0 0 2.5rem;    border-right: none;                  }

.step-num {
  font-family: 'Archivo', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--purple-pale);
  margin-bottom: var(--space-sm);
  display: block;
  letter-spacing: -0.04em;
}

.step-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: var(--space-sm);
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* =============================================================================
   FAQ SECTION
   ============================================================================= */
.section-faq {
  padding: var(--space-xl) 10%;
  background: var(--off-white);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.faq-sticky { top: 100px; }

.faq-sticky p {
  font-size: var(--space-sm);
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 0;
  gap: var(--space-sm);
  text-align: left;
}

.faq-q {
  font-family: 'Archivo', sans-serif;
  font-size: var(--space-sm);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.faq-btn:hover .faq-q,
.faq-btn.open  .faq-q { color: var(--purple); }

.faq-toggle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  font-size: 2.5em;
  line-height: 1;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-slow);
}

.faq-btn.open .faq-toggle {
  color: var(--purple);
  transform: rotate(45deg);
}

.faq-answer {
  font-size: var(--space-sm);
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink-mid);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease, padding-bottom var(--transition-base);
}

.faq-answer.open {
  max-height: 200px;
  padding-bottom: 1.3rem;
}

/* =============================================================================
   FOOTER CTA
   ============================================================================= */
.footer-closing {
  padding: var(--space-xl) 10%;
  background: var(--purple);
  position: relative;
  overflow: hidden; /* contain the pseudo-element glow */
}

.footer-closing::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.footer-closing-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.footer-closing h2 { color: var(--white);}
.footer-closing h2 em { color: rgba(255, 255, 255, 0.55); }

.footer-closing-right p {
  font-size: var(--space-sm);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  max-width: 340px;
  margin-bottom: var(--space-md);
}

.footer-closing-right .badge-apple  { filter: brightness(0) invert(1); }
.footer-closing-right .badge-google { filter: brightness(10); }

/* =============================================================================
   FOOTER BOTTOM
   ============================================================================= */
footer {
  background: var(--ink);
  padding: 1.8rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.foot-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: -0.01em;
}

.foot-logo strong { color: rgba(255, 255, 255, 0.7); font-weight: 600; }

.foot-links { display: flex; gap: 1.6rem; }

.foot-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.foot-links a:hover { color: rgba(255, 255, 255, 0.7); }

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0);     }
  50%       { transform: translateY(-10px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-text   { animation: fadeUp 0.9s ease both; }
.hero-visual { animation: fadeUp 0.9s 0.15s ease both; }

/* Scroll-triggered reveal */
.reveal      { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in   { opacity: 1; transform: translateY(0); }

/* =============================================================================
   RESPONSIVE — ≤ 960px
   ============================================================================= */
@media (max-width: 960px) {
  /* Nav */
  .stagedoor-nav { padding: 5%; height: 60px; }
  .nav-link, .btn-primary { font-size: 0.85rem; }
  .navlogo { width: 40px; height: 40px; }
  .nav-name { transform: scale(0.6); transform-origin: left center; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 5rem 6% 2.5rem;
    gap: var(--space-md);
  }
  .hero-body   { margin: 0 auto var(--space-md); }
  .store-group { justify-content: center; }
  .hero-trust  { justify-content: center; }
  .hero-visual { order: -1; padding: 1.5rem var(--space-md); }
  .pill-1, .pill-2 { display: none; }

  /* Features */
  .section-features { padding: 3.5rem 6%; }
  .section-header   { grid-template-columns: 1fr; gap: 0.8rem; margin-bottom: var(--space-md); }
  .features-grid    { grid-template-columns: 1fr; }

  /* How it works */
  .section-how { padding: 3.5rem 6%; }
  .section-how .section-header { margin-bottom: var(--space-md); }
  .steps { grid-template-columns: 1fr; border-top: none; padding-top: 0; }

  .step,
  .step:nth-child(2),
  .step:last-child {
    padding: 1.8rem 0 0;
    border: none;
    border-top: 1px solid var(--rule);
  }
  .step:first-child { padding-top: 0; border-top: none; }

  /* FAQ */
  .section-faq { padding: 3.5rem 6%; }
  .faq-layout  { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-sticky  { position: static; }

  /* Footer */
  .footer-closing       { padding: 3.5rem 6%; }
  .footer-closing-inner { flex-direction: column; gap: 1.5rem; }
  footer                { flex-direction: column; text-align: center; padding: 1.2rem 6%; }
}