/* ==========================================================================
   GlycoTide Reviews — Clinical report design system
   Palette: cool slate + clinical teal + coral signal   (graph-paper motif)
   Type:    Space Grotesk / IBM Plex Sans / IBM Plex Mono
   ========================================================================== */

:root {
  --ink:        #10131C;
  --ink-2:      #1B2130;
  --slate:      #2A3247;
  --slate-2:    #4A5468;
  --muted:      #66718A;
  --teal:       #0E7C86;
  --teal-dk:    #0A5C64;
  --teal-lt:    #D3EDEF;
  --teal-glow:  #E9F6F7;
  --signal:     #E8663C;
  --signal-lt:  #FDEDE7;
  --mist:       #F2F5F8;
  --mist-2:     #E7ECF2;
  --paper:      #FFFFFF;
  --line:       #D8DFE8;
  --line-soft:  #E9EEF4;

  --bs-body-font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --bs-body-color: var(--slate);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--teal-dk);

  --rad: 3px;
  --rad-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(16,19,28,.06);
  --shadow:    0 4px 20px rgba(16,19,28,.08);
  --shadow-lg: 0 20px 54px rgba(16,19,28,.14);
}

* { box-sizing: border-box; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--slate);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(1.9rem, 5vw, 3.15rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }

/* Mono micro-label — the clinical signature */
.tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dk);
  padding: .2rem 0;
  border-top: 2px solid var(--teal);
  margin-bottom: .9rem;
}
.tag-signal { color: var(--signal); border-top-color: var(--signal); }

.section-head { max-width: 760px; margin: 0 auto 3rem; }
.section-head.center { text-align: center; }
.section-head .sub { color: var(--muted); font-size: 1.04rem; margin-top: .85rem; }

/* ---------- Sections + graph-paper motif ---------- */
.sec { padding: clamp(3rem, 6.5vw, 5.4rem) 0; }
.sec-mist { background: var(--mist); }
.sec-grid {
  background-color: var(--mist);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
}
.sec-ink { background: var(--ink); color: #AEB9CC; }
.sec-ink h2, .sec-ink h3, .sec-ink h4 { color: var(--paper); }
.sec-ink .tag { color: var(--teal-lt); border-top-color: var(--teal); }
.sec-ink a { color: var(--teal-lt); }

/* ---------- Disclosure bar ---------- */
.disclosure {
  background: var(--ink);
  color: #97A3B8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .02em;
  padding: .5rem 0;
}
.disclosure .container { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; justify-content: center; }
.disclosure b { color: var(--teal-lt); font-weight: 500; }

/* ---------- Nav ---------- */
.navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
}
.navbar .navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.42rem; color: var(--ink); letter-spacing: -.03em;
}
.navbar .navbar-brand span { color: var(--teal); }
.navbar .nav-link {
  font-size: .91rem; font-weight: 500; color: var(--slate); padding: .45rem .8rem !important;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--teal-dk); }
.navbar-toggler { border-color: var(--line); padding: .35rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(14,124,134,.3); }

/* ---------- Buttons ---------- */
.btn {
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 600;
  border-radius: var(--rad); padding: .78rem 1.55rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-teal {
  background: var(--teal); border: 1px solid var(--teal); color: #fff;
  box-shadow: 0 3px 12px rgba(14,124,134,.28);
}
.btn-teal:hover, .btn-teal:focus {
  background: var(--teal-dk); border-color: var(--teal-dk); color: #fff;
  transform: translateY(-2px); box-shadow: 0 7px 20px rgba(10,92,100,.34);
}
.btn-ink { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.btn-ink:hover, .btn-ink:focus { background: var(--slate); border-color: var(--slate); color: #fff; transform: translateY(-2px); }
.btn-outline-ink { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline-ink:hover, .btn-outline-ink:focus { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--teal-lt); color: var(--teal-lt); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--teal-lt); color: var(--ink); }
.btn-xl { padding: .98rem 2rem; font-size: 1.04rem; }

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(760px 380px at 82% 6%, rgba(14,124,134,.10), transparent 62%),
    linear-gradient(180deg, var(--mist) 0%, #FBFCFD 100%);
  padding: clamp(1.8rem, 4.5vw, 3.4rem) 0 clamp(2.8rem, 5.5vw, 4.6rem);
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: .9rem; }
.hero h1 .sub {
  display: block; font-family: 'IBM Plex Sans', sans-serif;
  font-size: .42em; font-weight: 400; color: var(--slate-2);
  letter-spacing: -.005em; margin-top: .7rem; line-height: 1.45;
}
.hero-lede { font-size: 1.05rem; color: var(--slate); }
.hero-media { position: sticky; top: 88px; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--paper); border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dk); padding: .38rem .85rem; border-radius: 100px; margin-bottom: 1rem;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Product card with graph backdrop */
.product-card {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--rad-lg);
  padding: 1.5rem; box-shadow: var(--shadow); overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .7; pointer-events: none;
}
.product-card .pc-head {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .6rem;
}
.product-card img { position: relative; display: block; margin: 0 auto; max-height: 400px; width: auto; }

