/* =========================================================================
   NUTRASAFE · "Back of Pack" design system
   ----------------------------------------------------------------------
   Display:  Fraunces (variable, SOFT axis tuned warm)
   Body:     IBM Plex Sans
   Caption:  IBM Plex Mono
   Palette:  Warm paper + warm ink + a single oxblood accent.
             The phone screenshots carry the app's colour; the website
             frames it.
   ========================================================================= */

:root {
  --paper:        #F4EFE6;
  --paper-deep:   #EBE4D5;
  --paper-card:   #FBF8F1;
  --ink:          #1A1814;
  --ink-soft:     #4A453E;
  --ink-faint:    #8B857A;
  --rule:         #1A1814;
  --rule-soft:    rgba(26,24,20,0.12);
  --oxblood:      #8B1F1F;
  --oxblood-dark: #6B1717;
  --oxblood-tint: #C77;
  --botanical:    #4A7C59;
  --highlight:    #F2D77C;

  --serif:    "Fraunces", "Times New Roman", Georgia, serif;
  --sans:     "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:     "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --shell-max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: clip;
  position: relative;
}

/* Newsprint grain — barely there */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }

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

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

/* ─────────────────────────────────────────────
   TYPOGRAPHIC PRIMITIVES
   ───────────────────────────────────────────── */

h1, .h1 { font-family: var(--serif); font-weight: 460; font-variation-settings: "opsz" 144, "SOFT" 35; letter-spacing: -0.03em; line-height: 1.02; }
h2, .h2 { font-family: var(--serif); font-weight: 480; font-variation-settings: "opsz" 96,  "SOFT" 35; letter-spacing: -0.025em; line-height: 1.08; }
h3, .h3 { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 36,  "SOFT" 25; letter-spacing: -0.018em; line-height: 1.18; }
h4, .h4 { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 24,  "SOFT" 20; letter-spacing: -0.012em; line-height: 1.25; }

em, i, .ital { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 50; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.caption {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 380;
  letter-spacing: -0.012em;
  color: var(--ink-soft);
  line-height: 1.3;
}

.t-link { position: relative; color: var(--ink); }
.t-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transition: transform .35s ease, background .35s ease;
}
.t-link:hover::after { background: var(--oxblood); transform: scaleY(2); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-soft { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; }

.asterism {
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.5em;
  color: var(--ink-faint);
  padding: 3.5rem 0;
}

/* ─────────────────────────────────────────────
   PAGE GRID & CONTAINERS
   ───────────────────────────────────────────── */

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 32px;
}
.shell-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .shell, .shell-narrow { padding: 0 20px; }
}

.col-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }

/* ─────────────────────────────────────────────
   TOP BAR (site-wide navigation)
   ───────────────────────────────────────────── */

.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  /* z-index must exceed body::before (grain, 9999) so the grain
     renders behind the topbar, not over it. iOS Safari otherwise
     composites the multiply-blend grain on top of sticky chrome
     and content scrolling beneath appears to show through. */
  z-index: 10000;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}
