/* foodguards.space -- the website (the app itself is at /app/).
   One look with the shorts (promo/shorts): deep forest green, saffron, cream
   paper, Fraunces for display. The home page is told as a few chapters around
   one idea -- turn the pack over -- rather than a stack of feature cards. */

:root {
  color-scheme: light;
  --forest: #0f5132;
  --forest-2: #0b3f27;
  --forest-3: #082d1c;
  --saffron: #e8a33d;
  --saffron-2: #b86e0b;
  --saffron-soft: #fbe3bd;
  --cream: #fbf7ee;
  --paper: #f6f1e6;
  --paper-2: #efe7d7;
  --card: #fffdf8;
  --ink: #1b1a17;
  --ink-2: #4a463f;
  --ink-3: #6f695d;
  --rule: #1b1a17;
  --hair: #e2d9c7;
  --on-dark: rgba(251, 247, 238, .78);
  --on-dark-2: rgba(251, 247, 238, .55);
  --line-dark: rgba(251, 247, 238, .14);
  /* older names, still used by the product and ranking pages */
  --leaf: var(--forest);
  --leaf-soft: #dcefe3;
  --accent: var(--saffron);
  --accent-2: var(--saffron-2);
  --tomato: #c8432b;
  --t-excellent: #1e8e3e;
  --t-good: #5aa832;
  --t-moderate: #d89a00;
  --t-poor: #e8710a;
  --t-verypoor: #c8432b;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; font-synthesis: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--saffron); color: var(--ink); }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; font-optical-sizing: auto; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(36px, 5.8vw, 68px); }
h2 { font-size: clamp(29px, 4.1vw, 50px); }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--saffron-2); }
.eyebrow { font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--saffron-2); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 34em; }
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 16px 0 0; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--forest-3); color: var(--cream); border-bottom: 1px solid var(--line-dark); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; background: #fff; }
.brand small { font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; color: var(--saffron); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--on-dark); transition: color .15s ease; }
.nav-links a:hover { color: var(--cream); }
.nav-links a.nav-cta { background: var(--saffron); color: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 700; }
.nav-links a.nav-cta:hover { background: #f2b55b; color: var(--ink); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid var(--ink); white-space: nowrap; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.play-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; border-radius: 14px; background: #000; color: #fff; border: 1px solid #5c5850; text-decoration: none; font-weight: 600; font-size: 21px; line-height: 1.1; transition: transform .15s ease; }
.play-btn:hover { transform: translateY(-2px); }
.play-btn small { display: block; font-size: 10px; letter-spacing: .1em; font-weight: 500; }
.text-link { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--saffron); }

/* ================= Home ================= */

/* Hero: turn the pack over */
.h-hero { position: relative; overflow: hidden; background: var(--forest); color: var(--cream); padding: 52px 0 56px; }
.h-hero::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(circle at 78% 22%, rgba(232, 163, 61, .22), transparent 38%), radial-gradient(circle at 12% 90%, rgba(255, 255, 255, .06), transparent 40%); pointer-events: none; }
.h-hero .wrap { position: relative; }
.h-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14.5px; font-weight: 600; color: var(--on-dark); }
.h-kicker b { color: var(--cream); }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 0 rgba(232, 163, 61, .6); animation: live 2.2s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(232, 163, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 163, 61, 0); } }
.h-title { font-size: clamp(48px, 6.6vw, 96px); font-weight: 800; line-height: .9; letter-spacing: -0.04em; }
.h-title em { color: var(--saffron); font-weight: 600; letter-spacing: -0.035em; }
.h-gloss { margin: 12px 0 0; font-size: 14px; color: var(--on-dark-2); font-style: italic; }
.h-lead { margin: 18px 0 24px; max-width: 36em; font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.6; color: var(--on-dark); }
.h-lead b { color: var(--cream); font-weight: 600; }
.h-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.h-stats { display: flex; flex-wrap: wrap; row-gap: 14px; margin-top: 30px; border-top: 1px solid var(--line-dark); }
.h-stats div { padding: 18px 28px 0 0; }
.h-stats div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.h-stats b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 29px); line-height: 1; letter-spacing: -0.03em; color: var(--cream); }
.h-stats span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--on-dark-2); }

