:root {
  --teal-400: #24a687;
  --teal-500: #1f8f7b;
  --teal-600: #123a37;
  --ink-900: #0f2c2a;
  --ink-700: #124643;
  --bg: #0d2433; /* Darker original color */
  --white: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: 1px solid rgba(16, 68, 110, 0.16);
  --card-radius: 20px;
  --inner-radius: 12px;
  --shadow-card: 0 22px 45px rgba(13, 52, 82, 0.18);
  --shadow-btn: 0 12px 28px rgba(13, 52, 82, 0.18);
  --primary: #0f2535;
  --primary-strong: #081c29;
  --text-muted: rgba(15, 46, 68, 0.7);
  --pill-max-width: 720px;
  --footer-bg: #0d1b2a;
  --footer-fg: #eaeaea;
  --footer-muted: #a8b3bd;
  --footer-link: #4dd0e1;
  --footer-border: #1b263b;
}

@keyframes slam-in {
  0% { transform: translateY(40px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

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

body {
  margin: 0;
  font-family: 'Inter', 'Nunito', system-ui, -apple-system, sans-serif;
  background-color: #0d2433;
  background-image:
    linear-gradient(160deg, rgba(0, 0, 0, 0.85), rgba(24, 24, 24, 0.95)),
    url('images/bg4k.png');
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-attachment: fixed;
  color: #0b2136;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

select[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: none;
  border: 3px solid var(--ink-900);
}

.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  position: relative;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  padding: clamp(14px, 3vw, 26px) clamp(18px, 5vw, 48px) clamp(6px, 2vw, 14px);
  margin-bottom: 0;
}

.header-wordmark {
  display: block;
  width: min(390px, 60vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.menu-btn {
  appearance: none;
  border: var(--card-border);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-900);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, width 0.18s ease, padding 0.18s ease, border-radius 0.18s ease;
  position: fixed;
  top: clamp(16px, 3vw, 32px);
  right: clamp(18px, 5vw, 48px);
  z-index: 1200;
  width: 56px;
  height: 56px;
}

.menu-btn .label { display: none; }
.menu-btn .hamburger { width: 24px; height: 16px; position: relative; }
.menu-btn .hamburger span { position: absolute; left: 0; right: 0; height: 3px; border-radius: 999px; background: var(--ink-900); transition: background 0.12s ease; }
.menu-btn .hamburger span:nth-child(1) { top: 0; }
.menu-btn .hamburger span:nth-child(2) { top: 6px; }
.menu-btn .hamburger span:nth-child(3) { top: 12px; }

.menu-btn:hover, .menu-btn:focus-visible { background: #f0faf6; box-shadow: 0 5px 0 rgba(15, 44, 42, 0.35); outline: none; }
.menu-btn:active { transform: translateY(2px); box-shadow: inset 0 4px 8px rgba(15, 44, 42, 0.25); }
.menu-btn.is-expanded { width: auto; height: 56px; padding: 12px 20px; border-radius: 999px; font-size: 0.95rem; }
.menu-btn.is-expanded .label { display: inline; }

@media (max-width: 960px) {
  header { padding-inline: clamp(16px, 5vw, 32px); }
  .menu-btn { top: auto; bottom: clamp(20px, 6vw, 40px); right: clamp(20px, 6vw, 40px); box-shadow: 0 8px 0 rgba(15, 44, 42, 0.35); }
}

@media (max-width: 640px) {
  header { background: transparent !important; padding: clamp(10px, 3vw, 18px) clamp(16px, 6vw, 28px) clamp(4px, 2vw, 12px); }
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(8px, 2vw, 24px) clamp(18px, 5vw, 52px) clamp(64px, 8vw, 80px);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* --- Hero --- */
.hero {
  width: min(1200px, 100%);
  text-align: center;
  color: var(--white);
  padding: clamp(8px, 2vw, 16px) 0 clamp(8px, 2vw, 12px);
  display: grid;
  gap: 12px;
}

.hero-eyebrow {
  margin: 0;
  font-size: clamp(0.78rem, 0.6vw + 0.65rem, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.2vw + 1rem, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

/* --- Layout: grid (calculator + info column) --- */
.layout {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(20px, 3vw, 32px);
}

.layout--grid,
.layout--secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}

@media (min-width: 961px) {
  .layout--grid {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
    align-items: start;
  }

  .layout--secondary {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }

  .calculator-column {
    position: sticky;
    top: 24px;
  }
}

@media (min-width: 1280px) {
  .layout--grid {
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.5fr);
  }
}

/* On mobile/tablet show calculator first, then the info column */
@media (max-width: 960px) {
  .layout--grid {
    display: flex;
    flex-direction: column;
  }
  .layout--grid .calculator-column { order: 1; }
  .layout--grid .info-column { order: 2; }
}

.info-column {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  align-content: start;
}

.calculator-column {
  display: grid;
  gap: 14px;
}

.calculator-trust {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.calculator-trust a {
  color: var(--teal-400);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.calculator-trust a:hover,
.calculator-trust a:focus-visible {
  text-decoration: underline;
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 30px);
  width: 100%;
  margin: 0;
  backdrop-filter: blur(18px);
  animation: slam-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.layout > .card { max-width: min(720px, 100%); margin-inline: auto; }

.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }

/* --- Info cards (left column) --- */
.info-card-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.info-card { color: var(--ink-900); }
.info-card p { margin: 0 0 8px; line-height: 1.55; }
.info-card p:last-child { margin-bottom: 0; }

.info-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.info-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 12px;
  line-height: 1.5;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-400);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(36, 166, 135, 0.35);
}

.info-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
  line-height: 1.5;
}

.info-card--urgent {
  background: linear-gradient(155deg, rgba(255, 245, 230, 0.96), rgba(255, 224, 210, 0.94));
  border: 1px solid rgba(180, 60, 30, 0.18);
}

.info-card--urgent .info-card-title { color: #8b1111; }
.info-urgent-line { font-size: 0.95rem; color: #3a1a1a; }
.info-urgent-line a { color: #8b1111; font-weight: 800; text-decoration: none; }
.info-urgent-line a:hover { text-decoration: underline; }

/* --- Donate Card --- */
.donate-card { color: var(--ink-900); }
.donate-heading {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}
.donate-intro { margin: 0 0 18px; line-height: 1.55; color: var(--text-muted); }
.donate-actions { display: grid; gap: 14px; }

.donate-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink-900);
  background: linear-gradient(135deg, #ffe8a8, #ffcf6b);
  color: var(--ink-900);
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(15, 44, 42, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
  text-align: left;
}
.donate-pill:hover, .donate-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(15, 44, 42, 0.22);
  filter: brightness(1.04);
  outline: none;
}
.donate-pill:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(15, 44, 42, 0.22);
}
.donate-pill-lines { display: grid; gap: 2px; }
.donate-pill-line { font-size: 1.05rem; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.donate-pill-sub { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.donate-pill img { height: 38px; width: auto; flex-shrink: 0; }

.donate-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.donate-links li { flex: 1 1 auto; min-width: 140px; }
.donate-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(15, 44, 42, 0.16);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-900);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.donate-links a:hover, .donate-links a:focus-visible {
  background: #ffffff;
  border-color: var(--teal-400);
  transform: translateY(-1px);
  outline: none;
}
.donate-link--kofi { color: #29abe0 !important; }
.donate-link--givebutter { color: #e05a47 !important; }

/* --- Disclaimer Card --- */
.card--disclaimer { color: var(--ink-900); }
.disclaimer-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.disclaimer-eyebrow {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b1111;
  background: rgba(139, 17, 17, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.disclaimer-header h2 {
  margin: 0;
  font-size: clamp(1.15rem, 0.5vw + 1rem, 1.4rem);
  font-weight: 900;
  flex: 1 1 auto;
}
.disclaimer-toggle {
  appearance: none;
  border: 1px solid rgba(15, 44, 42, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-900);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.disclaimer-toggle:hover { background: #fff; transform: translateY(-1px); }
.card--disclaimer.is-expanded .disclaimer-toggle { display: none; }
.disclaimer-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 44, 42, 0.12);
  display: grid;
  gap: 10px;
  line-height: 1.55;
}
.disclaimer-content p { margin: 0; }
.disclaimer-seek-care { color: #8b1111; }
.disclaimer-link {
  color: var(--teal-500);
  font-weight: 700;
  text-decoration: none;
}
.disclaimer-link:hover { text-decoration: underline; }
.disclaimer-close {
  appearance: none;
  align-self: start;
  margin-top: 4px;
  border: 1px solid rgba(15, 44, 42, 0.2);
  background: transparent;
  color: var(--ink-900);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.disclaimer-close:hover { background: rgba(15, 44, 42, 0.06); }

/* --- Header link wrapper --- */
.header-link { display: inline-block; line-height: 0; }
.header-link:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 4px; border-radius: 8px; }

/* Cappy Waitlist Pill - SMALLER & BOTTOM RIGHT */
.cappy-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1400;
  border: 2px solid #0f2c2a;
  border-radius: 20px;
  padding: 6px 16px 6px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(15, 44, 42, 0.2);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  text-decoration: none;
  min-height: 52px; /* ~35% or slightly more for legibility */
}

.cappy-floating-btn img {
  height: 38px;
  width: auto !important;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #0f2c2a;
  flex-shrink: 0;
}

.cappy-waitlist-content { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.cappy-waitlist-brand { font-weight: 900; font-size: 0.9rem; color: #0f2c2a; line-height: 1.1; margin-bottom: 2px; }
.cappy-waitlist-tagline { font-weight: 700; font-size: 0.55rem; color: #0f2c2a; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.8; }
.cappy-floating-btn:hover, .cappy-floating-btn:focus-visible { animation-play-state: paused; transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 0 rgba(15, 44, 42, 0.26); outline: none; }

@media (max-width: 700px) {
  .cappy-floating-btn {
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    gap: 0;
    justify-content: center;
    animation: none;
    bottom: 16px;
    right: 16px;
  }
  .cappy-floating-btn img { height: 40px !important; width: 40px !important; }
  .cappy-waitlist-content { display: none !important; }
}

/* Modal */
.cappy-modal-overlay {
  position: fixed; inset: 0; background: rgba(13, 36, 51, 0.7); backdrop-filter: blur(8px);
  z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transform: scale(0.98); transition: all 0.25s ease;
}
.cappy-modal-overlay.is-visible { opacity: 1; transform: scale(1); display: flex !important; }
.cappy-modal-dialog { background: linear-gradient(150deg, #ffffff, #f2f7fb); border: 2px solid rgba(13, 143, 138, 0.2); border-radius: 28px; padding: 40px; width: min(460px, 92%); box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25); position: relative; text-align: center; }
.cappy-modal-close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; font-size: 28px; line-height: 1; color: #0b2136; cursor: pointer; opacity: 0.5; }
.cappy-modal-close:hover { opacity: 1; }
.cappy-modal-dialog .cappy-badge { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid #0d8f8a; overflow: hidden; box-shadow: 0 12px 24px rgba(13, 143, 138, 0.2); }
.cappy-modal-dialog .cappy-badge img { width: 100%; height: 100%; object-fit: cover; }
.cappy-modal-dialog h2 { margin: 0 0 12px; font-size: 1.8rem; color: #0b2136; }
.cappy-modal-dialog p { margin: 0 0 24px; color: #4a637a; font-size: 1.05rem; line-height: 1.5; }
.cappy-waitlist-form { display: flex; flex-direction: column; gap: 12px; }
.cappy-waitlist-form input { padding: 16px 20px; border-radius: 16px; border: 2px solid rgba(13, 143, 138, 0.2); font-size: 1.05rem; background: rgba(255, 255, 255, 0.8); outline: none; }
.cappy-waitlist-form input:focus { border-color: #0d8f8a; background: #fff; box-shadow: 0 0 0 4px rgba(13, 143, 138, 0.1); }
.cappy-waitlist-form button { background: linear-gradient(135deg, #0d8f8a, #0a706c); color: #fff; border: none; padding: 16px; border-radius: 16px; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; box-shadow: 0 12px 24px rgba(13, 143, 138, 0.3); transition: transform 0.2s, box-shadow 0.2s; width: 100%; }
.cappy-waitlist-form button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(13, 143, 138, 0.4); }
.cappy-waitlist-success { padding: 24px; background: rgba(13, 143, 138, 0.1); border: 2px solid #0d8f8a; color: #0a706c; border-radius: 16px; font-weight: bold; font-size: 1.1rem; }

@keyframes float-cappy {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* Footer */
.cd-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--footer-border);
}
.cd-copy { font-weight: 700; margin-bottom: 24px; }
.cd-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.cd-legal a { color: var(--footer-link); text-decoration: none; font-size: 0.9rem; }
.cd-legal a:hover { text-decoration: underline; }
.cd-legal--accordion { display: none; }
@media (max-width: 640px) {
  .cd-legal--full { display: none; }
  .cd-legal--accordion { display: block; margin-bottom: 24px; }
  .cd-legal--accordion summary { font-weight: 700; cursor: pointer; padding: 8px; }
  .cd-legal--accordion nav { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
}
.cd-note { max-width: 600px; margin: 0 auto 24px; font-size: 0.85rem; color: var(--footer-muted); line-height: 1.5; }
.cd-contact { font-size: 0.9rem; }
.cd-contact a { color: var(--footer-link); text-decoration: none; }

/* Menu Overlay */
.menu-overlay { position: fixed; inset: 0; z-index: 2500; background: rgba(245, 249, 249, 0.98); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-panel { width: min(400px, 90%); text-align: center; }
.menu-links { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.menu-links a { font-size: 2rem; font-weight: 900; color: var(--ink-900); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: transform 0.2s ease, color 0.2s ease; }
.menu-links a:hover { transform: scale(1.1); color: var(--teal-400); }
.menu-links a[aria-current="page"] { color: var(--teal-400); pointer-events: none; }
.close-menu { appearance: none; background: var(--white); border: var(--card-border); border-radius: 999px; padding: 12px 32px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; box-shadow: var(--shadow-btn); }

/* =============================================
   MEDICATION GUIDES
   ============================================= */

/* Guide hero — transparent, white text */
.guide-hero {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  text-align: center;
  color: var(--white);
  padding: clamp(8px, 2vw, 16px) 0 clamp(8px, 2vw, 12px);
}

.guide-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.2vw + 1rem, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.guide-hero p {
  margin: 0 auto;
  max-width: 58ch;
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.12rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.84);
}

/* Medication article cards */
.med-guide { color: var(--ink-900); }

.med-guide__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15,44,42,0.1);
}

.med-guide__header-text h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 1.5vw + 1rem, 1.85rem);
  font-weight: 900;
  line-height: 1.2;
}

.med-guide__header-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Concentration badges */
.conc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.conc-badge--ace {
  background: rgba(255,192,56,0.18);
  color: #6b4000;
  border: 1px solid rgba(255,192,56,0.45);
}

.conc-badge--child {
  background: rgba(56,130,255,0.12);
  color: #1a3a80;
  border: 1px solid rgba(56,130,255,0.35);
}

.conc-badge--infant {
  background: rgba(160,56,255,0.1);
  color: #4a1a7a;
  border: 1px solid rgba(160,56,255,0.3);
}

/* Ibuprofen concentration tab switcher */
.conc-switcher {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  background: rgba(15,44,42,0.07);
  border-radius: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  max-width: 100%;
}

.conc-tab {
  appearance: none;
  border: 2px solid transparent;
  background: transparent;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.conc-tab:hover { background: rgba(255,255,255,0.6); color: var(--ink-900); }

.conc-tab.is-active {
  background: white;
  color: var(--ink-900);
  box-shadow: 0 2px 10px rgba(15,44,42,0.14);
}

.conc-tab .conc-badge { font-size: 0.67rem; pointer-events: none; }

/* Concentration panels (hidden/shown by JS) */
.conc-panel { display: none; }
.conc-panel.is-active { display: block; animation: slam-in 0.3s ease both; }

/* Product section */
.product-section { margin-bottom: 28px; }

.product-section__label {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-section__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(15,44,42,0.1);
}

/* CSS scroll-snap product strip */
.product-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 4px 2px 14px;
  cursor: grab;
}

.product-strip::-webkit-scrollbar { display: none; }
.product-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.product-card {
  flex: 0 0 clamp(148px, 37vw, 200px);
  scroll-snap-align: start;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,44,42,0.1);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,44,42,0.12); }

.product-card__img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 6px;
}

.product-card__img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__name {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  margin: 0;
}

/* Alternate formulation grid (chewables, suppositories, etc.) */
.formulation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.formulation-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,44,42,0.1);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.formulation-card__emoji { font-size: 2.2rem; line-height: 1; }
.formulation-card__name { font-size: 0.82rem; font-weight: 700; color: var(--ink-900); margin: 0; line-height: 1.3; }
.formulation-card__dose { font-size: 0.71rem; color: var(--text-muted); margin: 0; }

/* Safety quick-reference card */
.safety-card {
  background: rgba(36,166,135,0.07);
  border: 1px solid rgba(36,166,135,0.22);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 8px;
}

.safety-card__title {
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin: 0 0 12px;
}

.safety-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.safety-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-900);
}

.safety-card li::before {
  content: '✓';
  color: var(--teal-400);
  font-weight: 900;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* Inline warning note */
.med-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(220,50,50,0.06);
  border: 1px solid rgba(220,50,50,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #6a1111;
  line-height: 1.45;
}

.med-warning::before { content: '⚠'; font-size: 1rem; flex-shrink: 0; margin-top: 0.05em; }

@media (max-width: 480px) {
  .product-card { flex: 0 0 clamp(140px, 54vw, 170px); }
  .formulation-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   ABOUT PAGE
   ============================================= */

/* Hero — uses .card for glass background, dark text */
.hero-about { color: var(--ink-900); }

.hero-about .hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: rgba(36,166,135,0.12);
  border: 1px solid rgba(36,166,135,0.28);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-about h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.hero-about > p {
  margin: 0 auto 20px;
  max-width: 56ch;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.12rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.about-cta a {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.about-cta--primary {
  background: var(--teal-400);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(36,166,135,0.3);
}

.about-cta--secondary {
  background: rgba(15,44,42,0.07);
  color: var(--ink-900) !important;
  border: 1.5px solid rgba(15,44,42,0.18);
}

.about-cta a:hover { transform: translateY(-2px); }
.about-cta--primary:hover { box-shadow: 0 10px 28px rgba(36,166,135,0.35); }

/* Story, values, trust section cards */
.story-card, .values-card, .trust-card { color: var(--ink-900); }

.story-card h2, .values-card h2, .trust-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem);
  font-weight: 900;
}

.story-card p { margin: 0 0 12px; line-height: 1.6; }
.story-card p:last-child { margin-bottom: 0; }
.trust-card > p { margin: 0 0 10px; line-height: 1.55; color: var(--text-muted); }

.values-card ul, .trust-card .trust-points {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.values-card li, .trust-card .trust-points li {
  padding: 12px 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(15,44,42,0.08);
  border-radius: 10px;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Feature icon grid */
.feature-card-group { color: var(--ink-900); }

.feature-card-group > h2 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem);
  font-weight: 900;
}

.feature-intro {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2vw, 16px);
}

@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(14px, 2vw, 18px) clamp(10px, 1.5vw, 14px);
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15,44,42,0.08);
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,44,42,0.1); }

.feature-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.feature-item span {
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink-900);
}

/* Impact / donate link card */
.impact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink-900);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.impact-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,44,42,0.15); }
.impact-card img { height: 60px; width: auto; flex-shrink: 0; }
.impact-card h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 900; }
.impact-card p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }

@media (max-width: 480px) { .impact-card { flex-direction: column; text-align: center; } }

/* =============================================
   WEIGHING GUIDE PAGE — animated tare demo
   ============================================= */

.weighing-intro { color: var(--ink-900); }
.weighing-intro h2 { margin: 0 0 8px; font-size: clamp(1.2rem, 1vw + 1rem, 1.55rem); font-weight: 900; }
.weighing-intro p { margin: 0; line-height: 1.55; color: var(--ink-900); }

.tare-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 3vw, 28px) clamp(8px, 2vw, 20px);
  background: linear-gradient(160deg, rgba(36,166,135,0.08), rgba(36,166,135,0.02));
  border: 1px solid rgba(36,166,135,0.18);
  border-radius: 16px;
  margin: 16px 0 24px;
}

.tare-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

.tare-dots {
  display: flex;
  gap: 10px;
}

.tare-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15,44,42,0.18);
  transition: background 0.3s ease, transform 0.3s ease;
}