.topbar-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 68px;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
}
.nav-item { position: relative; }
.nav-trigger,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  text-decoration: none;
}
.nav-trigger:hover,
.nav-link:hover,
.nav-item.open .nav-trigger { background: rgba(26,24,20,0.06); color: var(--oxblood); }
.nav-trigger .caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .3s ease;
  display: inline-block;
  margin-left: 2px;
}
.nav-item.open .nav-trigger .caret { transform: rotate(-135deg) translate(-1px, -1px); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 20px 40px rgba(26,24,20,0.10);
  z-index: 10010;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.nav-dropdown a:hover {
  background: rgba(139,31,31,0.06);
  color: var(--oxblood);
  padding-left: 24px;
}
.nav-dropdown a.muted {
  border-top: 1px solid var(--rule-soft);
  margin-top: 4px;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Mega-menu (full-width, multi-column) ── */
.nav-megamenu {
  position: fixed;
  left: 0; right: 0;
  top: 68px;
  background: var(--paper-card);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 0 44px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10005;
  box-shadow: 0 24px 40px rgba(26,24,20,0.10);
}
.nav-item.has-megamenu:hover .nav-megamenu,
.nav-item.has-megamenu.open .nav-megamenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-megamenu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0; right: 0;
  height: 16px;
}
.megamenu-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  gap: 40px;
}
.megamenu-3col { grid-template-columns: repeat(3, 1fr); }
.megamenu-4col { grid-template-columns: repeat(4, 1fr); }
.megamenu-5col { grid-template-columns: repeat(5, 1fr); gap: 32px; }
.megamenu-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--oxblood);
  font-variation-settings: normal;
  letter-spacing: 0.18em;
}
.megamenu-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.megamenu-col ul a {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.4;
  transition: color .2s ease, padding-left .2s ease;
  text-decoration: none;
  display: inline-block;
}
.megamenu-col ul a:hover {
  color: var(--oxblood);
  padding-left: 4px;
}
.megamenu-col ul a.all-link {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.megamenu-col ul a.all-link::after {
  content: "→";
  transition: transform .25s ease;
}
.megamenu-col ul a.all-link:hover { padding-left: 0; color: var(--ink); }
.megamenu-col ul a.all-link:hover::after { transform: translateX(3px); }

/* Featured card column inside a mega-menu — image + caption + small CTA */
.megamenu-featured {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: background .25s ease, border-color .25s ease;
  align-self: start;
}
.megamenu-featured:hover {
  background: var(--paper-card);
  border-color: var(--rule);
}
.megamenu-featured .feat-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.megamenu-featured .feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.megamenu-featured .feat-img.logo {
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  padding: 32px;
  align-self: stretch;
}
.megamenu-featured .feat-img.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18%;
  box-shadow: 0 14px 28px rgba(26,24,20,0.18);
}
.megamenu-featured .feat-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 500;
}
.megamenu-featured .feat-title {
  font-family: var(--serif);
  font-weight: 480;
  font-variation-settings: "opsz" 36, "SOFT" 25;
  font-size: 19px;
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
}
.megamenu-featured .feat-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.megamenu-featured .feat-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 2px;
  align-self: flex-start;
}
.megamenu-featured .feat-cta::after { content: "→"; transition: transform .25s ease; }
.megamenu-featured:hover .feat-cta { color: var(--ink); border-color: var(--ink); }
.megamenu-featured:hover .feat-cta::after { transform: translateX(3px); }

@media (max-width: 1180px) {
  .megamenu-5col { grid-template-columns: repeat(3, 1fr); }
  .megamenu-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .nav-megamenu { display: none; }
}

.topbar-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.topbar-brand .ampersand { color: var(--oxblood); font-style: italic; font-weight: 380; }
.topbar-brand .brand-mark {
  width: 26px; height: 26px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-block;
}
.topbar-brand .brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 460;
  font-variation-settings: "opsz" 36, "SOFT" 35;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
  flex-shrink: 0;
}
.topbar-cta:hover { background: var(--oxblood-dark); transform: translateY(-1px); }

@media (max-width: 1020px) {
  .topbar-nav { display: none; }
  .topbar-inner { gap: 16px; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 0 20px; height: 60px; }
  .topbar-brand { font-size: 20px; }
  .topbar-cta { padding: 9px 16px; font-size: 13.5px; }
}

/* ─────────────────────────────────────────────
   LEGACY MASTHEAD (kept temporarily for pages not yet migrated)
   ───────────────────────────────────────────── */

.strap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
}
.strap-left, .strap-right { display: flex; gap: 28px; }
.strap-mid { color: var(--oxblood); }

.masthead {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  /* Same fix as .topbar — must exceed body::before grain (9999). */
  z-index: 10000;
  isolation: isolate;
}
.masthead-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
}
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: 34px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.brand .ampersand {
  font-style: italic;
  color: var(--oxblood);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}
