:root {
  --ink: #f6f8f5;
  --muted: #9ba69f;
  --bg: #080c0a;
  --panel: #101612;
  --panel-2: #151d18;
  --line: #263129;
  --green: #b7ff2a;
  --green-soft: rgba(183, 255, 42, .11);
  --yellow: #ffd24a;
  --red: #ff796d;
  --max: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(183,255,42,.07), transparent 23rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input { font: inherit; }
a { color: inherit; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.hidden { display: none !important; }

.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .04em; }
.brand img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: .98rem; }
.brand small { color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .23em; margin-top: 5px; }
.mini-link { color: var(--green); font-size: .82rem; font-weight: 750; text-underline-offset: 4px; }

.hero { padding: clamp(54px, 9vw, 96px) 0 52px; }
.eyebrow, .result-kicker { color: var(--green); font-size: .72rem; letter-spacing: .19em; font-weight: 850; }
h1 { margin: 14px 0 16px; font-size: clamp(2.55rem, 8.7vw, 5.9rem); line-height: .93; letter-spacing: -.055em; max-width: 900px; }
h1 span { color: var(--green); }
.hero > p { max-width: 620px; color: #c1c8c3; font-size: clamp(1rem, 2.2vw, 1.2rem); }
.safety-note { margin-top: 30px; max-width: 760px; padding: 16px 18px; display: flex; gap: 14px; background: rgba(255,210,74,.07); border: 1px solid rgba(255,210,74,.28); border-radius: 14px; }
.safety-note p { margin: 0; font-size: .9rem; color: #e4dfcc; }
.safety-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #16140c; display: grid; place-items: center; font-weight: 900; }
.pdf-button { display: inline-flex; margin-top: 18px; padding: 11px 15px; border: 1px solid #496325; border-radius: 999px; color: var(--green); font-size: .8rem; font-weight: 800; text-decoration: none; }
.pdf-button:hover { background: var(--green-soft); border-color: var(--green); }

.calculator { padding: 20px 0 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading > div { display: flex; align-items: center; gap: 12px; }
.section-heading h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.1rem); letter-spacing: -.025em; }
.step-number { color: var(--green); font-size: .72rem; font-weight: 850; border: 1px solid #4c6422; border-radius: 999px; padding: 3px 7px; }
.reset-button { color: var(--muted); background: transparent; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chooser { padding: 28px 0; border-top: 1px solid var(--line); }
.chooser legend { width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 800; font-size: 1.03rem; }
.chooser legend small { margin-left: auto; color: var(--muted); font-weight: 550; font-size: .78rem; text-align: right; }
.chooser-index { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--green); color: #0b100c; font-size: .75rem; }
.chooser.compact { border: 0; padding-top: 0; padding-bottom: 34px; }
.chooser.compact legend { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #0e1410; border: 1px solid var(--line); padding: 6px; border-radius: 16px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: flex; min-height: 62px; align-items: center; justify-content: center; flex-direction: column; gap: 1px; border-radius: 11px; color: #aeb7b1; font-size: .75rem; cursor: pointer; }
.segmented strong { font-size: .92rem; color: var(--ink); }
.segmented input:checked + span { background: var(--green); color: #273116; box-shadow: 0 7px 25px rgba(183,255,42,.13); }
.segmented input:checked + span strong { color: #0a1008; }

.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.option-card { position: relative; min-width: 0; height: 100%; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card label { min-height: 72px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.option-card label:hover { border-color: #455349; background: var(--panel-2); }
.option-card input:focus-visible + label { outline: 3px solid rgba(183,255,42,.4); outline-offset: 2px; }
.option-card input:checked + label { border-color: var(--green); background: var(--green-soft); }
.option-card input:checked + label::after { content: "✓"; position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #091008; font-size: .7rem; font-weight: 900; }
.option-copy { min-width: 0; display: flex; flex-direction: column; }
.option-copy strong { line-height: 1.18; font-size: .9rem; }
.option-copy small { color: var(--muted); margin-top: 4px; font-size: .7rem; overflow-wrap: anywhere; }
.option-meta { flex: 0 0 auto; color: var(--green); font-weight: 800; font-size: .7rem; padding-right: 1px; }
.pending-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,210,74,.13); color: var(--yellow); font-weight: 900; }
.extras { border-top: 1px solid var(--line); padding: 24px 0; }
.extras summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.extras summary::-webkit-details-marker { display: none; }
.extras summary::before { content: "+"; color: var(--green); margin-right: 10px; }
.extras[open] summary::before { content: "–"; }
.extras summary span { color: var(--muted); font-weight: 500; font-size: .72rem; text-align: right; }
.extras .option-grid { margin-top: 18px; }
.extras-copy { margin: 14px 0 2px; }
.crunch-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.crunch-card > div { min-width: 0; display: flex; flex-direction: column; }
.crunch-card strong { font-size: .9rem; line-height: 1.2; }
.crunch-card small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.crunch-card label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; }
.crunch-card label span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.crunch-card input {
  width: 66px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #435047;
  border-radius: 10px;
  background: #090e0b;
  color: var(--ink);
  text-align: right;
}
.crunch-card input:focus-visible { outline: 3px solid rgba(183,255,42,.35); border-color: var(--green); }
.crunch-card b { color: var(--green); }

.result-wrap { background: var(--green); color: #0b1109; padding: clamp(42px, 7vw, 70px) 0; }
.result-kicker { color: #476313; }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.result h2 { margin: 7px 0 4px; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.04em; }
#selectionText { margin: 0; max-width: 620px; color: #3d4c31; font-size: .9rem; }
.energy { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; text-align: right; }
.energy strong { font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -.06em; }
.energy span { font-weight: 850; }
.energy small { grid-column: 1 / -1; color: #50613f; font-size: .68rem; margin-top: 4px; }
.partial-warning { margin-top: 24px; padding: 12px 14px; border: 1px solid rgba(14,20,11,.3); background: rgba(255,255,255,.2); border-radius: 11px; font-size: .8rem; font-weight: 650; }
.macro-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(10,17,8,.24); border-bottom: 1px solid rgba(10,17,8,.24); margin-top: 32px; }
.macro-grid > div { padding: 18px 12px; border-right: 1px solid rgba(10,17,8,.18); }
.macro-grid > div:first-child { padding-left: 0; }
.macro-grid > div:last-child { border-right: 0; }
.macro-grid span { display: block; color: #526541; font-size: .68rem; }
.macro-grid strong { font-size: 1.05rem; }
.declaration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.declaration-card { min-height: 120px; border: 1px solid rgba(11,17,9,.2); border-radius: 14px; padding: 16px; background: rgba(255,255,255,.12); }
.declaration-card h3 { margin: 0 0 12px; font-size: .82rem; }
.badge-list { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { border: 1px solid rgba(11,17,9,.25); border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 750; }
.muted { color: #536546; font-size: .76rem; }
.result-footnote { margin: 20px 0 0; color: #526541; font-size: .7rem; max-width: 780px; }

.ingredients, .legend { padding: clamp(56px, 9vw, 92px) 0; }
.legend { border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 710px; margin: -8px 0 24px; font-size: .9rem; }
.chooser > .section-intro { max-width: none; margin: 18px 0 0; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.filter { white-space: nowrap; border: 1px solid var(--line); background: var(--panel); color: #bdc5bf; border-radius: 999px; padding: 8px 12px; cursor: pointer; font-size: .76rem; }
.filter.active { background: var(--green); border-color: var(--green); color: #0b1109; font-weight: 800; }
.drink-list { display: grid; gap: 26px; }
.drink-group h3 { margin: 0 0 10px; color: var(--green); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.drink-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drink-card { position: relative; min-height: 112px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.drink-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drink-title strong { color: var(--text); font-size: .96rem; }
.drink-title span { color: var(--green); font-weight: 800; white-space: nowrap; }
.drink-card p { margin: 10px 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.drink-nutrition { color: #d9e1db !important; }
.caffeine-note { padding: 9px 10px; border-radius: 10px; background: rgba(255,210,74,.07); border: 1px solid rgba(255,210,74,.22); color: #e4dfcc !important; }
.drink-note { margin-top: 22px; }
.subsection-title { margin: 34px 0 12px; color: var(--green); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.drink-milk-chooser { margin: 0 0 30px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.drink-milk-chooser legend { padding: 0 8px; color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.milk-segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.milk-segmented label { position: relative; min-width: 0; }
.milk-segmented input { position: absolute; opacity: 0; }
.milk-segmented span { min-height: 62px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: .66rem; cursor: pointer; }
.milk-segmented strong { color: var(--ink); font-size: .78rem; }
.milk-segmented input:checked + span { background: var(--green); border-color: var(--green); color: #263217; }
.milk-segmented input:checked + span strong { color: #091008; }
.milk-segmented input:focus-visible + span { outline: 3px solid rgba(183,255,42,.4); outline-offset: 2px; }
@media (max-width: 620px) { .drink-grid { grid-template-columns: 1fr; } }
.ingredient-list { border-top: 1px solid var(--line); }
.ingredient-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 1.4fr 1.4fr auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ingredient-row strong { font-size: .86rem; }
.ingredient-row p { margin: 0; color: #bac3bd; font-size: .76rem; }
.category-label { display: block; color: var(--green); text-transform: uppercase; letter-spacing: .09em; font-size: .6rem; margin-bottom: 3px; }
.status { justify-self: end; white-space: nowrap; font-size: .62rem; border-radius: 999px; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); }
.status.confirmed { color: var(--green); border-color: #496325; }
.status.pending { color: var(--yellow); border-color: #705e24; }
.legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.legend-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; background: var(--panel); font-size: .78rem; }
.legend-code { flex: 0 0 30px; height: 30px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); border-radius: 8px; font-weight: 900; }
.legal-details { margin-top: 32px; border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; background: var(--panel); }
.legal-details summary { padding: 17px 0; cursor: pointer; font-weight: 800; }
.legal-details p { color: var(--muted); font-size: .8rem; }
.source-links { display: flex; gap: 12px; margin: 18px 0; }
.source-links a { color: var(--green); font-size: .78rem; }

footer { border-top: 1px solid var(--line); background: #050806; }
.footer-inner { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; }
.footer-inner > div { display: flex; flex-direction: column; }
.footer-inner strong { font-size: .82rem; }
.footer-inner span, .footer-inner a, .footer-inner small { color: var(--muted); font-size: .72rem; }
.footer-inner small { grid-column: 1 / -1; }

@media (min-width: 760px) {
  .option-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .option-grid.toppings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .option-card label { min-height: 96px; }
  .option-grid.toppings .option-card label { min-height: 108px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 78px; }
  .brand img { width: 50px; height: 50px; }
  .brand strong { font-size: .8rem; }
  .mini-link { font-size: .72rem; }
  .result-top { display: block; }
  .energy { margin-top: 25px; justify-content: start; text-align: left; }
  .macro-grid { grid-template-columns: repeat(3, 1fr); }
  .macro-grid > div { border-bottom: 1px solid rgba(10,17,8,.18); }
  .macro-grid > div:nth-child(3n) { border-right: 0; }
  .declaration-grid { grid-template-columns: 1fr; }
  .ingredient-row { grid-template-columns: 1fr auto; gap: 7px 12px; }
  .ingredient-row > p { grid-column: 1 / -1; }
  .ingredient-row .status { grid-column: 2; grid-row: 1; }
  .legend-grid { grid-template-columns: repeat(2, 1fr); }
  .milk-segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .shell, .site-header { width: min(calc(100% - 22px), var(--max)); }
  .brand span { display: none; }
  .option-grid { grid-template-columns: 1fr; }
  .option-card label { min-height: 64px; }
  .segmented span { min-height: 58px; }
  .legend-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.meal-options{grid-template-columns:repeat(2,minmax(0,1fr))}.segmented input:focus-visible+span{outline:3px solid white;outline-offset:2px}