/* The pack that turns over */
.pack { justify-self: center; width: min(280px, 74vw); aspect-ratio: 360 / 480; perspective: 1800px; }
.pack-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: pack-turn 10s cubic-bezier(.7, 0, .3, 1) infinite; }
.pack:hover .pack-in { animation-play-state: paused; }
@keyframes pack-turn { 0%, 34% { transform: rotateY(-8deg) rotateX(4deg); } 46%, 88% { transform: rotateY(172deg) rotateX(4deg); } 100% { transform: rotateY(352deg) rotateX(4deg); } }
.pack-face { position: absolute; inset: 0; border-radius: 30px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.pack-face::before, .pack-face::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, .18) 50%) 0 0 / 14px 14px repeat-x; }
.pack-face::before { top: 0; }
.pack-face::after { bottom: 0; transform: scaleY(-1); }
.pack-front { background: radial-gradient(circle at 70% 28%, #ffd27a, transparent 42%), linear-gradient(160deg, #e8501f 0%, #c62f12 58%, #8f1d07 100%); color: #fff; padding: 40px 30px 34px; display: flex; flex-direction: column; }
.pf-brand { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 40px; letter-spacing: -0.03em; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.pf-name { margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; opacity: .9; }
.pf-burst { margin: auto 0 0 auto; width: 176px; height: 176px; border-radius: 50%; background: #ffd23f; color: #8f1d07; display: grid; place-items: center; text-align: center; padding: 18px; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.02; transform: rotate(-10deg); box-shadow: 0 0 0 8px rgba(255, 210, 63, .35); }
.pf-burst small { display: block; font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .14em; margin-bottom: 4px; }
.pf-tag { align-self: flex-start; margin-top: 18px; background: #fff; color: #c62f12; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 15px; }
.pf-fine { margin-top: 14px; font-size: 9.5px; opacity: .75; }
.pack-back { transform: rotateY(180deg); background: #fbf6ea; color: var(--ink); padding: 34px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.pb-head { font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--ink-3); }
.pb-list { margin: 0; font-family: var(--mono); font-size: 12.2px; line-height: 1.75; color: var(--ink-2); }
.pb-list mark { background: var(--saffron-soft); color: #8a3b0a; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.pb-stick { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; background: var(--forest); color: var(--cream); border-radius: 20px; padding: 16px; transform: rotate(-2.5deg); box-shadow: 0 12px 26px rgba(8, 45, 28, .3); }
.pb-score { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--t-poor) 41%, rgba(251, 247, 238, .18) 0); }
.pb-score span { width: 52px; height: 52px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--t-poor); }
.pb-verdict b { display: block; font-family: var(--display); font-size: 22px; line-height: 1; color: #ffb366; }
.pb-verdict span { font-size: 11.5px; color: var(--on-dark-2); }
.pb-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pb-chips span { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(251, 247, 238, .12); color: var(--cream); }
.pack-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--on-dark-2); }
@media (prefers-reduced-motion: reduce) { .pack-in { animation: none; transform: rotateY(180deg); } .live { animation: none; } }

/* The decoder strip */
.h-tick { background: var(--saffron); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, .08); }
.h-tick-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.h-tick:hover .h-tick-track { animation-play-state: paused; }
.h-tick span { padding: 20px 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(19px, 2vw, 25px); white-space: nowrap; }
.h-tick span::after { content: '✳'; font-style: normal; margin: 0 30px; opacity: .55; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .h-tick-track { animation: none; flex-wrap: wrap; width: auto; } }

/* Chapters */
.ch { padding: 80px 0; }
.ch-head { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 44px; max-width: 900px; }
.ch-no { font-family: var(--display); font-weight: 300; font-size: 72px; line-height: .8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--saffron-2); }
.ch-kick { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--saffron-2); margin: 0 0 14px; }
.ch-head h2 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.02; letter-spacing: -0.03em; }
.ch-head p { margin: 14px 0 0; font-size: 16px; color: var(--ink-2); max-width: 36em; }
.ch-dark { background: #12110f; color: var(--cream); }
.ch-dark .ch-no { -webkit-text-stroke-color: var(--saffron); }
.ch-dark .ch-kick { color: var(--saffron); }
.ch-dark .ch-head p { color: var(--on-dark); }
.ch-dark h2 em { color: var(--saffron); }
.ch-alt { background: var(--paper-2); }

/* 01 -- an annotated label */
.anno { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 0; border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: 0 1px 0 var(--hair), 0 30px 60px -30px rgba(27, 26, 23, .25); }
.anno-label { position: relative; padding: 48px 48px 40px; }
.anno-front { position: absolute; top: 26px; right: 26px; transform: rotate(5deg); background: #ffd23f; color: #8f1d07; border-radius: 14px; padding: 12px 16px; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.05; box-shadow: 0 10px 20px rgba(0, 0, 0, .12); }
.anno-front small { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .14em; font-weight: 800; color: #b5401c; margin-bottom: 4px; }
.anno-k { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--ink-3); margin: 0 0 18px; }
.anno-text { margin: 0; font-family: var(--mono); font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 2; color: var(--ink); max-width: 30em; }
.anno-text mark { background: var(--saffron-soft); color: #8a3b0a; padding: 2px 5px; border-radius: 6px; }
.anno-text sup { font-family: var(--body); font-weight: 800; font-size: 11px; color: #fff; background: var(--saffron-2); border-radius: 50%; width: 19px; height: 19px; display: inline-grid; place-items: center; vertical-align: 10px; margin-left: 2px; }
.anno-notes { margin: 0; padding: 48px 44px; list-style: none; background: var(--forest); color: var(--cream); display: grid; gap: 26px; align-content: center; counter-reset: n; }
.anno-notes li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--on-dark); }
.anno-notes li::before { content: counter(n); width: 30px; height: 30px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.anno-notes b { display: block; color: var(--cream); font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.anno-foot { margin: 22px 0 0; font-size: 14.5px; color: var(--ink-3); }

/* 02 -- the shelf, already read */
.shelf-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shelf { position: relative; overflow: hidden; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.shelf-track { display: flex; gap: 20px; width: max-content; padding: 18px 0 8px; animation: shelf-move 80s linear infinite; }
.shelf:hover .shelf-track { animation-play-state: paused; }
@keyframes shelf-move { to { transform: translateX(-50%); } }
.shelf-item { position: relative; display: flex; flex-direction: column; width: 172px; text-decoration: none; }
.shelf-pack { width: 172px; height: 196px; background: #fff; border-radius: 22px; display: grid; place-items: center; overflow: hidden; transition: transform .25s ease; }
.shelf-item:hover .shelf-pack { transform: translateY(-8px) rotate(-1.5deg); }
.shelf-pack img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.shelf-badge { position: absolute; top: 12px; left: 12px; min-width: 44px; height: 28px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.shelf-name { margin-top: 14px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-dark .shelf-name { color: var(--on-dark); }
@media (prefers-reduced-motion: reduce) { .shelf-track { animation: none; } .shelf { overflow-x: auto; } }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* 03 -- in your hand */
.hand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.phones { position: relative; height: 700px; }
.phone { position: absolute; width: 280px; border-radius: 46px; padding: 11px; background: #111; box-shadow: 0 0 0 2px #2b2b2b, 0 40px 80px -20px rgba(27, 26, 23, .45); }
.phone img { width: 100%; height: auto; border-radius: 36px; }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #111; }
.phone.p1 { left: 6%; top: 0; transform: rotate(-4deg); z-index: 2; }
.phone.p2 { left: 44%; top: 70px; transform: rotate(5deg); }
.hand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: h; }
.hand-list li { counter-increment: h; display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.hand-list li::before { content: '0' counter(h); font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1; color: var(--saffron-2); }
.hand-list b { display: block; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 6px; }
.hand-list span { color: var(--ink-2); font-size: 15px; }
.film-teaser { margin-top: 40px; display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; cursor: pointer; border: 0; border-radius: 22px; padding: 18px 22px 18px 18px; background: #12110f; color: var(--cream); font: inherit; transition: transform .2s ease; }
.film-teaser:hover { transform: translateY(-2px); }
.film-teaser b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; }
.film-teaser small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--on-dark-2); }
.play-dot { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; }
.play-dot::before { content: ''; margin-left: 4px; border-left: 17px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }

/* 04 -- rankings teaser: see .lt below */

/* Questions */
.qa { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.qa h2 { position: sticky; top: 110px; }
.faq { border-top: 2px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--hair); padding: 22px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--body); font-weight: 400; font-size: 26px; line-height: 1; color: var(--saffron-2); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 12px 0 0; max-width: 44em; }

/* The end: check first, then buy */
.h-end { position: relative; overflow: hidden; background: var(--forest); color: var(--cream); padding: 80px 0; }
.h-end::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(232, 163, 61, .2), transparent 40%); pointer-events: none; }
.h-end .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 56px; align-items: center; }
.h-end h2 { font-size: clamp(42px, 5.6vw, 82px); font-weight: 800; line-height: .9; letter-spacing: -0.04em; }
.h-end h2 em { color: var(--saffron); }
.h-end p { margin: 20px 0 28px; font-size: 16.5px; color: var(--on-dark); max-width: 30em; }
.h-end .h-ctas .text-link { color: var(--cream); }
.qr { width: 260px; background: var(--card); color: var(--ink); border-radius: 26px; padding: 20px 20px 16px; text-align: center; transform: rotate(3deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.qr img { width: 220px; height: 220px; margin: 0 auto; image-rendering: pixelated; }
.qr p { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* ================= Shared pieces (product, ranking, prose pages) ================= */

.page-head { padding: 60px 0 28px; border-bottom: 2px solid var(--rule); }
.page-head p { color: var(--ink-2); font-size: 18px; max-width: 40em; margin: 16px 0 0; }
.prose { max-width: 760px; padding: 44px 0 90px; }
.prose h2 { font-size: 32px; margin: 48px 0 14px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; background: var(--card); border: 2px solid var(--rule); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.prose th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.note { border-left: 4px solid var(--saffron); background: var(--card); padding: 14px 18px; border-radius: 0 14px 14px 0; }
.alt { background: var(--paper-2); }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.ex { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 16px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ex:hover { border-color: var(--ink); transform: translateY(-2px); }
.ex img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; flex-shrink: 0; }
.ex .meta { min-width: 0; flex: 1; }
.ex .brand-n { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ex .name { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.verdict { font-size: 12.5px; font-weight: 700; }
.ring { --c: var(--t-good); --v: 70; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--hair) 0); }
.ring span { width: 46px; height: 46px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--c); }
.ring-lg { width: 88px; height: 88px; }
.ring-lg span { width: 72px; height: 72px; font-size: 30px; }
.ring-sm { width: 50px; height: 50px; }
.ring-sm span { width: 40px; height: 40px; font-size: 16px; }

/* Nutrition panel on a product page */
.label { background: var(--card); border: 2px solid var(--rule); padding: 18px 22px 22px; }
.label-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.6vw, 40px); line-height: 1; border-bottom: 9px solid var(--rule); padding-bottom: 8px; }
.label-sub { font-size: 13px; border-bottom: 4px solid var(--rule); padding: 8px 0; display: flex; justify-content: space-between; }

/* ---- Footer ---- */
footer { background: var(--forest-3); color: var(--on-dark); padding: 64px 0 56px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
footer .brand { color: var(--cream); }
footer p { max-width: 26em; }
footer h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--saffron); margin: 0 0 14px; }
footer a { display: block; text-decoration: none; margin: 7px 0; }
footer a:hover { color: var(--cream); }
footer .fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-2); max-width: 64em; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---- Product pages (site/products.js) ----
   Desktop: a sticky product card on the left (photo, score, actions,
   nutrition) and the ingredients on the right. Mobile: one column. */
.p-wrap { padding-top: 28px; padding-bottom: 56px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.p-layout { display: grid; grid-template-columns: 370px 1fr; gap: 52px; align-items: start; }
.p-side { position: sticky; top: 88px; display: grid; gap: 18px; }
.p-card { background: var(--card); border: 1px solid var(--hair); border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px -36px rgba(27, 26, 23, .35); }
.p-top { display: grid; gap: 16px; }
.p-img { width: 100%; height: 220px; border-radius: 18px; background: #fff; border: 1px solid var(--hair); display: grid; place-items: center; overflow: hidden; font-size: 56px; }
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.p-img-none { height: 84px; font-size: 40px; background: var(--paper-2); }
.p-title h1 { font-size: 26px; margin-top: 6px; letter-spacing: -0.02em; }
.p-pack { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 6px; }
.p-score { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair); }
.p-verdict { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.05; }
.p-flagged { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.p-eat { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.p-ctas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.p-side-nutri .nutri { max-width: none; padding: 14px 18px 16px; border-radius: 4px; }
.p-side-nutri .label-title { font-size: 26px; border-bottom-width: 7px; padding-bottom: 6px; }
.nutri-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.nutri-row:last-child { border-bottom: 0; }
.p-main { min-width: 0; }
.p-summary { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.85vw, 22px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); margin: 0; max-width: 34em; }
.p-sec { padding: 40px 0 0; }
.p-sec h2 { font-size: 27px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.p-count { font-family: var(--body); font-size: 13px; font-weight: 700; background: var(--paper-2); border-radius: 999px; padding: 3px 10px; letter-spacing: 0; }
.p-note { color: var(--ink-3); font-size: 14px; margin: 0 0 14px; }
.ings { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.ing { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.ing-dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 7px; }
.ing-name { font-weight: 600; }
.ing-ins { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-left: 6px; }
.ing-why { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.ing-tag { font-size: 12.5px; font-weight: 700; white-space: nowrap; margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--hair); border-radius: 999px; font-size: 14px; }
.chip summary { list-style: none; cursor: pointer; padding: 7px 14px; display: flex; align-items: center; gap: 8px; }
.chip summary::-webkit-details-marker { display: none; }
.chip summary::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--t-excellent); flex-shrink: 0; }
.chip[open] { border-radius: 16px; border-color: var(--ink); flex-basis: 100%; }
.chip p { margin: 0; padding: 0 14px 10px 30px; color: var(--ink-2); font-size: 13.5px; }
.p-alts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.p-fine { margin-top: 40px; }
.p-fine p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
/* "Where this sugar goes": the 1-minute film (site/assets/film.js) */
.p-film { margin-top: 26px; display: flex; align-items: center; gap: 16px; width: 100%; max-width: 560px; text-align: left; cursor: pointer; border: 0; border-radius: 20px; padding: 14px 20px 14px 14px; background: #12110f; color: var(--cream); font: inherit; transition: transform .2s ease; }
.p-film:hover { transform: translateY(-2px); }
.p-film-play { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; }
.p-film-play::before { content: ''; margin-left: 4px; border-left: 15px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.p-film-txt b { display: block; font-family: var(--display); font-weight: 700; font-size: 17.5px; line-height: 1.2; }
.p-film-txt small { display: block; margin-top: 3px; font-size: 13px; color: var(--on-dark-2); }
.film-shade { position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 9, .78); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.film-box { position: relative; width: min(440px, 100%); height: min(90vh, 860px); border-radius: 22px; overflow: hidden; background: #090810; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.film-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.film-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 900px) {
  .p-layout { grid-template-columns: 1fr; gap: 28px; }
  .p-side { position: static; }
  .p-top { grid-template-columns: 104px 1fr; align-items: center; }
  .p-img { height: 104px; font-size: 40px; }
  .p-title h1 { font-size: 23px; }
}
@media (max-width: 520px) {
  .ing { grid-template-columns: 12px 1fr; }
  .ing-tag { grid-column: 2; margin-top: 0; }
}

/* /products/ directory */
.dir { columns: 3 260px; column-gap: 44px; padding-top: 40px; padding-bottom: 72px; }
.dir-brand { break-inside: avoid; padding: 0 0 28px; }
.dir-brand h2 { font-size: 22px; border-bottom: 2px solid var(--rule); padding-bottom: 6px; margin-bottom: 8px; }
.dir-brand ul { list-style: none; margin: 0; padding: 0; }
.dir-brand li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14.5px; border-bottom: 1px solid var(--hair); }
.dir-brand a { text-decoration: none; color: var(--ink); }
.dir-brand a:hover { text-decoration: underline; }
.dir-brand a span { color: var(--ink-3); font-size: 12.5px; }
.dir-brand b { font-size: 13px; }
.dir-tools { position: sticky; top: 66px; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); padding: 14px 0; }
.dir-tools .wrap { display: grid; gap: 10px; }
.dir-search { width: 100%; max-width: 520px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: 16px var(--body); }
.az { display: flex; flex-wrap: wrap; gap: 4px; }
.az a { font-size: 13px; font-weight: 700; text-decoration: none; padding: 3px 7px; border-radius: 6px; color: var(--ink-2); }
.az a:hover { background: var(--ink); color: var(--cream); }
.dir-empty { display: none; padding: 30px 0; color: var(--ink-2); }
.dir-brand[hidden], .dir-brand li[hidden] { display: none; }
@media (max-width: 720px) {
  .dir-tools { position: static; }
  .az { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
}

/* Report a problem (site/assets/report.js) */
.report { margin-top: 14px; border: 1px solid var(--hair); border-radius: 16px; background: var(--card); }
.report summary { cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; }
.report summary::-webkit-details-marker { display: none; }
.report summary::after { content: '⚑'; color: var(--tomato); }
.report[open] { border-color: var(--ink); }
.report-form { padding: 0 16px 16px; }
.report-q { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.report-opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; cursor: pointer; border-bottom: 1px solid var(--hair); }
.report-opt input { accent-color: var(--forest); width: 17px; height: 17px; }
.report-form textarea { width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); font: 14.5px/1.5 var(--body); resize: vertical; }
.report-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.report-actions button { cursor: pointer; }
.report-actions button:disabled { opacity: .6; }
.report-status { font-size: 13.5px; color: var(--ink-3); }
.report-status.err { color: var(--tomato); }
.report-done { margin: 4px 0 0; font-weight: 600; color: var(--forest); }

/* League tables: home teaser + /rankings/ */
.lt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.lt { background: var(--card); border: 1px solid var(--hair); border-radius: 24px; padding: 26px 26px 20px; }
.lt h3 { font-size: 25px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lt h3 span { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }
.lt ol { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--rule); }
.lt li { display: grid; grid-template-columns: 26px 1fr minmax(50px, 90px) 34px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.lt li .n { font-family: var(--display); font-size: 20px; color: var(--ink-3); }
.lt li a { text-decoration: none; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt li a:hover { text-decoration: underline; }
.lt li .bar { height: 8px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.lt li .bar i { display: block; height: 100%; border-radius: 4px; }
.lt li b { font-size: 14px; text-align: right; }
.lt-more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--saffron-2); text-decoration: none; }
.lt-more:hover { text-decoration: underline; }
.rk-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rk-nav a { border: 1px solid var(--hair); background: var(--card); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.rk-nav a:hover { border-color: var(--ink); }
.rk { padding: 40px 0 80px; display: grid; gap: 22px; }
.rk .lt { scroll-margin-top: 88px; }
.rk .lt li { grid-template-columns: 30px 1fr minmax(60px, 200px) 40px; font-size: 15px; }
.rk .lt li a span { color: var(--ink-3); font-size: 13px; }
@media (max-width: 520px) { .lt li, .rk .lt li { grid-template-columns: 24px 1fr 34px; } .lt li .bar { display: none; } }

/* ================= Small screens ================= */
@media (max-width: 980px) {
  .h-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 56px; }
  .anno { grid-template-columns: 1fr; }
  .hand { grid-template-columns: 1fr; gap: 40px; }
  .phones { height: 560px; max-width: 520px; }
  .qa { grid-template-columns: 1fr; gap: 28px; }
  .qa h2 { position: static; }
  .h-end .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  section, .ch { padding: 72px 0; }
  .ch-head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 36px; }
  .ch-no { font-size: 72px; }
  .h-hero { padding-top: 48px; }
  .anno-label { padding: 30px 22px 28px; }
  .anno-front { position: static; display: inline-block; margin-bottom: 18px; transform: rotate(-2deg); }
  .anno-notes { padding: 30px 22px; }
  .phones { height: 540px; }
  .phone { width: 220px; border-radius: 38px; padding: 9px; }
  .phone img { border-radius: 30px; }
  .phone.p1 { left: 0; }
  .phone.p2 { left: 38%; top: 56px; }
  .qr { display: none; }
  .h-end { padding: 88px 0; }
  .shelf-item, .shelf-pack { width: 140px; }
  .shelf-pack { height: 160px; }
}
@media (max-width: 520px) {
  .brand { font-size: 19px; gap: 8px; }
  .brand small { display: none; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links a.nav-cta { padding: 8px 14px; font-size: 13.5px; }
  .h-ctas .play-btn { width: 100%; justify-content: center; }
}

/* Ingredient guides (/ingredients/) */
.ing-guides { list-style: none; padding: 0; margin: 0 0 24px; }
.ing-guides li { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.ing-guides a { font-size: 20px; text-decoration: none; }
.ing-guides a:hover { text-decoration: underline; }
.ing-products { list-style: none; padding: 0; margin: 14px 0 0; }
.ing-products li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.ing-products a { color: var(--ink); text-decoration: none; }
.ing-products a:hover { text-decoration: underline; }
.ing-products span { font-family: var(--mono); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.ing-sources { padding-left: 20px; }
.ing-sources a { word-break: break-word; }