.brand-mark {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  align-self: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

nav.primary { display: flex; gap: 32px; align-items: center; }
nav.primary a {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
nav.primary a:hover::after { transform: scaleX(1); }
nav.primary .pill {
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .3s ease, color .3s ease;
}
nav.primary .pill::after { display: none; }
nav.primary .pill:hover { background: var(--ink); color: var(--paper); }

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 460;
  font-variation-settings: "opsz" 96, "SOFT" 35;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 18px;
}
.mobile-menu .pill {
  font-family: var(--serif);
  font-weight: 460;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  padding: 18px;
  border-radius: 999px;
  border: 0;
  margin-top: 12px;
}

@media (max-width: 880px) {
  nav.primary { display: none; }
  .mobile-toggle { display: inline-block; }
  .strap { font-size: 10px; gap: 0; padding: 12px 20px; }
  .strap-left, .strap-right { gap: 14px; }
  .strap-mid { display: none; }
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */

.hero { padding: 80px 0 64px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: end;
}

.hero-lede { grid-column: 1 / span 8; padding-right: 24px; position: relative; }
.hero-lede .marker {
  position: absolute;
  left: -32px; top: 0; bottom: 0;
  width: 2px;
  background: var(--oxblood);
}

.hero h1 {
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero h1 em { color: var(--oxblood); }
.hero h1 .br { display: block; }

.hero .standfirst {
  font-size: clamp(20px, 2vw, 26px);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero p.dek {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 36px;
}
.hero p.dek::first-letter {
  font-family: var(--serif);
  font-weight: 480;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 4.6em;
  line-height: 0.86;
  float: left;
  margin: 6px 10px -2px 0;
  color: var(--ink);
}

.hero-art { grid-column: 9 / span 4; }
.hero-art figure { margin: 0; padding-top: 28px; border-top: 1px solid var(--rule); }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 50px rgba(26,24,20,0.18)); }
.hero-art figcaption {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
}

/* Black-pill CTA, serif label */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px 17px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 460;
  font-variation-settings: "opsz" 36, "SOFT" 35;
  font-size: 19px;
  letter-spacing: -0.01em;
  transition: transform .35s ease, background .35s ease;
  border: 0;
  cursor: pointer;
}
.btn-pill svg { width: 18px; height: 18px; }
.btn-pill:hover { background: var(--oxblood-dark); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  row-gap: 14px;
}
.cta-row .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.5;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cta-row .sub { white-space: normal; }
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 40px; }
  .hero-lede { grid-column: 1 / -1; padding-right: 0; }
  .hero-art { grid-column: 1 / -1; max-width: 420px; margin: 12px auto 0; }
  .hero h1 { font-size: clamp(42px, 12vw, 64px); }
  .hero-lede .marker { left: -16px; }
}

/* ─────────────────────────────────────────────
   TOC STRIP
   ───────────────────────────────────────────── */

.toc {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.toc a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--rule-soft);
  padding-left: 14px;
  transition: color .3s ease;
}
.toc a:first-child { border-left: 0; padding-left: 0; }
.toc a .n { color: var(--oxblood); font-weight: 500; }
.toc a:hover { color: var(--oxblood); }
@media (max-width: 720px) {
  .toc { grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 48px; }
  .toc a { border-left: 0; padding-left: 0; }
}

/* ─────────────────────────────────────────────
   SECTIONS / HEADERS
   ───────────────────────────────────────────── */

.section { padding: 96px 0; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }
.section-head .standfirst { margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); max-width: 580px; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ─────────────────────────────────────────────
   FILED UNDER GRID (six outcomes)
   ───────────────────────────────────────────── */

.filed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.filed-item {
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  transition: background .35s ease;
  color: inherit;
}
.filed-item:nth-child(3n) { border-right: 0; padding-right: 0; }
.filed-item:hover { background: var(--paper-card); }
.filed-num {
  font-family: var(--serif);
  font-weight: 380;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: 46px;
  color: var(--oxblood);
  line-height: 1;
}
.filed-body h3 { font-size: 24px; margin-bottom: 8px; }
.filed-body p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }

