/* AudioDex — styles.css  "The Frequency"
   Voice is visible as waveforms. */

/* ─── Fonts ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,700;0,9..144,900;1,9..144,400&family=Manrope:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:            #08080F;
  --bg-raised:     #0F0F1A;
  --wave:          #5B4FE8;
  --wave-soft:     rgba(91, 79, 232, 0.16);
  --wave-border:   rgba(91, 79, 232, 0.28);
  --wave-hi:       #8B7FE8;
  --gold:          #D4AF37;
  --gold-soft:     rgba(212, 175, 55, 0.10);
  --gold-dim:      rgba(212, 175, 55, 0.35);
  --text:          #FFFFFF;
  --text-90:       rgba(255, 255, 255, 0.90);
  --muted:         rgba(255, 255, 255, 0.55);
  --border:        rgba(255, 255, 255, 0.07);
  --border-dim:    rgba(255, 255, 255, 0.04);

  --font-display:  "Fraunces", Georgia, serif;
  --font-body:     "Manrope", system-ui, sans-serif;
  --font-mono:     "Space Mono", monospace;
  --font-tech:     "JetBrains Mono", monospace;

  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     24px;
  --max-w:         1120px;
  --max-w-prose:   700px;
  --nav-h:         68px;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise grain — above everything, non-interactive */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: 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.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ─── Scanline — right edge oscilloscope cursor ──────────────────────────── */
.scanline {
  position: fixed;
  z-index: 9992;
  right: 36px;
  top: 0;
  width: 1px;
  height: 100vh;
  background: rgba(91, 79, 232, 0.06);
  pointer-events: none;
  overflow: hidden;
}

.scanline::after {
  content: '';
  position: absolute;
  left: 0;
  width: 1px;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--wave-hi), transparent);
  opacity: 0.2;
}

@media (max-width: 768px) { .scanline { display: none; } }

/* ─── Click ripple (frequency rings on click) ────────────────────────────── */
.cursor-ripple {
  position: fixed;
  z-index: 9997;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--wave);
  pointer-events: none;
  animation: ripple-out 0.6s ease-out forwards;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-style: normal;
  font-variation-settings: 'opsz' 72;
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.15rem); }

p { color: var(--muted); line-height: 1.78; }
p + p { margin-top: 1.1rem; }

.mono      { font-family: var(--font-mono); }
.tech-label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
}

.prose {
  max-width: var(--max-w-prose);
  margin-inline: auto;
}

section, header, footer, nav, main { position: relative; z-index: 1; }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 15, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-dim);
}

/* Frequency line accent at bottom of nav */
.site-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--wave-border) 20%,
    var(--wave-hi) 50%,
    var(--wave-border) 80%,
    transparent 100%
  );
  opacity: 0.6;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
}

.nav-wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: opacity 0.2s;
}
.nav-wordmark:hover { opacity: 0.7; }

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  /* Slight indigo glow to tie into palette */
  filter: drop-shadow(0 0 6px rgba(91, 79, 232, 0.35));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--wave);
  transition: width 0.25s ease;
}

.nav-links a:hover               { color: var(--text-90); }
.nav-links a:hover::after        { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { width: 100%; background: var(--wave-hi); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-90);
  border-radius: 2px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 75vw;
    max-width: 280px;
    background: rgba(8, 8, 20, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    align-items: flex-start;
    padding-inline: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    z-index: 200;
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.82rem; letter-spacing: 0.14em; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* The frequency line backdrop — clipped, revealed by JS */
.freq-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  clip-path: inset(0 100% 0 0);
}

#freq-hero {
  width: 100%;
  height: 200px;
  display: block;
  opacity: 0.55;
  filter: drop-shadow(0 0 18px rgba(91, 79, 232, 0.3));
}

/* Staggered content reveal gated on js-ready */
html.js-ready .hero-eyebrow,
html.js-ready .hero h1,
html.js-ready .hero-tagline,
html.js-ready .hero-subtext,
html.js-ready .hero-actions,
html.js-ready .hero-visual,
html.js-ready .scroll-cue {
  opacity: 0;
}

