/* ============================================================
   BANSHEE LANDING PAGE — STYLES
   ============================================================
   All colors reference CSS custom properties injected by config.js.
   No hardcoded color values in this file.
   ============================================================ */

/* === FONT FACE — Local Inter Variable Font === */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section__title {
  font-size: var(--heading-size);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.section__subtitle {
  font-size: var(--subheading-size);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform var(--anim-fast) var(--anim-easing),
              box-shadow var(--anim-fast) var(--anim-easing),
              background-color var(--anim-fast) var(--anim-easing);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  padding: 12px 28px;
  font-size: 16px;
  box-shadow: 0 0 20px var(--glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 0 30px var(--glow-strong), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  transition: background-color var(--anim-normal) var(--anim-easing),
              backdrop-filter var(--anim-normal) var(--anim-easing);
}

.nav--scrolled {
  background-color: rgba(13, 10, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.nav__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

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

/* Compact store badges for nav */
.nav__badges .store-badge {
  padding: 6px 14px;
  gap: 8px;
  border-radius: var(--radius-md);
}

.nav__badges .store-badge svg {
  width: 18px;
  height: 18px;
}

.nav__badges .store-badge__label {
  font-size: 9px;
}

.nav__badges .store-badge__store {
  font-size: 13px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__label {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-md);
  padding: 5px 14px;
  background: var(--glow);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero__headline {
  font-size: var(--display-size);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.hero__subtitle {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.hero__cta-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.hero__badges {
  display: flex;
  gap: var(--spacing-md);
}

.hero__social-proof {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.trial-cta {
  display: inline-block;
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
}

/* === HERO PHONE === */
.hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--glow-strong) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* === PHONE FRAME === */
.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #2a2a3a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 0 60px var(--glow), 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 229, 255, 0.15);
  z-index: 1;
  transform: rotate(5deg);
}

.phone-frame__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--bg-secondary);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

/* === PHONE DEMO STATES === */
.phone-demo {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity var(--anim-normal) var(--anim-easing);
}

/* Alarm Set State */
.phone-demo--alarm-set .demo__notification {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--accent-primary);
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.phone-demo--alarm-set .demo__time {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.phone-demo--alarm-set .demo__alarm-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.phone-demo--alarm-set .demo__toggle {
  width: 56px;
  height: 30px;
  background: var(--accent-primary);
  border-radius: 15px;
  position: relative;
}

.phone-demo--alarm-set .demo__toggle-knob {
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  transition: transform 0.3s ease;
}

/* Alarm Firing State */
/* Screaming State (combined alarm + recording) */
.phone-demo--screaming {
  animation: pulse-bg 0.5s ease-in-out infinite alternate;
}

.phone-demo--screaming .demo__scream-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-secondary);
  text-align: center;
  animation: pulse-text 0.5s ease-in-out infinite alternate;
  margin-bottom: 16px;
}

.demo__camera-dot {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-secondary);
}

.demo__rec-indicator {
  position: absolute;
  top: 46px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 1px;
}

.demo__rec-indicator::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-secondary);
  animation: blink-rec 0.8s ease-in-out infinite;
}

.phone-demo--screaming .demo__countdown {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent-primary);
  text-align: center;
  margin-bottom: 16px;
  text-shadow: 0 0 30px var(--glow-strong);
}

/* Decibel Meter */
.demo__meter {
  width: 100%;
  height: 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  width: calc(100% - 40px);
}

.demo__meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.demo__meter-fill--filling {
  animation: meter-fill 3s ease-out forwards;
}

/* Dismissed State */
/* === REDESIGN: DISMISSED STATE === */
.phone-demo--dismissed {
  justify-content: flex-start;
  padding: 48px 16px 16px;
  gap: 14px;
}

/* Win block — checkmark, title, streak, peak */
.demo__win {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 16px;
}

.demo__win-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo__check-big {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  animation: scale-in 0.4s var(--anim-easing);
}

.demo__win-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -0.02em;
}