@media (max-width: 880px) {
  .filed { grid-template-columns: 1fr 1fr; }
  .filed-item:nth-child(3n) { border-right: 1px solid var(--rule-soft); padding-right: 32px; }
  .filed-item:nth-child(2n) { border-right: 0; padding-right: 0; }
}
@media (max-width: 580px) {
  .filed { grid-template-columns: 1fr; }
  .filed-item { border-right: 0 !important; padding-right: 0 !important; }
}

/* ─────────────────────────────────────────────
   PULL QUOTE
   ───────────────────────────────────────────── */

.pullquote {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  position: relative;
  background: var(--paper-deep);
}
.pullquote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto;
  color: var(--ink);
  padding: 0 24px;
  position: relative;
}
.pullquote blockquote::before,
.pullquote blockquote::after {
  font-family: var(--serif);
  color: var(--oxblood);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4em;
  line-height: 0;
  position: relative;
}
.pullquote blockquote::before { content: "\201C "; margin-right: 4px; vertical-align: -0.2em; }
.pullquote blockquote::after  { content: "\201D"; margin-left: 4px; vertical-align: -0.2em; }
.pullquote cite {
  display: block;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-style: normal;
}

/* ─────────────────────────────────────────────
   FEATURE SPREADS
   ───────────────────────────────────────────── */

.spread {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  padding: 80px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
.spread:last-of-type { border-bottom: 0; }
.spread-num {
  grid-column: 1 / span 1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 90;
  font-size: 48px;
  color: var(--oxblood);
  line-height: 1;
  letter-spacing: -0.02em;
}
.spread-body { grid-column: 2 / span 7; padding-right: 32px; }
.spread-art  { grid-column: 9 / span 4; }

.spread.reverse .spread-num   { grid-column: 12 / span 1; grid-row: 1; text-align: right; }
.spread.reverse .spread-body  { grid-column: 5 / span 7; grid-row: 1; padding-left: 32px; padding-right: 0; }
.spread.reverse .spread-art   { grid-column: 1 / span 4; grid-row: 1; }

.spread h3 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 18px; }
.spread .standfirst { font-size: 19px; margin-bottom: 24px; max-width: 520px; }
.spread .body { color: var(--ink-soft); font-size: 16.5px; max-width: 540px; margin-bottom: 28px; }

/* "Composition" panel — back-of-pack styled feature list */
.ingredients {
  border: 1px solid var(--ink);
  margin-bottom: 28px;
  background: var(--paper-card);
  max-width: 520px;
}
.ingredients-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.ingredients-head .panel-id { color: var(--oxblood); }
.ingredients ul { list-style: none; padding: 4px 0; }
.ingredients li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.ingredients li:last-child { border-bottom: 0; }
.ingredients li::before {
  content: "—";
  color: var(--oxblood);
  font-family: var(--mono);
  flex-shrink: 0;
  width: 14px;
}

.spread-art figure { margin: 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.spread-art img { width: 100%; filter: drop-shadow(0 24px 40px rgba(26,24,20,0.16)); }
.spread-art figcaption {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
}

.spread-more {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 2px;
  transition: color .3s ease, border-color .3s ease;
}
.spread-more:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 880px) {
  .spread { padding: 56px 0; }
  .spread-body, .spread.reverse .spread-body { grid-column: 1 / -1 !important; padding: 0 !important; }
  .spread-art,  .spread.reverse .spread-art  { grid-column: 1 / -1 !important; max-width: 420px; margin: 0 auto; padding-top: 24px; }
  .spread-num,  .spread.reverse .spread-num  { grid-column: 1 / -1 !important; text-align: left !important; font-size: 40px; }
}