/* Stage 1: eyebrow + headline */
html.hero-arrived .hero-eyebrow {
  animation: hero-in 0.55s 0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* Reveal h1 container; letter spans animate individually */
html.hero-arrived .hero h1 {
  opacity: 1;
}
html.hero-arrived .hero h1 .hl {
  animation: letter-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  /* animation-delay set inline by JS */
  display: inline-block;
}

/* Stage 2: subtext + actions */
html.hero-arrived-2 .hero-subtext {
  animation: hero-in 0.5s 0s   cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
html.hero-arrived-2 .hero-actions {
  animation: hero-in 0.5s 0.14s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stage 3: phone + scroll cue */
html.hero-arrived-3 .hero-visual {
  animation: hero-in 0.65s 0s   cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
html.hero-arrived-3 .scroll-cue {
  animation: hero-in 0.5s  0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* CTA pulse on arrival */
html.hero-arrived-3 .hero-cta {
  animation: cta-pulse 0.9s 0.1s ease-in-out 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(5rem, 10vh, 8rem);
  position: relative;
  z-index: 1;
}

/* ── Text column ── */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 580px;
}

.hero-eyebrow {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wave-hi);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

.hero h1 { color: var(--text); }

/* Tagline — JS types this in */
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 72;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1.3;
  min-height: 2em;
}

.tl-char { display: inline; }

.tl-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--gold);
  vertical-align: text-bottom;
  margin-left: 2px;
}

.hero-subtext {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--muted);
  line-height: 1.82;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* App Store badge */
.badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.badge-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1;
}

@media (max-width: 920px) {
  .badge-wrap { align-items: center; }
}

.badge-link img {
  height: 48px;
  width: auto;
  opacity: 0.88;
  transition: opacity 0.2s;
  filter: drop-shadow(0 4px 16px rgba(91, 79, 232, 0.2));
}
.badge-link:hover img { opacity: 1; }

/* CTA button with wave inside */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.6rem;
  background: var(--wave);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.25s, box-shadow 0.3s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.hero-cta:hover {
  background: #6e63f0;
  transform: translateY(-1px);
  box-shadow:
    0 0 24px 4px rgba(91, 79, 232, 0.45),
    0 6px 24px rgba(91, 79, 232, 0.3);
}

/* Mini wave inside button */
.btn-wave {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.hero-cta:hover .btn-wave { opacity: 1; }

/* ── Visual column (phone) ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-right: -2rem;
}

.phone-frame {
  position: relative;
  width: clamp(240px, 28vw, 340px);
  /* No border-radius/overflow/box-shadow — transparent image lives natively on dark canvas.
     drop-shadow respects alpha channel; box-shadow would not. */
  filter: drop-shadow(0 0 40px rgba(91, 79, 232, 0.28))
          drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
  animation: phone-float 7s ease-in-out infinite;
}

.phone-frame img { width: 100%; height: auto; display: block; }

/* Wave emerging from phone speaker */
.freq-phone-wave {
  width: 100%;
  max-width: clamp(240px, 28vw, 340px);
  margin-top: 6px;
  overflow: hidden;
  opacity: 0.45;
}

#freq-phone {
  width: 100%;
  height: 32px;
  display: block;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.25;
  pointer-events: none;
  animation: cue-drift 2.5s ease-in-out infinite;
}

.scroll-cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--muted));
}

/* Hero responsive */
@media (max-width: 920px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-text     { align-items: center; max-width: 600px; }
  .hero-eyebrow  { justify-content: center; }
  .hero-subtext  { text-align: center; }
  .hero-actions  { justify-content: center; }
  .hero-visual   { margin-right: 0; }
  .phone-frame   { width: clamp(200px, 55vw, 280px); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-cta     { justify-content: center; text-align: center; }
}

/* ─── Page hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: 0;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w-prose);
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-hero h1 { margin-bottom: 0.5rem; }

.freq-page-hero-wave {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

#freq-page-hero {
  width: 100%;
  height: 60px;
  display: block;
  opacity: 0.5;
}

/* ─── Frequency dividers (about page) ───────────────────────────────────── */
.freq-divider {
  width: 100%;
  overflow: hidden;
  margin-block: 2.5rem;
}

.freq-divider svg {
  width: 100%;
  height: 40px;
  display: block;
  opacity: 0.55;
}

/* ─── About body ─────────────────────────────────────────────────────────── */
.about-content {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(5rem, 10vw, 9rem);
}

.about-body p {
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  line-height: 1.88;
  color: rgba(255, 255, 255, 0.60);
}

/* Pull quote — key sentence elevated */
.about-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 72;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold-dim);
  margin-block: 2.5rem;
}

/* ─── Features grid ─────────────────────────────────────────────────────── */
.features-section {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(5rem, 10vw, 8rem);
}

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

/* Card 1 spans 2 columns — the hero feature */
.feature-card:nth-child(1) { grid-column: span 2; }

/* Card 6 (privacy) spans all 3 — narrative conclusion */
.feature-card:nth-child(6) { grid-column: span 3; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(1) { grid-column: span 2; }
  .feature-card:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(1),
  .feature-card:nth-child(6) { grid-column: span 1; }
}

