/* Smoothie King · Fruit Up. Brand colors lead, fruit colors only touch the fruit. */
:root {
  --primary: #155e3a; --primary-hover: #0f472b; --primary-soft: rgba(21, 94, 58, .08);
  --accent: #19b660; --accent-dark: #0d8042;
  --action: #e5232d; --action-hover: #bf1720;
  --bg: #faf8f4; --surface: #ffffff; --sage: #edf5f0; --muted-surface: #f3efe8; --surface-dark: #0f2e1c; --ink: #07110b;
  --text: #141a16; --text-2: #46524b; --muted: #6e7b73; --border: #e4dfd5; --border-strong: #cfc8ba;
  --glass: #cfc8ba; --shine: rgba(255, 255, 255, .65); --rind-pale: #edf5f0; --board-text: #f5f2ea;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --spring: cubic-bezier(.22, 1, .36, 1);
  --r: 22px; --shadow: 0 10px 30px rgba(20, 26, 22, .07); --shadow-lift: 0 18px 44px rgba(20, 26, 22, .12);
  --topbar-h: 72px; --gutter: clamp(16px, 4vw, 48px);
  --seed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 5c3.4 4.6 4.6 8 4.6 10.4a4.6 4.6 0 0 1-9.2 0C10.4 13 11.6 9.6 15 5z' fill='%230f2e1c' fill-opacity='.13' transform='rotate(-18 15 15)'/%3E%3C/svg%3E");
  --seed-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 5c3.4 4.6 4.6 8 4.6 10.4a4.6 4.6 0 0 1-9.2 0C10.4 13 11.6 9.6 15 5z' fill='%23ffffff' fill-opacity='.08' transform='rotate(-18 15 15)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] {
  --bg: #07110b; --surface: #0f2e1c; --sage: #133a24; --muted-surface: #0b2016; --text: #f5f2ea; --text-2: #b9c3ba; --muted: #8a968d;
  --border: #294134; --border-strong: #3a5a46; --glass: #4a6b56; --shine: rgba(255, 255, 255, .35); --rind-pale: #133a24;
  --primary-soft: rgba(25, 182, 96, .12); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lift: 0 18px 44px rgba(0, 0, 0, .5);
  --seed: var(--seed-light);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #07110b; --surface: #0f2e1c; --sage: #133a24; --muted-surface: #0b2016; --text: #f5f2ea; --text-2: #b9c3ba; --muted: #8a968d;
    --border: #294134; --border-strong: #3a5a46; --glass: #4a6b56; --shine: rgba(255, 255, 255, .35); --rind-pale: #133a24;
    --primary-soft: rgba(25, 182, 96, .12); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lift: 0 18px 44px rgba(0, 0, 0, .5);
    --seed: var(--seed-light);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); overflow-x: clip; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--display); font-size: clamp(38px, 6.5vw, 72px); line-height: .95; letter-spacing: .005em; color: var(--primary); text-transform: uppercase; }