/* 12-second cycle, 3 seconds per step */
@keyframes tare-person { 0%, 22% { transform: translateX(0); opacity: 1; } 26%, 73% { transform: translateX(170px); opacity: 0; } 77%, 100% { transform: translateX(0); opacity: 1; } }
@keyframes tare-baby   { 0%, 76% { opacity: 0; transform: scale(0.6); } 80%, 100% { opacity: 1; transform: scale(1); } }
@keyframes tare-num1   { 0%, 47% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes tare-num2   { 0%, 47% { opacity: 0; } 50%, 73% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes tare-num3   { 0%, 73% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes tare-button { 0%, 47% { opacity: 0; } 50%, 73% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes tare-cap1   { 0%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes tare-cap2   { 0%, 22% { opacity: 0; } 26%, 47% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes tare-cap3   { 0%, 47% { opacity: 0; } 50%, 73% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes tare-cap4   { 0%, 73% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes tare-dot1   { 0%, 22% { background: var(--teal-400); transform: scale(1.4); } 26%, 100% { background: rgba(15,44,42,0.18); transform: scale(1); } }
@keyframes tare-dot2   { 0%, 22% { background: rgba(15,44,42,0.18); transform: scale(1); } 26%, 47% { background: var(--teal-400); transform: scale(1.4); } 50%, 100% { background: rgba(15,44,42,0.18); transform: scale(1); } }
@keyframes tare-dot3   { 0%, 47% { background: rgba(15,44,42,0.18); transform: scale(1); } 50%, 73% { background: var(--teal-400); transform: scale(1.4); } 76%, 100% { background: rgba(15,44,42,0.18); transform: scale(1); } }
@keyframes tare-dot4   { 0%, 73% { background: rgba(15,44,42,0.18); transform: scale(1); } 76%, 100% { background: #fbbf24; transform: scale(1.4); } }

.tare-svg .person      { animation: tare-person 12s infinite ease-in-out; transform-origin: 200px 200px; }
.tare-svg .baby        { animation: tare-baby   12s infinite ease-in-out; transform-origin: 200px 150px; }
.tare-svg .display-num--1 { animation: tare-num1 12s infinite linear; }
.tare-svg .display-num--2 { animation: tare-num2 12s infinite linear; }
.tare-svg .display-num--3 { animation: tare-num3 12s infinite linear; }
.tare-svg .tare-button-glow { animation: tare-button 12s infinite linear; transform-origin: 285px 230px; }
.tare-svg .caption--1 { animation: tare-cap1 12s infinite linear; }
.tare-svg .caption--2 { animation: tare-cap2 12s infinite linear; }
.tare-svg .caption--3 { animation: tare-cap3 12s infinite linear; }
.tare-svg .caption--4 { animation: tare-cap4 12s infinite linear; }
.tare-dot--1 { animation: tare-dot1 12s infinite linear; }
.tare-dot--2 { animation: tare-dot2 12s infinite linear; }
.tare-dot--3 { animation: tare-dot3 12s infinite linear; }
.tare-dot--4 { animation: tare-dot4 12s infinite linear; }

@media (prefers-reduced-motion: reduce) {
  .tare-svg .person, .tare-svg .baby, .tare-svg [class*='display-num'],
  .tare-svg .tare-button-glow, .tare-svg [class*='caption--'],
  [class*='tare-dot--'] { animation: none !important; }
  .tare-svg .display-num--1, .tare-svg .caption--1 { opacity: 1; }
  .tare-svg .display-num--2, .tare-svg .display-num--3,
  .tare-svg .caption--2, .tare-svg .caption--3, .tare-svg .caption--4,
  .tare-svg .baby, .tare-svg .tare-button-glow { opacity: 0; }
  .tare-dot--1 { background: var(--teal-400); transform: scale(1.4); }
}

/* Step cards (4 numbered) */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 24px;
}

@media (min-width: 700px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .step-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15,44,42,0.08);
  border-radius: 12px;
}

.step-card__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-400);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(36,166,135,0.35);
}

.step-card__body { display: grid; gap: 4px; }
.step-card__title { margin: 0; font-size: 0.95rem; font-weight: 900; color: var(--ink-900); line-height: 1.25; }
.step-card__text { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--ink-900); }

/* Subtraction calculator widget (no-tare alternative) */
.tare-alt {
  background: rgba(255, 200, 100, 0.08);
  border: 1px solid rgba(255, 192, 56, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
}

.tare-alt[open] { padding-bottom: 20px; }

.tare-alt summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink-900);
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tare-alt summary::-webkit-details-marker { display: none; }
.tare-alt summary::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 192, 56, 0.35);
  color: var(--ink-900);
  font-weight: 900;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.tare-alt[open] summary::before { content: '−'; }

.tare-alt p, .tare-alt ol { margin: 12px 0 0; line-height: 1.55; font-size: 0.9rem; color: var(--ink-900); }
.tare-alt ol { padding-left: 1.2rem; display: grid; gap: 4px; }

.tare-calc {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 600px) { .tare-calc { grid-template-columns: 1fr 1fr; } }

.tare-calc label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tare-calc input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(15,44,42,0.18);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tare-calc input:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(36,166,135,0.15);
}

.tare-calc__result {
  grid-column: 1 / -1;
  padding: 14px 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.tare-calc__result.has-result {
  background: rgba(36,166,135,0.12);
  color: var(--teal-600);
  font-weight: 700;
}

.tare-calc__result strong { color: var(--ink-900); font-size: 1.15rem; font-weight: 900; }

/* Tip card on weighing page */
.tip-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(15,44,42,0.08);
  border-radius: 12px;
  padding: 16px 20px;
}

.tip-card h3 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.tip-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tip-card li { display: flex; gap: 9px; font-size: 0.88rem; line-height: 1.45; color: var(--ink-900); }
.tip-card li::before { content: '•'; color: var(--teal-400); font-weight: 900; flex-shrink: 0; }

/* Calculator-page cross-link card */
.cross-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(36,166,135,0.08);
  border: 1px solid rgba(36,166,135,0.22);
  border-radius: 14px;
  color: var(--ink-900);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cross-link-card:hover, .cross-link-card:focus-visible {
  transform: translateY(-1px);
  background: rgba(36,166,135,0.12);
  box-shadow: 0 8px 20px rgba(36,166,135,0.18);
  outline: none;
}

.cross-link-card__emoji { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.cross-link-card__body { display: grid; gap: 2px; min-width: 0; }
.cross-link-card__title { font-weight: 900; font-size: 0.95rem; color: var(--ink-900); }
.cross-link-card__sub { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.cross-link-card__arrow { margin-left: auto; color: var(--teal-500); font-weight: 900; font-size: 1.2rem; flex-shrink: 0; }

/* =============================================
   DONATIONS PAGE
   ============================================= */

.intro-card { color: var(--ink-900); }
.intro-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 1.5vw + 1rem, 1.9rem);
  font-weight: 900;
  color: var(--ink-900);
}
.intro-card p { margin: 0 0 10px; line-height: 1.6; color: var(--ink-900); }
.intro-card p:last-child { margin-bottom: 0; }

.donation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
  width: 100%;
}

@media (min-width: 720px) { .donation-grid { grid-template-columns: repeat(2, 1fr); } }

.donation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink-900);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.donation-card:hover, .donation-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(13,52,82,0.2);
  outline: none;
}