/* Signature: glucose curve */
.curve-wrap {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--rad-lg); padding: 1.15rem 1.25rem; margin-top: 1rem;
}
.curve-wrap .cw-title {
  font-family: 'IBM Plex Mono', monospace; font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .55rem;
}
.curve-wrap svg { display: block; width: 100%; height: auto; }
.curve-legend {
  display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .6rem;
  font-family: 'IBM Plex Mono', monospace; font-size: .66rem; color: var(--muted);
}
.curve-legend i { display: inline-block; width: 14px; height: 2px; margin-right: .35rem; vertical-align: middle; }
.curve-legend .l-spike i { background: var(--signal); }
.curve-legend .l-steady i { background: var(--teal); }

/* Spec table — clinical readout */
.readout {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  margin: 1.3rem 0; overflow: hidden;
}
.readout .ro-head {
  background: var(--ink); color: var(--teal-lt);
  font-family: 'IBM Plex Mono', monospace; font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; padding: .5rem .95rem;
}
.readout .ro-row {
  display: flex; gap: .9rem; padding: .55rem .95rem;
  border-bottom: 1px solid var(--line-soft); font-size: .88rem;
}
.readout .ro-row:last-child { border-bottom: 0; }
.readout .ro-row b { flex: 0 0 38%; color: var(--ink); font-weight: 600; }
.readout .ro-row span { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: .82rem; }

.metrics { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1.3rem 0; }
.metrics .m .v {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.85rem; font-weight: 700;
  color: var(--ink); line-height: 1; letter-spacing: -.04em;
}
.metrics .m .k {
  font-family: 'IBM Plex Mono', monospace; font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-top: .3rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chips span {
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .04em;
  background: var(--paper); border: 1px solid var(--line);
  padding: .28rem .65rem; border-radius: 2px; color: var(--slate-2);
}

/* ---------- Cards ---------- */
.card-flat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 1.5rem; height: 100%; transition: border-color .16s ease, transform .16s ease;
}
.card-flat:hover { border-color: var(--teal); transform: translateY(-3px); }
.card-flat h4 { margin-bottom: .45rem; }
.card-flat p { color: var(--muted); font-size: .92rem; margin-bottom: 0; }

.badge-card { text-align: center; }
.badge-card img { height: 72px; width: auto; object-fit: contain; margin-bottom: .85rem; }

/* Numbered mechanism cards */
.mech {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 1.45rem; height: 100%; position: relative;
}
.mech .n {
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem; font-weight: 600;
  color: var(--teal); letter-spacing: .1em; display: block; margin-bottom: .6rem;
}
.mech h4 { font-size: 1.04rem; margin-bottom: .4rem; }
.mech p { color: var(--muted); font-size: .91rem; margin: 0; }