/* ─────────────────────────────────────────────
   STEPS (three numerals)
   ───────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.step {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--rule-soft);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:first-child { padding-left: 0; }
.step:not(:first-child) { padding-left: 32px; }
.step-num {
  font-family: var(--serif);
  font-weight: 380;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: 140px;
  line-height: 0.9;
  color: var(--oxblood);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.step h3 { font-size: 28px; margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: 16px; max-width: 280px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 40px 0 !important; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .step:last-child { border-bottom: 0; }
  .step-num { font-size: 96px; }
}

/* ─────────────────────────────────────────────
   Q&A
   ───────────────────────────────────────────── */

.qa { border-top: 1px solid var(--rule); }
.qa-item { border-bottom: 1px solid var(--rule-soft); padding: 28px 0; }
.qa-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
  padding: 0;
}
.qa-toggle {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--oxblood);
  width: 32px; height: 32px;
  border: 1px solid var(--oxblood);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 4px;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.qa-toggle::before { content: "+"; line-height: 1; }
.qa-item.open .qa-toggle::before { content: "−"; }
.qa-item.open .qa-toggle { background: var(--oxblood); color: var(--paper); }

.qa-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease, padding-top .5s ease;
  padding-top: 0;
  color: var(--ink-soft);
  max-width: 760px;
  font-size: 17px;
  line-height: 1.65;
}
.qa-item.open .qa-a { max-height: 800px; padding-top: 20px; }
.qa-a a { color: var(--ink); border-bottom: 1px solid var(--ink); transition: color .25s ease, border-color .25s ease; }
.qa-a a:hover { color: var(--oxblood); border-color: var(--oxblood); }

/* ─────────────────────────────────────────────
   TAIL CTA (dark spread)
   ───────────────────────────────────────────── */

.tail {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0 80px;
  margin-top: 40px;
  position: relative;
}
.tail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='8'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
.tail .eyebrow { color: var(--oxblood-tint); margin-bottom: 18px; display: block; }
.tail h2 {
  font-size: clamp(40px, 6vw, 80px);
  color: var(--paper);
  max-width: 920px;
  margin-bottom: 32px;
  line-height: 1.02;
}
.tail h2 em { color: #E8A4A4; }
.tail p {
  color: rgba(244,239,230,0.7);
  font-size: 18px;
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.tail .btn-pill { background: var(--paper); color: var(--ink); }
.tail .btn-pill:hover { background: var(--highlight); color: var(--ink); }
.tail .sub { color: rgba(244,239,230,0.5); }

/* ─────────────────────────────────────────────
   COLOPHON FOOTER
   ───────────────────────────────────────────── */

footer.colophon {
  background: var(--ink);
  color: rgba(244,239,230,0.85);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(244,239,230,0.18);
}
.colophon-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.colophon-brand .brand { color: var(--paper); }
.colophon-brand p {
  margin-top: 18px;
  max-width: 320px;
  font-size: 14.5px;
  color: rgba(244,239,230,0.55);
  line-height: 1.6;
}
.colophon h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.colophon ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.colophon ul a {
  color: rgba(244,239,230,0.82);
  font-size: 14.5px;
  transition: color .25s ease;
}
.colophon ul a:hover { color: var(--paper); }
.colophon-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(244,239,230,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.45);
}
@media (max-width: 880px) {
  .colophon-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .colophon-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* ─────────────────────────────────────────────
   PAGE HERO (full-width banner above article-shell)
   ───────────────────────────────────────────── */

/* Scope to direct body children — legacy pages have stale class="page-hero"
   inside their article-body which we DON'T want this treatment on. */
body > .page-hero {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
  padding: 96px 0 80px;
  position: relative;
}
body > .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: multiply;
}
.page-hero-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero-inner.no-art { grid-template-columns: 1fr; max-width: 880px; }
.page-hero-text { position: relative; padding-left: 24px; }
.page-hero-text::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--oxblood);
}
.page-hero-text .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.page-hero-text h1 {
  font-family: var(--serif);
  font-weight: 460;
  font-variation-settings: "opsz" 144, "SOFT" 35;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ink);
}
.page-hero-text h1 em { color: var(--oxblood); }
.page-hero-text .standfirst {
  font-size: clamp(18px, 1.8vw, 22px);
  max-width: 560px;
  margin: 0;
}
.page-hero-art figure {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.page-hero-art img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 44px rgba(26,24,20,0.20));
}
.page-hero-art figcaption {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 880px) {
  .page-hero { padding: 64px 0 56px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-art { max-width: 260px; margin: 0 auto; }
  .page-hero-text { padding-left: 16px; }
}

/* ─────────────────────────────────────────────
   ARTICLE / LONG-FORM (blog, e-numbers, landings)
   ───────────────────────────────────────────── */

.article-shell { max-width: 720px; margin: 0 auto; padding: 0 32px; }

.article-header { padding: 80px 0 56px; }
.article-header .eyebrow { display: block; margin-bottom: 18px; }
.article-header h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.article-header .standfirst { font-size: clamp(20px, 2.2vw, 26px); max-width: 640px; }
.article-byline {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.article-body { padding: 24px 0 80px; }
.article-body p,
.article-body ul,
.article-body ol { font-size: 18px; line-height: 1.7; margin-bottom: 1.5em; color: var(--ink); max-width: 680px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 2em 0 0.6em; }
.article-body h3 { font-size: clamp(22px, 2.4vw, 26px); margin: 1.8em 0 0.5em; }
.article-body a { color: var(--ink); border-bottom: 1px solid var(--oxblood); transition: color .25s ease, border-color .25s ease; }
.article-body a:hover { color: var(--oxblood); }
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: 1.3em;
  line-height: 1.4;
  padding: 0.5em 0 0.5em 1.5em;
  margin: 2em 0;
  border-left: 2px solid var(--oxblood);
  color: var(--ink);
}

/* Drop cap reserved for explicitly-marked ledes only (.has-lede on .article-body) */
.article-body.has-lede > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 480;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 4.2em;
  line-height: 0.86;
  float: left;
  margin: 6px 10px 0 0;
  color: var(--ink);
}

