/* SupplementAI marketing site — tokens from src/theme/index.js */

:root {
  --bg0: #0a0a0f;
  --bg1: #121212;
  --bg2: #1e1e1e;
  --bg3: #2a2a2a;
  --surface: #1e1e1e;
  --border: #333333;
  --primary: #10b981;
  --primary-pressed: #0d9668;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --text: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #606080;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max: 1080px;
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Layout —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner,
.hero-inner,
.feature-inner,
.legal-inner,
.section-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* —— Hero —— */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 2.25rem 0 2rem;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 20%,
      rgba(16, 185, 129, 0.14),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 15% 80%,
      rgba(124, 58, 237, 0.1),
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy {
  max-width: 36rem;
  text-align: center;
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2.75rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--text) 40%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.hero-sub {
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

/* Official store badges — Play PNG has built-in padding; center-align visually */
.store-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.store-badge:hover {
  text-decoration: none;
  opacity: 0.92;
}

.store-badge img {
  display: block;
  width: auto;
}

.store-badge-play img {
  height: 60px;
}

.store-badge-apple img {
  height: 40px;
}

.store-badge-soon {
  pointer-events: none;
  opacity: 0.55;
}

.phone-frame {
  width: min(100%, 280px);
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
}

/* —— Features —— */

.features {
  padding: 1rem 0 4rem;
}

.feature {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.feature-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .feature-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .feature:nth-child(even) .feature-copy {
    order: 2;
  }

  .feature:nth-child(even) .feature-media {
    order: 1;
  }
}

.feature-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.feature-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.feature-body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 28rem;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-media .phone-frame {
  width: min(100%, 260px);
}

/* —— Why —— */

.why {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg1), var(--bg0));
}

.why h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.why p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 36rem;
  font-size: 1.05rem;
}

/* —— FAQ —— */

.faq {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--border);
}

.faq h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.faq-intro {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  max-width: 36rem;
  font-size: 1.05rem;
}

.faq-list {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.15rem 0 0.85rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0.55rem 1.75rem 0.55rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.55rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.faq-item p {
  margin: 0 0 0.35rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 36rem;
}

/* —— Bottom CTA —— */

.cta-band {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(
      ellipse 60% 80% at 50% 0%,
      rgba(16, 185, 129, 0.1),
      transparent 60%
    ),
    var(--bg1);
  text-align: center;
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  max-width: 28rem;
  font-size: 1.05rem;
}

/* —— Footer —— */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: var(--bg0);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-company {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  margin: 0;
  max-width: 42rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* —— Legal pages —— */

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-inner {
  max-width: 720px;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-page .summary {
  padding: 1rem 1.15rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.contact-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-card p {
  margin: 0 0 0.75rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* —— Cookie consent —— */

.cookie-consent {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  pointer-events: none;
}

.cookie-consent-inner {
  pointer-events: auto;
  width: min(100%, 40rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.cookie-consent-copy {
  flex: 1 1 14rem;
}

.cookie-consent-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.cookie-consent-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
}

.cookie-btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.cookie-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #04140f;
}

.cookie-btn-primary:hover {
  background: var(--primary-pressed);
  border-color: var(--primary-pressed);
}

@media (max-width: 600px) {
  .nav {
    gap: 0.85rem;
  }

  .nav a {
    font-size: 0.8rem;
  }
}
