/* Shared styles for condition pages and articles. Tokens match index.html. */
:root {
  --teal: #0B7D70; --teal-light: #E0F2EF; --teal-dark: #085C52;
  --coral: #D95F3A; --coral-btn: #C2522F; --coral-light: #FAEEE9; --coral-dark: #B04A2B;
  --sage: #6BA356; --sage-light: #EDF5E9;
  --charcoal: #1F1E1B; --muted: #5F5C55; --cream: #FAF8F4; --stone: #E8E4DD; --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: "DM Sans", system-ui, sans-serif; background: var(--cream); color: var(--charcoal); line-height: 1.65; font-size: 18px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; font-weight: 700; }
h3 { font-weight: 600; }
a { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--coral-btn); color: var(--white); border: none; border-radius: 12px; padding: 12px 24px; font: 700 17px "DM Sans", sans-serif; text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--coral-dark); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 16px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(250,248,244,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--stone); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-word { font-size: 24px; color: var(--charcoal); }
.logo-word .fira { font-weight: 500; }
.logo-word .pulse { font-family: "Fraunces", serif; font-weight: 700; color: var(--coral); }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 40px 24px 24px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.eyebrow { display: inline-block; background: var(--teal-light); color: var(--teal-dark); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.article h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 16px; }
.article .lead { font-size: 21px; color: var(--muted); margin-bottom: 24px; }
.article h2 { font-size: clamp(26px, 4vw, 32px); margin: 44px 0 14px; }
.article h3 { font-size: 21px; margin: 24px 0 6px; }
.article p { margin-bottom: 16px; }
.article ul.plain { margin: 0 0 16px 22px; }
.article ul.plain li { margin-bottom: 8px; }

.review { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--stone); border-radius: 14px; padding: 16px 18px; margin: 8px 0 8px; font-size: 16px; }
.review .avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--coral-light); color: var(--coral-dark); display: grid; place-items: center; font-weight: 700; }

.tracks-list { list-style: none; display: grid; gap: 12px; margin-bottom: 16px; }
.tracks-list li { background: var(--white); border: 1px solid var(--stone); border-left: 4px solid var(--teal); border-radius: 12px; padding: 14px 18px; }
.tracks-list strong { display: block; color: var(--teal-dark); }
.tracks-list span { color: var(--muted); font-size: 17px; }

.note { background: var(--teal-light); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }

/* FAQ */
details { background: var(--white); border: 1px solid var(--stone); border-radius: 14px; margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 26px; color: var(--teal); }
details[open] summary::after { content: "\2013"; }
details p { padding: 0 22px 4px; color: var(--muted); }

/* Waitlist */
.waitlist { background: var(--coral-light); border-radius: 20px; padding: 40px 32px; text-align: center; margin: 48px 0 16px; }
.waitlist h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 10px; }
.waitlist > p { color: var(--muted); margin-bottom: 22px; }
form { display: flex; gap: 12px; max-width: 540px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
label.sr { position: absolute; left: -9999px; }
input[type=email] { flex: 1 1 240px; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid #C9C3B9; font: 400 18px "DM Sans", sans-serif; background: var(--white); color: var(--charcoal); }
.consent { font-size: 15px; color: var(--muted); margin-top: 14px; }
#msg { margin-top: 14px; font-weight: 700; min-height: 26px; }

.back { margin-top: 24px; font-weight: 700; }

footer { padding: 40px 0 48px; border-top: 1px solid var(--stone); margin-top: 40px; font-size: 16px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .disclaimer { max-width: 560px; }

@media (max-width: 860px) {
  .article { padding-top: 28px; }
  .waitlist { padding: 32px 20px; }
}