/* ── Step / numbered-list patterns (common on SEO pages) ── */
.article-body .steps-grid,
.article-body .step-cards,
.article-body .steps {
  display: block;
  margin: 2em 0;
}
.article-body .step-card,
.article-body .step,
.article-body .step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.article-body .step-card:first-child,
.article-body .step:first-child,
.article-body .step-item:first-child { border-top: 0; padding-top: 8px; }
.article-body .step-card > *:not(.step-number):not(.step-num),
.article-body .step > *:not(.step-number):not(.step-num),
.article-body .step-item > *:not(.step-number):not(.step-num) {
  grid-column: 2;
}
.article-body .step-card > h2,
.article-body .step-card > h3,
.article-body .step > h2,
.article-body .step > h3,
.article-body .step-item > h2,
.article-body .step-item > h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
}
.article-body .step-number,
.article-body .step-num,
.article-body .step__number,
.article-body .numero {
  grid-column: 1;
  grid-row: 1 / span 5;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: 56px;
  line-height: 1;
  color: var(--oxblood);
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  align-self: start;
}

/* Decorative inline icons & illustrations get toned down to fit the
   paper-and-ink palette (they were tuned for the teal/coral aesthetic) */
.article-body img:not(.kept):not(figure img) {
  filter: saturate(0.7) contrast(1.05);
  border-radius: 4px;
}
/* Tiny inline icons (≤64px) often clash with editorial type — hide them */
.article-body img[width]:not(.kept) {
  /* Selectors below scope to small icons via width attribute */
}
.article-body h1 img,
.article-body h2 img,
.article-body h3 img,
.article-body h4 img,
.article-body .feature-icon img,
.article-body .icon img,
.article-body .step-icon img,
.article-body .feature-icon,
.article-body .step-icon,
.article-body .icon-wrapper {
  display: none !important;
}
/* Common decorative emojis inside headings — too small to render well */
.article-body h1 .emoji,
.article-body h2 .emoji,
.article-body h3 .emoji { display: none; }