/* Ingredient rows — dosage comparison, the analytical signature */
.ing-row {
  display: grid; grid-template-columns: 1fr auto; gap: .6rem 1.2rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.ing-row:last-child { border-bottom: 0; }
.ing-row .ing-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--ink); font-size: 1.04rem; }
.ing-row .ing-latin { font-size: .8rem; color: var(--muted); font-style: italic; }
.ing-row .ing-desc { grid-column: 1 / -1; font-size: .91rem; color: var(--muted); margin: .35rem 0 0; }
.ing-row .ing-dose {
  font-family: 'IBM Plex Mono', monospace; font-size: .74rem; text-align: right;
  color: var(--slate-2); white-space: nowrap; line-height: 1.6;
}
.ing-row .ing-dose b { display: block; color: var(--ink); }
.grade {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; padding: .14rem .5rem;
  border-radius: 2px; margin-left: .5rem; vertical-align: middle;
}
.g-good { background: var(--teal-lt); color: var(--teal-dk); }
.g-mid  { background: var(--mist-2); color: var(--slate-2); }
.g-low  { background: var(--signal-lt); color: #B54424; }

/* ---------- Notices ---------- */
.note {
  background: var(--teal-glow); border: 1px solid #BFE3E6; border-left: 3px solid var(--teal);
  border-radius: var(--rad); padding: 1.05rem 1.25rem; font-size: .91rem; color: #14484D;
}
.note strong { color: #0A3B40; }
.warn {
  background: var(--signal-lt); border: 1px solid #F6CDBE; border-left: 3px solid var(--signal);
  border-radius: var(--rad); padding: 1.05rem 1.25rem; font-size: .91rem; color: #7A3418;
}
.warn strong { color: #5C2611; }
.warn a { color: #A8401D; text-decoration: underline; }

/* ---------- Experience cards ---------- */
.exp {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 1.4rem; height: 100%; border-top: 3px solid var(--teal);
}
.exp.critical { border-top-color: var(--signal); }
.exp .lbl {
  font-family: 'IBM Plex Mono', monospace; font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dk); display: block; margin-bottom: .5rem;
}
.exp.critical .lbl { color: var(--signal); }
.exp h4 { font-size: 1.02rem; margin-bottom: .45rem; }
.exp p { font-size: .91rem; color: var(--muted); margin: 0; }

/* ---------- Pricing ---------- */
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad-lg);
  padding: 1.9rem 1.4rem 1.5rem; text-align: center; height: 100%; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.best { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan .flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-family: 'IBM Plex Mono', monospace;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 100px; white-space: nowrap;
}
.plan h3 { font-size: 1.32rem; margin-bottom: .15rem; }
.plan .supply {
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .95rem;
}
.plan img.p-img { max-height: 180px; width: auto; margin: 0 auto 1rem; display: block; }
.plan .amt {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700;
  color: var(--ink); line-height: 1; letter-spacing: -.04em;
}
.plan .amt small { font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .meta { font-size: .85rem; color: var(--muted); margin: .5rem 0 1.05rem; }
.plan .meta b { color: var(--teal-dk); }
.plan .pay { max-width: 165px; margin: .85rem auto 0; display: block; opacity: .75; }

/* ---------- Bonuses ---------- */
.bonus {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 1.3rem; height: 100%; text-align: center;
}
.bonus img { max-height: 158px; width: auto; margin: 0 auto .9rem; display: block; }
.bonus .n {
  font-family: 'IBM Plex Mono', monospace; font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dk); margin-bottom: .3rem;
}
.bonus h4 { font-size: .98rem; margin-bottom: .45rem; }
.bonus p { font-size: .86rem; color: var(--muted); margin-bottom: .65rem; }
.bonus .val {
  font-family: 'IBM Plex Mono', monospace; font-size: .76rem; color: var(--slate-2);
  border-top: 1px solid var(--line-soft); padding-top: .6rem;
}

/* ---------- Benefits ---------- */
.ben { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.ben:last-child { border-bottom: 0; }
.ben .k {
  flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--teal); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: .76rem; font-weight: 600; color: var(--teal-dk);
}
.ben h4 { font-size: 1.02rem; margin-bottom: .28rem; }
.ben p { font-size: .91rem; color: var(--muted); margin: 0; }

/* ---------- Guarantee ---------- */
.guar {
  background: var(--paper); border: 1px solid var(--teal); border-radius: var(--rad-lg);
  padding: 1.9rem; text-align: center;
}
.guar img { max-width: 160px; margin-bottom: 1rem; }

/* ---------- FAQ ---------- */
.accordion-item { border: 1px solid var(--line); border-radius: var(--rad) !important; margin-bottom: .6rem; overflow: hidden; }
.accordion-button {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem;
  color: var(--ink); background: var(--paper); padding: 1rem 1.2rem;
}
.accordion-button:not(.collapsed) { background: var(--teal-glow); color: var(--ink); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(14,124,134,.28); border-color: var(--teal); }
.accordion-body { font-size: .93rem; color: var(--muted); padding: 0 1.2rem 1.15rem; }

/* ---------- References ---------- */
.refs { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.refs li {
  counter-increment: r; position: relative; padding-left: 2.4rem;
  margin-bottom: .75rem; font-size: .89rem; color: var(--muted);
}
.refs li::before {
  content: "[" counter(r) "]"; position: absolute; left: 0; top: 0;
  font-family: 'IBM Plex Mono', monospace; font-weight: 500; color: var(--teal); font-size: .8rem;
}
.refs a { color: var(--teal-dk); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Blog ---------- */
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 1.4rem; height: 100%; display: flex; flex-direction: column;
  transition: border-color .16s ease, transform .16s ease;
}
.pcard:hover { border-color: var(--teal); transform: translateY(-3px); }
.pcard .cat {
  font-family: 'IBM Plex Mono', monospace; font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dk); margin-bottom: .55rem;
}
.pcard h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover { color: var(--teal-dk); }
.pcard p { font-size: .89rem; color: var(--muted); flex-grow: 1; }
.pcard .more { font-family: 'IBM Plex Mono', monospace; font-size: .76rem; color: var(--teal-dk); text-decoration: none; }
.pcard .more:hover { color: var(--signal); }

.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.55rem; margin: 2.1rem 0 .85rem; }
.article h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.article p, .article li { font-size: 1.01rem; line-height: 1.78; }
.article ul, .article ol { margin-bottom: 1.15rem; padding-left: 1.25rem; }
.article li { margin-bottom: .45rem; }
.article a { color: var(--teal-dk); text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--signal); }
.article img { border-radius: var(--rad); margin: 1.4rem 0; }
.article blockquote {
  border-left: 3px solid var(--teal); padding: .25rem 0 .25rem 1.25rem;
  margin: 1.4rem 0; color: var(--slate); font-size: 1.03rem;
}
.meta-line {
  font-family: 'IBM Plex Mono', monospace; font-size: .74rem; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: 1.7rem;
}
.toc {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 1.15rem 1.35rem; margin: 1.5rem 0 1.9rem;
}
.toc h4 {
  font-family: 'IBM Plex Mono', sans-serif; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal-dk); margin-bottom: .6rem;
}
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { font-size: .9rem; margin-bottom: .3rem; }

