/* Tone Finder marketing site — soft cozy cyan/white theme (mirrors toneTheme.ts) */
:root {
  --bg: #f8fcfe;
  --bg-wash: #e8f6fa;
  --surface: #ffffff;
  --surface-elevated: #f0fafb;
  --surface-muted: #e0f7fa;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --brand: #0891b2;
  --brand-soft: #06b6d4;
  --brand-deep: #0e7490;
  --pill: #e0f7fa;
  --in-tune: #059669;
  --flat: #d97706;
  --sharp: #e11d48;
  --border: #d6eef2;
  --border-strong: #b8e4ea;
  --radius-sm: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(8, 145, 178, 0.05);
  --shadow-md: 0 12px 34px -14px rgba(8, 145, 178, 0.28);
  --shadow-lg: 0 30px 60px -22px rgba(8, 145, 178, 0.32);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1120px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Ambient cyan wave glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 40% at 82% 6%, rgba(6, 182, 212, 0.24), transparent 70%),
    radial-gradient(48% 38% at 8% 20%, rgba(8, 145, 178, 0.16), transparent 70%),
    radial-gradient(70% 55% at 50% 112%, rgba(6, 182, 212, 0.18), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-wash) 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 40px, var(--narrow));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 252, 254, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(214, 238, 242, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

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

.logo-img {
  border-radius: 11px;
  width: 36px;
  height: 36px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-link {
  color: var(--text-secondary);
  position: relative;
  padding: 2px 0;
}

.nav-link:hover,
.nav-link--active {
  color: var(--brand);
}

.nav-link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand-soft), var(--brand));
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.7rem);
  line-height: 1.06;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.hero-accent {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.16rem;
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-strong);
  color: var(--brand);
}

.btn-secondary:hover {
  border-color: var(--brand-soft);
  color: var(--brand-deep);
  background: #fff;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 22px;
}

.apple-glyph {
  color: var(--brand-soft);
}

/* Hero tuner preview */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(6, 182, 212, 0.35), rgba(8, 145, 178, 0.05) 70%);
  filter: blur(18px);
  z-index: 0;
}

.tuner-preview {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}

.tuner-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.32);
  color: var(--in-tune);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--in-tune);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}

.tuner-note {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tuner-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 22px;
}

.meter {
  position: relative;
  height: 40px;
  margin-bottom: 22px;
}

.meter-track {
  height: 10px;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.35), var(--surface-muted) 50%, rgba(225, 29, 72, 0.3));
  border-radius: var(--radius-pill);
  margin-top: 15px;
}

.meter-center {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 24px;
  margin-left: -1.5px;
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}

.meter-needle {
  position: absolute;
  top: 4px;
  left: 52%;
  width: 6px;
  height: 32px;
  margin-left: -3px;
  background: var(--in-tune);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
  animation: sway 4s ease-in-out infinite;
}

.tuner-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.meta-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

/* Sections */
.section {
  padding: 44px 0 56px;
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-soft);
  font-weight: 700;
  margin: 0 0 10px;
}

.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 15px;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(6, 182, 212, 0.16), rgba(8, 145, 178, 0.1));
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Privacy strip */
.privacy-strip {
  margin: 24px 0;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(6, 182, 212, 0.14), transparent 70%),
    var(--surface-elevated);
  border-block: 1px solid var(--border);
}

.privacy-strip-inner {
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.privacy-strip p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 52ch;
  font-size: 1.02rem;
}

.privacy-strip strong {
  color: var(--text);
}

/* CTA */
.cta {
  padding: 40px 0 84px;
}

.cta-inner {
  text-align: center;
  background:
    radial-gradient(90% 130% at 50% -10%, rgba(6, 182, 212, 0.2), transparent 70%),
    linear-gradient(160deg, #ffffff 0%, var(--bg-wash) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 52px 32px;
  box-shadow: var(--shadow-md);
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta p {
  color: var(--text-secondary);
  margin: 0 0 26px;
  font-size: 1.05rem;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 72px;
}

.legal-page .eyebrow {
  margin-bottom: 16px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 18px;
}

.legal-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 56ch;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 30px;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.18rem;
  margin: 0 0 12px;
  font-weight: 700;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.97rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-contact {
  margin-top: 26px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* FAQ (support) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 8px 0 14px;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--brand-soft);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-copy {
  width: 100%;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(5, 150, 105, 0.04); }
}

@keyframes sway {
  0%, 100% { left: 50%; }
  35% { left: 46%; }
  70% { left: 54%; }
}

@media (prefers-reduced-motion: reduce) {
  .tuner-preview,
  .status-dot,
  .meter-needle {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 4px 14px;
    font-size: 0.85rem;
  }
  .hero {
    padding: 44px 0 40px;
  }
  .tuner-note {
    font-size: 4rem;
  }
  .cta-inner {
    padding: 40px 22px;
  }
  .legal-card {
    padding: 8px 20px;
  }
  .privacy-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
