/* Nervora - clean clinical blue theme. Section-grouped vanilla CSS, no prefixing. */

:root {
  --blue: #1683c9;
  --blue-deep: #0d5f9e;
  --blue-dark: #0c3a5e;
  --blue-bright: #2ba0e3;
  --blue-tint: #e9f5fc;
  --blue-tint2: #d6ebf9;
  --coral: #ff5a5f;
  --ink: #1d2b38;
  --ink-soft: #54616d;
  --line: #dbe7f0;
  --bg: #ffffff;
  --card: #ffffff;
  --good: #1f9d57;
  --strike: #9aa7b2;
  --maxw: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(13, 95, 158, 0.14);
  --shadow-soft: 0 8px 22px rgba(13, 95, 158, 0.09);
  --head: "Poppins", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.16;
  color: var(--blue-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); font-weight: 700; color: var(--blue); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.26rem; }

p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 70px 0; }
.section-tight { padding: 46px 0; }
.section.alt { background: var(--blue-tint); }
.section.plum { background: var(--blue-deep); color: #e7f3fb; }
.section.plum h2, .section.plum h3 { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}
.section.plum .eyebrow { color: #aedcf6; }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---- Top contact ribbon ---- */
.ribbon {
  background: var(--blue);
  color: #eaf6ff;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 9px 14px;
}
.ribbon strong { color: #fff; font-weight: 600; }

/* ---- Header ---- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.45rem; color: var(--blue-deep); }
.brand:hover { text-decoration: none; }
.brand .glyph {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05rem;
}
.brand small { display: block; font-family: var(--body); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--blue); text-transform: uppercase; font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--blue); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(22,131,201,.34); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; background: var(--blue-deep); box-shadow: 0 14px 30px rgba(13,95,158,.42); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-ghost:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-deep); margin: 5px 0; transition: .2s; }

/* ---- Breadcrumb ---- */
.crumbs { background: var(--blue-tint); border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.crumbs .wrap { padding-top: 11px; padding-bottom: 11px; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { color: var(--blue-deep); font-weight: 600; }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, var(--blue-tint) 0%, var(--blue-tint) 62%, #fff 62%, #fff 100%); overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 64px 0 70px; }
.hero .tagline { font-family: var(--head); font-weight: 600; color: var(--blue); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.hero .lead {
  background: #fff; border-radius: var(--radius-lg); padding: 22px 26px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line); max-width: 100%;
}
.hero .lead strong, .hero .lead b { color: var(--blue-deep); }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 0.82rem; font-weight: 500; box-shadow: var(--shadow-soft);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hero-art { position: relative; text-align: center; }
.hero-art img { margin: 0 auto; filter: drop-shadow(0 26px 38px rgba(13,95,158,.22)); max-height: 470px; position: relative; z-index: 1; }
.hero-art .halo {
  position: absolute; inset: 6% 8% auto 8%; height: 76%;
  background: radial-gradient(circle, rgba(43,160,227,.28), transparent 66%);
  filter: blur(12px); z-index: 0;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---- Generic grids ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-soft);
}
.card h3 { color: var(--blue-deep); }

/* ---- Pillars / formula ---- */
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-soft); border-top: 4px solid var(--blue); }
.pillar .num { font-family: var(--head); font-size: 0.78rem; letter-spacing: .14em; color: var(--blue); font-weight: 600; }
.dose-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.dose-row:last-child { border-bottom: 0; }
.dose-row .amt { font-weight: 600; color: var(--blue-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: .03em;
  background: var(--blue-tint); color: var(--blue-deep); padding: 4px 11px; border-radius: 999px; margin: 3px 4px 0 0;
}

/* ---- Numbered commitments ---- */
.commit { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.commit .item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-soft); }
.commit .item b { display: block; font-family: var(--head); font-size: 2rem; color: var(--blue); line-height: 1; margin-bottom: 8px; font-weight: 700; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; text-align: center; position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.price-card.popular { border: 2px solid var(--blue); transform: translateY(-12px); box-shadow: var(--shadow); }
.price-card .flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: .06em; padding: 6px 18px; border-radius: 999px; text-transform: uppercase;
}
.price-card .qty { font-family: var(--head); font-size: 1.35rem; color: var(--blue-deep); font-weight: 600; }
.price-card .supply { color: var(--ink-soft); font-size: 0.9rem; }
.bottle-stack { height: 160px; display: flex; align-items: flex-end; justify-content: center; margin: 14px 0; }
.bottle-stack img { max-height: 160px; filter: drop-shadow(0 10px 16px rgba(13,95,158,.18)); }
.price-card .per { font-size: 2.7rem; font-family: var(--head); color: var(--blue-deep); font-weight: 700; line-height: 1; }
.price-card .per span { font-size: 0.95rem; color: var(--ink-soft); font-family: var(--body); font-weight: 400; }
.price-card .was { color: var(--strike); text-decoration: line-through; font-size: 0.95rem; }
.price-card .total { font-weight: 600; margin: 6px 0; }
.price-card .ship { font-size: 0.85rem; color: var(--good); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0; text-align: left; font-size: 0.9rem; }
.price-card ul li { padding: 6px 0 6px 26px; position: relative; }
.price-card ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.save-line { font-family: var(--head); font-size: 1.45rem; color: var(--blue); font-weight: 600; }
.ship-note { color: var(--ink-soft); font-size: 0.9rem; }

/* ---- Reviews ---- */
.rating-head { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.rating-head .big { font-family: var(--head); font-size: 3rem; color: var(--blue-deep); line-height: 1; font-weight: 700; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.1rem; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-soft);
}
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.review .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; }
.review .verified { font-size: 0.74rem; color: var(--good); font-weight: 600; }
.review .meta { font-size: 0.84rem; color: var(--ink-soft); }

/* ---- Reviews page extras ---- */
.recommend-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px; margin-top: 26px; }
.recommend-row .stat { text-align: center; }
.recommend-row .stat b { display: block; font-family: var(--head); font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1; }
.recommend-row .stat span { font-size: 0.86rem; color: var(--ink-soft); }

.rating-bars { max-width: 540px; margin: 0 auto; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.88rem; }
.bar-row .lbl { color: var(--ink-soft); white-space: nowrap; }
.bar-row .track { background: var(--blue-tint2); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-row .fill { background: var(--blue); height: 100%; border-radius: 999px; }
.bar-row .pct { text-align: right; font-weight: 600; color: var(--blue-deep); font-variant-numeric: tabular-nums; }

.mention-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mention { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-soft); }
.mention b { font-family: var(--head); color: var(--blue-deep); font-size: 1.05rem; }
.mention .count { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }
.mention .mbar { height: 6px; background: var(--blue-tint2); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.mention .mbar i { display: block; height: 100%; background: var(--blue-bright); border-radius: 999px; }

.timeline-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: tl; }
.timeline-strip .tl { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow-soft); }
.timeline-strip .tl b { display: block; font-family: var(--head); font-size: 1.5rem; color: var(--blue); font-weight: 700; }
.timeline-strip .tl span { font-size: 0.84rem; color: var(--ink-soft); }

