/* ============================================================
   Ask Dr. Maia — Pre-launch landing page
   Editorial. Clinical. Calm.
   ============================================================ */

:root {
  --teal: #0F4C5C;
  --amber: #C77D29;
  --sand: #F5EFE6;
  --ink: #1A1F2C;
  --slate: #4A5568;
  --hairline: rgba(15, 76, 92, 0.18);
  --hairline-strong: rgba(15, 76, 92, 0.32);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1120px;
  --reading: 65ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Selection */
::selection { background: rgba(199,125,41,0.25); color: var(--ink); }

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

/* Screen reader */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--serif);
  color: var(--teal);
  font-size: 26px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark:hover { color: var(--amber); }

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav__links a:hover {
  color: var(--teal);
  border-bottom-color: var(--amber);
}
.nav__links a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 96px;
  border-bottom: 1px solid var(--hairline);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 0 28px;
}
.hero__sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 60ch;
  margin: 0 0 40px;
}
.hero__meta {
  margin-top: 18px;
  font-size: 14px;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* ============================================================
   FORMS / CTA
   ============================================================ */
.signup {
  max-width: 540px;
}
.signup--center {
  margin-left: auto;
  margin-right: auto;
}
.signup__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--hairline-strong);
  background: #ffffff;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.signup input[type="email"]::placeholder { color: #8a8f99; }
.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}
.signup input[type="email"][aria-invalid="true"] {
  border-color: #b3261e;
}

.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  padding: 14px 22px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.06s ease;
}
.btn:hover { background: var(--amber); border-color: var(--amber); }
.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.signup__note {
  margin: 12px 2px 0;
  font-size: 13px;
  color: var(--slate);
}
.signup__success {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: rgba(15, 76, 92, 0.06);
  border-left: 3px solid var(--teal);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section {
  padding: 88px 0;
}
.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.section__head {
  margin-bottom: 48px;
}
.section__head--center {
  text-align: center;
}
.flourish {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--amber);
  margin-bottom: 22px;
}
.section__head--center .flourish {
  margin-left: auto;
  margin-right: auto;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
}
.section__head--center .section__title {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BIO
   ============================================================ */
.bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.bio__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 64px;
  letter-spacing: -0.02em;
  position: relative;
}
.bio__photo::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  pointer-events: none;
}
.bio__photo span { line-height: 1; transform: translateY(-2px); }

.bio__name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--teal);
  margin: 0 0 14px;
  line-height: 1.2;
}
.bio__anchor {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--teal);
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--hairline);
  max-width: 60ch;
  line-height: 1.35;
  letter-spacing: 0.005em;
}
.bio__lede {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 60ch;
  line-height: 1.65;
}
.bio__body-para {
  font-size: 16.5px;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 60ch;
  line-height: 1.7;
}
.bio__body-para:last-of-type {
  margin-bottom: 24px;
}
.cred {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 14px;
  max-width: 60ch;
}
.cred li {
  position: relative;
  padding-left: 22px;
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.55;
}
.cred__dot {
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--amber);
  display: block;
}
.cred em {
  font-style: italic;
  color: var(--ink);
}

/* ============================================================
   REASONS (Why this exists)
   ============================================================ */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.reason__num {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--amber);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.reason__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.22;
  color: var(--teal);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.reason__body {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  max-width: 38ch;
}
.reason__cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--slate);
  font-style: italic;
}

/* ============================================================
   WHY THIS EXISTS — narrative version (replaces .reasons grid)
   ============================================================ */
.why {
  max-width: 65ch;
}
.why__lede {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  color: var(--teal);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.why__body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 22px;
}
.why__close {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   DATA PRIVACY PILLAR
   ============================================================ */
.privacy-pillar {
  background: rgba(15, 76, 92, 0.04);
}
.privacy-pillar__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 65ch;
  margin: 0;
}

/* ============================================================
   CITATIONS
   ============================================================ */
.citations {
  padding: 48px 0 32px;
  border-top: 1px solid var(--hairline);
}
.citations__list {
  list-style: decimal;
  margin: 0;
  padding: 0 0 0 22px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  max-width: 65ch;
}
.citations__list li { margin-bottom: 8px; }
.citations__list em { font-style: italic; }
.citations__list a {
  color: var(--teal);
  text-decoration: none;
  margin-left: 6px;
}
.citations__list a:hover { color: var(--amber); }

/* Inline footnote ref */
.cred sup a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
  padding: 0 3px;
}
.cred sup a:hover { color: var(--amber); }

/* ============================================================
   CARDS (What you'll get)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 28px 26px 30px;
  border-radius: 2px;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--amber);
}
.card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}
.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--teal);
  margin: 14px 0 10px;
  letter-spacing: -0.005em;
}
.card__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
}

/* ============================================================
   SUBSCRIBE BLOCK
   ============================================================ */
.subscribe__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.subscribe__lede {
  font-size: 18px;
  color: var(--slate);
  margin: 0 0 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 56px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__copy {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.01em;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer__links a:hover {
  color: var(--teal);
  border-bottom-color: var(--amber);
}
.footer__note {
  width: 100%;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--slate);
  font-style: italic;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .reasons {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .bio {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bio__photo {
    width: 140px;
    height: 140px;
    font-size: 50px;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .nav { padding: 22px 0 18px; }
  .wordmark { font-size: 22px; }
  .nav__links { gap: 22px; }
  .nav__links a { font-size: 14px; }

  .hero { padding: 64px 0 64px; }
  .hero__sub { font-size: 17px; }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }

  .signup__row {
    flex-direction: column;
    gap: 10px;
  }
  .btn { padding: 14px 18px; }

  .cards { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__note { text-align: left; }
}