.donation-card--kofi { background: linear-gradient(155deg, rgba(41,171,224,0.08), rgba(41,171,224,0.18)); border-color: rgba(41,171,224,0.3); }
.donation-card--gb { background: linear-gradient(155deg, rgba(224,90,71,0.06), rgba(224,90,71,0.16)); border-color: rgba(224,90,71,0.3); }

.donation-logo {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: rgba(255,255,255,0.85);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1px rgba(15,44,42,0.06);
}

.donation-logo img { max-width: 76%; max-height: 76%; object-fit: contain; }
.donation-logo--wide { width: 140px; height: 88px; border-radius: 18px; }

.donation-card__name {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0;
  color: var(--ink-900);
}

.donation-card__name--kofi { color: #29abe0; }
.donation-card__name--gb { color: #c4452f; }

.donation-card small {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 600;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-grid-card { color: var(--ink-900); }
.contact-grid-card > h2 { margin: 0 0 16px; font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem); font-weight: 900; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15,44,42,0.08);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink-900);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-card:hover, .contact-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 18px rgba(15,44,42,0.1);
  outline: none;
}

.contact-card__icon { font-size: 1.8rem; line-height: 1; }
.contact-card h3 { margin: 0; font-size: 1rem; font-weight: 900; color: var(--ink-900); }
.contact-card p { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--text-muted); }
.contact-card__email {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-500);
  word-break: break-all;
}

