/* WeightCare Guide — styles.css
   No external fonts, no third-party resources. System font stacks only. */

:root {
  --ivory: #FBF8F2;
  --paper: #FFFFFF;
  --sand: #F3ECE0;
  --line: #E4DCCD;
  --ink: #14243B;        /* deep navy */
  --text: #2B3440;
  --muted: #5B6573;      /* 5.9:1 on ivory */
  --teal: #2F6F6B;       /* muted teal, 5.6:1 on ivory */
  --teal-dark: #24524F;
  --teal-soft: #E5EFEC;
  --radius: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0 0 .55em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.6vw, 3.15rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Disclosure */
.disclosure { background: var(--ink); color: #E6ECF2; font-size: .86rem; line-height: 1.5; }
.disclosure p { max-width: 1120px; margin: 0 auto; padding: 10px 22px; }
.disclosure strong { color: #fff; }

/* Header (not sticky, so it never covers the disclosure) */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand span { color: var(--teal); }
.main-nav { order: 3; width: 100%; }
.main-nav ul { list-style: none; display: flex; gap: 6px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 4px 0; display: inline-block; }
.main-nav a:hover { color: var(--teal); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700;
  font-size: 1.05rem; line-height: 1.3; padding: 16px 28px; border-radius: 12px; text-align: center;
  border: 2px solid var(--teal); transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-small { padding: 10px 18px; font-size: .95rem; border-radius: 10px; }
.btn-outline { background: transparent; color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--ink); }
.cta-note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; max-width: 560px; }
.cta-row { margin-top: 30px; }

/* Hero */
.hero { padding: 34px 0 50px; }
.hero-grid { display: grid; gap: 30px; align-items: center; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--text); }
.checks { list-style: none; padding: 0; margin: 0 0 26px; }
.checks li { position: relative; padding: 6px 0 6px 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 15px; width: 8px; height: 5px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.cta-block .btn { width: 100%; }
.hero-art { margin: 0; }
.hero-art img { border-radius: 24px; width: 100%; }

/* Sections */
.section { padding: 58px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 30px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--ivory); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step h3 { margin-bottom: .4em; }
.step p:last-child { margin: 0; font-size: .98rem; }
.step-num { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin: 0 0 6px; }
.icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); align-items: center; justify-content: center; margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout {
  margin: 26px 0 0; padding: 16px 20px; background: var(--teal-soft); border-left: 4px solid var(--teal);
  border-radius: 10px; font-weight: 600; color: var(--ink);
}

/* GLP-1 */
.two-col { display: grid; gap: 28px; align-items: start; }
.info-panel { border-left: 4px solid var(--ink); }
.info-panel h3 { font-size: 1.3rem; }
.info-panel p:last-child { margin-bottom: 0; }

/* Questions */
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.q-card { position: relative; padding-top: 22px; }
.q-card p { margin: 0; font-size: .98rem; }
.q-num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-family: var(--sans); font-size: .95rem; margin-bottom: 12px;
}
.closing { margin: 26px 0 0; color: var(--muted); }

/* Partner panel */
.partner-panel {
  background: var(--ink); color: #DCE4EC; border-radius: 22px; padding: 34px 26px;
}
.partner-panel h2 { color: #fff; }
.partner-panel p { max-width: 720px; }
.partner-panel .attribution {
  color: #fff; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 12px 16px; display: inline-block; margin: 8px 0 24px;
}
.partner-panel .cta-note { color: #B9C5D2; }

/* FAQ */
.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--teal); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; }

/* Final CTA */
.final-cta { background: var(--sand); }
.final-cta .cta-note { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D3DE; padding: 46px 0 34px; font-size: .9rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin-bottom: .5em; }
.footer-grid { display: grid; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.footer-nav a { color: #fff; }
.publisher { margin: 0 0 8px; color: #AEBBC9; }

/* Placeholder marker for information the publisher must supply */
mark.todo { background: #FFF2B8; color: #4A3B00; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* Legal / content pages */
.page { padding: 46px 0 64px; }
.page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }
.page .updated { color: var(--muted); font-size: .92rem; }
.draft-note { background: #FFF8DB; border: 1px solid #EBD98F; border-radius: 12px; padding: 14px 18px; font-size: .95rem; margin-bottom: 26px; }
.back-home { display: inline-block; margin-top: 30px; }

/* Optional pricing module (disabled by default; see modules/pricing-module.html) */
.pricing-module { background: var(--paper); border: 2px solid var(--teal); border-radius: 22px; padding: 30px 26px; }
.pricing-module .price { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); font-weight: 700; margin: 0 0 .3em; }

/* Larger screens */
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .questions { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-block .btn { width: auto; }
  .partner-panel { padding: 48px 52px; }
}
@media (min-width: 980px) {
  .main-nav { order: 0; width: auto; }
  .main-nav ul { gap: 26px; }
  .brand { margin-right: 18px; }
  .header-row { flex-wrap: nowrap; }
  .site-header .btn-small { margin-left: auto; }
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .two-col { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .questions { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 76px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .disclosure, .site-header .btn-small { display: none; } }

/* ---------- Revision 2 additions ---------- */

/* Safety-information link */
.safety-link { margin: 18px 0 0; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.section-alt .safety-link { background: var(--ivory); }
.safety-link a { font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.ext-note { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.faq .safety-link { margin: 0 0 18px; }

/* Compact mobile header with native <details> menu (no JavaScript) */
.mobile-menu { position: relative; }
.mobile-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .95rem; background: var(--paper);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.mobile-menu[open] .burger { background: transparent; }
.mobile-menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.mobile-menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(20,36,59,.14); padding: 8px; z-index: 20; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: var(--teal-soft); }

@media (max-width: 979px) {
  .main-nav { display: none; }
  .header-row { flex-wrap: nowrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 1.2rem; margin-right: auto; }
  .site-header .btn-small { padding: 10px 14px; font-size: .92rem; min-height: 44px; display: inline-flex; align-items: center; }
  .disclosure { font-size: .82rem; }
  .disclosure p { padding: 9px 18px; }
  .hero { padding: 22px 0 40px; }
  .hero-grid { gap: 22px; }
  .eyebrow { margin-bottom: 10px; }
  .hero-art img { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 380px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wrap { padding: 0 16px; }
  .disclosure p { padding: 9px 16px; }
}
@media (min-width: 980px) { .mobile-menu { display: none; } }
@media (max-width: 600px) {
  h1 { font-size: 1.95rem; }
  .lead { font-size: 1.06rem; }
}
@media (max-width: 979px) {
  .brand, .site-header .btn-small { white-space: nowrap; }
}
@media (max-width: 440px) {
  .brand { font-size: 1.08rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mobile-menu summary { padding: 8px 11px; }
  .site-header .btn-small { padding: 10px 12px; font-size: .9rem; }
  h1 { font-size: 1.8rem; }
}
@media (max-width: 340px) {
  .brand { font-size: 1rem; }
  .header-row { gap: 8px; }
  .site-header .btn-small { padding: 9px 10px; font-size: .86rem; }
}

/* Legal pages */
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal code { font-size: .88em; background: var(--sand); padding: 1px 5px; border-radius: 4px; word-break: break-word; }
mark.todo.review { background: #E7EEFB; color: #1E3A6E; }
.small-note { color: var(--muted); font-size: .92rem; }
