:root {
  --ink: #17212a;
  --muted: #5e6b73;
  --paper: #f5f7f2;
  --white: #ffffff;
  --line: #dbe2db;
  --red: #9e2f3c;
  --red-dark: #6f1f2b;
  --teal: #21706c;
  --navy: #163142;
  --gold: #d69a35;
  --green: #477d52;
  --shadow: 0 24px 70px rgba(20, 36, 48, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(245, 247, 242, 0.94);
  border-bottom: 1px solid rgba(219, 226, 219, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
  color: var(--muted);
  font-size: 0.9rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--red);
}

.nav-button {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 850;
}

.nav-button:hover {
  color: white;
  background: var(--red);
}

.nav-button.alt {
  background: var(--teal);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111d26;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.92;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 22, 30, 0.98) 0%, rgba(22, 49, 66, 0.86) 43%, rgba(22, 49, 66, 0.22) 72%, rgba(158, 47, 60, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 22, 30, 0.28), rgba(255, 255, 255, 0.04));
}

.hero-copy {
  position: relative;
  max-width: 930px;
  padding: 90px clamp(22px, 7vw, 96px) 122px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c56c;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 7.2vw, 7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.9rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 14px 0 0;
}

.lede {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-actions,
.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: #fbf7ec;
  color: #121d28;
}

.button.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.alert-band {
  padding: 16px clamp(20px, 5vw, 70px);
  background: var(--red);
  color: white;
  font-size: 0.98rem;
}

.section,
.band {
  padding: clamp(62px, 8vw, 104px) 0;
}

.band {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.prose {
  color: #2e3b43;
  font-size: 1.08rem;
}

.prose a {
  color: var(--red);
  font-weight: 850;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.value-grid,
.steps,
.shop-grid,
.validation-grid,
.evidence-grid {
  display: grid;
  gap: 16px;
}

.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-grid article,
.steps article,
.validation-grid a,
.evidence-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(20, 36, 48, 0.07);
}

.value-grid article {
  padding: 22px;
}

.evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evidence-grid article {
  padding: 24px;
  background: #fbfcf8;
}

.evidence-grid span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: steps;
}

.steps article {
  position: relative;
  min-height: 238px;
  padding: 24px;
}

.steps span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 950;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison > div {
  padding: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.comparison > div:nth-child(2) {
  background: var(--teal);
}

.comparison ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.comparison li + li {
  margin-top: 8px;
}

.bp-log-sheet {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid #ccd7d1;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.log-title {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: #17212a;
}

.log-title p,
.log-footer {
  color: #38444c;
  font-size: 0.93rem;
}

.bp-log-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.bp-log-table th,
.bp-log-table td {
  height: 54px;
  padding: 8px;
  border: 1px solid #aebbb5;
  text-align: left;
  vertical-align: top;
}

.bp-log-table thead th {
  height: auto;
  background: #edf3ef;
  color: #17212a;
  font-size: 0.82rem;
}

.bp-log-table small,
.bp-log-table span {
  display: block;
}

.bp-log-table small {
  color: var(--muted);
  font-size: 0.68rem;
}

.date-col {
  width: 12%;
}

.reading-col {
  width: 12%;
}

.pulse-col {
  width: 9%;
}

.notes-col {
  width: 31%;
}

.average-row th,
.average-row td {
  height: 46px;
  background: #f7faf8;
  font-weight: 850;
}

.shop-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.shop-grid a {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.shop-grid a:hover,
.validation-grid a:hover {
  border-color: var(--red);
  color: var(--red);
}

.small-warning {
  max-width: 840px;
  color: var(--muted);
  font-size: 0.95rem;
}

.validation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.validation-grid a {
  display: block;
  padding: 22px;
  text-decoration: none;
}

.validation-grid span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.validation-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.validation-grid p {
  color: var(--muted);
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.source-list a {
  color: var(--navy);
  font-weight: 760;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 30px clamp(20px, 5vw, 70px);
  background: #101b23;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: white;
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header,
  .split,
  .comparison {
    display: block;
  }

  nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .value-grid,
  .steps,
  .validation-grid,
  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comparison > div + div {
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 760px;
    align-items: end;
  }

  .hero img {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(12, 22, 30, 0.98) 0%, rgba(12, 22, 30, 0.86) 55%, rgba(12, 22, 30, 0.18) 100%),
      linear-gradient(90deg, rgba(158, 47, 60, 0.18), rgba(33, 112, 108, 0.14));
  }

  .hero-copy {
    padding: 80px 20px 48px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.5rem);
  }

  .value-grid,
  .steps,
  .shop-grid,
  .validation-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .bp-log-sheet {
    overflow-x: auto;
    padding: 16px;
  }

  .bp-log-table {
    min-width: 860px;
  }
}

@media print {
  @page {
    margin: 11mm;
  }

  body {
    background: white;
    color: black;
  }

  .site-header,
  .hero,
  .alert-band,
  .intro-section,
  #values,
  #evidence,
  #how,
  .compare-section,
  #buy,
  #validated,
  #sources,
  .site-footer,
  .section-heading,
  .print-actions {
    display: none !important;
  }

  .section,
  .container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .bp-log-sheet {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .bp-log-table {
    font-size: 10pt;
  }

  .bp-log-table th,
  .bp-log-table td {
    height: 52px;
    border-color: #555;
  }

  .log-title h3 {
    font-size: 18pt;
  }

  .log-title p,
  .log-footer {
    font-size: 9.5pt;
  }
}