.review.spotlight { border: 2px solid var(--blue); padding: 32px; }
.review.spotlight p { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.review .helpful { margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); }
.review .verified-order { font-size: 0.74rem; color: var(--ink-soft); display: block; }
.brand-reply { margin-top: 16px; background: var(--blue-tint); border-radius: 12px; padding: 14px 18px; font-size: 0.9rem; }
.brand-reply strong { color: var(--blue-deep); display: block; margin-bottom: 4px; font-size: 0.82rem; }

.review-cols { columns: 3; column-gap: 24px; }
.review-cols .review { break-inside: avoid; margin-bottom: 24px; display: inline-block; width: 100%; }

@media (max-width: 900px) {
  .mention-grid, .timeline-strip { grid-template-columns: repeat(2, 1fr); }
  .review-cols { columns: 1; }
}
@media (max-width: 600px) {
  .mention-grid, .timeline-strip { grid-template-columns: 1fr; }
}

/* ---- FAQ ---- */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 22px; }
.faq-item summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.06rem; padding: 16px 0; list-style: none; color: var(--blue-deep); display: flex; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding-bottom: 16px; margin: 0; color: var(--ink-soft); }

/* ---- Prose (long-form / legal) ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--blue); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose .ref { font-size: 0.92rem; color: var(--ink-soft); }
.callout { background: var(--blue-tint); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 22px 0; }

/* ---- Trust badges row ---- */
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }

/* ---- Contact form ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--blue-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--body); font-size: 1rem; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-bright); border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---- Footer ---- */
.foot { background: var(--blue-dark); color: #aecbe0; font-size: 0.92rem; padding: 56px 0 30px; }
.foot a { color: #d4e6f3; }
.foot a:hover { color: #fff; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.foot h4 { color: #fff; font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--head); font-weight: 600; margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { margin-bottom: 9px; }
.foot .brand-blurb { max-width: 32ch; }
.foot .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 22px; font-size: 0.8rem; color: #7ea2bd; }
.foot .disclaimer { font-size: 0.8rem; color: #7ea2bd; margin-top: 16px; }
.foot .muted { color: #7ea2bd !important; }

/* ---- Helpers ---- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); flex-direction: column; align-items: flex-start;
    background: #fff; padding: 90px 28px; transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .hero { background: var(--blue-tint); }
  .hero .grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { order: -1; }
  .grid-2, .grid-3, .commit, .price-grid, .foot .cols { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
}
@media (max-width: 600px) {
  .section { padding: 50px 0; }
  body { font-size: 16px; }
}