.contact-emergency { color: var(--ink-900); }
.contact-emergency h2 { margin: 0 0 10px; font-size: clamp(1.1rem, 1vw + 0.9rem, 1.4rem); font-weight: 900; color: #8b1111; }
.contact-emergency > p { margin: 0 0 12px; line-height: 1.55; color: var(--ink-900); }
.contact-emergency ul.emergency-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.contact-emergency .emergency-list li {
  padding: 12px 16px;
  background: rgba(255, 230, 230, 0.55);
  border: 1px solid rgba(180, 60, 30, 0.18);
  border-radius: 10px;
  line-height: 1.5;
  font-size: 0.92rem;
  color: #3a1a1a;
}
.contact-emergency .emergency-list a { color: #8b1111; font-weight: 800; text-decoration: none; }
.contact-emergency .emergency-list a:hover { text-decoration: underline; }

/* Cappy info card on contact page */
.cappy-info-card { color: var(--ink-900); }
.cappy-info-card h2 { margin: 0 0 10px; font-size: clamp(1.1rem, 1vw + 0.9rem, 1.4rem); font-weight: 900; }
.cappy-info-card p { margin: 0; line-height: 1.55; color: var(--ink-900); }

/* =============================================
   DOSING GUIDE PAGE
   ============================================= */

/* Top-of-page alert banner */
.dose-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(234,179,8,0.15), rgba(234,179,8,0.08));
  border: 1.5px solid rgba(161,98,7,0.3);
  border-radius: var(--card-radius);
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ink-900);
}

