/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a2e;
  background: #fafaf8;
  line-height: 1.65;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy:   #0f1f3d;
  --teal:   #0d9488;
  --teal-l: #ccfbf1;
  --amber:  #f59e0b;
  --slate:  #64748b;
  --light:  #f8fafc;
  --white:  #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15,31,61,.08);
}

/* ── Utility ──────────────────────────────────────────────── */
.container   { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
  display: block;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: var(--navy); line-height: 1.2; margin-bottom: 1rem;
}
.section-sub { color: var(--slate); font-size: 1.05rem; max-width: 580px; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; transition: all .2s; cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0b7c72; transform: translateY(-1px); }
.btn-outline  { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ── Header / Nav ─────────────────────────────────────────── */
#site-header {
  background: var(--white);
  border-bottom: 1px solid #e8ecef;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px; max-width: 1120px; margin: 0 auto;
}
.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem; color: var(--navy); font-weight: 700;
}
.site-logo span { color: var(--teal); }

/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  padding: 6px 14px; border-radius: 6px; font-size: .9rem;
  font-weight: 500; color: #374151; transition: background .15s, color .15s;
}
.nav-desktop a:hover { background: var(--teal-l); color: var(--teal); }
.nav-desktop .nav-cta { background: var(--teal); color: #fff !important; padding: 8px 18px; }
.nav-desktop .nav-cta:hover { background: #0b7c72; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  padding: 6px 14px; border-radius: 6px; font-size: .9rem; font-weight: 500;
  color: #374151; cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: background .15s, color .15s;
}
.dropdown-toggle:hover { background: var(--teal-l); color: var(--teal); }
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid #e2e8f0;
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 200px; padding: 8px; display: none;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 9px 14px; border-radius: 6px;
  font-size: .9rem; color: #374151;
}
.dropdown-menu a:hover { background: var(--teal-l); color: var(--teal); }
.dm-badge {
  float: right; font-size: .7rem; background: var(--teal-l);
  color: var(--teal); padding: 1px 7px; border-radius: 20px; font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid #e8ecef;
  padding: 12px 20px 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 11px 0; border-bottom: 1px solid #f1f5f9;
  font-weight: 500; color: #374151; font-size: .95rem;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .mob-cta { color: var(--teal); font-weight: 600; }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a3a5c 60%, #0d5a4f 100%);
  color: #fff; padding: 80px 20px 90px; text-align: center; position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(13,148,136,.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); color: #a7f3d0;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.15; color: #fff; margin-bottom: 20px;
}
.hero-title em { color: #5eead4; font-style: normal; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: #cbd5e1;
  max-width: 620px; margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-primary { background: var(--teal); font-size: 1rem; padding: 14px 32px; }
.hero-btns .btn-ghost {
  border: 2px solid rgba(255,255,255,.35); color: #fff; padding: 14px 32px;
  font-size: 1rem; font-weight: 600; border-radius: 8px; transition: all .2s;
}
.hero-btns .btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero-trust {
  margin-top: 48px; display: flex; justify-content: center;
  gap: clamp(20px, 4vw, 60px); flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num  { font-family: 'DM Serif Display', serif; font-size: 2rem; color: #5eead4; line-height: 1; }
.trust-label { font-size: .8rem; color: #94a3b8; margin-top: 4px; }

/* ── Badges Bar ───────────────────────────────────────────── */
#badges {
  background: var(--white); padding: 18px 20px;
  border-bottom: 1px solid #e8ecef;
}
.badges-inner {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(14px, 3vw, 44px); flex-wrap: wrap; max-width: 900px; margin: 0 auto;
}
.badge-item { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--navy); }
.badge-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.bi-green  { background: #d1fae5; }
.bi-blue   { background: #dbeafe; }
.bi-purple { background: #ede9fe; }
.bi-orange { background: #fef3c7; }

/* ── What Is ──────────────────────────────────────────────── */
#what-is { padding: 80px 20px; background: var(--light); }
.what-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto;
}
.what-features { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.what-feat {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); padding: 18px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 3px solid var(--teal);
}
.wf-icon  { font-size: 1.4rem; line-height: 1; margin-top: 2px; }
.wf-title { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.wf-desc  { font-size: .9rem; color: var(--slate); }
.what-visual {
  background: linear-gradient(135deg, #0f1f3d, #1a3a5c);
  border-radius: 20px; padding: 40px 32px; color: #fff;
}
.wv-heading { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: #5eead4; margin-bottom: 20px; }
.wv-stat    { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.wv-bar-wrap { flex: 1; }
.wv-label   { font-size: .8rem; color: #94a3b8; margin-bottom: 6px; }
.wv-bar-bg  { background: rgba(255,255,255,.1); border-radius: 20px; height: 8px; }
.wv-bar     { height: 8px; border-radius: 20px; background: var(--teal); }
.wv-pct     { font-size: .85rem; font-weight: 600; color: #5eead4; min-width: 34px; text-align: right; }
.wv-note    { font-size: .8rem; color: #64748b; margin-top: 20px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }

/* ── Tests Grid ───────────────────────────────────────────── */
#tests { padding: 80px 20px; }
.tests-header { text-align: center; margin-bottom: 48px; }
.tests-header .section-sub { margin: 0 auto; }
.tests-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; max-width: 1080px; margin: 0 auto;
}
.test-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px;
  border-top: 4px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.test-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(15,31,61,.12); }
.tc-autism { border-color: #6366f1; }
.tc-adhd   { border-color: #f59e0b; }
.tc-iq     { border-color: #10b981; }
.tc-mbti   { border-color: #3b82f6; }
.tc-icon   { font-size: 2rem; margin-bottom: 14px; }
.tc-title  { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: var(--navy); margin-bottom: 8px; }
.tc-desc   { font-size: .9rem; color: var(--slate); margin-bottom: 16px; line-height: 1.5; }
.tc-meta   { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tc-tag    { font-size: .73rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--light); color: var(--slate); }
.tc-link   { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--teal); transition: gap .15s; }
.tc-link:hover { gap: 9px; }

/* ── How It Works ─────────────────────────────────────────── */
#how-it-works { background: var(--light); padding: 80px 20px; }
.how-inner    { max-width: 900px; margin: 0 auto; }
.how-header   { text-align: center; margin-bottom: 52px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.step {
  text-align: center; background: var(--white);
  border-radius: var(--radius); padding: 32px 20px; box-shadow: var(--shadow);
}
.step-num {
  width: 40px; height: 40px; background: var(--teal); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; margin: 0 auto 16px;
}
.step-icon  { font-size: 2rem; margin-bottom: 12px; }
.step-title { font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step-desc  { font-size: .875rem; color: var(--slate); }

/* ── SEO Content ──────────────────────────────────────────── */
#seo-content { padding: 80px 20px; }
.seo-inner   { max-width: 860px; margin: 0 auto; }
.seo-inner h2 { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--navy); margin-bottom: 14px; }
.seo-inner h3 { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 28px 0 8px; }
.seo-inner p  { color: var(--slate); margin-bottom: 14px; font-size: .975rem; }
.seo-inner ul { padding-left: 20px; color: var(--slate); font-size: .975rem; list-style: disc; }
.seo-inner ul li { margin-bottom: 6px; }
.seo-divider  { border: none; border-top: 1px solid #e8ecef; margin: 40px 0; }

/* ── FAQ ──────────────────────────────────────────────────── */
#faq      { background: var(--light); padding: 80px 20px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 44px; }
.faq-item {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(15,31,61,.05); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--navy); font-size: .95rem;
}
.faq-q svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--teal); transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; color: var(--slate); font-size: .9rem; line-height: 1.6; }
.faq-item.open .faq-a { display: block; }

/* ── Testimonials ─────────────────────────────────────────── */
#testimonials { padding: 80px 20px; }
.testi-header { text-align: center; margin-bottom: 48px; }
.testi-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.testi-card   { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.testi-stars  { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; }
.testi-text   { font-size: .9rem; color: var(--slate); margin-bottom: 18px; line-height: 1.6; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; flex-shrink: 0;
}
.testi-name { font-weight: 600; color: var(--navy); font-size: .9rem; }
.testi-role { font-size: .78rem; color: var(--slate); }

/* ── CTA ──────────────────────────────────────────────────── */
#cta {
  background: linear-gradient(135deg, #0f1f3d, #1a3a5c);
  color: #fff; padding: 80px 20px; text-align: center;
}
.cta-title    { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 16px; }
.cta-sub      { color: #94a3b8; font-size: 1.05rem; margin-bottom: 36px; }
.cta-disclaimer { margin-top: 28px; color: #64748b; font-size: .8rem; }

/* ── Footer ───────────────────────────────────────────────── */
#footer { background: #0b1629; color: #94a3b8; padding: 52px 20px 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; max-width: 1080px; margin: 0 auto 40px;
}
.footer-brand p { font-size: .875rem; line-height: 1.6; max-width: 300px; }
.footer-col h4  { color: #e2e8f0; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.footer-col a   { display: block; font-size: .875rem; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1080px; margin: 0 auto;
  border-top: 1px solid #1e2d45; padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .8rem;
}
.footer-disclaimer {
  background: #111d30; border-left: 3px solid var(--teal);
  padding: 14px 18px; border-radius: 6px; font-size: .8rem;
  color: #64748b; max-width: 1080px; margin: 0 auto 28px; line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }
  .what-grid   { grid-template-columns: 1fr; }
  .what-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-trust  { gap: 24px; }
}
@media (max-width: 480px) {
  .tests-grid { grid-template-columns: 1fr; }
  .steps      { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}
