/* ============================================================
   CLARITY — Clinical & Trustworthy Marketing Site
   Design: Modern Clinic — white space, serif headlines, quiet confidence
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --brand: #207AB4;
  --brand-light: #e0f2fe;
  --brand-dark: #1a5276;
  --dark: #0f172a;
  --dark-secondary: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #c0d8ea;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-subtle: #f1f5f9;
  --accent-purple: #673AB7;
  --accent-green: #2E7D32;
  --accent-amber: #d97706;
  --accent-rose: #AD1457;
  --accent-teal: #00796B;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-phone: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* Selection color */
::selection { background: var(--brand-light); color: var(--brand-dark); }

/* --- Typography --- */
.serif { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; color: var(--dark); }
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--dark-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--bg);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}
.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-brand:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Section spacing --- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  padding: 16px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
}
.nav__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav__logo-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--dark);
  letter-spacing: -0.3px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover {
  color: var(--dark);
}
.nav__cta {
  margin-left: 8px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  margin-left: auto;
  cursor: pointer;
  padding: 2px;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 69px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 32px 32px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition);
}
.nav__mobile.open {
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(0);
  opacity: 1;
}
.nav__mobile a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--bg-subtle);
}
.nav__mobile a:last-child {
  border-bottom: none;
}
.nav__mobile .btn {
  margin-top: 8px;
  width: 100%;
  text-align: center;
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 120px;
  padding-bottom: 0;
  overflow: hidden;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.hero__left {
  flex: 1;
  padding-bottom: 64px;
}
.hero__left h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero__left .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__right {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 0;
}

/* Hero video — already has phone frame baked into the transparent video */
.hero__video {
  width: 300px;
  height: auto;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 32px 0;
}
.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.trust-item {
  text-align: center;
}
.trust-item__num {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.trust-item__label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
  font-weight: 500;
}

/* ============================================================
   PRESS BAR
   ============================================================ */
.press-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.press-bar__label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 24px;
}
.press-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.press-logo {
  text-align: center;
  color: #94a3b8;
  opacity: 1;
  transition: color var(--transition);
  line-height: 1;
}
.press-logo:hover {
  color: #64748b;
}
/* NYT — Old English / blackletter approximation */
.press-logo--nyt span {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}
/* Harvard — stacked serif uppercase */
.press-logo--harvard,
.press-logo--duke {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.press-logo--harvard .press-logo__main {
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3.5px;
}
.press-logo--harvard .press-logo__sub {
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
}
/* Duke — Garamond serif */
.press-logo--duke .press-logo__main {
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.press-logo--duke .press-logo__sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
}
/* Forbes — bold serif */
.press-logo--forbes span {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
}
/* PsychCentral — stacked with subtitle */
.press-logo--psych {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.press-logo--psych .press-logo__main {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.press-logo--psych .press-logo__sub {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 96px 0 48px;
}
.feature-category {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.feature-category:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-category__visual {
  flex: 0 0 260px;
}
.feature-category__screenshot {
  width: 260px;
  border-radius: 0;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.12));
  transition: transform var(--transition);
  background: transparent;
}
.feature-category:hover .feature-category__screenshot {
  transform: translateY(-4px);
}
.feature-category__text {
  flex: 1;
}
.feature-category__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-category__text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.25;
}
.feature-category__text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-tag {
  background: var(--bg-subtle);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
}
.feature-tag:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

/* Category accent colors */
.cat-journal .feature-category__eyebrow { color: var(--brand); }
.cat-ai .feature-category__eyebrow { color: var(--accent-purple); }
.cat-assess .feature-category__eyebrow { color: var(--accent-green); }
.cat-education .feature-category__eyebrow { color: var(--accent-amber); }
.cat-insights .feature-category__eyebrow { color: var(--accent-teal); }

/* ============================================================
   SCIENCE
   ============================================================ */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.evidence-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.evidence-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.evidence-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  background: var(--brand-light);
}
.evidence-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.evidence-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.therapy-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.therapy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.therapy-badge:hover {
  border-color: var(--brand);
}
.therapy-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.team-card {
  text-align: center;
  padding: 8px;
}
.team-card__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}
.team-card:nth-child(1) .team-card__avatar {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.team-card:nth-child(2) .team-card__avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.team-card:nth-child(3) .team-card__avatar {
  background: linear-gradient(135deg, var(--accent-green), #047857);
}
.team-card__avatar--photo {
  background: none !important;
  overflow: hidden;
}
.team-card__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 15px;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 4px;
}
.team-card__credential {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}
.team-card__detail {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 2px;
}
.team-card__bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__stars {
  color: #f59e0b;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.testimonial-card__quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  padding-top: 6px;
  position: relative;
}
.testimonial-card__quote::before {
  content: '\201C';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  color: var(--brand);
  position: absolute;
  top: -20px;
  left: -4px;
  line-height: 1;
}
.testimonial-card__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.testimonial-card__meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ============================================================
   FOR ORGANIZATIONS
   ============================================================ */
.orgs {
  padding: 96px 0;
}
.orgs__card {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.orgs__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(32,122,180,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.orgs__card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.orgs__card > p {
  color: rgba(255,255,255,0.6);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.orgs-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}
.orgs-feature {
  text-align: center;
}
.orgs-feature__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  backdrop-filter: blur(4px);
}
.orgs-feature h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.orgs-feature p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: color var(--transition);
  width: 100%;
  text-align: left;
}
.faq-item__question:hover {
  color: var(--brand);
}
.faq-item__icon {
  font-size: 22px;
  color: var(--text-light);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.faq-item.active .faq-item__answer {
  max-height: 500px;
}
.faq-item__answer p {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 96px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.final-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 12px;
}
.final-cta p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 32px;
}
.final-cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Store badges */
.store-badge {
  height: 44px;
  width: auto;
  display: inline-block;
  transition: transform var(--transition), opacity var(--transition);
}
.store-badge:hover {
  transform: scale(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}
.footer__brand-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer__brand-logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}
.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}
.footer__col h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--dark);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__col a:hover {
  color: var(--brand);
}
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--bg-subtle);
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal {
  padding-top: 120px;
  padding-bottom: 80px;
}
.legal h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}
.legal .legal__date {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal ol,
.legal ul {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: decimal;
}
.legal ul {
  list-style: disc;
}
.legal li {
  margin-bottom: 8px;
}
.legal b,
.legal strong {
  font-weight: 600;
  color: var(--dark);
}
.legal a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: var(--brand-dark);
}
.legal .legal__content {
  max-width: 720px;
}
.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Support page cards */
.support-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}
.support-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.support-card__header h2 {
  margin: 0;
  font-size: 20px;
  pointer-events: none;
}
.support-card__icon {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.support-card.active .support-card__icon {
  transform: rotate(45deg);
}
.support-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.support-card.active .support-card__body {
  max-height: 2000px;
}
.support-card__body > :first-child {
  margin-top: 0;
}
.support-card__body {
  padding: 0 32px;
}
.support-card.active .support-card__body {
  padding: 0 32px 24px;
}
.support-card:hover {
  border-color: var(--brand);
}
.support-card--contact {
  background: var(--bg);
  border-color: var(--brand);
  text-align: center;
  padding: 32px;
}
.support-card--contact h2 {
  margin-top: 0;
}
.legal a.btn {
  color: #fff;
  text-decoration: none;
}

/* FAQ sections within legal layout */
.legal .faq-list {
  margin-bottom: 8px;
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--brand);
  transform: translateY(-2px);
}
.to-top svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger > .fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE — TABLET (768px–1199px)
   ============================================================ */
