/* ====================================================================
   Waklert Guide — design system "Lime & Linen" (Cloned from wegovypill)
   Airy white paper with fresh medical-green / teal accents; dark mode support.
   Outfit (display/UI) + Crimson Pro (body serif).
   ==================================================================== */

:root {
  color-scheme: light;
  --bg: #fbfcf7;
  --bg-wash: linear-gradient(180deg, #f4f8ea 0%, rgba(251,252,247,0) 340px);
  --card: #ffffff;
  --card-2: #f6f9ee;
  --card-3: #eef3e0;
  --line: #e4e9d6;
  --line-strong: #cbd5ae;
  --text: #222a1c;
  --muted: #5b6550;
  --faint: #8b947c;

  --accent: #15803d;
  --accent-2: #166534;
  --accent-deep: #14532d;
  --accent-soft: rgba(22, 163, 74, 0.10);
  --accent-softer: rgba(22, 163, 74, 0.055);
  --accent-ring: rgba(22, 163, 74, 0.30);
  --on-accent: #ffffff;

  --warn: #a16207;
  --warn-soft: rgba(161, 98, 7, 0.09);

  --rec-soft: rgba(22, 101, 52, 0.08);
  --code-bg: rgba(22, 101, 52, 0.10);

  --shadow-sm: 0 1px 3px rgba(34, 42, 28, 0.06);
  --shadow-md: 0 6px 24px rgba(34, 42, 28, 0.08);
  --shadow-lg: 0 18px 48px rgba(34, 42, 28, 0.13);

  --r: 14px;
  --r-sm: 8px;
  --r-pill: 999px;
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Crimson Pro", Georgia, "Times New Roman", serif;
  --t: 160ms ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10140c;
    --bg-wash: linear-gradient(180deg, #161d10 0%, rgba(16, 20, 12, 0) 340px);
    --card: #171c11;
    --card-2: #1c2314;
    --card-3: #232b1a;
    --line: #2a331e;
    --line-strong: #3d4a2a;
    --text: #edf2e3;
    --muted: #a7b295;
    --faint: #768163;
    --accent: #4ade80;
    --accent-2: #22c55e;
    --accent-deep: #86efac;
    --accent-soft: rgba(74, 222, 128, 0.13);
    --accent-softer: rgba(74, 222, 128, 0.07);
    --accent-ring: rgba(74, 222, 128, 0.32);
    --on-accent: #16200b;
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.10);
    --rec-soft: rgba(74, 222, 128, 0.09);
    --code-bg: rgba(74, 222, 128, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: var(--bg-wash);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.16rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .u-display {
  font-family: var(--display);
  line-height: 1.16;
  letter-spacing: -0.014em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 650; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 56px 0; }
.section-kicker {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin-bottom: 14px;
}
.section-lead { font-size: 1.22rem; color: var(--muted); max-width: 46em; }
.small, small { font-size: 0.92rem; }
.muted { color: var(--muted); }

/* Header / Nav */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand-mark { flex: 0 0 auto; }
.brand em { font-style: normal; color: var(--accent-2); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--display);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: background var(--t), color var(--t);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.nav .nav-cta {
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 600;
  margin-left: 6px;
}
.nav .nav-cta:hover { background: var(--accent-2); color: var(--on-accent); }
.menu-btn { display: none; }

@media (max-width: 880px) {
  .menu-btn { display: inline-block; appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--text); width: 38px; height: 38px; border-radius: var(--r-pill); font-size: 1rem; cursor: pointer; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px 14px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--r-sm); font-size: 1rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px var(--accent-ring); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--accent-softer); border-color: var(--accent); color: var(--text); }
.btn-small { padding: 8px 16px; font-size: 0.88rem; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin-bottom: 18px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 .accent { color: var(--accent-2); }
.hero-sub { font-size: 1.28rem; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }

.answer-lede {
  font-size: 1.03rem; line-height: 1.65; margin: 14px 0 18px; padding: 13px 17px;
  border-left: 3px solid currentColor; border-radius: 0 6px 6px 0; opacity: .96;
  background: rgba(127,127,127,.07); max-width: 78ch;
}
.answer-lede strong { font-weight: 700; }

.hero-motif {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-md);
}
.motif-title { font-family: var(--display); font-weight: 650; font-size: 0.95rem; margin-bottom: 12px; }
.motif-rows { display: grid; gap: 10px; }
.motif-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card-2);
  font-family: var(--display);
  font-size: 0.92rem;
}
.motif-row.is-pill { border-color: var(--accent-ring); background: var(--accent-softer); }
.motif-row .mr-icon { flex: 0 0 auto; }
.motif-row .mr-main { font-weight: 650; }
.motif-row .mr-sub { color: var(--muted); font-size: 0.85rem; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
}
.stat-num { font-family: var(--display); font-weight: 750; font-size: 1.65rem; color: var(--accent-2); }
.stat-label { font-family: var(--display); font-size: 0.85rem; color: var(--muted); }

