/* ============================================================
   Weight Loss Injection Compare — design system
   Palette: plum + lavender wash on porcelain · aubergine dark
   Fonts:   Albert Sans (display) · Spectral (body)
   ============================================================ */

:root {
  --accent: #7e22ce;
  --accent-2: #6b21a8;
  --accent-soft: #f3ecfb;
  --accent-wash: #ede4f9;
  --accent-ink: #581c87;

  --bg: #faf8fc;
  --surface: #ffffff;
  --surface-2: #f6f2fb;
  --ink: #2b2136;
  --muted: #6d6379;
  --line: #e7dff2;
  --line-strong: #d8ccea;

  --good: #15803d;
  --warn: #b45309;
  --star: #b45309;

  --font-display: "Albert Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Spectral", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 3px rgba(43, 33, 54, 0.06), 0 10px 30px rgba(126, 34, 206, 0.07);
  --shadow-lift: 0 4px 10px rgba(43, 33, 54, 0.08), 0 18px 44px rgba(126, 34, 206, 0.12);
  --wrap: 1120px;
}

/* ---------- dark mode (aubergine) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #c084fc;
    --accent-2: #a855f7;
    --accent-soft: #33204a;
    --accent-wash: #2c1b41;
    --accent-ink: #e3ccfa;

    --bg: #1d1228;
    --surface: #271736;
    --surface-2: #2f1d42;
    --ink: #f1eaf9;
    --muted: #b3a5c6;
    --line: #3c2955;
    --line-strong: #4d3569;

    --good: #4ade80;
    --warn: #fbbf24;
    --star: #fbbf24;

    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.45), 0 20px 48px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --accent: #c084fc;
  --accent-2: #a855f7;
  --accent-soft: #33204a;
  --accent-wash: #2c1b41;
  --accent-ink: #e3ccfa;

  --bg: #1d1228;
  --surface: #271736;
  --surface-2: #2f1d42;
  --ink: #f1eaf9;
  --muted: #b3a5c6;
  --line: #3c2955;
  --line-strong: #4d3569;

  --good: #4ade80;
  --warn: #fbbf24;
  --star: #fbbf24;

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.45), 0 20px 48px rgba(0, 0, 0, 0.4);
}

/* ---------- reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4, .btn, .chip { font-family: var(--font-display); }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; margin-bottom: 0.6rem; }
h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
main.wrap > section { margin: 4.2rem 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.65rem;
}
.section-intro { max-width: 46rem; color: var(--muted); margin-bottom: 1.6rem; }
.accent { color: var(--accent); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0.65rem 20px;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15; }
.brand-name b { color: var(--accent); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 0.15rem; }
.main-nav a {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 600;
  color: var(--ink); text-decoration: none; padding: 0.45rem 0.7rem; border-radius: 8px;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-2); }
.theme-toggle, .nav-burger {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.35rem 0.55rem; cursor: pointer; font-size: 1rem; color: var(--ink); line-height: 1;
}
.theme-toggle:hover, .nav-burger:hover { border-color: var(--accent); }
.nav-burger { display: none; }

@media (max-width: 880px) {
  .nav-burger { display: inline-block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 0.5rem 20px 0.9rem; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a:last-child { border-bottom: none; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(60rem 26rem at 85% -10%, var(--accent-wash), transparent 65%),
    radial-gradient(40rem 22rem at 0% 110%, var(--accent-soft), transparent 60%);
  border-bottom: 1px solid var(--line);
  padding: 3.6rem 0 2.6rem;
}
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.6rem; align-items: start; }
.hero-sub { max-width: 38rem; color: var(--muted); font-size: 1.12rem; margin: 1rem 0 1.4rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 1.9rem; margin: 1.4rem 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat span { font-size: 0.86rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }

.btn {
  display: inline-block; font-weight: 700; font-size: 0.98rem; text-decoration: none;
  padding: 0.72rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-solid { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-solid:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* hero recommended card */
.pick-card {
  background: var(--surface); border: 1.5px solid var(--accent);
  border-radius: var(--radius); padding: 1.35rem 1.4rem; box-shadow: var(--shadow-lift);
}
.pick-card .pc-flag {
  display: inline-block; font-family: var(--font-display); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.pick-card h3 { font-size: 1.3rem; }
.pick-card ul { list-style: none; margin: 0.75rem 0 1rem; }
.pick-card li { padding-left: 1.4rem; position: relative; font-size: 0.96rem; margin: 0.32rem 0; }
.pick-card li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.pick-price { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.9rem; }
.pick-price b { color: var(--ink); }

.trust-line { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 2.1rem; font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); }
.trust-line .tick { color: var(--good); font-weight: 700; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- comparison matrix ---------- */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.94rem; }
table.matrix th, table.matrix td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.matrix thead th {
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 800;
  background: var(--accent-soft); color: var(--accent-ink); border-bottom: 2px solid var(--line-strong);
}
table.matrix tbody th {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); width: 150px; background: var(--surface-2);
}
table.matrix tr:last-child th, table.matrix tr:last-child td { border-bottom: none; }
.mx-tag { display: inline-block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--accent-wash); color: var(--accent-ink); border-radius: 999px; padding: 0.15rem 0.6rem; margin-left: 0.4rem; }

/* ---------- price tables & drug tabs ---------- */
.drug-tabs { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.1rem 0 1.5rem; }
.chip {
  font-size: 0.92rem; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 0.5rem 1.15rem;
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.chip.active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }

.price-block { margin-bottom: 2.6rem; }
.price-block > h3 { font-size: 1.28rem; margin-bottom: 0.25rem; }
.table-note { font-size: 0.88rem; color: var(--muted); margin: 0.35rem 0 0.9rem; font-family: var(--font-display); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.cmp { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 0.93rem; }
table.cmp th, table.cmp td { padding: 0.8rem 0.95rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.cmp thead th {
  font-family: var(--font-display); font-size: 0.79rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); background: var(--surface-2);
  position: sticky; top: 0;
}
table.cmp tbody tr:hover { background: var(--surface-2); }
table.cmp tr:last-child td { border-bottom: none; }

.p-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.p-reg { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.p-price { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; white-space: nowrap; }
.p-price small { font-weight: 600; font-size: 0.72rem; color: var(--muted); }
.p-promo { display: block; font-size: 0.8rem; color: var(--good); margin-top: 0.15rem; }
.code-chip {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px dashed var(--accent);
  border-radius: 6px; padding: 0.12rem 0.5rem;
}
.code-note { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.visit-btn {
  display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 700;
  font-size: 0.86rem; text-decoration: none; color: var(--accent-2);
  border: 1.5px solid var(--accent); border-radius: 999px; padding: 0.42rem 0.95rem;
}
.visit-btn:hover { background: var(--accent); color: #fff; }

tr.row-rec { background: var(--accent-soft); }
tr.row-rec:hover, table.cmp tbody tr.row-rec:hover { background: var(--accent-wash); }
tr.row-rec td { border-bottom: 2px solid var(--accent); }
.rec-star {
  display: inline-block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 999px; padding: 0.16rem 0.6rem; margin-left: 0.45rem; vertical-align: 2px;
}
tr.row-rec .visit-btn { background: var(--accent); color: #fff; }
tr.row-rec .visit-btn:hover { background: var(--accent-2); }

.honesty {
  font-size: 0.86rem; color: var(--muted); margin-top: 0.9rem;
  border-left: 3px solid var(--line-strong); padding-left: 0.9rem;
}

/* ---------- CTA box (also used mid/end of articles) ---------- */
.cta-box {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: var(--radius); padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-lift); margin: 2.2rem 0;
}
.cta-box h3, .cta-box h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-box p { color: rgba(255, 255, 255, 0.92); max-width: 44rem; }
.cta-box .btn { background: #fff; color: var(--accent-2); margin-top: 1rem; }
.cta-box .btn:hover { color: var(--accent-ink); transform: translateY(-1px); }
.cta-box .cta-small { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); margin-top: 0.8rem; font-family: var(--font-display); }

/* ---------- callout (articles + homepage) ---------- */
.callout {
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; margin: 1.6rem 0;
}
.callout b, .callout strong { color: var(--accent-ink); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- choose / decision cards ---------- */
.choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.choose-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
}
.choose-card .q-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; margin-bottom: 0.7rem;
  background: var(--accent-wash); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
}
.choose-card p { font-size: 0.95rem; color: var(--muted); }
.choose-card p b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 0.7rem; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 0.95rem 1.2rem; list-style: none; position: relative; padding-right: 2.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-52%);
  font-size: 1.35rem; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 0.9rem 1.2rem 1.1rem; font-size: 0.98rem; }
.faq .faq-a p + p { margin-top: 0.6rem; }

/* ---------- blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.post-card h3 { font-size: 1.08rem; line-height: 1.32; }
.post-card:hover h3 { color: var(--accent-2); }
.post-card p { font-size: 0.92rem; color: var(--muted); margin: 0.5rem 0 0.9rem; flex: 1; }
.post-meta { font-family: var(--font-display); font-size: 0.8rem; color: var(--muted); }
.post-meta .dot { margin: 0 0.35rem; }
.read-more { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--accent); margin-top: 0.6rem; }

/* ---------- article pages ---------- */
.article-wrap { max-width: 46rem; margin: 0 auto; padding: 2.8rem 20px 1rem; }
.article-wrap header h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.byline { font-family: var(--font-display); font-size: 0.86rem; color: var(--muted); margin: 0.9rem 0 0; }
.byline b { color: var(--ink); }
.article-body { margin-top: 1.9rem; }
.article-body h2 { margin-top: 2.4rem; }
.article-body h3 { margin-top: 1.7rem; }
.article-body p { margin: 0.95rem 0; }
.article-body ul, .article-body ol { margin: 0.95rem 0 0.95rem 1.4rem; }
.article-body li { margin: 0.35rem 0; }
.article-body .table-wrap { margin: 1.5rem 0; }
.article-body table.cmp { min-width: 640px; }
.breadcrumb { font-family: var(--font-display); font-size: 0.84rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- static pages ---------- */
.page-wrap { max-width: 46rem; margin: 0 auto; padding: 2.8rem 20px 1rem; }
.page-wrap h1 { margin-bottom: 0.5rem; }
.page-lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.8rem; }
.page-wrap h2 { margin-top: 2.2rem; }
.page-wrap p { margin: 0.9rem 0; }
.page-wrap ul, .page-wrap ol { margin: 0.9rem 0 0.9rem 1.4rem; }
.page-wrap li { margin: 0.3rem 0; }

/* ---------- footer ---------- */
.site-foot { margin-top: 4.5rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.foot-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 2.6rem 20px 1.4rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem;
}
.foot-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 0.7rem; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin: 0.4rem 0; }
.foot-grid a { color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand p { font-size: 0.92rem; color: var(--muted); margin-top: 0.6rem; max-width: 20rem; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-compliance {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px 1.6rem;
  display: grid; gap: 0.8rem;
}
.foot-compliance .fc-note {
  font-size: 0.84rem; color: var(--muted); line-height: 1.55;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
}
.fc-note b { color: var(--ink); font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.25rem; }
.foot-bottom {
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 0.82rem; color: var(--muted);
}
.foot-bottom .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-top: 1rem; padding-bottom: 1.2rem; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
::selection { background: var(--accent-wash); color: var(--accent-ink); }
