/* =========================================================
   betterwithin — all styling for the site
   Colors, fonts and spacing are set once here, at the top.
   Change a value here and it changes on every page.
   ========================================================= */

:root {
  /* Colors */
  --bg: #FFFFFF;          /* page background */
  --bg-alt: #F4F4F5;      /* rounded panels, table stripes */
  --line: #E4E4E7;        /* thin borders and dividers */
  --field: #8A8F96;       /* border of form boxes, dark enough to see */
  --ink: #1D1D1F;         /* headings and body text; footer background */
  --muted: #5F6368;       /* secondary text, captions, fine print */
  --red: #A11A22;         /* "softgel red": Buy buttons, links, accents */
  --red-dark: #7E141A;    /* Buy button on hover */
  --on-dark: #FFFFFF;     /* footer text */
  --on-dark-muted: #B8BCC2; /* footer secondary text */

  /* Font */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing */
  --page-max: 1520px;     /* widest the content gets */
  --gutter: 20px;         /* space at the left and right edges on a phone */
  --inset: 8px;           /* space around full-width rounded panels */
  --section: 72px;        /* space above and below each section on a phone */
  --radius: 8px;          /* rounded corners on small photos */
  --radius-lg: 16px;      /* rounded corners on panels and large photos */
}

@media (min-width: 860px) {
  :root {
    --gutter: 40px;
    --inset: 12px;
    --section: 112px;
  }
}

/* ---------- Fonts (Inter, files in fonts/) ---------- */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Basics ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 860px) { body { font-size: 17px; } }

::selection { background: var(--red); color: #fff; }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.15rem, 4.3vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.015em; }

p { margin: 0; }
p + p { margin-top: 1em; }

a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--red) 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: 100px; }
@media (max-width: 759px) { [id] { scroll-margin-top: 116px; } }

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }

/* A rounded panel that nearly reaches the edges of the screen */
.inset {
  margin-left: var(--inset);
  margin-right: var(--inset);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel { background: var(--bg-alt); }

/* Small uppercase label above a heading */
.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede { font-size: 1.1em; }
.muted { color: var(--muted); }
.fine { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

.head { max-width: 42rem; margin-bottom: 40px; }
.head h2 + p { margin-top: 16px; color: var(--muted); }
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 36px;
}
.head-row .head { margin-bottom: 0; }

.prose { max-width: 36em; }

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

/* ---------- Buttons and text links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn--small { min-height: 38px; padding: 8px 16px; font-size: 0.85rem; }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--bg-alt); color: var(--red-dark); }
.btn--line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--line:hover { background: var(--ink); color: #fff; }

.arrow-link { font-weight: 600; text-decoration: none; }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 30;
}
.skip:focus { left: 8px; top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 32px;
}
.logo { display: block; padding: 14px 0; }
.logo img { width: 152px; height: auto; }
.site-header .btn { min-height: 44px; padding: 10px 20px; font-size: 0.92rem; }

.site-nav {
  order: 3;               /* on a phone: its own row under logo and button */
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;   /* the four links spread across the phone's width */
  gap: 0 12px;
  padding: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); }

@media (min-width: 760px) {
  .site-nav { order: 0; width: auto; margin-left: auto; padding: 0; gap: 0 28px; }
  .site-header .btn { order: 1; }
  .logo { padding: 18px 0; }
}
@media (min-width: 1000px) {
  .site-nav { gap: 0 40px; font-size: 0.95rem; }
  .site-header .btn { min-height: 50px; padding: 12px 30px; font-size: 1rem; }
  .logo { padding: 22px 0; }
  .logo img { width: 204px; }
}

/* ---------- Opening slides ---------- */

