/* Nutrition plan builder. Sits on top of styles.css and uses its tokens. */
:root {
  --nu-card: rgb(255 255 255 / .05);
  --nu-card-2: rgb(255 255 255 / .08);
  --nu-photo: .42;
  --nu-glow: .5;
  --nu-accent: #ff7a3d;
  --nu-p: #e8622a; --nu-c: #8f6ee8; --nu-f: #de4a82;
  --nu-sheet: cubic-bezier(.32, .72, 0, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { --nu-card: rgb(255 255 255 / .62); --nu-card-2: #fff; --nu-photo: .17; --nu-glow: .28; --nu-accent: #d9480f; --nu-p: #d9480f; --nu-c: #6b2fc4; --nu-f: #c2185b; }
}
:root[data-theme="light"] { --nu-card: rgb(255 255 255 / .62); --nu-card-2: #fff; --nu-photo: .17; --nu-glow: .28; --nu-accent: #d9480f; --nu-p: #d9480f; --nu-c: #6b2fc4; --nu-f: #c2185b; }

body.nu-open { overflow: hidden; }
body.nu-done .nu-hero, body.nu-done .crumbs { display: none; }

/* Landing */
.nu-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(760px, calc(100svh - var(--header) - 44px)); margin: 12px var(--frame) 0; padding: clamp(24px, 4.6vw, 64px); overflow: hidden; border-radius: var(--r-xl); background: #0c0812; color: #fff; }
.nu-hero-bg { position: absolute; inset: 0; z-index: -2; }
.nu-hero-bg picture, .nu-hero-bg img { display: block; width: 100%; height: 100%; }
.nu-hero-bg img { object-fit: cover; object-position: 70% 50%; animation: nu-drift 26s var(--ease-io) infinite alternate; will-change: transform; }
.nu-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 6 12 / .86) 0%, rgb(8 6 12 / .55) 46%, rgb(8 6 12 / 0) 80%), linear-gradient(0deg, rgb(8 6 12 / .55), rgb(8 6 12 / 0) 55%); }
@keyframes nu-drift { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.6%, 0, 0); } }
.nu-hero h1 { font-size: clamp(3.5rem, 10.5vw, 9rem); font-weight: 400; line-height: .96; letter-spacing: -.05em; max-width: 10ch; }
.nu-hero h1 b { font-weight: 650; }
.nu-hero .lede { max-width: 34rem; margin-top: clamp(14px, 2vw, 24px); color: rgb(255 255 255 / .86); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.38; letter-spacing: -.016em; }
.nu-hero .actions { margin-top: clamp(20px, 3vw, 34px); }
.nu-hero .q-enter { color: rgb(255 255 255 / .7); }
.nu-hero .q-enter kbd { border-color: rgb(255 255 255 / .28); color: #fff; }
.nu-hero .btn { --btn-bg: #fff; --btn-fg: #08060c; }
.nu-hero-facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: clamp(24px, 4vw, 44px); padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .18); }
.nu-hero-facts dt { color: rgb(255 255 255 / .62); font-size: .875rem; }
.nu-hero-facts dd { margin: 2px 0 0; font-weight: 500; }
.nu-rise { animation: nu-rise 1.2s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes nu-rise { from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(10px); } }

/* Full-screen flow */
.nu { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); color: var(--fg); will-change: clip-path, transform; }
.nu[hidden] { display: none; }
.nu-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.nu-photo { position: absolute; inset: -6%; opacity: var(--nu-photo); transform: translate3d(calc(var(--prog, 0) * -5%), 0, 0) scale(1.06); transition: transform 2s var(--ease); will-change: transform; -webkit-mask-image: linear-gradient(100deg, transparent 22%, #000 78%); mask-image: linear-gradient(100deg, transparent 22%, #000 78%); }
.nu-photo picture, .nu-photo img { display: block; width: 100%; height: 100%; }
.nu-photo img { object-fit: cover; object-position: 80% 50%; }
.nu-glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: var(--nu-glow); background: radial-gradient(closest-side, rgb(122 44 209 / .55), transparent); left: -24vmax; bottom: -34vmax; animation: nu-float 18s ease-in-out infinite alternate; will-change: transform; }
.nu-glow.b { background: radial-gradient(closest-side, rgb(255 106 43 / .34), transparent); left: auto; right: -30vmax; bottom: auto; top: -40vmax; animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes nu-float { to { transform: translate3d(9vmax, -6vmax, 0) scale(1.14); } }
.nu > *:not(.nu-bg) { position: relative; z-index: 1; }

.nu-top { display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 20px; padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 10px; }
.nu-top .logo svg { height: 30px; }
.nu-progress { display: grid; gap: 8px; text-align: center; }
.nu-chapter { color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: -.01em; }
.nu-chapters { display: flex; gap: 5px; }
.nu-chapters i { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line); }
.nu-chapters b { display: block; height: 100%; border-radius: 3px; background: var(--heat); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.nu-close { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--nu-card); color: inherit; cursor: pointer; transition: scale .5s var(--spring), background-color .3s; }
.nu-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: rotate .7s var(--ease); }
.nu-close:active { scale: .9; }
@media (hover: hover) { .nu-close:hover svg { rotate: 90deg; } }