.dose-alert__icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.dose-alert strong { display: block; font-size: 1.05rem; font-weight: 900; margin-bottom: 4px; color: #7c4b00; }
.dose-alert span { color: var(--ink-900); }

/* Syringe / Cup SVG wrapper */
.dose-svg { width: 100%; max-width: 520px; }

/* How-to-read-markings grid */
.dose-reading-tip {
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,44,42,0.08);
  border-radius: 14px;
}

.dose-reading-tip h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink-900);
}

.dose-marking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dose-marking-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 12px;
  text-align: center;
}

.dose-marking-card--correct {
  background: rgba(22,163,74,0.08);
  border: 1.5px solid rgba(22,163,74,0.25);
}

.dose-marking-card--wrong {
  background: rgba(220,38,38,0.07);
  border: 1.5px solid rgba(220,38,38,0.2);
}

.dose-marking-card svg { width: 72px; height: 108px; }

.dose-marking-label {
  font-size: 0.9rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.dose-marking-card--correct .dose-marking-label { background: rgba(22,163,74,0.15); color: #166534; }
.dose-marking-card--wrong .dose-marking-label { background: rgba(220,38,38,0.12); color: #991b1b; }

.dose-marking-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pitfalls section */
.dose-pitfalls .med-guide__header-text p { color: var(--ink-900); }

.pitfall-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 580px) { .pitfall-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pitfall-grid { grid-template-columns: repeat(3, 1fr); } }

.pitfall-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.pitfall-card--danger {
  background: linear-gradient(145deg, rgba(239,68,68,0.07), rgba(239,68,68,0.12));
  border-color: rgba(220,38,38,0.2);
}

.pitfall-card--caution {
  background: linear-gradient(145deg, rgba(234,179,8,0.06), rgba(234,179,8,0.12));
  border-color: rgba(161,98,7,0.2);
}

.pitfall-card__icon { font-size: 1.6rem; line-height: 1; }

.pitfall-card h3 {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 900;
  color: var(--ink-900);
}

.pitfall-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-900);
  flex: 1;
}