.hero {
  position: relative;
  height: clamp(600px, 52vw, 780px);
  background: #000;
  color: #fff;
}
.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  --zoom: 1;
  transform: scale(var(--zoom));
}
/* Slow drift on the picture, so a still photo feels like film */
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .slide-img { animation: drift 9s ease-out both; }
  @keyframes drift {
    from { transform: scale(var(--zoom)); }
    to { transform: scale(calc(var(--zoom) * 1.06)); }
  }
}
.slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.3) 48%, rgba(0,0,0,0) 72%);
}
.slide-text {
  position: relative;
  height: 100%;
  padding: 40px 24px;
}
.slide-text .eyebrow { color: rgba(255,255,255,0.85); }
.hero-title {
  max-width: 13em;
  font-size: clamp(2.15rem, 4.3vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
}
.slide-text p { margin-top: 16px; max-width: 30em; color: rgba(255,255,255,0.92); }
.slide-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.slide-actions .arrow-link { color: #fff; }

/* On a phone the black-mirror picture sits under the words */
.slide--mirror .slide-img { top: auto; bottom: 0; height: 58%; }
.slide--mirror .slide-shade { display: none; }

@media (min-width: 860px) {
  .slide-text { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; }
  .slide-text p { margin-top: 20px; }
  .slide-shade { background: linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.42) 38%, rgba(0,0,0,0) 68%); }
  /* The softgel moves right, clear of the words */
  .slide--mirror .slide-img { top: 0; height: 100%; --zoom: 1.28; transform-origin: 0% 52%; }
  .slide--mirror .hero-title { max-width: 8.2em; }
  .slide--seeds .hero-title { max-width: 9.6em; }
  .slide--seeds .slide-img { --zoom: 1.2; transform-origin: 0% 50%; }
}
/* The water photo: keep the golden light in view on narrower screens */
.slide--water .slide-img { object-position: 62% 50%; }

/* The last slide, where the slides come to rest: the real pouch on a light panel */
.slide--product { background: var(--bg-alt); color: var(--ink); }
.product-text { position: relative; z-index: 1; padding: 36px 24px 0; }
.product-text .hero-title { font-size: clamp(1.9rem, 4vw, 3.5rem); }
.product-text p { margin-top: 12px; max-width: 30em; color: var(--muted); font-size: 0.95em; }
.product-text .slide-actions { margin-top: 18px; }
.product-text .arrow-link { color: var(--ink); }
/* "multiply" lets the photo's white background melt into the panel */
.product-img {
  position: absolute;
  right: 16px;
  bottom: 52px;
  width: auto;
  height: 37%;
  mix-blend-mode: multiply;
}
/* Tablets and narrow windows: words on the left, a large pouch on the right */
@media (min-width: 640px) and (max-width: 859px) {
  .product-text { width: 54%; padding-top: 44px; }
  .product-img { right: 3%; bottom: 8%; height: 72%; }
}
.hero--light .slide-dot::before { background: rgba(0,0,0,0.22); }
.hero--light .slide-dot.is-active::before { background: var(--ink); }
.hero--light .slide-pause { color: var(--ink); }
.hero--light .slide-dot:focus-visible, .hero--light .slide-pause:focus-visible { outline-color: var(--ink); }
@media (min-width: 860px) {
  .product-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 56%;
    padding: 72px 0 72px 56px;
  }
  .product-text p { margin-top: 20px; font-size: 1em; }
  .product-text .slide-actions { margin-top: 24px; }
  .product-img { right: 6%; bottom: 5%; height: 90%; }
}