.nu-stage { position: relative; min-height: 0; }
.nu-panel { position: absolute; inset: 0; display: flex; padding: clamp(14px, 2.6vh, 36px) var(--gutter); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.nu-panel::-webkit-scrollbar { display: none; }
.nu-panel.leaving { pointer-events: none; }
.nu-panel-in { width: min(100%, 44rem); margin: auto; will-change: transform, opacity; }
.nu-title { font-size: clamp(2.125rem, 5.4vw, 4.25rem); font-weight: 450; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.nu-title:focus, #plan-title:focus { outline: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; padding-right: .03em; margin-right: -.03em; }
.wi { display: inline-block; transform-origin: 0 100%; }
.nu-hint { margin-top: 12px; max-width: 36rem; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.38; letter-spacing: -.014em; }

.nu-opts { display: grid; gap: 9px; margin-top: clamp(20px, 3.4vh, 34px); }
@media (min-width: 720px) { .nu-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nu-opt, .nu-tile { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); background: var(--nu-card); color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: scale .55s var(--spring), translate .55s var(--ease), border-color .35s, color .3s, opacity .4s var(--ease); }
.nu-opt { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 60px; padding: 11px 15px; border-radius: 18px; text-align: left; }
.nu-opt::before, .nu-tile::before { content: ""; position: absolute; z-index: -1; left: var(--bx, 50%); top: var(--by, 50%); width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .85s var(--ease); }
.nu-opt[aria-pressed="true"], .nu-tile[aria-pressed="true"] { border-color: transparent; color: #fff; }
.nu-opt[aria-pressed="true"]::before, .nu-tile[aria-pressed="true"]::before { transform: scale(110); }
.nu-opt:active, .nu-tile:active { scale: .975; transition-duration: .12s; }
.nu-opt.dim, .nu-tile.dim { opacity: .42; }
@media (hover: hover) {
  .nu-opt:not([aria-pressed="true"]):hover { translate: 5px 0; border-color: var(--brand-ink); }
  .nu-tile:not([aria-pressed="true"]):hover { translate: 0 -3px; border-color: var(--brand-ink); }
}
.nu-key { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .75rem; transition: color .3s, border-color .3s, background-color .3s; }
.nu-opt[aria-pressed="true"] .nu-key { border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .16); color: #fff; }
@media (hover: none) { .nu-key { display: none; } .nu-opt { padding-inline: 18px; } }
.nu-opt-t { flex: 1; min-width: 0; }
.nu-opt-t b { display: block; font-weight: 550; font-size: 1.0625rem; line-height: 1.22; letter-spacing: -.018em; }
.nu-opt-t small { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; line-height: 1.25; transition: color .3s; }
.nu-opt[aria-pressed="true"] small { color: rgb(255 255 255 / .78); }
.nu-tick { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nu-tick path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s var(--ease) .1s; }
[aria-pressed="true"] > .nu-tick path, .on > .nu-tick path, input:checked + i .nu-tick path { stroke-dashoffset: 0; }

.nu-tiles { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; margin-top: clamp(22px, 3.4vh, 36px); }
.nu-tile { display: grid; place-content: center; justify-items: center; gap: 2px; min-height: clamp(76px, 12vh, 104px); padding: 8px 4px; border-radius: 20px; }
.nu-tile b { font-size: clamp(1.625rem, 3.4vw, 2.25rem); font-weight: 450; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.nu-tile small { color: var(--muted); font-size: .875rem; transition: color .3s; }
.nu-tile[aria-pressed="true"] small { color: rgb(255 255 255 / .78); }
@media (max-width: 560px) { .nu-tiles[style*="--n:8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.nu-line { position: relative; display: flex; align-items: baseline; gap: 12px; margin-top: clamp(20px, 3.4vh, 36px); padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.nu-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--heat); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.nu-line:focus-within::after { transform: scaleX(1); }
.nu-line input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--fg); font: 450 clamp(1.75rem, 4.4vw, 3rem)/1.15 var(--font); letter-spacing: -.035em; outline: none; }
.nu-line input::placeholder { color: var(--muted); opacity: .55; }
.nu-line-num input { flex: none; width: 3ch; font-variant-numeric: tabular-nums; }
.nu-suffix { color: var(--muted); font-size: 1.125rem; }
.nu-err { min-height: 1.45em; margin-top: 8px; color: var(--nu-accent); font-size: .9375rem; font-weight: 500; }
.nu-small { margin-top: 14px; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.nu-livetext { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

.nu-scale { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: clamp(16px, 3vh, 30px); }
.nu-read { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.nu-big { min-width: 2ch; padding: 0; border: 0; background: none; color: var(--fg); font: 400 clamp(4.25rem, 11vw, 7.5rem)/1 var(--font); letter-spacing: -.055em; font-variant-numeric: tabular-nums; outline: none; transition: width .35s var(--ease); }
.nu-big:focus { color: var(--brand-ink); }
.nu-unit { color: var(--muted); font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.02em; }
.nu-seg { position: relative; flex: none; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--nu-card); }
.nu-seg > i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 999px; background: var(--fg); transform: translate3d(calc(var(--i, 0) * 100%), 0, 0); transition: transform .6s var(--spring); }
.nu-seg button { position: relative; z-index: 1; min-width: 50px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 550 .9375rem var(--font); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: color .35s, scale .5s var(--spring); }
.nu-seg button:active { scale: .94; }
.nu-seg button[aria-pressed="true"] { color: var(--bg); }

.nu-ruler { position: relative; margin-top: clamp(14px, 2.6vh, 26px); padding-block: 8px 22px; }
.nu-ruler::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 9px; pointer-events: none; opacity: .55; background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 10%) 0 0 / 100% 100%, repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 2%) 0 100% / 100% 45% no-repeat; }
.nu-ruler input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 34px; margin: 0; background: none; cursor: grab; touch-action: pan-y; }
.nu-ruler input:active { cursor: grabbing; }
.nu-ruler input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #ff6a2b, #d3235f calc(var(--p, 0) * 70%), #7a2cd1 calc(var(--p, 0) * 100%), var(--line) calc(var(--p, 0) * 100%)); }
.nu-ruler input::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.nu-ruler input::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #ff6a2b, #d3235f 70%, #7a2cd1); }
.nu-ruler input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(18 11 27 / .08), 0 6px 18px rgb(18 11 27 / .32); transition: transform .5s var(--spring); }
.nu-ruler input:active::-webkit-slider-thumb { transform: scale(1.18); }
.nu-ruler input::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(18 11 27 / .08), 0 6px 18px rgb(18 11 27 / .32); }