.pitfall-verdict {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.pitfall-verdict--never {
  background: rgba(220,38,38,0.15);
  color: #991b1b;
  border: 1px solid rgba(220,38,38,0.25);
}

.pitfall-verdict--always {
  background: rgba(22,163,74,0.12);
  color: #166534;
  border: 1px solid rgba(22,163,74,0.22);
}

.pitfall-verdict--prefer {
  background: rgba(234,179,8,0.12);
  color: #7c4b00;
  border: 1px solid rgba(161,98,7,0.22);
}

/* mL vs mg explainer card */
.dose-unit-card { color: var(--ink-900); }
.dose-unit-card h2 { margin: 0 0 18px; font-size: clamp(1.1rem, 1vw + 0.9rem, 1.4rem); font-weight: 900; }

.dose-unit-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

@media (max-width: 480px) {
  .dose-unit-grid { grid-template-columns: 1fr; }
  .dose-unit-divider { text-align: center; }
}

.dose-unit-block {
  padding: 18px;
  border-radius: 14px;
  text-align: center;
}

.dose-unit-block--ml {
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(14,165,233,0.18));
  border: 1.5px solid rgba(14,165,233,0.3);
}

.dose-unit-block--mg {
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(168,85,247,0.16));
  border: 1.5px solid rgba(168,85,247,0.28);
}