.demo__streak-badge {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.demo__peak-stat {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.demo__peak-stat strong {
  color: var(--text-primary);
}

/* Video review */
.demo__video-review {
  width: 68%;
  height: 180px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.demo__video-review::before {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: rgba(255,255,255,0.5);
}

.demo__video-label {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Share bottom section */
.demo__share-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 10px;
  margin-top: 10px;
}

.demo__share-other {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.demo__share-icon-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.demo__share-icon-btn {
  flex: 1;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.15s, border-color 0.15s, box-shadow 0.15s;
  padding: 8px;
}

.demo__share-icon-btn.active {
  opacity: 1;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.demo__share-icon-btn svg {
  width: 18px;
  height: 18px;
}

.demo__share-now {
  width: 100%;
  padding: 12px;
  background: var(--accent-primary);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.demo__share-divider {
  display: none;
}

.demo__close-btn {
  position: absolute;
  top: 20px;
  left: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.demo__close-btn:hover {
  color: rgba(255,255,255,0.85);
}

/* Social Share State (now embedded in dismissed) */
.phone-demo--social-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.demo__share-headline {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.demo__share-subline {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4px;
}

.demo__share-preview {
  width: 48%;
  height: 118px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.demo__share-preview::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.4);
}

.demo__share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.demo__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.demo__share-btn.active {
  opacity: 1;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
}

.demo__share-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.demo__share-now {
  width: 100%;
  padding: 12px;
  background: var(--accent-primary);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.demo__share-now:hover {
  opacity: 0.85;
}

/* === STORE BADGES === */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  transition: transform var(--anim-fast) var(--anim-easing),
              box-shadow var(--anim-fast) var(--anim-easing),
              border-color var(--anim-fast) var(--anim-easing);
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--text-primary);
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.store-badge__store {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* === PROBLEM / PAIN === */
.problem__grid {
  max-width: 960px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.problem__point {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 600px;
  font-size: var(--subheading-size);
  color: var(--text-secondary);
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.problem__emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.problem__punchline {
  text-align: center;
  font-size: var(--body-size);
  color: var(--text-primary);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === HOW IT WORKS === */
.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.step-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  transition: transform var(--anim-normal) var(--anim-easing),
              box-shadow var(--anim-normal) var(--anim-easing);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glow);
  color: var(--accent-primary);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.step-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--spacing-md);
}

.step-card__icon svg {
  width: 100%;
  height: 100%;
}

.step-card__title {
  font-size: var(--subheading-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.step-card__desc {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === FEATURES === */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border-left: 3px solid var(--accent-primary);
  transition: transform var(--anim-normal) var(--anim-easing),
              box-shadow var(--anim-normal) var(--anim-easing);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow);
}

.feature-card__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-size: var(--subheading-size);
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === PRICING === */
.pricing__card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 40px var(--glow);
  text-align: center;
}

.pricing__trial {
  font-size: var(--subheading-size);
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-lg);
}

.pricing__options {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.pricing__option {
  text-align: center;
}

.pricing__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing__period {
  font-size: var(--caption-size);
  color: var(--text-muted);
}

.pricing__option--highlighted {
  background: var(--bg-tertiary);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  position: relative;
}

.pricing__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--accent-primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing__savings {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(74, 222, 128, 0.15);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.pricing__features {
  text-align: left;
  margin-bottom: var(--spacing-lg);
  padding: 0 var(--spacing-md);
}

.pricing__feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 6px 0;
  font-size: var(--body-size);
  color: var(--text-secondary);
}

.pricing__feature::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--accent-primary);
  border-radius: 50%;
  /* Checkmark via mask */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.pricing__free-note {
  font-size: var(--caption-size);
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.pricing__cta {
  width: 100%;
}

/* === FAQ === */
.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
  font-size: var(--body-size);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--anim-fast) var(--anim-easing);
}

.faq__question:hover {
  color: var(--accent-primary);
}

.faq__icon {
  font-size: 24px;
  color: var(--accent-primary);
  transition: transform var(--anim-normal) var(--anim-easing);
  flex-shrink: 0;
  margin-left: var(--spacing-md);
  line-height: 1;
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--anim-normal) var(--anim-easing),
              padding var(--anim-normal) var(--anim-easing);
}

.faq__item--open .faq__answer {
  max-height: 500px;
  padding-bottom: var(--spacing-lg);
}

.faq__answer-text {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === FINAL CTA === */
.final-cta {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
}

.final-cta__ghost {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.final-cta__ghost svg {
  width: 300px;
  height: 300px;
}

.final-cta__headline {
  font-size: var(--heading-size);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.final-cta__subtitle {
  font-size: var(--body-size);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__badges {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer__copyright {
  font-size: var(--caption-size);
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer__link {
  font-size: var(--caption-size);
  color: var(--text-muted);
  transition: color var(--anim-fast) var(--anim-easing);
}

.footer__link:hover {
  color: var(--accent-primary);
}

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(var(--scroll-distance, 30px));
  transition: opacity var(--anim-slow) var(--anim-easing),
              transform var(--anim-slow) var(--anim-easing);
}

.animate-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--anim-slow) var(--anim-easing),
              transform var(--anim-slow) var(--anim-easing);
}

.animate-stagger--visible > *:nth-child(1) { transition-delay: 0ms; }
.animate-stagger--visible > *:nth-child(2) { transition-delay: var(--stagger-delay, 120ms); }
.animate-stagger--visible > *:nth-child(3) { transition-delay: calc(var(--stagger-delay, 120ms) * 2); }
.animate-stagger--visible > *:nth-child(4) { transition-delay: calc(var(--stagger-delay, 120ms) * 3); }

.animate-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance — on page load */
.hero__content {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter var(--anim-slow) var(--anim-easing) 0.2s forwards;
}

.hero__phone {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter var(--anim-slow) var(--anim-easing) 0.5s forwards;
}

/* === KEYFRAME ANIMATIONS === */
@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-bg {
  from { background-color: var(--bg-primary); }
  to   { background-color: rgba(255, 107, 107, 0.08); }
}

@keyframes pulse-text {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0.7; transform: scale(1.05); }
}

@keyframes blink-rec {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes meter-fill {
  0%   { width: 0%;   background-color: var(--accent-primary); }
  40%  { width: 50%;  background-color: var(--accent-secondary); }
  100% { width: 100%; background-color: var(--success); }
}

@keyframes scale-in {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

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

/* === RESPONSIVE — TABLET & SMALL DESKTOP (up to 1024px) === */
@media (max-width: 1024px) {
  .hero__inner {
    gap: var(--spacing-lg);
  }

  .phone-frame {
    width: 240px;
    height: 500px;
    border-radius: 34px;
    padding: 10px;
  }

  .phone-frame__notch {
    width: 80px;
    height: 24px;
    top: 10px;
  }

  .phone-frame__screen {
    border-radius: 26px;
  }

  .hero__glow {
    width: 300px;
    height: 300px;
  }

  .phone-demo--alarm-set .demo__time {
    font-size: 40px;
  }

  .phone-demo--screaming .demo__countdown {
    font-size: 52px;
  }
}

/* === RESPONSIVE — MOBILE (< 768px) === */
@media (max-width: 767px) {
  .nav__badges .store-badge__text {
    display: none;
  }

  .nav__badges .store-badge {
    padding: 8px;
    border-radius: 50%;
    gap: 0;
  }

  .nav__badges .store-badge svg {
    width: 20px;
    height: 20px;
  }

  .nav__badges {
    gap: 8px;
  }
  .section {
    padding: var(--spacing-xl) 0;
  }

  .hero {
    padding-top: 80px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__badges {
    justify-content: center;
  }

  .problem__grid {
    flex-direction: column;
  }

  .hero__social-proof {
    justify-content: center;
  }

  .hero__phone {
    order: 2;
    margin-top: var(--spacing-lg);
  }

  .phone-frame {
    width: 220px;
    height: 460px;
    border-radius: 30px;
    padding: 8px;
  }

  .phone-frame__notch {
    width: 70px;
    height: 22px;
    top: 8px;
  }

  .phone-frame__screen {
    border-radius: 24px;
  }

  .phone-demo--alarm-set .demo__time {
    font-size: 36px;
  }

  .phone-demo--alarm-firing .demo__scream-text {
    font-size: 18px;
  }

  .phone-demo--screaming .demo__countdown {
    font-size: 48px;
  }

  .phone-demo--dismissed .demo__dismissed-text {
    font-size: 22px;
  }

  .hero__glow {
    width: 250px;
    height: 250px;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .pricing__options {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }

  .final-cta__ghost {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .store-badge {
    padding: 10px 18px;
  }

  .store-badge__store {
    font-size: 14px;
  }

  .store-badge {
    border-color: rgba(255, 255, 255, 0.2);
  }
}

/* === SKIP LINK (accessibility) === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* === FOCUS STYLES (accessibility) === */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--glow-strong);
}

.store-badge:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.faq__question:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* === REDUCED MOTION (accessibility) === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__content,
  .hero__phone {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .animate-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* === SMALL MOBILE (< 400px) === */
@media (max-width: 399px) {
  .hero__badges {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .final-cta__badges {
    flex-direction: column;
    align-items: center;
  }
}