.nu-ok { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: clamp(18px, 3vh, 28px); opacity: .45; transition: opacity .5s var(--ease); }
.nu-ok.ready { opacity: 1; }
.nu-ok .btn[aria-disabled="true"] { cursor: default; }
.nu-enter { color: var(--muted); font-size: .9375rem; opacity: 0; transform: translate3d(-8px, 0, 0); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.nu-ok.ready .nu-enter { opacity: 1; transform: none; }
.nu-enter kbd { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); }
@media (hover: none) { .nu-enter { display: none; } }

.nu-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--gutter) calc(14px + env(safe-area-inset-bottom)); color: var(--muted); }
.nu-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--nu-card); color: var(--fg); font: 550 .9375rem var(--font); letter-spacing: -.01em; cursor: pointer; transition: opacity .5s var(--ease), translate .6s var(--ease), scale .5s var(--spring); }
.nu-back span { transition: translate .6s var(--ease); }
.nu-back:active { scale: .95; }
.nu-back.off { opacity: 0; translate: -10px 0; pointer-events: none; }
@media (hover: hover) { .nu-back:hover span { translate: -4px 0; } }
.nu-count { font-size: .9375rem; font-variant-numeric: tabular-nums; overflow: hidden; }
.nu-roll { display: inline-block; color: var(--fg); font-weight: 600; }
.nu.building .nu-back, .nu.building .nu-count, .nu.building .nu-close { opacity: 0; pointer-events: none; transition: opacity .4s; }

