/* Addiction Codex landing page — premium light-blue medical-education design system.
 *
 * Direction: deep clinical blue primary, airy light-blue background,
 * slate-blue type, one restrained blue accent. Editorial serif headings,
 * generous whitespace, subtle hairlines. No gradients beyond a whisper in
 * the hero, no neon, no playful visuals.
 */
:root{
  --blue:#17497e;            /* deep clinical blue — primary */
  --blue-deep:#0f3355;       /* darker blue for headings/buttons */
  --blue-ink:#0c2945;        /* near-black blue */
  --bg:#e2ebf6;              /* visible light blue */
  --surface:#ffffff;
  --surface-tint:#d8e5f3;    /* blue tint for alternating sections */
  --ink:#223344;             /* dark slate-blue body */
  --muted:#55697f;           /* muted slate blue */
  --faint:#8ba0b5;
  --accent:#2470ad;          /* single restrained blue accent */
  --accent-dark:#1b5a8c;
  --accent-soft:#d3e4f4;
  --border:#c9d9ea;          /* cool hairline */
  --radius:12px;
  --shadow:0 1px 2px rgba(15,51,85,.08),0 8px 24px rgba(15,51,85,.08);
  --serif:Georgia,"Times New Roman",Times,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--sans);font-size:16px;line-height:1.6}
h1,h2,h3{margin:0 0 .6rem;line-height:1.25;font-family:var(--serif);
  font-weight:600;color:var(--blue-ink);letter-spacing:-.01em}
p{margin:0 0 1rem}
.muted{color:var(--muted)} .small{font-size:.85rem}
.center{text-align:center}
.wrap{max-width:1120px;margin:0 auto;padding:0 1.5rem}
.wrap.narrow{max-width:760px}

/* ---------- Buttons ---------- */
.btn{display:inline-block;border:1px solid var(--border);background:var(--surface);
  color:var(--ink);border-radius:9px;padding:.65rem 1.4rem;font-size:.96rem;
  font-family:var(--sans);font-weight:600;cursor:pointer;text-decoration:none;
  text-align:center;transition:background .15s ease,border-color .15s ease}
.btn:hover{background:var(--surface-tint);border-color:#c6d6e6}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.primary:hover{background:var(--blue-deep);border-color:var(--blue-deep)}
.btn.big{font-size:1.05rem;padding:.85rem 2.1rem}
.btn.block{display:block;width:100%}
.btn-row{display:flex;flex-wrap:wrap;gap:.7rem}

/* ---------- Brand / nav ---------- */
.brand{display:inline-flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink)}
.brand-logo{width:40px;height:40px;border-radius:11px;object-fit:cover;flex:none}
.brand.small .brand-logo{width:32px;height:32px;border-radius:9px}
.brand-name{font-weight:700;font-size:1.1rem;font-family:var(--sans);color:var(--blue-ink)}
.brand-name em{display:block;font-style:normal;font-weight:400;font-size:.7rem;
  color:var(--muted);letter-spacing:.02em}
.site-nav{background:rgba(244,248,252,.92);backdrop-filter:saturate(1.2) blur(6px);
  border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}
.nav-inner{display:flex;align-items:center;justify-content:space-between;
  padding:.75rem 1.5rem;max-width:1120px;margin:0 auto}
.nav-actions{display:flex;gap:.55rem;align-items:center}
.nav-welcome{color:var(--muted);font-size:.95rem;margin-right:.3rem;white-space:nowrap}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;text-align:center;
  padding:6rem 0 5rem;border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,#e9f2fa 0%,var(--bg) 78%)}
#hero-particles{position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;opacity:.55}
.hero-content{position:relative;z-index:1}
.physician-badge{display:inline-block;color:var(--blue);font-weight:700;
  font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;
  font-family:var(--sans);border:1px solid #bcd6ea;background:rgba(255,255,255,.6);
  border-radius:999px;padding:.42rem 1.1rem;margin:0 0 1.4rem}
