/* style.css — Her Voice marketing site
   Design tokens mapped from SkeuomorphicDesignSystem.swift */

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Colors (from VoiceMirror enum) */
  --surface: #FFFCFA;
  --neutral: #E5B4A5;
  --text: #3D3232;
  --muted: #9E7B6F;
  --signal: #FF1493;
  --blush: #E8A0A0;

  /* Background gradient stops */
  --bg-top: #FFFCFA;
  --bg-mid: #FFF5F3;
  --bg-bottom: #FFE8E4;

  /* Extended */
  --surface-elevated: #FFFFFF;
  --border: rgba(158, 123, 111, 0.15);

  /* Spacing (8pt grid from Grid enum) */
  --space-micro: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-jumbo: 64px;

  /* Radii (from Radius enum) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows (from Shadow enum) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 24px rgba(255, 20, 147, 0.2);

  /* Typography */
  --font-display: 'Libre Baskerville', 'Baskerville', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Type scale (Perfect Fourth 1.333, from TypeSize) */
  --text-micro: 10px;
  --text-caption: 13px;
  --text-body: 16px;
  --text-title: 21px;
  --text-display: 28px;
  --text-hero: 36px;
}


/* ============================================
   RESET
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */

.headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.headline--hero {
  font-size: var(--text-hero);
}

.headline--section {
  font-size: var(--text-display);
}

.subline {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.tagline {
  font-size: var(--text-body);
  font-style: italic;
  color: var(--blush);
  font-family: var(--font-display);
}

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

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

.text-muted {
  color: var(--muted);
}

.text-signal {
  color: var(--signal);
}


/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-jumbo) 0;
}

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

.text-center {
  text-align: center;
}


/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(255, 252, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(158, 123, 111, 0.08);
}

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

.nav__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: var(--text-caption);
  color: var(--muted);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text);
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--signal), var(--blush));
  color: white;
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-body);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: 0 6px 32px rgba(255, 20, 147, 0.3);
}

.btn--sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-caption);
}

.btn--ghost {
  color: var(--muted);
  font-size: var(--text-caption);
  padding: var(--space-xs) var(--space-md);
}

.btn--ghost:hover {
  color: var(--text);
}


/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: 120px 0 var(--space-jumbo);
  overflow: hidden;
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero__headline {
  max-width: 600px;
}

.hero__subline {
  max-width: 480px;
}

.hero__cta {
  margin-top: var(--space-sm);
}

/* Floating bubbles */
.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: var(--radius-xl);
  background: var(--blush);
  opacity: 0.08;
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
}

.bubble:nth-child(1) {
  width: 220px; height: 60px;
  top: 15%; left: 5%;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 180px; height: 50px;
  top: 35%; right: 8%;
  animation-delay: -2s;
  animation-duration: 10s;
}

.bubble:nth-child(3) {
  width: 260px; height: 55px;
  bottom: 20%; left: 10%;
  animation-delay: -4s;
  animation-duration: 12s;
}

.bubble:nth-child(4) {
  width: 150px; height: 45px;
  top: 55%; right: 15%;
  animation-delay: -1s;
  animation-duration: 9s;
}

.bubble:nth-child(5) {
  width: 200px; height: 52px;
  bottom: 35%; left: 25%;
  animation-delay: -3s;
  animation-duration: 11s;
}


/* ============================================
   BEFORE/AFTER — "The Pain"
   ============================================ */

.pain {
  text-align: center;
}

.pain__lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.pain__line {
  font-size: 15px;
  line-height: 1.6;
}

.pain__old {
  color: var(--muted);
}

.pain__dash {
  color: rgba(158, 123, 111, 0.4);
}

.pain__new {
  color: var(--text);
  font-weight: 600;
}


/* ============================================
   HOW IT WORKS — 3 Steps
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(232, 160, 160, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blush);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step__title {
  font-size: var(--text-title);
  font-weight: 600;
}

.step__desc {
  font-size: var(--text-body);
  color: var(--muted);
  max-width: 280px;
}


/* ============================================
   FORMAT MODES — 4 Cards
   ============================================ */

.formats {
  text-align: center;
}

.formats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.format-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(232, 160, 160, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blush);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.format-card__name {
  font-size: var(--text-body);
  font-weight: 600;
}

.format-card__desc {
  font-size: var(--text-caption);
  color: var(--muted);
  line-height: 1.4;
}


/* ============================================
   WORKS EVERYWHERE
   ============================================ */

.everywhere {
  text-align: center;
}

.everywhere__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.pill {
  padding: var(--space-xs) var(--space-md);
  background: var(--surface-elevated);
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}


/* ============================================
   PRIVACY CALLOUT
   ============================================ */

.privacy-callout {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.privacy-callout__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: rgba(232, 160, 160, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-callout__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blush);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-callout__body {
  color: var(--muted);
  max-width: 420px;
  margin: var(--space-md) auto 0;
  line-height: 1.6;
}

.privacy-callout__link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--blush);
  font-weight: 500;
  border-bottom: 1px solid var(--blush);
  transition: color 0.2s;
}

.privacy-callout__link:hover {
  color: var(--signal);
  border-color: var(--signal);
}


/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta__prelude {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto var(--space-md);
  line-height: 1.5;
}

.final-cta__punch {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-display);
  color: var(--signal);
  margin-bottom: var(--space-xl);
  line-height: 1.3;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: var(--space-xxl) 0 var(--space-xl);
  text-align: center;
  border-top: 1px solid rgba(158, 123, 111, 0.08);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer__link {
  font-size: var(--text-caption);
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer__copy {
  font-size: var(--text-micro);
  color: var(--muted);
  opacity: 0.7;
}


/* ============================================
   PRIVACY PAGE
   ============================================ */

.privacy {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-jumbo) var(--space-lg) var(--space-xxl);
}

.privacy h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-display);
  margin-bottom: var(--space-xs);
}

.privacy .effective-date {
  font-size: var(--text-caption);
  color: var(--muted);
  margin-bottom: var(--space-xxl);
}

.privacy h2 {
  font-size: var(--text-title);
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.privacy p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--text);
}

.privacy ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.privacy li {
  list-style: disc;
  margin-bottom: var(--space-xs);
  line-height: 1.6;
  color: var(--text);
}

.privacy a {
  color: var(--blush);
  border-bottom: 1px solid var(--blush);
  transition: color 0.2s;
}

.privacy a:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.privacy strong {
  font-weight: 600;
}


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-12px) translateX(6px); }
  50% { transform: translateY(-6px) translateX(-4px); }
  75% { transform: translateY(-18px) translateX(8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.24s; }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ============================================
   RESPONSIVE — Desktop (768px+)
   ============================================ */

@media (min-width: 768px) {
  :root {
    --text-hero: 44px;
    --text-display: 32px;
  }

  .hero {
    padding: 160px 0 100px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .formats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pain__line {
    font-size: 17px;
  }
}