.feature-card {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  transition: background 0.25s;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out, background 0.25s;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--wave-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover { background: var(--bg-raised); }
.feature-card:hover::after { opacity: 1; }
.feature-card.visible { opacity: 1; transform: none; }

/* Waveform signature replaces emoji icon */
.feature-wave {
  margin-bottom: 1.2rem;
  overflow: visible;
}

.feature-wave svg {
  width: 100%;
  height: 40px;
  display: block;
  overflow: visible;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.feature-card:hover .feature-wave svg { opacity: 1; }

/* For the hero feature card (card 1), bigger wave */
.feature-card:nth-child(1) .feature-wave svg {
  height: 55px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-90);
  position: relative;
  z-index: 1;
}

.feature-card:nth-child(1) h3 {
  font-size: 1.1rem;
}

/* Tech label under the wave, above title */
.feature-label {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wave-hi);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.features-footnote {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.features-footnote .mono { color: var(--text-90); font-size: 0.84rem; }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-section {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(5rem, 10vw, 8rem);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.faq-item.visible { opacity: 1; transform: none; }

/* Active left-edge accent */
.faq-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--wave);
  border-radius: 0 1px 1px 0;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.faq-item.open::before { opacity: 1; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-90);
  transition: color 0.2s, padding-left 0.28s ease;
  line-height: 1.4;
}

.faq-item.open .faq-question {
  color: var(--text);
  padding-left: 1rem;
}

/* Wave indicator inside question */
.faq-wave {
  flex-shrink: 0;
  width: 50px;
  overflow: hidden;
}

.faq-wave svg {
  width: 50px;
  height: 26px;
  display: block;
  opacity: 0.5;
  transition: opacity 0.25s;
}

.faq-item.open .faq-wave svg { opacity: 1; }

.faq-question-text { flex: 1; }

.faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--wave-hi);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.faq-item.open .faq-answer-inner { padding-left: 1rem; }

.faq-answer-inner p {
  font-size: 0.9rem;
  line-height: 1.82;
  color: var(--muted);
}

/* ─── Privacy ────────────────────────────────────────────────────────────── */
.privacy-section {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(5rem, 10vw, 8rem);
}

/* Thin ECG line at each section header */
.freq-ecg {
  width: 100%;
  overflow: hidden;
  margin-top: 2.5rem;
  margin-bottom: 0.35rem;
}

.freq-ecg svg {
  width: 100%;
  height: 18px;
  display: block;
  opacity: 0.35;
}

.privacy-content {
  font-size: 0.93rem;
  line-height: 1.88;
}

.privacy-content h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.privacy-content h3 {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--wave-hi);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-content p { color: var(--muted); margin-bottom: 0.6rem; }

.privacy-content ul {
  list-style: none;
  padding-left: 0;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.privacy-content ul li {
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  position: relative;
}
.privacy-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--wave);
  font-size: 0.8rem;
}

.privacy-content strong { color: var(--text-90); font-weight: 600; }
.privacy-content em     { color: rgba(255,255,255,0.72); }
.privacy-content a      {
  color: var(--wave-hi);
  text-decoration: underline;
  text-decoration-color: var(--wave-border);
  transition: text-decoration-color 0.2s;
}
.privacy-content a:hover { text-decoration-color: var(--wave-hi); }

.privacy-meta {
  font-family: var(--font-tech);
  font-size: 0.67rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.07em;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding-block: 0 2.5rem;
  position: relative;
  z-index: 1;
}

/* Footer frequency line replaces the hard border */
.freq-footer-wave {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

#freq-footer {
  width: 100%;
  height: 40px;
  display: block;
  opacity: 0.4;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  font-variation-settings: 'opsz' 72;
  color: rgba(255,255,255,0.18);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-links a:hover          { color: var(--text-90); }
.footer-links a:hover::after   { width: 100%; }

.footer-copy {
  font-size: 0.73rem;
  color: var(--muted);
  opacity: 0.5;
}

.footer-disclaimer {
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.3;
  max-width: 600px;
  line-height: 1.55;
}

/* ─── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.10s; }
.reveal.d2 { transition-delay: 0.20s; }
.reveal.d3 { transition-delay: 0.30s; }
.reveal.d4 { transition-delay: 0.42s; }

/* ─── Page transitions ───────────────────────────────────────────────────── */
body.page-exit  { animation: page-out 260ms ease-in   forwards; }
body.page-enter { animation: page-in  280ms ease-out  forwards; }

/* ─── Responsive misc ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .footer-links { gap: 1.5rem; }
  .features-grid { border-radius: var(--radius); }
  .faq-wave { display: none; }
}
