/* KDP Pharmacy Tech Clarity — PoC landing */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1a1d23;
  --muted: #5c6570;
  --border: #e2e6eb;
  --accent: #0a5c8a;
  --accent-soft: #e8f2f8;
  --warn: #8a5a00;
  --warn-bg: #fff8e6;
  --danger-soft: #fdeeee;
  --link: #0a5c8a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --max: 44rem;
  --wide: 56rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.narrow { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Top bar */
.topbar {
  background: var(--warn-bg);
  border-bottom: 1px solid #f0d78c;
  color: var(--warn);
  font-size: 0.9rem;
  padding: 0.65rem 0;
  text-align: center;
}
.topbar strong { font-weight: 700; }

/* Header / nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
}
.logo {
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.92rem;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 2.75rem 0 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--accent-soft), transparent 55%),
    var(--bg);
}
.hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.pills li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-disabled-look {
  background: #d9e8e2;
  color: var(--accent);
  border: 1px dashed var(--accent);
}

/* Sections */
section {
  padding: 2.25rem 0;
}
section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.section-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

/* Cards / callouts */
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.callout.warn {
  background: var(--warn-bg);
  border-left-color: #d4a017;
}
.callout.muted-box {
  background: #f0f2f5;
  border-left-color: #8a939e;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: #f0f3f6;
  font-weight: 700;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
.cite {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2rem;
  color: var(--accent);
  font-weight: 750;
}
.faq details[open] summary::before { content: "−"; }
.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
}
.faq details p:last-child { margin-bottom: 0.25rem; }

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.85rem;
  border-bottom: 1px dashed var(--border);
}
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

/* CTA block */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem;
  margin: 1.5rem 0;
}
.cta-block h2 { margin-top: 0; }
.disclosure {
  font-size: 0.9rem;
  color: var(--muted);
  background: #f5f7f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.placeholder-note {
  font-size: 0.82rem;
  color: var(--warn);
  margin: 0.5rem 0 0;
}

/* Sources */
.sources ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}
.sources li { margin-bottom: 0.4rem; word-break: break-word; }

/* Footer */
.site-footer {
  background: #15181d;
  color: #c5ccd4;
  padding: 2rem 0 2.5rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.site-footer a { color: #9ec9e8; }
.site-footer .disclaimer {
  margin: 0 0 1rem;
  max-width: 44rem;
}
.site-footer .meta {
  opacity: 0.85;
  font-size: 0.85rem;
}

/* Decision grid */
.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.25rem 0;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card.highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 40%);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
