/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: calc(var(--space-3xl) + 1.5rem);
  padding-bottom: var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.hero-headline {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-sm);
}

/* Hero sub now uses the shared .body-large voice (FINDING-016).
   This rule only owns measure + alignment. */
.hero-sub {
  max-width: 540px;
  margin: 0 auto var(--space-lg);
}

.appstore-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}
.appstore-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.appstore-badge img { height: 54px; width: auto; }

.hero-device {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-device .device-frame {
  position: relative;
  z-index: 1;
}

.hero-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wave {
  fill: none;
  stroke: var(--wave-stroke);
  stroke-opacity: var(--wave-stroke-opacity);
  stroke-width: 1.5;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(ellipse at 50% 70%,
    var(--wash-amber-medium) 0%,
    var(--wash-amber-soft) 40%,
    transparent 70%);
  pointer-events: none;
}

.how-it-works .section-heading {
  margin-bottom: var(--space-lg);
}

/* Section body owns measure + alignment only; voice comes from .body-large.
   FINDING-012: ch + px cap. Ch unit binds line length to font size; the px
   cap keeps the measure from stretching at large viewports. */
.how-it-works .section-body {
  max-width: min(50ch, 620px);
  margin: 0 auto;
  text-align: left;
}
.how-it-works .section-body p + p { margin-top: var(--space-sm); }

.fan-layout {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.fan-layout::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    var(--wash-amber-soft) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.fan-screen {
  width: 220px;
  padding: 6px;
  background: var(--indigo-900);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-fan);
  position: relative;
  flex-shrink: 0;
}

.fan-screen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.fan-screen::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255,255,255,0.07) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}

.fan-screen:nth-child(1) { transform: rotate(-14deg) translateX(32px); z-index: 1; }
.fan-screen:nth-child(2) {
  width: 220px;
  transform: translateY(-12px);
  z-index: 2;
  box-shadow: var(--shadow-fan-mid);
}
.fan-screen:nth-child(3) { transform: rotate(14deg) translateX(-32px); z-index: 1; }

/* ============================================
   FEATURES
   ============================================ */
.feature-section {
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.feature-privacy::before {
  content: '';
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(ellipse at 30% 50%,
    var(--wash-blue-strong) 0%,
    rgba(90, 110, 200, 0.06) 40%,
    transparent 70%);
  pointer-events: none;
}

.feature-archive::before {
  content: '';
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(ellipse at 70% 50%,
    var(--wash-amber-strong) 0%,
    rgba(201, 169, 78, 0.05) 40%,
    transparent 70%);
  pointer-events: none;
}

.feature-interop::before {
  content: '';
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(ellipse at 30% 50%,
    var(--wash-blue-medium) 0%,
    rgba(90, 130, 200, 0.05) 40%,
    transparent 70%);
  pointer-events: none;
}

.feature-heading {
  margin-bottom: var(--space-sm);
}

/* Feature body uses .body-large for voice; this rule only owns measure. */
.feature-body { max-width: min(50ch, 540px); }
.feature-body p + p { margin-top: var(--space-sm); }

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.visual-placeholder--tall { aspect-ratio: 3 / 4; max-width: 320px; }
.visual-placeholder--video {
  aspect-ratio: 9 / 16;
  max-width: 280px;
  background: var(--indigo-900);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark-muted);
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
  margin-top: var(--space-lg);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* FINDING-002: stop the marquee for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-item img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.m-fallback {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-section {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  inset: -30% -20%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(201, 169, 78, 0.12) 0%,
    var(--wash-amber-faint) 40%,
    transparent 70%);
  pointer-events: none;
}

.pricing-card {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(165deg, var(--indigo-800) 0%, var(--indigo-700) 30%, var(--indigo-900) 100%);
  border-radius: 20px;
  padding: var(--space-xl) var(--space-xl);
  color: var(--text-on-dark);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201, 169, 78, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pricing-card > * { position: relative; z-index: 1; }

.pricing-heading {
  color: var(--text-on-dark);
  margin-bottom: var(--space-lg);
}

.pricing-intro {
  font-size: var(--text-sm);
  color: var(--text-on-dark-secondary);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-intro strong {
  font-weight: 500;
  color: var(--text-on-dark);
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 4px 1rem 4px 4px;
  margin: 0 auto 0.5rem;
  gap: 0.4rem;
}

.billing-segs {
  position: relative;
  display: flex;
}

.billing-slider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-seg {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  /* FINDING-009: 44px tap target */
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-on-dark-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}

.billing-seg.is-active {
  color: var(--text-on-dark);
  font-weight: 600;
}

.pricing-amount {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

/* Only the period ("/year") is the small secondary text. PR1 wrapped the
   amount in its own <span data-price-amount>; a bare `span` selector here
   shrank the headline price too — scope to the period span. */
.pricing-amount [data-price-period] {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-on-dark-secondary);
  letter-spacing: 0;
}

.price-secondary {
  font-size: var(--text-sm);
  color: var(--text-on-dark-secondary);
  font-weight: 400;
  line-height: 1;
  margin-top: 0;
  margin-bottom: var(--space-lg);
}

.billing-save {
  color: #5ac8fa;
  font-size: var(--text-sm);
  font-weight: 400;
  white-space: nowrap;
}


.pricing-negatives {
  color: var(--text-on-dark-secondary);
  font-size: var(--text-sm);
  line-height: 1.9;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

/* App Store badge: own line, centered, hit area tight to content. */
.pricing-badge {
  display: block;
  width: fit-content;
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}
.pricing-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.pricing-badge img { height: 48px; width: auto; display: block; }

.pricing-divider {
  width: 100%;
  height: 1px;
  background: var(--border-on-dark);
  margin: var(--space-lg) 0;
}

.pricing-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0.5rem 2rem;
  margin: 0 auto;
}

.pricing-features li {
  font-size: var(--text-sm);
  color: var(--text-on-dark-secondary);
  font-weight: 400;
  display: flex;
  align-items: start;
  gap: 0.6rem;
  padding: 0.3rem 0;
  text-align: left;
  /* Allow wrapping: longer locales (pt-BR, de-DE, fr-FR) overflow a
     nowrap single line and break the grid. Balance evens 2-line items. */
  text-wrap: balance;
}

.pricing-features .check-icon {
  margin-top: 0.15em;
}

.check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-headline { font-size: var(--text-3xl); }
  .how-it-works .section-heading { font-size: var(--text-2xl); }
  .feature-heading { font-size: 2.2rem; }

  .fan-screen { width: 145px; padding: 5px; border-radius: 28px; }
  .fan-screen:nth-child(2) { width: 160px; }
  .fan-screen img { border-radius: 22px; }
  .fan-screen::after { inset: 5px; border-radius: 22px; }

  .pricing-card { padding: var(--space-lg) var(--space-md); }
  .pricing-features { grid-template-columns: 1fr; max-width: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.9rem; }
  .fan-screen { width: 155px; padding: 4px; border-radius: 22px; }
  .fan-screen:nth-child(2) { width: 160px; }
  .fan-screen img { border-radius: 17px; }
  .fan-screen::after { inset: 4px; border-radius: 17px; }
  .fan-screen:nth-child(1) { transform: rotate(-14deg) translateX(16px); }
  .fan-screen:nth-child(3) { transform: rotate(14deg) translateX(-16px); }
}