/* Building screen */
.nu-build .nu-panel-in { width: min(100%, 34rem); }
.nu-build-k { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.nu-build-k b { font-size: clamp(4.75rem, 15vw, 9rem); font-weight: 400; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.nu-build-k span { color: var(--muted); font-size: 1.25rem; letter-spacing: -.02em; }
.nu-build-l { display: grid; gap: 12px; margin-top: 26px; }
.nu-build-l li { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; letter-spacing: -.016em; opacity: .28; transition: opacity .6s var(--ease); }
.nu-build-l li.on { opacity: 1; }
.nu-build-l .nu-tick { color: var(--nu-accent); }
.nu-build-bar { height: 3px; margin-top: 30px; overflow: hidden; border-radius: 3px; background: var(--line); }
.nu-build-bar i { display: block; height: 100%; background: var(--heat); transform: scaleX(0); transform-origin: left; }

/* Results */
.nu-plan { padding: 12px var(--frame) 0; }
.nu-plan[hidden] { display: none; }
.nu-plan > *:not(.nu-sum) { margin-inline: clamp(10px, 2.6vw, 44px); }
.nu-sum { --nu-p: #e8622a; --nu-c: #8f6ee8; --nu-f: #de4a82; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: #0c0812; color: #fff; }
.nu-sum-bg { position: absolute; inset: 0; z-index: -1; }
.nu-sum-bg picture, .nu-sum-bg img { display: block; width: 100%; height: 100%; }
.nu-sum-bg img { object-fit: cover; object-position: 70% 40%; opacity: .55; }
.nu-sum-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 6 12 / .46), rgb(8 6 12 / .84)); }
.nu-sum-in { padding: clamp(24px, 4.6vw, 64px); }
.nu-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nu-tags span { padding: 5px 12px; border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; background: rgb(255 255 255 / .08); font-size: .875rem; font-weight: 500; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#plan-title { margin-top: 18px; font-size: clamp(2.75rem, 7.6vw, 6.25rem); font-weight: 450; line-height: .98; letter-spacing: -.05em; }
.nu-sum-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; gap: clamp(28px, 5vw, 80px); margin-top: clamp(30px, 5vw, 64px); }
.nu-big-k b { display: block; font-size: clamp(5rem, 13vw, 10rem); font-weight: 400; line-height: .92; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.nu-k-l { margin-top: 6px; font-size: 1.1875rem; letter-spacing: -.016em; }
.nu-k-d { margin-top: 4px; color: rgb(255 255 255 / .72); font-size: 1rem; }
.nu-sum .nu-seg { margin-top: 18px; border-color: rgb(255 255 255 / .22); background: rgb(255 255 255 / .1); }
.nu-sum .nu-seg > i { background: #fff; }
.nu-sum .nu-seg button { padding: 0 16px; color: rgb(255 255 255 / .78); }
.nu-sum .nu-seg button[aria-pressed="true"] { color: #08060c; }
.nu-bar { display: flex; gap: 2px; height: 16px; }
.nu-bar i { display: block; flex: 1 1 0; min-width: 4px; border-radius: 2px; transition: flex-grow .9s var(--ease), opacity .3s; }
.nu-bar i:first-child { border-radius: 8px 2px 2px 8px; }
.nu-bar i:last-child { border-radius: 2px 8px 8px 2px; }
.s-p { background: var(--nu-p); } .s-c { background: var(--nu-c); } .s-f { background: var(--nu-f); }
.nu-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.nu-legend > div { transition: opacity .3s; }
.nu-legend dt { display: flex; align-items: center; gap: 7px; color: rgb(255 255 255 / .78); font-size: .9375rem; }
.nu-legend dt i { width: 9px; height: 9px; border-radius: 3px; }
.nu-legend dd { margin: 4px 0 0; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.nu-legend b { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 450; letter-spacing: -.04em; }
.nu-legend small { display: block; color: rgb(255 255 255 / .62); font-size: .875rem; }
.nu-macros.has-focus [data-seg]:not(.on), .nu-macros.has-focus [data-row]:not(.on) { opacity: .38; }

.nu-rv { opacity: 0; transform: translate3d(0, 40px, 0); filter: blur(10px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.nu-rv.in { opacity: 1; transform: none; filter: none; }

.nu-notes { display: grid; gap: 8px; margin-top: clamp(20px, 3vw, 32px); max-width: 54rem; }
.nu-notes li { position: relative; padding: 14px 18px 14px 40px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); line-height: 1.4; }
.nu-notes li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-ink); }
.nu-notes .k-care::before { background: var(--nu-accent); }

.nu-card { padding: clamp(20px, 2.8vw, 34px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.nu-proj, .nu-plan > .nu-card { margin-top: clamp(20px, 3vw, 32px); }
.nu-card h3, .nu-sec-head h3 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 450; letter-spacing: -.045em; line-height: 1.02; }
.nu-card-lead { max-width: 40rem; margin-top: 10px; color: var(--muted); font-size: 1.125rem; line-height: 1.38; }
.nu-chart { margin-top: 22px; }
.nu-chart-ends { display: flex; justify-content: space-between; gap: 16px; }
.nu-chart-ends span:last-child { text-align: right; }
.nu-chart-ends small { display: block; color: var(--muted); font-size: .9375rem; }
.nu-chart-ends b { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 450; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.nu-plot { position: relative; height: clamp(130px, 19vw, 200px); margin-top: 8px; border-bottom: 1px solid var(--line); cursor: crosshair; touch-action: pan-y; }
.nu-plot svg { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; }
.nu-plot svg { clip-path: inset(-20% 100% -20% 0); }
.nu-l { fill: none; stroke: var(--nu-accent); stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.drawn .nu-plot svg { animation: nu-draw 1.8s var(--ease) .2s forwards; }
@keyframes nu-draw { to { clip-path: inset(-20% 0 -20% 0); } }
.nu-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: 0; transition: opacity .2s; pointer-events: none; }
.nu-dotp { position: absolute; width: 12px; height: 12px; margin: -6px; border: 2px solid var(--surface); border-radius: 50%; background: var(--nu-accent); opacity: 0; transition: opacity .2s; pointer-events: none; }
.nu-tip { position: absolute; top: -6px; padding: 5px 10px; border-radius: 9px; background: var(--fg); color: var(--bg); font-size: .875rem; font-weight: 550; white-space: nowrap; transform: translateX(-50%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.nu-plot.hot .nu-cross, .nu-plot.hot .nu-dotp, .nu-plot.hot .nu-tip { opacity: 1; }

.nu-tiles-stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(14px, 2vw, 20px); }
.nu-stat { padding: clamp(18px, 2.2vw, 26px); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.nu-stat small { color: var(--muted); font-size: .9375rem; }
.nu-stat p { margin-top: 2px; font-size: 1.0625rem; }
.nu-stat p b { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 450; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.nu-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: .9375rem; line-height: 1.32; }

.nu-week, .nu-play { margin-top: clamp(44px, 7vw, 88px); }
.nu-sec-head p { max-width: 38rem; margin-top: 10px; color: var(--muted); font-size: 1.125rem; line-height: 1.38; }
.nu-tabs { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.nu-tab-i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 7); border-radius: 14px; background: var(--brand); transform: translate3d(calc(var(--i, 0) * 100%), 0, 0); transition: transform .7s var(--spring); }
.nu-tabs button { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; min-height: 58px; align-content: center; padding: 0; border: 0; background: none; color: var(--fg); font: 550 1rem var(--font); letter-spacing: -.01em; cursor: pointer; transition: color .35s, scale .5s var(--spring); }
.nu-tabs button:active { scale: .93; }
.nu-tabs button[aria-selected="true"] { color: #fff; }
.nu-tabs u { width: 5px; height: 5px; border-radius: 50%; background: var(--line); text-decoration: none; }
.nu-tabs u.is-train { background: var(--nu-accent); }
.nu-tabs button[aria-selected="true"] u { background: rgb(255 255 255 / .5); }
.nu-tabs button[aria-selected="true"] u.is-train { background: #ffb36b; }
.nu-day { margin-top: 18px; }
.nu-day-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-inline: 4px; }
.nu-day-name { font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.nu-day-name em { margin-left: 10px; color: var(--muted); font-size: 1rem; font-style: normal; font-weight: 400; letter-spacing: -.012em; }
.nu-day-total { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.nu-day-total b { color: var(--fg); font-weight: 600; }
.nu-meals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.nu-meal { padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); transition: translate .7s var(--ease), border-color .4s; }
@media (hover: hover) { .nu-meal:hover { translate: 0 -3px; border-color: var(--brand-ink); } }
.nu-meal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nu-slot { color: var(--muted); font-size: .9375rem; font-weight: 500; }
.nu-slot time { margin-right: 8px; color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.nu-meal.is-free { border-style: dashed; background: var(--surface-2); }
.nu-meal.is-fixed { background: var(--surface-2); }
.nu-meal.is-fixed h4 { font-size: 1.25rem; }
.nu-why { border-color: var(--brand-ink); }
.nu-why b { color: var(--fg); font-weight: 600; }
.nu-slot em { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--fg); font-size: .8125rem; font-style: normal; white-space: nowrap; }
.nu-swap { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 9px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--fg); font: 550 .875rem var(--font); cursor: pointer; transition: scale .5s var(--spring), background-color .3s; }
.nu-swap svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nu-swap:active { scale: .93; }
@media (hover: hover) { .nu-swap:hover { background: var(--surface-2); } }
.nu-meal h4 { margin: 10px 0 8px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -.034em; line-height: 1.1; }
.nu-meal ul { display: grid; gap: 3px; color: var(--muted); font-size: 1rem; line-height: 1.32; }
.nu-meal-macros { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.nu-meal-macros b { color: var(--fg); font-weight: 600; }

.nu-play-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 18px; }
.nu-play-grid h4 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.03em; }
.nu-play-grid p { margin-top: 8px; color: var(--muted); line-height: 1.4; }

.nu-shop { margin-top: clamp(14px, 2vw, 20px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.nu-shop summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: clamp(18px, 2.4vw, 28px) clamp(20px, 2.8vw, 34px); list-style: none; cursor: pointer; }
.nu-shop summary::-webkit-details-marker { display: none; }
.nu-shop summary span { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 450; letter-spacing: -.04em; }
.nu-shop summary small { color: var(--muted); font-size: 1rem; }
.nu-shop::details-content { height: 0; overflow: clip; transition: height .8s var(--ease), content-visibility .8s allow-discrete; }
.nu-shop[open]::details-content { height: auto; }
.nu-shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 22px 36px; padding: 0 clamp(20px, 2.8vw, 34px) clamp(20px, 2.8vw, 34px); }
.nu-shop-g h4 { color: var(--muted); font-size: .9375rem; font-weight: 500; }
.nu-shop-g ul { margin-top: 6px; }
.nu-shop label { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.nu-shop label input { position: absolute; opacity: 0; pointer-events: none; }
.nu-shop label i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 7px; transition: background-color .35s, border-color .35s, scale .5s var(--spring); }
.nu-shop label .nu-tick { width: 16px; height: 16px; color: #fff; }
.nu-shop label:active i { scale: .86; }
.nu-shop input:checked + i { border-color: var(--brand); background: var(--brand); }
.nu-shop label span { flex: 1; background: linear-gradient(currentColor, currentColor) 0 55% / 0 1px no-repeat; transition: background-size .6s var(--ease), color .4s; }
.nu-shop input:checked ~ span { background-size: 100% 1px; color: var(--muted); }
.nu-shop input:focus-visible + i { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.nu-shop label b { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

.nu-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: clamp(28px, 4vw, 44px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.nu-text-btn { padding: 10px 0; border: 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat; color: var(--fg); font: 500 1rem var(--font); letter-spacing: -.012em; text-decoration: none; cursor: pointer; transition: background-size .6s var(--ease); }
@media (hover: hover) { .nu-text-btn:hover { background-size: 0 1px; background-position: 100% calc(100% - 8px); } }
.nu-legal { max-width: 54rem; margin-block: 22px clamp(40px, 7vw, 80px); color: var(--muted); font-size: .9375rem; line-height: 1.4; }

.nu-hold { max-width: 44rem; margin-inline: clamp(10px, 2.6vw, 44px); padding-block: clamp(32px, 8vh, 96px); }
.nu-hold h2 { font-size: clamp(2.75rem, 7.6vw, 5.75rem); font-weight: 450; line-height: 1; letter-spacing: -.05em; }
.nu-hold p { margin-top: 18px; font-size: 1.1875rem; line-height: 1.4; }
.nu-hold .actions { margin-top: 30px; }

@media (max-width: 820px) {
  .nu-top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .nu-top .logo svg { height: 24px; }
  .nu-sum-grid { grid-template-columns: minmax(0, 1fr); }
  .nu-meals { grid-template-columns: minmax(0, 1fr); }
  .nu-hero { justify-content: flex-end; }
  .nu-hero::after { background: linear-gradient(0deg, rgb(8 6 12 / .9) 8%, rgb(8 6 12 / .46) 66%, rgb(8 6 12 / .22)); }
  .nu-hero-facts { gap: 8px 24px; }
  .nu-plan > *:not(.nu-sum) { margin-inline: 8px; }
}
@media (max-width: 480px) {
  .nu-big { font-size: 4.25rem; }
  .nu-scale { align-items: center; }
  .nu-opt { min-height: 56px; border-radius: 16px; }
  .nu-tabs button { font-size: .9375rem; }
}
@media (max-height: 700px) {
  .nu-title { font-size: clamp(1.75rem, 4.6vw, 2.75rem); }
  .nu-opt { min-height: 50px; padding-block: 8px; }
  .nu-tile { min-height: 64px; }
}
@media (max-width: 640px) {
  .nu-compact { gap: 6px; margin-top: 16px; }
  .nu-compact .nu-opt { min-height: 46px; padding-block: 7px; border-radius: 14px; }
  .nu-compact .nu-opt-t b { font-size: 1rem; }
  .nu-compact + .nu-ok { position: sticky; bottom: 0; margin-top: 4px; padding-block: 14px 4px; background: linear-gradient(transparent, var(--bg) 32%); }
  body.nu-done { padding-bottom: 76px; }
  .nu-tiles-stat { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media print {
  main > section.nu-plan { display: block !important; }
  .nu, .nu-hero, .no-print, .nu-sum-bg, .nu-seg { display: none !important; }
  .nu-bar i, .nu-legend dt i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nu-plan { padding: 0; }
  .nu-plan > *:not(.nu-sum) { margin-inline: 0; }
  .nu-sum { background: #fff; color: #000; border-radius: 0; }
  .nu-sum-in { padding: 0; }
  .nu-tags span { border-color: #bbb; }
  .nu-k-d, .nu-legend dt, .nu-legend small { color: #333; }
  .nu-rv { opacity: 1 !important; transform: none !important; filter: none !important; }
  .nu-day[hidden] { display: block !important; }
  .nu-day { break-inside: avoid; margin-top: 16pt; }
  .nu-meal, .nu-card, .nu-stat, .nu-shop-g { break-inside: avoid; }
  .nu-shop > *:not(summary) { display: block !important; height: auto !important; content-visibility: visible !important; }
  .nu-shop::details-content { height: auto !important; content-visibility: visible !important; }
  .nu-shop summary small { display: none; }
  .nu-plot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nu-rv { opacity: 1; transform: none; filter: none; }
  .nu-plot svg { clip-path: none; }
}

/* Free assessment: protein beside calories, then the paid next step */
.nu-sum-p .nu-big-k b { display: inline-block; }
.nu-big-k small { margin-left: .12em; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; }
.nu-offer { margin-top: clamp(56px, 8vw, 104px); }
.nu-eyebrow { margin-bottom: 10px; color: var(--nu-accent); font-size: .9375rem; font-weight: 500; letter-spacing: .02em; }
.nu-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 24px; align-items: start; }
.nu-tier { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.nu-tier.is-main { border-color: var(--nu-accent); box-shadow: 0 0 0 1px var(--nu-accent) inset; }
.nu-tier h4 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.nu-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; }
.nu-price b { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 450; letter-spacing: -.05em; line-height: 1; }
.nu-price span { color: var(--muted); font-size: 1rem; }
.nu-tier ul { display: grid; gap: 10px; }
.nu-tier li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.35; }
.nu-tier li .nu-tick { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke: var(--nu-accent); }
.nu-tier .btn { align-self: flex-start; }
.nu-fine { color: var(--muted); font-size: .9375rem; line-height: 1.38; }
@media print { .nu-offer .btn { display: none; } }
.nu-tier .nu-tick path { stroke-dashoffset: 0; }

.nu-credit { padding: 12px 14px; border-radius: var(--r-m); background: color-mix(in srgb, var(--nu-accent) 12%, transparent); color: var(--fg); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.nu-after { margin-top: 18px; }