.dose-unit-block__letter {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  font-family: 'Courier New', monospace;
  margin-bottom: 4px;
}

.dose-unit-block--ml .dose-unit-block__letter { color: #0369a1; }
.dose-unit-block--mg .dose-unit-block__letter { color: #7c3aed; }

.dose-unit-block__name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.dose-unit-block p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-900);
}

.dose-unit-example {
  font-size: 0.82rem !important;
  background: rgba(255,255,255,0.6);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15,44,42,0.08);
}

.dose-unit-divider {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
}

.dose-unit-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: rgba(13,143,138,0.08);
  border: 1px solid rgba(13,143,138,0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-900);
}

/* Secondary cross-link card (subtle teal tint) */
.cross-link-card--secondary {
  background: rgba(13,143,138,0.05);
  border-color: rgba(13,143,138,0.2);
}

/* =============================================
   UX POLISH — "RUNNING ON FUMES" IMPROVEMENTS
   ============================================= */

/* Ensure hero h1 is large and unmistakable */
.guide-hero h1 {
  font-size: clamp(1.6rem, 3vw + 1rem, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink-900);
}

.guide-hero p {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.2rem);
  line-height: 1.6;
  color: var(--ink-900);
  margin: 0;
}

/* Step card number – larger and bolder */
.step-card__num {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-500);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Step card title — bigger */
.step-card__title {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--ink-900);
}