.hero-title{font-size:clamp(2rem,4.8vw,3.4rem);max-width:820px;margin:0 auto 1.1rem;
  letter-spacing:.01em}
.lede{font-size:1.18rem;color:var(--muted);max-width:640px;margin:0 auto 2rem}
.hero-cta{justify-content:center;margin-bottom:1.4rem}
.hero-meta{margin:.35rem 0 0}

/* ---------- Sections ---------- */
.section{padding:5rem 0}
.section.on-white{background:var(--surface);border-top:1px solid var(--border);
  border-bottom:1px solid var(--border)}
.section-head{text-align:center;max-width:700px;margin:0 auto 3rem}
.section-head h2{font-size:clamp(1.6rem,3vw,2.15rem);margin-bottom:.7rem}
.section-head p{color:var(--muted);font-size:1.05rem;margin:0 0 .8rem}
.section-head p:last-child{margin-bottom:0}
.kicker{color:var(--accent);font-weight:700;font-size:.76rem;letter-spacing:.12em;
  text-transform:uppercase;margin:0 0 .8rem;font-family:var(--sans)}

/* ---------- Who it's for ---------- */
.audience{display:grid;grid-template-columns:repeat(3,1fr);gap:2.2rem}
.audience-item{border-top:2px solid var(--blue);padding-top:1.1rem}
.audience-item h3{font-size:1.15rem;margin-bottom:.4rem}
.audience-item p{color:var(--muted);font-size:.97rem;margin:0}

/* ---------- Why Addiction Codex: editorial blocks ---------- */
.diff-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}
.diff-block{padding:2.2rem;border-bottom:1px solid var(--border)}
.diff-block:nth-child(odd){border-right:1px solid var(--border)}
.diff-block:nth-last-child(-n+2){border-bottom:0}
.diff-num{font-family:var(--serif);color:var(--accent);font-size:.95rem;
  letter-spacing:.08em;margin-bottom:.7rem}
.diff-block h3{font-size:1.25rem;margin-bottom:.5rem}
.diff-block p{color:var(--muted);font-size:.98rem;margin:0 0 .7rem}
.diff-block p:last-child{margin-bottom:0}

/* ---------- What's inside: restrained two-column list ---------- */
.feature-list{list-style:none;margin:0 auto;padding:0;max-width:860px;
  display:grid;grid-template-columns:1fr 1fr;gap:.2rem 2.5rem}
.feature-list li{padding:.8rem 0;border-bottom:1px solid var(--border);
  font-size:1rem;display:flex;gap:.7rem;align-items:baseline;color:var(--ink)}
.feature-list li::before{content:"—";color:var(--accent);font-weight:700;flex:none}
.feature-list strong{font-weight:600}

/* ---------- Pricing ---------- */

.diff-block.wide{grid-column:1/-1;border-right:0}

/* ---------- Pricing ---------- */
.price-card{background:var(--surface);border:1px solid var(--border);
  border-radius:16px;box-shadow:var(--shadow);padding:2.6rem 2.4rem;
  max-width:480px;margin:0 auto;text-align:center}
.price-eyebrow{color:var(--accent);font-weight:700;font-size:.76rem;
  letter-spacing:.12em;text-transform:uppercase;margin:0 0 1rem;font-family:var(--sans)}
