/* ============ TAO single-page landing — light "clinic" theme ============ */

:root {
  --bg: #edf2f7;
  --card: #ffffff;
  --navy: #101828;
  --navy-deep: #0b1626;
  --blue: #4696d2;
  --sky: #7ac3ea;
  --text: #101828;
  --muted: #667085;
  --border: #e4eaf1;
  --error: #d93025;
  --radius: 28px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px rgba(16, 24, 40, 0.10);
  --shadow-soft: 0 6px 24px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 780px; }

a { color: var(--blue); }

/* ---------- Ad bar ---------- */
.ad-bar {
  background: var(--navy-deep);
  color: #9aa7bd;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.ad-bar-link {
  color: #c8d3e6;
  text-decoration: underline;
  margin-left: 10px;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 242, 247, 0.9);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
}

.wordmark-badge {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.wordmark-text { font-size: 17px; }

.pill-nav {
  display: none;
  background: var(--card);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

.pill-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.pill-nav a:hover { background: var(--bg); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.phone-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.phone-link svg { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-header {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  padding: 13px 24px;
  box-shadow: var(--shadow-soft);
}

.btn-header:hover { background: #1c2a40; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 80px; }

.hero-grid { display: grid; gap: 44px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.hero-badge .badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e3f1fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-copy h1 .h1-line { display: block; }

.hero-copy h1 .h1-blue { color: var(--blue); }

.hero-copy h1 .h1-sky { color: var(--sky); }

.subhead {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 30em;
}

.trust-line {
  margin-top: 14px;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.95rem;
}

.hero-points {
  margin-top: 26px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  padding-left: 32px;
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e3f1fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Form card ---------- */
.form-wrap { position: relative; }

.form-card {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}

.form-chip {
  position: absolute;
  right: -18px;
  top: -28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 20px;
  padding: 14px 22px 14px 14px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.form-chip .chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e3f1fb;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.form-chip .chip-text strong { display: block; font-size: 14px; color: var(--navy); }

.form-chip .chip-text span { font-size: 12px; color: var(--muted); }

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.type-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.type-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.type-btn.is-selected {
  border-color: var(--blue);
  background: #e3f1fb;
  color: var(--navy);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field { margin-bottom: 14px; display: flex; flex-direction: column; }

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fbfcfe;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}

.field input:focus { border-color: var(--blue); background: #fff; }

.field.has-error input { border-color: var(--error); }

.field-error {
  display: none;
  color: var(--error);
  font-size: 12px;
  margin-top: 5px;
}

.field.has-error .field-error { display: block; }

.consent-error { margin: -6px 0 10px; }

.field-error.is-visible { display: block; }

#post-error { text-align: center; margin-top: 10px; }

/* Honeypot — visually hidden, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 14px;
}

.btn-submit {
  width: 100%;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px;
}

.btn-submit:hover { background: #1c2a40; }

.btn-submit:disabled { opacity: 0.6; cursor: wait; }

.form-fineprint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}

.form-fineprint.footnote { margin-top: 4px; font-size: 10px; }

.form-success { text-align: center; padding: 30px 10px; }

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e3f1fb;
  color: var(--blue);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success h3 { font-size: 1.25rem; margin-bottom: 8px; }

.form-success p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; scroll-margin-top: 80px; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

/* How it works */
.steps-grid {
  margin-top: 40px;
  display: grid;
  gap: 18px;
}

.step-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e3f1fb;
  color: var(--blue);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 { font-size: 1.08rem; margin-bottom: 6px; color: var(--navy); }

.step-card p { color: var(--muted); font-size: 0.93rem; }

/* Covered */
.chips-grid {
  margin-top: 40px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.chip-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.chip-emoji { font-size: 28px; }

.chip-card h3 { font-size: 1.02rem; margin: 10px 0 4px; color: var(--navy); }

.chip-card p { font-size: 0.9rem; color: var(--muted); }

/* Recover */
.recover-list {
  margin-top: 34px;
  list-style: none;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.recover-list li {
  background: var(--card);
  border-radius: 999px;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

/* FAQ */
.accordion { margin-top: 34px; display: grid; gap: 12px; }

.faq-item {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 22px;
  list-style: none;
  position: relative;
  padding-right: 46px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e3f1fb;
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* CTA band */
.cta-band { padding: 20px 0 80px; }

.cta-inner {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 36px;
  color: #fff;
  text-align: center;
  padding: 64px 30px;
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-inner p { color: #b6c4d8; margin-top: 10px; }

.btn-cta {
  margin-top: 26px;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 38px;
}

.btn-cta:hover { background: var(--sky); color: var(--navy); }

.cta-footnote {
  margin-top: 20px;
  font-size: 11px;
  color: #8b99b3;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #8b99b3;
  padding: 48px 0 32px;
  font-size: 12px;
}

.footer-disclaimer p { margin-bottom: 12px; line-height: 1.6; }

.footer-disclaimer strong { color: #b8c4da; }

#ca-disclosure { scroll-margin-top: 80px; }

#ca-disclosure a { color: #b8c4da; }

.footer-contact { margin-top: 18px; text-align: center; }

.footer-contact a { color: #b8c4da; }

.footer-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.footer-links a { color: #b8c4da; text-decoration: none; }

.footer-links a:hover { text-decoration: underline; }

.footer-copyright { margin-top: 18px; text-align: center; color: #5f6f8c; }

/* ---------- Legal pages ---------- */
.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-main h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.legal-updated {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 26px;
}

.legal-main h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 8px;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.legal-main ul { padding-left: 22px; margin-bottom: 12px; }

.legal-main strong { color: var(--text); }

.legal-form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
  max-width: 460px;
  margin: 26px 0;
}

.legal-form .field-error { margin-bottom: 12px; }

.legal-footer { margin-top: 40px; }

/* ---------- Desktop ---------- */
@media (min-width: 980px) {
  .pill-nav { display: flex; }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 64px;
  }

  .hero { padding: 48px 0 96px; }

  .form-card { padding: 34px 32px; }

  .steps-grid { grid-template-columns: repeat(3, 1fr); }

  .chips-grid { grid-template-columns: repeat(3, 1fr); }

  .recover-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 879px) {
  /* Chip sits statically above the form card instead of floating over it. */
  .form-chip {
    position: static;
    width: fit-content;
    margin: 0 auto 14px;
  }

  /* Ad bar hidden on mobile; ad disclosures remain in the consent text
     and footer. CA disclosure link is desktop-only as a result. */
  .ad-bar { display: none; }

  /* Header: full brand name + visible phone number, wrapping when narrow. */
  .wordmark-badge { display: none; }

  .wordmark-text { white-space: nowrap; }

  .header-inner {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    gap: 8px 14px;
  }

  .btn-header { font-size: 14px; padding: 10px 18px; white-space: nowrap; }

  /* Taller wrapped sticky header needs more anchor clearance. */
  .form-card { scroll-margin-top: 140px; }

  .section { scroll-margin-top: 120px; }
}

@media (max-width: 600px) {
  /* CTA band: rounded card, clearly separate from the footer. */
  .cta-band { padding: 32px 0 48px; }

  .cta-inner { border-radius: 24px; padding: 44px 22px; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
