/* ─── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*:focus-visible {
  outline: 2px solid #FFC107;
  outline-offset: 3px;
}

/* ─── Header scroll state ──────────────────────────────────── */
.header-scrolled {
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* stagger children of a reveal group */
.reveal-group > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-group > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-group > *:nth-child(8) { transition-delay: 0.75s; }

/* ─── Hero entry animations ────────────────────────────────── */
@keyframes heroTextReveal {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPhoneReveal {
  from {
    opacity: 0;
    transform: rotate(-5deg) translateY(2rem);
  }
  to {
    opacity: 1;
    transform: rotate(-3deg) translateY(0);
  }
}

@keyframes phoneFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%       { transform: rotate(-3deg) translateY(-10px); }
}

.hero-text-1 { animation: heroTextReveal 0.7s ease 0.1s both; }
.hero-text-2 { animation: heroTextReveal 0.7s ease 0.25s both; }
.hero-text-3 { animation: heroTextReveal 0.7s ease 0.4s both; }
.hero-text-4 { animation: heroTextReveal 0.7s ease 0.55s both; }
.hero-text-5 { animation: heroTextReveal 0.7s ease 0.7s both; }

.phone-hero {
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.22));
  animation: heroPhoneReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.phone-hero:hover {
  animation: phoneFloat 4s ease-in-out infinite;
}

/* ─── Scanner / privacy section ────────────────────────────── */
@keyframes scanPulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 193, 7, 0.2)); }
  50%       { filter: drop-shadow(0 0 60px rgba(255, 193, 7, 0.45)); }
}

.scan-glow {
  animation: scanPulse 3s ease-in-out infinite;
}

/* ─── Feature card hover ───────────────────────────────────── */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 193, 7, 0.15);
}

/* ─── FAQ / Details accordion ──────────────────────────────── */
details > summary {
  list-style: none;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  display: none;
}

.chevron {
  transition: transform 0.25s ease;
}

details[open] .chevron {
  transform: rotate(180deg);
}

details > p,
details > div.faq-answer {
  overflow: hidden;
}

/* ─── Mobile nav ───────────────────────────────────────────── */
#mobile-nav {
  display: none;
}

#mobile-nav.open {
  display: block;
}

/* ─── Progress image layering ──────────────────────────────── */
.img-progress {
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.12));
}

.img-widget {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.15));
  transform: rotate(3deg) translateX(12px) translateY(-12px);
}

/* ─── Pricing card ─────────────────────────────────────────── */
.pricing-popular-badge {
  background: #FFC107;
  color: #1B160F;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
}

/* ─── Eyebrow pill ─────────────────────────────────────────── */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid #FFC107;
  color: #E8A020;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* ─── Trust note ───────────────────────────────────────────── */
.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(27, 22, 15, 0.6);
}

/* ─── Section eyebrow ──────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8A020;
}

/* ─── Macro dots ───────────────────────────────────────────── */
.macro-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Privacy bullets ──────────────────────────────────────── */
.privacy-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.privacy-bullet-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(255, 193, 7, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ─── CTA button variants ──────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFC107;
  color: #1B160F;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #E8A020;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1B160F;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.15s ease;
}

.btn-secondary:hover {
  gap: 0.65rem;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0F0F0F;
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-dark:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── Step connector line (desktop) ───────────────────────── */
@media (min-width: 768px) {
  .step-connector {
    display: block;
  }
}

.step-connector {
  display: none;
}

/* ─── Overflow control ─────────────────────────────────────── */
.overflow-clip {
  overflow: hidden;
}
