/* =========================================================
   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;      /* every second section, numbers strip, table stripes */
  --line: #E4E4E7;        /* thin borders and dividers */
  --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: 1120px;     /* widest the content gets */
  --gutter: 20px;         /* space at the left and right edges on a phone */
  --section: 72px;        /* space above and below each section on a phone */
  --radius: 8px;          /* rounded corners on photos */
}

@media (min-width: 860px) {
  :root {
    --gutter: 40px;
    --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: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 860px) { body { font-size: 18px; } }

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

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }

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; }

.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--alt { background: var(--bg-alt); }

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

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

/* Heading block: more space below the group than inside it */
.head { max-width: 40rem; margin-bottom: 48px; }
.head h2 + p { margin-top: 16px; color: var(--muted); }
@media (min-width: 860px) { .head { margin-bottom: 64px; } }

.prose { max-width: 36em; } /* keeps lines about 65–75 characters */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn--small { min-height: 40px; padding: 9px 18px; font-size: 0.9rem; }

.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: 10;
}
.skip:focus { left: 8px; top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  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);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 32px;
}
.logo { display: block; padding: 16px 0; }
.logo img { width: 132px; height: auto; }

.site-nav {
  order: 3;               /* on a phone: its own row under logo and button */
  width: 100%;
  display: flex;
  gap: 28px;
  padding: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.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: 720px) {
  .site-nav { order: 0; width: auto; margin-left: auto; padding: 0; }
  .site-header .btn { order: 1; }
}

/* ---------- Home: opening section ---------- */

.hero { padding: 40px 0 var(--section); }
.hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 24px; max-width: 30em; color: var(--muted); }
.hero .actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hero .fine { margin-top: 20px; }
.hero-photo { max-width: 460px; margin: 0 auto; width: 100%; }

@media (min-width: 860px) {
  .hero { padding-top: 72px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero-photo { max-width: none; }
}

/* ---------- Numbers strip ---------- */

.numbers { background: var(--bg-alt); padding: 48px 0; }
.numbers ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.numbers li { display: flex; flex-direction: column; }
.numbers strong { white-space: nowrap; }
.numbers strong {
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.numbers span { margin-top: 6px; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
@media (min-width: 860px) {
  .numbers { padding: 56px 0; }
  .numbers ul { display: flex; justify-content: space-between; gap: 32px; }
  .numbers li + li { border-left: 1px solid var(--line); padding-left: 32px; flex: 1 1 auto; }
}

/* ---------- Two-column: photo beside text ---------- */

.split { display: grid; gap: 40px; align-items: center; }
.split .photo img { border-radius: var(--radius); width: 100%; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split--photo-right .photo { order: 2; }
}

.points { display: grid; gap: 40px; }
.points h3 { font-size: 1.3rem; margin-bottom: 12px; }
.points p { color: var(--muted); }
.points .num {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- Benefits ---------- */

.wide-photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;            /* taller on a phone */
  object-fit: cover;
  object-position: 30% 50%;
}
@media (min-width: 720px) { .wide-photo img { aspect-ratio: 1500 / 620; } }
.benefits {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  gap: 0 48px;
}
.benefits li { border-top: 1px solid var(--line); padding: 24px 0 28px; }
.benefits h3 { margin-bottom: 8px; }
.benefits p { color: var(--muted); font-size: 0.95em; }
@media (min-width: 720px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 0 32px; } }

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

.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 solid var(--line);
}
.facts-list div:last-child { border-bottom: 1px solid var(--line); }
.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 in brief ---------- */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 48px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  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: 22px; height: 22px; 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: 40px; }

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

.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05em;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  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 { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 40em; }

/* ---------- Closing band ---------- */

.closing { text-align: center; }
.closing h2 { margin: 0 auto; }
.closing p { margin: 16px auto 0; color: var(--muted); max-width: 32em; }
.closing .btn { margin-top: 32px; }

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

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 64px 0 40px;
  font-size: 0.95rem;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--on-dark-muted); }
.footer-top { display: grid; gap: 40px; }
.footer-logo img { width: 140px; }
.footer-tagline { margin-top: 16px; color: var(--on-dark-muted); max-width: 22em; }
.footer-col h2 {
  margin-bottom: 14px;
  color: var(--on-dark-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--on-dark-muted);
  font-size: 0.85rem;
}
@media (min-width: 860px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 64px; }
}