.slide-controls {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slide-dot {
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.slide-dot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
}
.slide-dot.is-active::before { background: #fff; }
.slide-pause {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  display: none;
}
.js .slide-pause { display: block; }
.slide-pause svg { display: block; width: 16px; height: 16px; margin: 4px; }
.slide-pause .i-play { display: none; }
.slide-pause.is-paused .i-play { display: block; }
.slide-pause.is-paused .i-pause { display: none; }
.slide-dot:focus-visible, .slide-pause:focus-visible { outline-color: #fff; }

@media (min-width: 860px) {
  .slide-controls { left: 56px; bottom: 32px; }
}

/* ---------- Moving line of facts ---------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex: none;
}
.marquee li {
  padding: 0 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee li span { color: var(--muted); font-weight: 400; margin-left: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide-left 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes slide-left { to { transform: translateX(-50%); } }
}
/* Larger, grey version: the standards */
.marquee--big { padding: 40px 0; border: 0; }
.marquee--big li {
  padding: 0 36px;
  color: #8A8F96;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}
.marquee--big .marquee-track { animation-duration: 46s; }

/* ---------- Statement and numbers ---------- */

.statement-block { padding: var(--section) 0 64px; }
.statement {
  max-width: 23em;
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.22;
}
.statement-block .btn { margin-top: 28px; }

.numbers {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.numbers li { display: flex; flex-direction: column; }
.numbers strong {
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--field);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.numbers .npn strong { font-size: clamp(1.15rem, 2.05vw, 1.75rem); line-height: 1.9; letter-spacing: -0.03em; }
.numbers b { margin-top: 14px; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.numbers span { margin-top: 4px; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
@media (min-width: 860px) {
  .numbers { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
@media (max-width: 859px) { .numbers .npn strong { line-height: 1.55; } }

/* ---------- Research tabs and bars ---------- */

.evidence { padding: 40px 20px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tab-list button {
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,0.05);
  color: var(--muted);
  font: inherit;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tab-list button[aria-selected="true"] { background: #fff; color: var(--ink); }
.tab-list button:hover { color: var(--ink); }
html:not(.js) .tab-list { display: none; }

.ev-panel { display: grid; gap: 32px; margin-top: 32px; }
html:not(.js) .ev-panel + .ev-panel { padding-top: 32px; border-top: 1px solid var(--line); }
.ev-panel[hidden] { display: none; }
.ev-title { font-size: clamp(1.2rem, 1.9vw, 1.55rem); letter-spacing: -0.02em; }
.ev-copy p { margin-top: 12px; color: var(--muted); font-size: 0.97em; }
.ev-source { margin-top: 20px; }
.ev-source a { font-weight: 600; }
.ev-note { margin-top: 32px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.bars { display: grid; gap: 22px; align-self: center; }
.bar-caption { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.bar { display: grid; gap: 6px; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.92rem; }
.bar-head strong {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-track { display: block; height: 22px; border-radius: 6px; background: rgba(0,0,0,0.05); overflow: hidden; }
.bar-fill {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: 6px;
  background: var(--red);
  transform-origin: left center;
}
.bar-fill--plain { background: #fff; box-shadow: inset 0 0 0 1px var(--field); }
@media (prefers-reduced-motion: no-preference) {
  .ev-panel:not([hidden]) .bar-fill { animation: grow 0.9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (min-width: 860px) {
  .evidence { padding: 64px 56px; }
  .ev-panel { grid-template-columns: 5fr 6fr; gap: 80px; margin-top: 40px; }
}

/* ---------- Food or direct ---------- */

.compare-grid { display: grid; gap: 40px; align-items: center; }
.compare-grid img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) { .compare-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.compare th, .compare td { padding: 16px 16px 16px 0; text-align: left; vertical-align: top; border-top: 1px dotted var(--field); }
.compare thead th { border-top: 0; padding-top: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.compare thead td { border-top: 0; }
.compare tbody th { font-weight: 600; width: 30%; }
.compare td { color: var(--muted); width: 35%; }
.compare .ours { color: var(--ink); font-weight: 600; }
.compare thead .ours { color: var(--red); }
@media (max-width: 620px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare tr { padding: 16px 0; border-top: 1px dotted var(--field); }
  .compare th, .compare td { padding: 0; border: 0; }
  .compare td { margin-top: 8px; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}

/* ---------- Sliders ---------- */

.slider-arrows { display: flex; gap: 8px; }
html:not(.js) .slider-arrows { display: none; }
.slider-arrows button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.slider-arrows button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.slider-arrows button:disabled { opacity: 0.25; cursor: default; }
.slider-track {
  display: flex;
  gap: 16px;
  margin: 0;
  /* the same space on both sides as the headings have, so the row starts and ends in line with them
     (100%, not 100vw, which includes the scrollbar) */
  padding: 0 max(var(--gutter), calc((100% - var(--page-max)) / 2)) 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100% - var(--page-max)) / 2));
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > li { flex: 0 0 min(78vw, 392px); scroll-snap-align: start; }
/* wider screens: whole cards fill the row exactly (3, then 4 across; 16px = the gap) */
@media (min-width: 760px)  {
  /* the row itself stops at the page edges, so a card waiting to slide in stays hidden */
  .slider-track { margin: 0 max(var(--gutter), calc((100% - var(--page-max)) / 2)); padding: 0 0 8px; scroll-padding-left: 0; }
  .slider-track > li { flex-basis: calc((100% - 2 * 16px) / 3); }
}
@media (min-width: 1200px) { .slider-track > li { flex-basis: calc((100% - 3 * 16px) / 4); } }

/* Card: photo, then words below */
.card-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 5; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.slider-track li:hover .card-photo img { transform: scale(1.04); }
.card-photo--white { background: #fff; border: 1px solid var(--line); }
.card-photo--white img { object-fit: contain; padding: 20px; }
.card-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-body h3 { margin-top: 16px; font-size: 1.05rem; }
.card-body p { margin-top: 4px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* Card: words on the photo */
.tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); aspect-ratio: 3 / 4; color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.slider-track li:hover .tile img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.76) 0%, rgba(0,0,0,0.42) 32%, rgba(0,0,0,0) 60%); }
.tile-text { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; }
.tile-text h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.tile-text p { margin-top: 8px; color: rgba(255,255,255,0.92); font-size: 0.92rem; line-height: 1.45; }

/* Card: a study */
.study-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.study-card .eyebrow { margin-bottom: 20px; }
.study-card h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.22; }
.study-card p { margin-top: 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.study-card .card-foot { margin-top: auto; padding-top: 24px; }
.study-card cite { font-style: normal; font-weight: 600; font-size: 0.9rem; }
.study-card .fine { margin-top: 6px; }
.slider-track--studies { align-items: stretch; }

/* ---------- How to take it ---------- */

.howto { display: grid; }
.howto-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 5; }
.howto-text { padding: 40px 20px; }
.howto-text > p { margin-top: 12px; color: var(--muted); }
@media (min-width: 720px) { .howto-photo img { aspect-ratio: 1672 / 941; } }
.howto-text .facts-list { margin-top: 24px; }
@media (min-width: 960px) {
  .howto-text { padding: 64px 56px; display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
  .howto-text .facts-list { margin-top: 0; }
}

.facts-list { margin: 32px 0 0; padding: 0; }
.facts-list div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px dotted var(--field);
}
.facts-list div:last-child { border-bottom: 1px dotted var(--field); }
.facts-list dt { font-weight: 600; font-size: 0.95em; }
.facts-list dd { margin: 0; color: var(--muted); font-size: 0.95em; }
@media (max-width: 420px) {
  .facts-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Trust list ---------- */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 48px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px dotted var(--field);
  font-weight: 600;
  line-height: 1.4;
}
.checks li span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9em; margin-top: 2px; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--red); }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.after-list { margin-top: 32px; }
.checks--spaced { margin-top: 48px; }

/* ---------- FAQ ---------- */

.side-head { display: grid; gap: 32px; }
@media (min-width: 860px) {
  .side-head { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .side-head .side-title { position: sticky; top: 112px; }
}
.faq details { border-top: 1px dotted var(--field); }
.faq details:last-child { border-bottom: 1px dotted var(--field); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .study summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after, .study[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 40em; }

/* FAQ page: the title at the left, each question a white card at the right */
.faq-panel { padding: 48px 20px; }
.faq-grid { display: grid; gap: 40px; align-items: start; }
.faq-panel .lede { margin-top: 20px; max-width: 24em; color: var(--muted); }
.faq-more { padding-top: 24px; border-top: 1px solid var(--line); max-width: 24em; }
.faq--cards { display: grid; gap: 12px; }
.faq--cards details,
.faq--cards details:last-child {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.faq--cards summary { padding: 22px 20px; font-size: 1.05rem; }
.faq--cards details p { padding: 0 20px 24px; max-width: none; }
.faq--cards summary:hover { color: var(--red); }
@media (min-width: 860px) {
  .faq-panel { padding: 88px 56px 96px; }
  .faq-grid { grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; column-gap: 96px; row-gap: 0; }
  .faq--cards { grid-column: 2; grid-row: 1 / span 2; }
  .faq-more { grid-column: 1; grid-row: 2; align-self: start; margin-top: 32px; }
  .faq--cards { gap: 16px; }
  .faq--cards summary { padding: 28px 32px; font-size: 1.12rem; }
  .faq--cards details p { padding: 0 32px 30px; font-size: 1.02rem; }
}

/* ---------- Closing panel on the red photo ---------- */

.closing {
  position: relative;
  padding: 64px 0 0;
  min-height: clamp(620px, 52vw, 760px);
  background: #6d0509;
  color: #fff;
  text-align: center;
}
.closing > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.closing .wrap { position: relative; }
.closing h2 { margin: 0 auto; }
.closing p { margin: 16px auto 0; color: rgba(255,255,255,0.92); max-width: 32em; }
.closing .btn { margin-top: 28px; }
@media (min-width: 860px) { .closing { padding-top: 88px; } }

/* A plainer closing panel, without a photo */
.closing--plain { min-height: 0; padding: 72px 0; background: var(--bg-alt); color: var(--ink); }
.closing--plain p { color: var(--muted); }

/* ---------- Page opening on inner pages: words beside a photo ---------- */

.doc-cover { display: grid; }
.doc-cover-text { padding: 40px 20px; align-self: center; }
.doc-cover .lede { margin-top: 20px; max-width: 30em; color: var(--muted); }
.doc-cover-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
@media (min-width: 960px) {
  .doc-cover { grid-template-columns: 1fr 1fr; min-height: min(78vh, 760px); }
  .doc-cover-text { padding: 72px 56px; }
  .doc-cover-img { position: relative; }
  .doc-cover-img img { position: absolute; inset: 0; aspect-ratio: auto; }
}

/* Links that jump down the page, kept in view while scrolling */
.jump-bar {
  position: sticky;
  top: 65px;              /* = header height; see also the two rules below .jump */
  z-index: 10;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
/* The links run across the full width, lined up with the opening panel's text */
.jump-inner { margin: 0 var(--inset); padding: 0 20px; }
.jump {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 960px) {
  .jump-inner { padding: 0 56px; }
  .jump { padding: 20px 0; font-size: 0.95rem; }
}
.jump::-webkit-scrollbar { display: none; }
.jump a { color: var(--ink); text-decoration: none; }
.jump a:hover { color: var(--red); }
@media (max-width: 759px) { .jump-bar { top: 95px; } }
@media (min-width: 1000px) { .jump-bar { top: 84px; } }
/* On a page with the jump bar, links land below both the header and the bar */
main:has(.jump-bar) [id] { scroll-margin-top: 170px; }
@media (max-width: 759px) { main:has(.jump-bar) [id] { scroll-margin-top: 165px; } }

/* ---------- Quality & Science page ---------- */

.split { display: grid; gap: 40px; align-items: center; }
.split .photo img { border-radius: var(--radius-lg); width: 100%; }
/* a tall photo never grows taller than about the screen; it keeps its shape and sits at the outer edge */
@media (min-width: 860px) {
  .split .photo img { width: auto; max-width: 100%; max-height: min(84vh, 880px); }
  .split--photo-right .photo img { margin-left: auto; }
}
.split--top { align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split--photo-right .photo { order: 2; }
  .split--label { grid-template-columns: 1.25fr 0.75fr; gap: 64px; }
}

.licence-panel { padding: 40px 20px; }
.big-number {
  margin-top: 24px;
  font-size: clamp(2rem, 5.4vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.prose p { color: var(--muted); }
.prose .after-text { margin-top: 24px; }
@media (min-width: 860px) { .licence-panel { padding: 64px 56px; } }

.facts-table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.facts-table tr { display: block; padding: 16px 0; border-top: 1px dotted var(--field); }
.facts-table tr:last-child { border-bottom: 1px dotted var(--field); }
.facts-table th, .facts-table td { display: block; padding: 0; text-align: left; vertical-align: top; }
.facts-table th { margin-bottom: 4px; font-weight: 600; }
.facts-table td { color: var(--muted); }
.facts-table td strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (min-width: 560px) {
  .facts-table tr { display: table-row; padding: 0; border-top: 0; }
  .facts-table tr:last-child { border-bottom: 0; }
  .facts-table th, .facts-table td {
    display: table-cell;
    padding: 18px 0;
    border-top: 1px dotted var(--field);
  }
  .facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 1px dotted var(--field); }
  .facts-table th { width: 11em; margin: 0; padding-right: 24px; }
}

.wide-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 860px) { .wide-photo img { aspect-ratio: 21 / 9; } }

/* Text blocks in the science section */
.three-up { display: grid; gap: 12px; }
.three-up > div { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-alt); }
.three-up h3 { margin-bottom: 12px; font-size: 1.25rem; letter-spacing: -0.02em; }
.three-up p { color: var(--muted); font-size: 0.97em; }
@media (min-width: 860px) { .three-up { grid-template-columns: repeat(3, 1fr); } }

/* Study entries that open and close */
.head p + p { margin-top: 16px; color: var(--muted); }
.studies { border-bottom: 1px dotted var(--field); }
.study { border-top: 1px dotted var(--field); }
.study summary {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 32px;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.study summary::-webkit-details-marker { display: none; }
.study summary::after { grid-column: 2; grid-row: 1; }
.study-tag {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.study h3 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.28; letter-spacing: -0.02em; max-width: 44em; }
.study h3 a { color: var(--ink); text-decoration: none; }
.study h3 a:hover { color: var(--red); text-decoration: underline; }
.study-source { margin-top: 8px; color: var(--muted); font-size: 0.9em; }
.study-source cite { font-style: italic; }
.facts-list--study { margin: 0 0 32px; max-width: 56rem; }
.facts-list--study div { grid-template-columns: 10em 1fr; gap: 20px; }
.facts-list--study dd p + p { margin-top: 0.7em; }
@media (max-width: 640px) {
  .facts-list--study div { grid-template-columns: 1fr; gap: 4px; }
}

.note {
  max-width: 56rem;
  margin-top: 56px;
  color: var(--muted);
  font-size: 0.9em;
}
.note h3 { margin-bottom: 10px; color: var(--ink); font-size: 1rem; }

/* ---------- Our story page ---------- */

/* The image's own text stays centred; a phone shows the middle, taller */
.story-image { background: #000; }
.story-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (min-width: 720px) { .story-image img { aspect-ratio: 1464 / 600; } }

.story { padding: var(--section) 0; }
.story-grid { display: grid; gap: 28px; }
.story p { color: var(--muted); }
.story .statement { color: var(--ink); max-width: 20em; }
@media (min-width: 860px) {
  .story-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .story-grid > div { max-width: 36em; }
}

.stand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: stand;
}
.stand-list li {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  counter-increment: stand;
}
.stand-list li::before {
  content: "0" counter(stand);
  display: block;
  margin-bottom: 32px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.stand-list h3 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -0.02em; }
.stand-list p { color: var(--muted); font-size: 0.95em; }
@media (min-width: 720px) { .stand-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .stand-list { grid-template-columns: repeat(4, 1fr); } }

.canadian-text { margin-top: 20px; }

/* ---------- Contact page ---------- */

.contact-panel { padding: 40px 20px; }
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-panel .lede { margin-top: 20px; max-width: 26em; color: var(--muted); }
.contact-email { margin-top: 28px; }
.contact-email strong { font-weight: 600; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 160px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }

button.btn { border: 0; font-family: inherit; cursor: pointer; }
.contact-form .fine { margin-top: 16px; }

/* The box only spam programs fill in: moved off the screen */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Shown only when the address ends in #sent, #check or #not-sent */
.form-note {
  display: none;
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.form-note[id] { scroll-margin-top: 120px; }   /* keeps the box clear of the header on a phone */
.form-note:target { display: block; }
.form-note strong { font-weight: 600; }

@media (min-width: 860px) {
  .contact-panel { padding: 72px 56px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--inset);
  margin-bottom: var(--inset);
  background: var(--ink);
  color: var(--on-dark);
  padding: 56px 0 32px;
  font-size: 1rem;
}
.main-end { padding-bottom: var(--inset); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--on-dark-muted); }

/* Logo and tagline on the left; the three link columns on the right */
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; }
.footer-brand { grid-column: 1 / -1; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 168px; }
.footer-tagline {
  max-width: 12em;
  margin-top: 24px;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.footer-col h2 {
  margin-bottom: 18px;
  color: var(--on-dark-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 12px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}
@media (min-width: 860px) {
  .site-footer { padding: 88px 0 36px; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { margin-top: 88px; }
}