html[data-theme="dark"] h2 { color: #f5f2ea; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) h2 { color: #f5f2ea; } }
.eyebrow { margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.mono { font-family: var(--mono); }
.tiny { font-size: 12px; color: var(--muted); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; padding: 10px 16px; background: var(--action); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
section { padding: clamp(56px, 9vw, 120px) var(--gutter); max-width: 1280px; margin-inline: auto; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head .sub, .download .sub { color: var(--text-2); font-size: 18px; margin: 14px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: 700 16px/1 var(--body); cursor: pointer; transition: transform .18s var(--spring), background-color .18s, color .18s, border-color .18s, box-shadow .18s; will-change: transform; user-select: none; }
.btn:active { transform: scale(.96); }
.btn-red { background: var(--action); color: #fff; box-shadow: 0 8px 20px rgba(229, 35, 45, .25); }
.btn-red:hover { background: var(--action-hover); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
html[data-theme="dark"] .btn-ghost { color: var(--accent); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .btn-ghost { color: var(--accent); border-color: var(--accent); } }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-xl { min-height: 64px; padding: 0 36px; font-size: 19px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: transform .18s var(--spring), background-color .18s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }
.theme .moon { display: none; }
html[data-theme="dark"] .theme .sun { display: none; }
html[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .theme .sun { display: none; } html:not([data-theme="light"]) .theme .moon { display: block; } }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar-h); display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.nav { display: flex; gap: 22px; margin-left: 8px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .18s, border-color .18s; }
.nav a:hover { color: var(--primary); border-color: var(--accent); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 64px); min-height: calc(100dvh - var(--topbar-h)); padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(32px, 6vw, 72px); max-width: none; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--seed); background-size: 30px 30px; -webkit-mask-image: radial-gradient(60% 55% at 92% 6%, #000 0, transparent 70%); mask-image: radial-gradient(60% 55% at 92% 6%, #000 0, transparent 70%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; margin-left: max(0px, calc((100vw - 1280px) / 2)); }
.hero h1 { font-family: var(--display); font-size: clamp(76px, 15vw, 170px); line-height: .9; letter-spacing: .005em; text-transform: uppercase; color: var(--primary); }
.hero h1 span { display: block; color: var(--text); }
html[data-theme="dark"] .hero h1 { color: #f5f2ea; }
html[data-theme="dark"] .hero h1 span { color: var(--accent); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .hero h1 { color: #f5f2ea; } html:not([data-theme="light"]) .hero h1 span { color: var(--accent); } }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-2); max-width: 46ch; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-juice-callout { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 165, 58, 0.14) 0%, rgba(25, 182, 96, 0.1) 100%); border: 1.5px solid rgba(255, 165, 58, 0.45); display: grid; gap: 10px; max-width: 540px; box-shadow: 0 8px 22px rgba(20, 26, 22, 0.06); }
.hjc-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 10px; border-radius: 999px; background: #ffa53a; color: #07110b; font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hjc-body { display: grid; gap: 3px; }
.hjc-body strong { font: 800 16.5px/1.25 var(--body); color: var(--text); }
.hjc-body span { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.hjc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-juice-cta { background: #ffa53a; color: #07110b; border-color: #ffa53a; font-weight: 800; box-shadow: 0 6px 16px rgba(255, 165, 58, 0.28); }
.btn-juice-cta:hover { background: #ff9319; border-color: #ff9319; }
.hero-stats { list-style: none; display: flex; gap: 28px; padding: 0; margin: 24px 0 0; }
.hero-stats b { display: block; font: 400 34px/1 var(--display); color: var(--primary); }
.hero-stats span { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[data-theme="dark"] .hero-stats b { color: var(--accent); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .hero-stats b { color: var(--accent); } }

.hero-art { position: relative; height: min(76vh, 640px); perspective: 1200px; --rx: 0deg; --ry: 0deg; margin-right: max(0px, calc((100vw - 1280px) / 2)); }
.hero-cup { position: absolute; left: 50%; top: 52%; height: 84%; aspect-ratio: 4 / 5; translate: -50% -50%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s var(--spring); z-index: 1; }
.hero-cup::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 26, 22, .28), transparent); filter: blur(10px); z-index: -1; }
.hero-svg { width: 100%; height: 100%; }
.hero-gl { position: absolute; left: 0; right: 0; bottom: 0; top: -45%; width: 100%; height: 145%; pointer-events: none; }
/* the Blender fruit-drop film sits where the cup is; the cup fades out once the film is in */
.hero-film { position: absolute; left: 50%; top: 50%; height: 100%; aspect-ratio: 4 / 5; translate: -50% -50%; z-index: 2; pointer-events: none; }
.hero-film canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 24px 30px rgba(20, 26, 22, .22)); }
.hero-art.has-film .hero-cup { opacity: 0; transition: opacity .6s var(--spring); pointer-events: none; }
.hero-art.has-film .f-melon2, .hero-art.has-film .f-lemon2 { opacity: 0; transition: opacity .6s; }
.cup-holder { position: relative; display: block; line-height: 0; }
.cup-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html.gl svg[data-liquid] .liquid, html.gl svg[data-liquid] .glass-fill, html.gl svg[data-liquid] .shine { opacity: 0; }
.fruit { position: absolute; width: clamp(64px, 9vw, 120px); filter: drop-shadow(0 12px 18px rgba(20, 26, 22, .18)); will-change: translate, rotate, transform; }
.fruit.is-render { height: auto; filter: drop-shadow(0 18px 22px rgba(20, 26, 22, .26)); }
.f-lemon { left: 2%; top: 8%; animation: drift1 7s ease-in-out infinite; }
.f-orange { right: 0; top: 18%; width: clamp(80px, 11vw, 150px); animation: drift2 9s ease-in-out infinite; }
.f-melon { left: -2%; bottom: 10%; width: clamp(90px, 12vw, 170px); animation: drift3 8s ease-in-out infinite; }
.f-melon2 { right: 4%; bottom: 2%; width: clamp(64px, 8vw, 110px); rotate: 150deg; animation: drift1 10s ease-in-out infinite reverse; }
.f-lemon2 { left: 38%; top: -2%; width: clamp(44px, 6vw, 80px); animation: drift2 6.5s ease-in-out infinite reverse; }
@keyframes drift1 { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 8px -20px; rotate: 6deg; } }
@keyframes drift2 { 0%, 100% { translate: 0 0; rotate: 5deg; } 50% { translate: -10px 16px; rotate: -7deg; } }
@keyframes drift3 { 0%, 100% { translate: 0 0; rotate: 12deg; } 50% { translate: 12px -14px; rotate: 20deg; } }
/* scroll parallax: app.js sets --py per fruit while the hero is on screen (drift uses translate/rotate, parallax uses transform, so they stack) */
.fruit { transform: translateY(var(--py, 0px)); }
.f-lemon { --speed: .32; } .f-orange { --speed: .18; } .f-melon { --speed: .24; } .f-melon2 { --speed: .14; } .f-lemon2 { --speed: .4; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .hero-art { height: min(64vw, 440px); margin: 0 8px; }
  .hero-cup { height: 86%; }
}

/* rind stripe: green band over a pale band, closes the hero */
.rind { display: grid; grid-template-rows: 18px 14px; }
.rind i:first-child { background: linear-gradient(90deg, var(--primary) 0%, var(--accent-dark) 55%, var(--accent) 100%); }
.rind i:last-child { background: var(--rind-pale) var(--seed); background-size: 30px 30px; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.story-art { position: relative; }
.story-art::before { content: ""; position: absolute; inset: 8% 4% 0; background: var(--sage); border-radius: 50% 50% 32px 32px / 44% 44% 32px 32px; z-index: 0; }
.story-art img { position: relative; z-index: 1; width: 100%; height: auto; }
.story-text { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: var(--text); white-space: pre-line; }
.sig { font-family: var(--display); font-size: 26px; color: var(--primary); margin: 18px 0 0; letter-spacing: .02em; }
.sig.big { font-size: clamp(34px, 5vw, 52px); }
.sig::before { content: ""; display: inline-block; width: 34px; height: 3px; background: var(--action); margin-right: 12px; vertical-align: middle; border-radius: 2px; }
html[data-theme="dark"] .sig { color: var(--accent); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .sig { color: var(--accent); } }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } .story-art { max-width: 320px; margin: 0 auto; } }

/* ---------- tips ---------- */
.tiplist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: tip; }
.tip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px 20px 20px; box-shadow: var(--shadow); display: grid; gap: 10px; transition: transform .25s var(--spring), box-shadow .25s; }
.tip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tipnum { font: 400 40px/1 var(--display); color: var(--accent); }
.tip p { margin: 0; font-size: 16px; color: var(--text); }

/* ---------- toolbar ---------- */
.toolbar { position: sticky; top: var(--topbar-h); z-index: 30; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 10px var(--gutter) 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pills, .chips { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 2px 0; }
.chips { margin-top: 8px; }
.pill, .chip { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font: 600 13.5px/1 var(--body); color: var(--text); cursor: pointer; white-space: nowrap; transition: transform .16s var(--spring), background-color .16s, color .16s, border-color .16s; }
.pill:active, .chip:active { transform: scale(.95); }
.pill { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pill.on, .pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip i { flex: none; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.chip small { font: 500 11px var(--mono); color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.count { margin: 8px 0 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: 12px; }

/* ---------- groups + cards ---------- */
.group { padding: 10px 0 44px; max-width: none; scroll-margin-top: calc(var(--topbar-h) + 118px); }
.group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 12px 0 18px; }
.group-head h3 { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); text-transform: uppercase; color: var(--primary); letter-spacing: .01em; }
html[data-theme="dark"] .group-head h3 { color: #f5f2ea; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .group-head h3 { color: #f5f2ea; } }
.gcount { font: 500 13px var(--mono); color: var(--muted); vertical-align: super; margin-left: 4px; }
.group-head p { margin: 0; color: var(--text-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { position: relative; display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 18px 18px 18px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); content-visibility: auto; contain-intrinsic-size: auto 340px; transition: transform .28s var(--spring), box-shadow .28s, opacity .3s, filter .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cupwrap { align-self: start; padding-top: 4px; }
.cup, .glass-svg { width: 100%; height: auto; overflow: visible; }
.glass { fill: none; stroke: var(--glass); stroke-width: 2; stroke-linejoin: round; }
.rim { fill: none; stroke: var(--glass); stroke-width: 1.5; opacity: .9; }
.shine { fill: none; stroke: var(--shine); stroke-width: 3.2; stroke-linecap: round; }
.layer { transform-box: fill-box; transform-origin: 50% 100%; transition: fill .6s var(--spring); }
.liquid { transform-box: fill-box; transform-origin: 50% 50%; }
.bub { fill: rgba(255, 255, 255, .55); opacity: 0; }
.shade, .glass-fill { pointer-events: none; }
.card-body { min-width: 0; display: grid; gap: 8px; align-content: start; }
.meta { display: flex; align-items: center; gap: 8px; }
.num { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.tag { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--sage); color: var(--primary); white-space: nowrap; }
.tag.new { background: var(--action); color: #fff; }
.card h3 { font: 800 20px/1.15 var(--body); letter-spacing: -.01em; color: var(--text); }
.ings { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 5px; }
.ings li { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.ings i { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ings i.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.step { margin: 4px 0 0; font-size: 15px; color: var(--text); }
.note { margin: 2px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--sage); border-radius: 0 12px 12px 0; font-size: 14px; font-style: italic; color: var(--text); }
.note .who { display: block; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); font-style: normal; margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.blend { min-height: 42px; padding: 0 18px; font-size: 14px; }
.blend[aria-pressed="true"] { background: var(--primary); box-shadow: none; }

/* pour-in: no JS means full cups. JS arms the cup (empty), then pours it when it scrolls in */
.armed .layer { transform: scaleY(0); }
.pour .layer { animation: pour .72s var(--spring) both; animation-delay: calc(var(--i) * 90ms); }
.hero-cup.pour .layer { animation-duration: .95s; animation-delay: calc(.15s + var(--i) * 150ms); }
@keyframes pour { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* unblended vs blended cup states: unblended shows real fruit cutouts, ice cubes & liquid juice base; blended shows velvety smoothie + Fruit Up logo badge */
.cup-blended-layers { opacity: 0; transition: opacity .45s var(--spring); }
.cup-unblended { opacity: 1; transition: opacity .45s var(--spring); }
.cup-fruit-piece { filter: drop-shadow(0 2.5px 3.5px rgba(15, 20, 16, .26)); }
.cup-brand-badge { opacity: 0; transform: scale(.65); transform-origin: 60px 77px; transition: opacity .45s var(--spring), transform .52s var(--spring); pointer-events: none; filter: drop-shadow(0 3px 6px rgba(10, 22, 14, .26)); }
.blended .cup-blended-layers { opacity: 1; }
.blended .cup-unblended { opacity: 0; }
.blended .cup-brand-badge, svg[data-blended="1"] .cup-brand-badge { opacity: 1; transform: scale(1); }
html.gl svg[data-liquid] .cup-brand-badge { opacity: 0 !important; }
.blended .layer { fill: var(--blend); }
.blended .liquid { animation: swirl .95s var(--spring); }
.blended .bub { animation: rise 1.3s ease-out 2; animation-delay: var(--d); }
@keyframes swirl { 0% { transform: rotate(0) scale(1); } 28% { transform: rotate(-8deg) scale(1.05, .96); } 58% { transform: rotate(7deg) scale(.97, 1.05); } 100% { transform: rotate(0) scale(1); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-80px) scale(1.2); } }

/* fruit filter: light up the hits, dim the rest */
.filtering .card:not(.hit) { opacity: .3; filter: saturate(.3); }
.filtering .card.hit { box-shadow: 0 0 0 3px var(--accent), var(--shadow-lift); }

@media (max-width: 420px) { .card { grid-template-columns: 92px 1fr; padding: 14px 14px 14px 10px; } .card h3 { font-size: 18px; } }

/* ---------- juices ---------- */
.jgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.jcard { grid-template-columns: 96px 1fr; }
.jcard .cupwrap { padding-top: 6px; }

/* ---------- juice and lemonade bar ---------- */
.board { position: relative; overflow: hidden; background: var(--surface-dark); color: var(--board-text); border-radius: 30px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-lift); }
.board::before { content: ""; position: absolute; inset: 0; background: var(--seed-light); background-size: 30px 30px; -webkit-mask-image: radial-gradient(50% 50% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(50% 50% at 100% 0%, #000, transparent 70%); pointer-events: none; }
.board::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--accent) 0 40%, #FFE36B 40% 70%, var(--action) 70% 100%); }
.board-label { position: relative; margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #FFE36B; }
.board-label + .menu, .bar-full { position: relative; }
.bar-full { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
@media (max-width: 720px) { .bar-full { grid-template-columns: 1fr; } }
.bf { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; transition: transform .25s var(--spring), background-color .25s; }
.bf .card-body { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.bf .actions { margin-top: auto; padding-top: 8px; }
.bf:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .09); }
.bf .glass { stroke: rgba(255, 255, 255, .55); } .bf .rim { stroke: rgba(255, 255, 255, .45); }
.bf h3 { font: 800 18px/1.15 var(--body); color: #fff; }
.bf .num { color: rgba(245, 242, 234, .55); }
.bf .tag { background: rgba(255, 227, 107, .16); color: #FFE36B; }
.bf .ings li { color: rgba(245, 242, 234, .85); font-size: 14px; }
.bf .note { background: rgba(255, 255, 255, .06); color: #fff; border-color: #FFE36B; }
.bf .note .who { color: #FFE36B; }
.menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 36px; }
.mi { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.mi i { margin-top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.mi b { display: block; font-size: 16px; color: #fff; }
.mi span { display: block; font-size: 14px; color: rgba(245, 242, 234, .72); }
.mi em { display: block; margin-top: 4px; font-size: 13px; color: #FFE36B; }

/* ---------- thanks + download ---------- */
.thanks { text-align: center; max-width: 820px; }
.thanks-text { font-size: clamp(18px, 2vw, 22px); line-height: 1.65; color: var(--text); margin: 18px auto 0; }
.download { text-align: center; max-width: 820px; padding-top: 0; }
.download .btn-xl { margin-top: 22px; }
.hint { margin: 14px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.install { margin-top: 36px; padding: 22px; border: 1px dashed var(--border-strong); border-radius: var(--r); display: grid; gap: 12px; justify-items: center; }
.install p { margin: 0; color: var(--text-2); }

/* ---------- footer ---------- */
.foot { display: grid; justify-items: center; gap: 8px; padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); text-align: center; color: var(--text-2); }
.foot img { width: 88px; height: 88px; object-fit: contain; }
.foot p { margin: 0; }

/* ---------- motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fruit, .pour .layer, .hero-cup.pour .layer, .blended .liquid, .blended .bub { animation: none !important; }
  .armed .layer { transform: none; }
  .hero-cup { transition: none; transform: none !important; }
  .card, .tip, .bf, .btn { transition-duration: .01ms; }
}


/* ---------- hero blender: Coach Bobby pours, lid on, blend + 120fps Kinetic Motion Graphics ---------- */
.hero-blender { position: absolute; left: 50%; top: 46%; height: 118%; aspect-ratio: 540 / 820; translate: -50% -50%; z-index: 2; display: none; }
.hero-art.has-blender .hero-blender { display: block; }
.hero-art.has-blender .hero-cup { display: none; }
.hero-art.has-blender .f-orange, .hero-art.has-blender .f-lemon2 { display: none; }
.hero-blender canvas { width: 100%; height: 100%; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Live Ingredient Trail Stack + Kinetic Motion Graphics Overlay */
.hb-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}
.hb-stack {
  position: absolute;
  top: 2.2%;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: max-content;
  max-width: 96%;
  padding: 0 6px;
}
.hb-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(7, 17, 11, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--pill-c, #FFA53A);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), 0 0 10px var(--pill-glow, rgba(255, 165, 58, 0.28));
  font: 700 9.5px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(-8px) scale(0.88);
  transition: opacity .34s var(--spring), transform .38s var(--spring), box-shadow .34s;
}
.hb-pill.in {
  opacity: 0.92;
  transform: translateY(0) scale(1);
}
.hb-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pill-c, #FFA53A);
  box-shadow: 0 0 6px var(--pill-c, #FFA53A);
}

/* Sleek Floating Glassmorphic Capsule Callout — positioned above the blender jar so churning stays 100% visible */
.hb-mograph {
  position: absolute;
  left: 50%;
  top: 17%;
  translate: -50% -50%;
  width: max-content;
  max-width: min(88%, 306px);
  pointer-events: none;
  perspective: 900px;
}
.hb-mg-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 7px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 22, 14, 0.72) 0%, rgba(12, 34, 22, 0.62) 100%);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border: 1.5px solid var(--mg-color, #FFA53A);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.32),
    0 0 18px var(--mg-glow, rgba(255, 165, 58, 0.35)),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-28px, 4px, 0) scale(0.92);
  transition:
    opacity .32s cubic-bezier(.22, 1, .36, 1),
    transform .46s cubic-bezier(.22, 1, .36, 1),
    border-color .28s,
    box-shadow .28s;
  will-change: transform, opacity;
}
.hb-mg-card.is-in {
  opacity: 0.96;
  transform: translate3d(0, 0, 0) scale(1);
}
.hb-mg-card.is-in.is-docked {
  opacity: 0.86;
  transform: translate3d(0, -34px, 0) scale(0.86);
}
.hb-mg-card.is-out {
  opacity: 0;
  transform: translate3d(28px, -4px, 0) scale(0.94);
}
/* Kinetic color-streak wipe bar */
.hb-mg-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #fff 0%, var(--mg-color, #FFA53A) 45%, var(--mg-color2, var(--mg-color, #FFA53A)) 100%);
  box-shadow: 0 0 10px var(--mg-color, #FFA53A);
}
.hb-mg-wipe {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 15%, var(--mg-glow, rgba(255, 165, 58, 0.35)) 50%, transparent 85%);
  opacity: 0;
  pointer-events: none;
}
.hb-mg-card.is-in .hb-mg-wipe {
  animation: mgWipe .68s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes mgWipe {
  0% { opacity: 1; background-position: -200px 0; }
  100% { opacity: 0; background-position: 300px 0; }
}
.hb-mg-icon-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 10px var(--mg-glow, rgba(255, 165, 58, 0.35));
  display: grid;
  place-items: center;
  flex: none;
}
.hb-mg-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  transform: scale(0.75) rotate(-10deg);
  transition: transform .48s cubic-bezier(.22, 1, .36, 1);
}
.hb-mg-card.is-in .hb-mg-icon {
  transform: scale(1) rotate(0deg);
}
.hb-mg-step {
  position: absolute;
  right: -4px;
  top: -3px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--mg-color, #FFA53A);
  color: #06150d;
  font: 800 8.5px/1.1 var(--mono);
  letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.hb-mg-body {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.hb-mg-kicker {
  font: 700 8.5px/1.1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.8);
}
.hb-mg-title {
  font-family: var(--display);
  font-size: clamp(16px, 2.5vw, 21px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--mg-color, #FFA53A);
  text-shadow: 0 2px 10px var(--mg-glow, rgba(255, 165, 58, 0.45));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-mg-card.is-finale .hb-mg-title {
  font-size: clamp(15px, 2.3vw, 20px);
  background: linear-gradient(90deg, #FFB07A 0%, #FFE066 52%, #FFA53A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hb-mg-sub {
  font: 600 10.5px/1.2 var(--body);
  color: #f5f2ea;
  opacity: .9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-bar { position: absolute; left: 50%; bottom: -32px; translate: -50% 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; width: max-content; max-width: 94vw; z-index: 5; }
.hb-caption { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: normal; text-align: center; }
.hb-sound, .hb-next-recipe { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 12px/1 var(--body); color: var(--text); cursor: pointer; transition: transform .16s var(--spring), border-color .16s; }
.hb-sound:active, .hb-next-recipe:active { transform: scale(.94); }
.hb-next-recipe:hover { border-color: var(--accent); }
.hb-cta-juice { background: #ffa53a !important; color: #07110b !important; border-color: #ffa53a !important; font-weight: 800 !important; }
.hb-sound svg { width: 16px; height: 16px; }
.hb-sound[aria-pressed="false"] .wave { opacity: .2; }
.hb-sound[aria-pressed="true"] { border-color: var(--accent); }
@media (max-width: 860px) {
  .hero-art.has-blender { height: min(118vw, 560px); }
  .hero-blender { height: 100%; }
  .hb-mograph { top: 18%; max-width: min(92%, 276px); }
  .hb-mg-card { padding: 5px 12px 6px 7px; gap: 8px; }
  .hb-mg-icon-wrap { width: 30px; height: 30px; }
  .hb-mg-icon { width: 22px; height: 22px; }
}

/* ---------- Fruit Up logo on every card ---------- */
.meta { position: relative; }
.card-logo { width: 34px; height: auto; margin-left: auto; opacity: .92; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .08)); pointer-events: none; }
.bf .card-logo { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.mini-logo { width: 24px; height: auto; margin-left: auto; opacity: .9; }

/* ---------- Details drop-down ---------- */
.details-btn svg { width: 16px; height: 16px; margin-left: 2px; transition: transform .35s var(--spring); }
.details-btn[aria-expanded="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.details-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.recipe-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--spring); }
.recipe-details.open { grid-template-rows: 1fr; }
.rd-inner { overflow: hidden; min-height: 0; }
.recipe-details.open .rd-inner { padding-top: 12px; }
.rd-inner > * { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .4s var(--spring); }
.recipe-details.open .rd-inner > * { opacity: 1; transform: none; }
.rd-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--muted-surface); border: 1px solid var(--border); margin-bottom: 10px; }
.rd-tab { border: 0; background: transparent; min-height: 34px; padding: 0 14px; border-radius: 999px; font: 700 13px/1 var(--body); color: var(--text-2); cursor: pointer; transition: background-color .18s, color .18s, transform .16s var(--spring); }
.rd-tab:active { transform: scale(.95); }
.rd-tab[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px rgba(20, 26, 22, .12); }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; color: var(--text); }
.howto > li::marker { font: 700 14px var(--mono); color: var(--accent-dark); }
.howto ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; color: var(--text-2); font-size: 14px; }
.howto b { color: var(--text); }
.howto-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.howto-meta span { font: 500 11px/1.3 var(--mono); letter-spacing: .04em; padding: 6px 9px; border-radius: 8px; background: var(--sage); color: var(--primary); }
.howto-keep { margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
.rd-quick { margin: 0; padding: 12px 14px; border-left: 3px solid var(--action); background: var(--muted-surface); border-radius: 0 12px 12px 0; font-size: 16px; font-weight: 600; }
.rd-quick-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.rd-live { margin-top: 14px; }
.bf .rd-switch { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.bf .rd-tab { color: rgba(245, 242, 234, .75); }
.bf .rd-tab[aria-selected="true"] { background: #FFE36B; color: #0f2e1c; }
.bf .howto, .bf .howto b { color: #fff; }
.bf .howto ul, .bf .howto-keep { color: rgba(245, 242, 234, .8); }
.bf .howto-meta span { background: rgba(255, 227, 107, .14); color: #FFE36B; }
.bf .howto > li::marker { color: #FFE36B; }
.card.details-open { content-visibility: visible; }
@media (prefers-reduced-motion: reduce) { .recipe-details, .rd-inner > * { transition: none; } }