/* Card grids on SEO pages — flatten to a clean vertical list */
.article-body .feature-grid,
.article-body .features-grid,
.article-body .feature-cards,
.article-body .benefits-grid,
.article-body .card-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2em 0;
}
.article-body .feature-card,
.article-body .feature-item,
.article-body .benefit-card,
.article-body .feature {
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
}
.article-body .feature-card:first-child,
.article-body .feature-item:first-child,
.article-body .benefit-card:first-child,
.article-body .feature:first-child { border-top: 0; padding-top: 0; }

/* Constrain stray inline SVGs (chevrons, Apple logos, checkmarks) that lost
   their CSS sizing during the visual rollout. Default to icon-size; allow
   larger if explicitly classed as .illustration */
.article-body svg:not(.illustration) {
  max-width: 24px;
  max-height: 24px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
/* Apple-store-style badges or larger logo images get a sensible cap */
.article-body img[alt*="App Store" i],
.article-body img[alt*="Download" i],
.article-body a[href*="apps.apple.com"] img,
.article-body a[href*="apps.apple.com"] svg {
  max-height: 54px;
  max-width: 180px;
  width: auto;
}
/* FAQ-style chevron arrows that were styled inline — make them invisible
   since the editorial layout uses no decorative trailing arrows */
.article-body .faq-arrow,
.article-body .accordion-arrow,
.article-body .chevron,
.article-body .arrow-down {
  display: none;
}

/* CTA boxes on SEO pages — give them an editorial frame */
.article-body .cta-section,
.article-body .cta-box,
.article-body .cta,
.article-body .download-cta {
  border: 1px solid var(--ink);
  background: var(--paper-card);
  padding: 32px;
  margin: 3em 0;
  text-align: center;
}
.article-body .cta-section h2,
.article-body .cta-section h3,
.article-body .cta-box h2,
.article-body .cta-box h3,
.article-body .cta h2,
.article-body .cta h3 {
  margin-top: 0;
}

.article-body h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--ink);
}
.article-body img,
.article-body picture {
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  display: block;
  border-radius: 4px;
}
.article-body picture img { margin: 0 auto; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-family: var(--sans);
  font-size: 15.5px;
}
.article-body th, .article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}
.article-body th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
}
.article-body tr:last-child td { border-bottom: 0; }
.article-body code {
  background: rgba(26,24,20,0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 14px;
}
.article-body pre {
  background: var(--paper-card);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 2em 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
}
.article-body section, .article-body article {
  margin: 2.5em 0;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  margin: 3em 0;
}
.article-body strong, .article-body b {
  font-weight: 600;
  color: var(--ink);
}
.article-body figure {
  margin: 2em 0;
}
.article-body figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}
.article-body button,
.article-body input[type="submit"],
.article-body .btn,
.article-body .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 460;
  font-variation-settings: "opsz" 36, "SOFT" 35;
  font-size: 16px;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.article-body button:hover,
.article-body input[type="submit"]:hover,
.article-body .btn:hover,
.article-body .button:hover {
  background: var(--oxblood-dark);
  transform: translateY(-1px);
}
.article-body input[type="text"],
.article-body input[type="number"],
.article-body input[type="email"],
.article-body select,
.article-body textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  color: var(--ink);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15.5px;
  margin: 8px 0 16px;
}
.article-body label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-top: 14px;
}

/* Callout boxes — used by additive/blog content */
.callout {
  border: 1px solid var(--ink);
  padding: 24px 28px;
  margin: 2em 0;
  background: var(--paper-card);
  font-size: 16.5px;
  line-height: 1.65;
}
.callout .label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 10px;
  font-weight: 500;
}
.callout.warning { border-color: var(--oxblood); background: rgba(139,31,31,0.04); }
.callout.warning .label { color: var(--oxblood); }
.callout.note .label { color: var(--ink-faint); }

