/* Thryve marketing — matches app dark premium palette */
:root {
  --bg: #050505;
  --bg-elevated: #0a0a0b;
  --card: #111214;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --cyan: #00e0ff;
  --purple: #7c5cff;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Ambient gradient */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 224, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(124, 92, 255, 0.08), transparent 45%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 48px;
  width: 48px;
  border-radius: 12px;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(17, 18, 20, 0.85);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 22px;
  height: 18px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bar {
    transition: none;
  }
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 18, 20, 0.6);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-badge span {
  color: var(--cyan);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  margin: 0 auto 36px;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.trust-line {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #050505;
  box-shadow: 0 8px 32px rgba(0, 224, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.25);
  opacity: 0.95;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

/* App Store badge (Apple Marketing Guidelines — use supplied artwork as-is) */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.app-store-badge:hover {
  opacity: 0.92;
  text-decoration: none;
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Features */
.features {
  padding: 40px 0 96px;
}

.features h2 {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 18, 20, 0.9), rgba(10, 10, 11, 0.95));
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
  background: rgba(0, 224, 255, 0.1);
  border: 1px solid rgba(0, 224, 255, 0.2);
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.25);
}

.feature-card:nth-child(3) .feature-icon {
  background: rgba(0, 224, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-card:nth-child(4) .feature-icon {
  background: rgba(124, 92, 255, 0.1);
  border-color: rgba(0, 224, 255, 0.15);
}

.feature-card:nth-child(5) .feature-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.feature-card:nth-child(6) .feature-icon {
  background: rgba(0, 224, 255, 0.06);
  border-color: rgba(124, 92, 255, 0.2);
}

/* How it works */
.how-it-works {
  padding: 0 0 80px;
}

.how-it-works h2 {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 18, 20, 0.9), rgba(10, 10, 11, 0.95));
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #050505;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.step-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Pricing */
.pricing {
  padding: 0 0 80px;
}

.pricing h2 {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 18, 20, 0.9), rgba(10, 10, 11, 0.95));
  text-align: center;
}

.pricing-highlight {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.pricing-detail {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-footnote {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Coach types */
.coaching-styles {
  padding: 0 0 80px;
}

.coaching-styles h2 {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.coach-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coach-chips li {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(17, 18, 20, 0.65);
}

/* Final CTA */
.final-cta {
  padding: 0 0 72px;
}

.final-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 18, 20, 0.95), rgba(10, 10, 11, 0.98));
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.final-cta-inner h2 {
  margin: 0 0 24px;
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.trust-line-tight {
  margin-top: 16px;
}

/* Support block */
.support {
  padding: 0 0 48px;
}

.support-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.support-card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.support-card > p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.support-email {
  font-weight: 600;
  font-size: 1.0625rem;
  word-break: break-all;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px 24px;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cyan);
}

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

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

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

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal .legal-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Legal / info subpages — hero + glass content */
.subpage-hero {
  position: relative;
  z-index: 1;
  padding: 56px 24px 28px;
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}

.subpage-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.subpage-hero .subpage-lead {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

.content-card {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.content-card-inner {
  padding: 36px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 18, 20, 0.9), rgba(10, 10, 11, 0.95));
}

.content-card-inner > p:first-child {
  margin-top: 0;
}

.content-card-inner p,
.content-card-inner li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.content-card-inner p {
  margin: 0 0 16px;
}

.content-card-inner h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.content-card-inner h2:first-of-type {
  margin-top: 0;
}

.content-card-inner ul {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}

.content-card-inner .note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.content-card-inner .contact-email {
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 1.0625rem;
}

.content-card-inner .contact-email a {
  word-break: break-all;
}

@media (max-width: 900px) {
  .site-header .inner {
    padding: 14px 20px;
    gap: 16px;
  }

  .nav {
    gap: 18px 22px;
  }
}

/* Narrow screens: hamburger + collapsible menu */
@media (max-width: 768px) {
  .site-header .inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 16px;
    gap: 0;
    row-gap: 0;
  }

  .logo {
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 12px;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    width: 100%;
    gap: 0;
    margin: 12px 0 0;
    padding: 4px 0 2px;
    border-top: 1px solid var(--border);
    overflow: visible;
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    flex-shrink: 0;
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .nav a span {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .support-card {
    padding: 28px 20px;
  }

  .subpage-hero {
    padding-top: 40px;
  }

  .content-card-inner {
    padding: 28px 22px;
  }

  .site-footer {
    padding: 20px 16px 28px;
  }

  .site-footer .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    width: 100%;
    max-width: 22rem;
  }

  .footer-links a {
    padding: 6px 0;
    line-height: 1.35;
  }

  .final-cta-inner {
    padding: 32px 22px;
  }
}