.price{margin-bottom:.4rem}
.price .amount{font-family:var(--serif);font-size:3rem;font-weight:600;color:var(--blue-ink)}
.price .per{color:var(--muted);font-size:1.05rem}
.price-terms{color:var(--muted);font-size:.95rem;margin-bottom:1.6rem}
.price-card ul{list-style:none;margin:0 0 1.8rem;padding:0;text-align:left}
.price-card li{padding:.55rem 0;border-bottom:1px solid var(--border);font-size:.97rem}
.price-card li:last-child{border-bottom:0}
.price-card li::before{content:"✓";color:var(--accent);font-weight:700;margin-right:.6rem}
.form-error{color:#b3261e;font-size:.9rem;min-height:1.2rem;margin:.7rem 0 0;text-align:center}
.subscribe-banner{background:var(--accent-soft);border:1px solid #bcd6ea;color:#14466e;
  border-radius:10px;padding:.9rem 1.1rem;margin-bottom:1.4rem;font-size:.97rem;text-align:center}

/* ---------- CME: subtle band ---------- */
.cme-band{border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  background:var(--surface);padding:2.2rem 0;text-align:center}
.cme-band p{max-width:640px;margin:0 auto;color:var(--muted);font-size:.93rem}
.cme-band strong{color:var(--ink);font-weight:600}

/* ---------- FAQ ---------- */
.faq{background:var(--surface);border:1px solid var(--border);border-radius:10px;
  margin-bottom:.6rem;padding:1rem 1.25rem}
.faq summary{cursor:pointer;font-weight:600;font-size:.99rem;font-family:var(--sans);
  color:var(--blue-ink);list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:right;color:var(--accent);font-weight:700}
.faq[open] summary::after{content:"–"}
.faq p{margin:.7rem 0 0;color:var(--muted);font-size:.96rem}

/* ---------- Footer: editorial ---------- */
.site-footer{background:var(--surface-tint);border-top:1px solid var(--border);
  padding:3.4rem 0 0;color:var(--muted)}
.foot-inner{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.5rem;
  max-width:1120px;margin:0 auto;padding:0 1.5rem 2.6rem}
.foot-brand .brand-name{color:var(--blue-ink)}
.foot-mission{font-size:.92rem;line-height:1.65;max-width:340px;margin:.9rem 0 0;
  color:var(--muted)}
.foot-heading{font-size:.74rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--blue-ink);margin:0 0 .9rem;font-family:var(--sans)}
.foot-nav a,.foot-legal a{display:block;color:var(--muted);text-decoration:none;
  font-size:.92rem;padding:.28rem 0}
.foot-nav a:hover,.foot-legal a:hover{color:var(--blue);text-decoration:underline}
.foot-contact{margin-top:1rem;font-size:.88rem;color:var(--muted)}
.foot-contact a{color:var(--blue);text-decoration:none;display:inline;padding:0}
.foot-contact a:hover{text-decoration:underline}
.foot-disclaimer{border-top:1px solid var(--border);padding:1.6rem 1.5rem;
  max-width:1120px;margin:0 auto}
.foot-disclaimer p{max-width:860px;margin:0;font-size:.82rem;line-height:1.7;
  color:var(--faint);font-style:italic}
.foot-bottom{border-top:1px solid var(--border);padding:1.1rem 1.5rem;
  max-width:1120px;margin:0 auto}
.foot-bottom p{margin:0;font-size:.82rem;color:var(--faint)}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .audience{grid-template-columns:1fr;gap:1.6rem;max-width:560px;margin:0 auto}
  .diff-grid{grid-template-columns:1fr}
  .diff-block:nth-child(odd){border-right:0}
  .diff-block:nth-last-child(-n+2){border-bottom:1px solid var(--border)}
  .diff-block:last-child{border-bottom:0}
  .feature-list{grid-template-columns:1fr;max-width:560px}
  .foot-inner{grid-template-columns:1fr;gap:1.8rem}
}
@media (max-width:640px){
  body{font-size:15px}
  .section{padding:3.4rem 0}
  .hero{padding:3.6rem 0 3rem}
  .lede{font-size:1.05rem}
  .btn.big{width:100%;padding:.9rem 1rem}
  .hero-cta .btn{flex:1 1 100%}
  .nav-inner{padding:.65rem 1rem}
  .brand-name em{display:none}
  .nav-actions .btn{padding:.5rem .85rem;font-size:.87rem}
  .price-card{padding:2rem 1.4rem}
  .diff-block{padding:1.7rem 1.4rem}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  #hero-particles{display:none}
}