/* ─────────────────────────────────────────────
   PRICING CARDS (Free + Pro)
   ───────────────────────────────────────────── */

.article-body .pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 2.5em 0 1.5em;
  align-items: stretch;
}
.article-body .pricing-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-body .pricing-card h3 {
  font-family: var(--serif);
  font-weight: 480;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.article-body .pricing-card .pricing-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule-soft);
}
.article-body .pricing-card .pricing-amount {
  font-family: var(--serif);
  font-weight: 460;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.article-body .pricing-card .pricing-period {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.article-body .pricing-card .pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-body .pricing-card .pricing-features li {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  margin: 0;
}
.article-body .pricing-card .pricing-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--oxblood);
  font-family: var(--mono);
}
.article-body .pricing-card .pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 460;
  font-variation-settings: "opsz" 36, "SOFT" 35;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, color .25s ease;
  border: 1px solid var(--ink);
  margin-top: 12px;
}
.article-body .pricing-card .pricing-cta:hover {
  background: var(--oxblood-dark);
  border-color: var(--oxblood-dark);
  transform: translateY(-1px);
}

/* Pro card — inverted ink palette */
.article-body .pricing-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  position: relative;
}
.article-body .pricing-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='8'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
.article-body .pricing-card.featured > * { position: relative; z-index: 1; }
.article-body .pricing-card.featured h3,
.article-body .pricing-card.featured .pricing-amount {
  color: var(--paper);
}
.article-body .pricing-card.featured .pricing-period {
  color: rgba(244,239,230,0.55);
}
.article-body .pricing-card.featured .pricing-price {
  border-bottom-color: rgba(244,239,230,0.18);
}
.article-body .pricing-card.featured .pricing-features li {
  color: rgba(244,239,230,0.82);
}
.article-body .pricing-card.featured .pricing-features li::before {
  color: #E8A4A4;
}
.article-body .pricing-card.featured .pricing-cta {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.article-body .pricing-card.featured .pricing-cta:hover {
  background: var(--highlight);
  color: var(--ink);
  border-color: var(--highlight);
}
.article-body .pricing-card.featured .pricing-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  z-index: 2;
}

@media (max-width: 720px) {
  .article-body .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-body .pricing-card.featured .pricing-badge { left: 24px; }
}

/* ─────────────────────────────────────────────
   INDEX/CARD GRIDS (blog index, e-number hub)
   ───────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.card {
  padding: 36px 28px 36px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  transition: background .3s ease;
}
.card:hover { background: var(--paper-card); }
.card:nth-child(3n) { border-right: 0; padding-right: 0; }
.card:not(:nth-child(3n)) { padding-right: 28px; }
.card:not(:first-child):not(:nth-child(3n+1)) { padding-left: 28px; }
.card-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.card h3 { font-size: 22px; line-height: 1.2; }
.card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; flex: 1; }
.card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}

@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card:nth-child(3n) { border-right: 1px solid var(--rule-soft); padding-right: 28px; }
  .card:nth-child(2n) { border-right: 0; padding-right: 0; }
  .card:not(:nth-child(2n+1)) { padding-left: 28px; }
}
@media (max-width: 580px) {
  .card-grid { grid-template-columns: 1fr; }
  .card { border-right: 0 !important; padding: 28px 0 !important; }
}

/* ─────────────────────────────────────────────
   ENTRY ANIMATION
   ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .22s; }
.reveal.d3 { transition-delay: .34s; }
.reveal.d4 { transition-delay: .46s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-pill:hover { transform: none; }
}

/* ─────────────────────────────────────────────
   PRINT
   ───────────────────────────────────────────── */
@media print {
  body::before, .strap, .masthead, .tail, footer.colophon, .reveal { all: revert; opacity: 1; transform: none; }
  body { background: white; color: black; }
  .btn-pill, .btn-ghost { display: none; }
  a { color: black; text-decoration: underline; }
}