@media (max-width: 880px) {
  .hero { padding: 40px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

/* Explainer Band */
.band {
  background: var(--card-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.step-card .step-n {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.step-card h3 { margin-bottom: 6px; }
.step-card p { margin: 0; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 780px) { .step-cards { grid-template-columns: 1fr; } }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; background: var(--card); }
thead th {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--accent-deep);
  background: var(--card-3);
  padding: 12px 14px;
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}
tbody td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--accent-softer); }
.table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--display);
  font-size: 0.88rem;
  color: var(--muted);
  margin: 14px 2px 12px;
}
.checked-badge {
  display: inline-block;
  margin: 14px 0 6px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .9rem;
  line-height: 1.35;
  opacity: .92;
}

/* Featured card */
.feat-card {
  border: 1px solid #e0a90c;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 18px;
  background: linear-gradient(180deg, rgba(251,191,36,.10), rgba(251,191,36,.02));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Price table */
.prov-name { font-family: var(--display); font-weight: 650; font-size: 1rem; }
.prov-name a { color: inherit; text-decoration: none; }
.prov-name a:hover { color: var(--accent-2); }
.prov-reg { font-family: var(--display); font-size: 0.8rem; color: var(--faint); margin-top: 2px; }
.price-main { font-family: var(--display); font-weight: 750; font-size: 1.2rem; white-space: nowrap; }
.price-sub { font-family: var(--display); font-size: 0.8rem; color: var(--faint); }
.cell-note { font-family: var(--display); font-size: 0.88rem; color: var(--muted); }
.code-note { display: block; font-family: var(--display); font-size: 0.78rem; color: var(--faint); margin-top: 4px; }
.tag-cheapest {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* Pill vs Alternate comparison */
.vs-table thead th:nth-child(2) { color: var(--accent-2); }
.vs-table td:first-child { font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 26px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 22px;
  transition: border-color var(--t);
}
.faq details[open] { border-color: var(--accent-ring); box-shadow: var(--shadow-sm); }
.faq summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; color: var(--accent-2); transition: transform var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 18px; color: var(--muted); }

/* Post Grid / Articles */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.post-card:hover { border-color: var(--accent-ring); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text); }
.post-card .pc-kicker { font-family: var(--display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.post-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 1rem; flex: 1; margin-bottom: 12px; }
.post-card .pc-meta { font-family: var(--display); font-size: 0.82rem; color: var(--faint); }
@media (max-width: 880px) { .post-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer {
  margin-top: 64px;
  background: var(--card-2);
  border-top: 1px solid var(--line);
  padding: 44px 0 30px;
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
  margin-bottom: 30px;
}
.footer h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { font-family: var(--display); font-size: 0.92rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-2); }
.footer-brandline { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.footer-brandline em { font-style: normal; color: var(--accent-2); }
.footer-tag { color: var(--muted); max-width: 30em; }
.compliance {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
  font-family: var(--display);
  font-size: 0.84rem;
  color: var(--faint);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