@media (max-width: 1199px) {
  .hero__left h1 { font-size: 40px; }
  .hero__right { flex: 0 0 240px; }
  .hero__video { width: 260px; }
  .feature-category { gap: 40px; }
  .feature-category__visual { flex: 0 0 220px; }
  .feature-category__screenshot { width: 220px; }
  .orgs-features { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (<768px)
   ============================================================ */
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }

  /* Nav */
  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding-left: 20px; padding-right: 20px; }

  /* Hero */
  .hero { padding-top: 100px; }
  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 0 20px;
  }
  .hero__left {
    padding-bottom: 0;
    order: 1;
  }
  .hero__left h1 { font-size: 32px; }
  .hero__left .subtitle {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__buttons { justify-content: center; }
  .hero__right {
    order: 2;
    flex: none;
    padding-bottom: 0;
  }
  .hero__video { width: 220px; }

  /* Trust bar */
  .trust-bar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 32px;
    padding: 0 20px;
  }
  .trust-item__num { font-size: 20px; }
  .trust-item__label { font-size: 10px; }

  /* Features */
  .features { padding: 64px 0 32px; }
  .feature-category {
    flex-direction: column !important;
    gap: 24px;
    padding: 40px 0;
    text-align: center;
  }
  .feature-category__visual { flex: none; }
  .feature-category__screenshot { width: 200px; margin: 0 auto; }
  .feature-category__text h3 { font-size: 24px; }
  .feature-tags { justify-content: center; }
  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 15px; }

  /* Science */
  .evidence-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; gap: 40px; max-width: 320px; }
  .team-card__avatar { width: 120px; height: 120px; font-size: 30px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Organizations */
  .orgs { padding: 64px 0; }
  .orgs__card { padding: 48px 24px; border-radius: var(--radius-md); }
  .orgs__card h2 { font-size: 28px; }
  .orgs-features { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Legal */
  .legal { padding-top: 100px; padding-bottom: 64px; }
  .legal h1 { font-size: 28px; }
  .legal h2 { font-size: 18px; }

  /* FAQ */
  .faq-item__question { font-size: 15px; }

  /* Final CTA */
  .final-cta h2 { font-size: 28px; }
  .final-cta__buttons { flex-direction: column; align-items: center; }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer__brand { grid-column: 1 / -1; }

  /* Support cards */
  .support-card__header { padding: 20px; }
  .support-card__body { padding: 0 20px; }
  .support-card.active .support-card__body { padding: 0 20px 20px; }
  .support-card--contact { padding: 24px 20px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (<480px)
   ============================================================ */
@media (max-width: 479px) {
  .hero__left h1 { font-size: 28px; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .hero__video { width: 180px; }
  .trust-bar__inner { gap: 24px 24px; }
  .trust-item__num { font-size: 18px; }
  .orgs-features { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
}