.cta-band {
  background: var(--ink); color: #AEB9CC; border-radius: var(--rad-lg);
  padding: 1.6rem; margin: 1.9rem 0; text-align: center;
}
.cta-band h4 { color: var(--paper); margin-bottom: .55rem; }
.cta-band p { font-size: .92rem; margin-bottom: 1rem; }

/* ---------- Breadcrumb / page head ---------- */
.crumb {
  background: var(--mist); border-bottom: 1px solid var(--line);
  padding: .7rem 0; font-family: 'IBM Plex Mono', monospace; font-size: .74rem;
}
.crumb a { color: var(--teal-dk); text-decoration: none; }
.crumb a:hover { color: var(--signal); }
.crumb .sep { color: var(--line); margin: 0 .4rem; }
.crumb .cur { color: var(--muted); }

.page-head {
  background: linear-gradient(180deg, var(--mist) 0%, #FBFCFD 100%);
  padding: clamp(2rem, 4.5vw, 3.4rem) 0; border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .7rem; }
.page-head p { color: var(--muted); font-size: 1.01rem; max-width: 700px; margin-bottom: 0; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.3rem; margin: 1.9rem 0 .7rem; }
.legal p, .legal li { font-size: .96rem; color: var(--slate); }
.legal ul { padding-left: 1.25rem; margin-bottom: 1.1rem; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #8D9AB0; padding: 3.2rem 0 0; font-size: .89rem; }
.foot h5 {
  color: var(--paper); font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .95rem;
}
.foot .fb {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem;
  color: var(--paper); display: block; margin-bottom: .7rem; letter-spacing: -.03em;
}
.foot .fb span { color: var(--teal); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { margin-bottom: .5rem; }
.foot a { color: #8D9AB0; text-decoration: none; }
.foot a:hover { color: var(--teal-lt); }
.foot-trust {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.4rem; padding: 1.5rem 0;
}
.foot-trust span {
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem;
  border: 1px solid rgba(255,255,255,.14); padding: .26rem .7rem; border-radius: 2px; color: #A4B0C4;
}
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0 6.2rem;
  font-size: .78rem; color: #7A879D; text-align: center;
}
.foot-legal p { margin-bottom: .55rem; }

/* ---------- Sticky bar ---------- */
.sbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  background: var(--ink); border-top: 2px solid var(--teal);
  padding: .55rem 0; box-shadow: 0 -4px 18px rgba(16,19,28,.26);
}
.sbar .inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.sbar .txt { color: #AEB9CC; font-size: .86rem; margin: 0; }
.sbar .txt b { color: var(--teal-lt); font-family: 'IBM Plex Mono', monospace; }
.sbar .btn { padding: .52rem 1.25rem; font-size: .9rem; }

/* ---------- Utilities ---------- */
.lnk { color: var(--teal-dk); text-decoration: underline; text-underline-offset: 2px; }
.lnk:hover { color: var(--signal); }
.aff-box {
  font-size: .79rem; color: var(--muted); background: var(--mist);
  border: 1px solid var(--line); border-radius: var(--rad); padding: .8rem 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--paper); border-top: 1px solid var(--line); margin-top: .55rem; padding: .75rem 0; }
  .navbar .nav-link { padding: .55rem .2rem !important; }
  .hero-media { position: static; }
}
@media (max-width: 767.98px) {
  body { font-size: .96rem; }
  .hero { padding-top: 1.4rem; }
  .metrics { gap: 1rem; }
  .metrics .m .v { font-size: 1.5rem; }
  .readout .ro-row { flex-direction: column; gap: .05rem; }
  .readout .ro-row b { flex: none; }
  .ing-row { grid-template-columns: 1fr; }
  .ing-row .ing-dose { text-align: left; }
  .sbar .txt { display: none; }
  .sbar .btn { width: 100%; }
  .foot-legal { padding-bottom: 5.2rem; }
  .plan img.p-img { max-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn:hover, .card-flat:hover, .plan:hover, .pcard:hover { transform: none; }
}

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