/* Step card text — more readable */
.step-card__text {
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-900);
}

/* Step card layout */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15,44,42,0.08);
  border-radius: 14px;
}

/* Tip card (weighing guide) */
.tip-card {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(13,143,138,0.06);
  border: 1px solid rgba(13,143,138,0.2);
  border-radius: 14px;
}

.tip-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--teal-500);
}

.tip-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.tip-card li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-900);
}

/* Navigation: highlight dosing guide link color */
.nav-dosing { color: var(--teal-500) !important; }

/* =============================================
   HOVER GUARDS — prevent sticky hover on touch
   ============================================= */

@media (hover: none), (pointer: coarse) {
  .menu-links a:hover { transform: none; color: var(--ink-900); }
  .cross-link-card:hover,
  .cross-link-card:focus-visible { transform: none; box-shadow: var(--shadow-card); }
  .product-card:hover { transform: none; box-shadow: var(--shadow-card); }
  .feature-item:hover { transform: none; box-shadow: none; }
  .impact-card:hover { transform: none; box-shadow: var(--shadow-card); }
  .about-cta a:hover { transform: none; box-shadow: none; }
  .donation-card:hover { transform: none; box-shadow: var(--shadow-card); }
  .contact-card:hover { transform: none; background: rgba(255,255,255,0.65); box-shadow: none; }
  .donate-pill:hover { transform: none; box-shadow: 0 4px 0 rgba(15,44,42,0.25); }
}

/* =============================================
   LAST REVIEWED BADGE
   ============================================= */

.last-reviewed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(13,143,138,0.08);
  border: 1px solid rgba(13,143,138,0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-500);
  letter-spacing: 0.02em;
}

.last-reviewed::before {
  content: '✓';
  font-size: 0.72rem;
  font-weight: 900;
}

/* eyebrow alias (disclaimer header label on non-index pages) */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b1111;
  background: rgba(139,17,17,0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

/* cd-note on footer (emergency line) */
.cd-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}
