/* MealSelf hero + highlights revamp (2026-11-09). Loads after styles.css and only adds; nothing here restyles
   the untouched sections. Motion is transform/opacity only. */
:root {
  --nav-h: 64px;
  --stage-h: calc(100vh - var(--nav-h));
  --hero-run: 250vh;            /* scroll distance the hero stays pinned for (desktop) */
  --hero-run-stacked: 190vh;    /* same, under 900 px */
  --counter: rgba(255, 255, 255, 0.16);   /* the line the highlight pieces land on */
  --app-bg: #111416;            /* app screen background, for slabs cut out of a screenshot */
  --app-card: #181b1f;
  --timer-card: #141414;        /* cooking-mode timer card fill, behind the live digits */
  --ease-float: cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (height: 100svh) { :root { --stage-h: calc(100svh - var(--nav-h)); } }

/* ------------------------------------------------------------------ hero stage */
.hero2 { position: relative; padding: 0; }
.hero2.is-live { height: calc(var(--stage-h) + var(--hero-run)); }
.hero2 .stage { position: relative; height: var(--stage-h); min-height: 520px; overflow: hidden; background: #0b0d0e; }
.hero2.is-live .stage { position: sticky; top: var(--nav-h); }

/* the video plate: frame 0 paints as a CSS background, the canvas draws the scrubbed frames over it */
.hero2 .plate { position: absolute; inset: 0; background: #0b0d0e url(assets/plate/l/f_000.webp) 62% 50% / cover no-repeat; transform: scale(var(--plate-s, 1)); transform-origin: 62% 55%; will-change: transform; }
.hero2 .plate canvas { display: block; width: 100%; height: 100%; }
.hero2.is-static .plate { background-image: url(assets/plate/end-l.webp); }
.hero2.is-static .plate canvas { display: none; }
@media (max-aspect-ratio: 4/5) {
  .hero2 .plate { background-image: url(assets/plate/p/f_000.webp); background-position: 50% 60%; }
  .hero2.is-static .plate { background-image: url(assets/plate/end-p.webp); }
}

/* scrims are static, so the copy reads the same on every frame */
.hero2 .stage-scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(14, 16, 18, 0.95) 0%, rgba(14, 16, 18, 0.86) 34%, rgba(14, 16, 18, 0.42) 56%, rgba(14, 16, 18, 0) 72%),
  linear-gradient(180deg, rgba(14, 16, 18, 0.72) 0%, rgba(14, 16, 18, 0) 20%); }
.hero2 .stage-dim { position: absolute; inset: 0; pointer-events: none; opacity: var(--dim, 0); background: radial-gradient(60% 75% at var(--ex, 78%) var(--ey, 50%), rgba(8, 10, 11, 0.1) 0%, rgba(8, 10, 11, 0.72) 100%); }
.hero2 .stage-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; z-index: 5; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 16, 18, 0) 100%); }

.hero2 .stage-grid { position: relative; z-index: 3; height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero2 .hero-copy { position: relative; }
.hero2 .hero-copy > * { will-change: transform, opacity; }
.hero2 h1 { text-wrap: balance; font-size: clamp(38px, 5.2vw, 68px); }

/* ------------------------------------------------------------------ the phone */
.hero2 { --pw: clamp(200px, 23.5vw, 330px); }
.hero2 .phone3d { position: absolute; z-index: 4; width: var(--pw); transform-style: preserve-3d; will-change: transform;
  /* no-JS resting place: upright in the right-hand column */
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + 4%)); top: 50%; transform: translateY(-50%); }
.hero2.is-live .phone3d, .hero2.is-static .phone3d { left: 0; top: 0; right: auto; bottom: auto; transform: none; }
.hero2 .device { position: relative; transform-style: preserve-3d; padding: calc(var(--pw) * 0.034); border-radius: calc(var(--pw) * 0.155); background: #07080a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 0 0 calc(var(--pw) * 0.011) #191b1e, 0 30px 60px rgba(0, 0, 0, 0.5); }
/* eight slices behind the face give the body its thickness when it lies flat */
.hero2 .device .edge { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #2b2e33, #17191c); }
.hero2 .device .edge:nth-child(1) { transform: translateZ(calc(var(--pw) * -0.011)); }
.hero2 .device .edge:nth-child(2) { transform: translateZ(calc(var(--pw) * -0.022)); }
.hero2 .device .edge:nth-child(3) { transform: translateZ(calc(var(--pw) * -0.033)); }
.hero2 .device .edge:nth-child(4) { transform: translateZ(calc(var(--pw) * -0.044)); }
.hero2 .device .edge:nth-child(5) { transform: translateZ(calc(var(--pw) * -0.055)); }
.hero2 .device .edge:nth-child(6) { transform: translateZ(calc(var(--pw) * -0.066)); }
.hero2 .device .edge:nth-child(7) { transform: translateZ(calc(var(--pw) * -0.077)); }
.hero2 .device .edge:nth-child(8) { transform: translateZ(calc(var(--pw) * -0.088)); background: #0e0f11; }
.hero2 .glass { position: relative; overflow: hidden; border-radius: calc(var(--pw) * 0.122); background: #000; container-type: inline-size; }
.hero2 .glass > img { width: 100%; height: auto; aspect-ratio: 1179 / 2556; }
.hero2 .glare { position: absolute; inset: 0; pointer-events: none; opacity: var(--glare, 0); transform: translate3d(var(--glare-x, 0%), 0, 0);
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 47%, rgba(255, 255, 255, 0.04) 58%, rgba(255, 255, 255, 0) 70%); }

/* second screen: the dashboard takes over once the phone faces the viewer */
.hero2 .glass .screen-dash { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; pointer-events: none; opacity: var(--dash, 0); transform: scale(calc(1.06 - 0.06 * var(--dash, 0))); transform-origin: 50% 40%; will-change: opacity, transform; }
/* while it lies on the counter the phone takes the room's low light: darker away from the window (back left) */
.hero2 .device .amb { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--amb, 0);
  background: linear-gradient(118deg, rgba(190, 205, 215, 0.1) 0%, rgba(8, 10, 12, 0.12) 30%, rgba(6, 8, 10, 0.5) 100%); }

/* "See How It Works": appears once the dashboard is on screen */
.hero2 .how-link { position: absolute; left: 50%; bottom: clamp(18px, 4.5vh, 40px); z-index: 7; display: inline-flex; align-items: center; gap: 12px; padding: 9px 10px 9px 20px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; transform: translateX(-50%);
  background: rgba(16, 19, 21, 0.62); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(94, 227, 158, 0.38), 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 34px rgba(52, 199, 123, 0.16); }
.hero2 .how-text { display: block; overflow: hidden; }
.hero2 .how-text > span { display: block; }
.hero2 .how-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #06130c; background: linear-gradient(135deg, #3dd48a, #22b873); }
.hero2 .how-arrow svg { width: 18px; height: 18px; }
.hero2 .how-link:hover { box-shadow: inset 0 0 0 1px rgba(94, 227, 158, 0.7), 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 44px rgba(52, 199, 123, 0.3); }
.hero2.is-live .how-link { opacity: 0; pointer-events: none; clip-path: inset(0 50% 0 50% round 999px); transition: opacity 260ms ease-out, clip-path 420ms var(--ease-float); }
.hero2.is-live .how-link .how-text > span { transform: translate3d(0, 110%, 0); transition: transform 300ms ease-in; }
.hero2.is-live .how-link .how-arrow { transform: scale(0) rotate(-90deg); transition: transform 300ms ease-in; }
.hero2.is-live .how-link.is-on { opacity: 1; pointer-events: auto; clip-path: inset(0 0 0 0 round 999px); transition: opacity 300ms ease-out, clip-path 700ms var(--ease-float); }
.hero2.is-live .how-link.is-on .how-text > span { transform: none; transition: transform 620ms var(--ease-float) 220ms; }
.hero2.is-live .how-link.is-on .how-arrow { transform: none; transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 380ms; }
.hero2.is-live .how-link.is-on .how-arrow svg { animation: how-bob 1.6s ease-in-out 1.2s infinite; }
@keyframes how-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* contact shadow and screen spill stay on the counter while the phone leaves it */
.hero2 .phone-shadow { position: absolute; left: 0; top: 0; z-index: 2; width: var(--pw); aspect-ratio: 1 / 2.0885; border-radius: calc(var(--pw) * 0.155); background: rgba(0, 0, 0, 0.9); box-shadow: calc(var(--pw) * 0.05) calc(var(--pw) * 0.08) calc(var(--pw) * 0.3) calc(var(--pw) * 0.05) rgba(0, 0, 0, 0.5); filter: blur(calc(var(--pw) * 0.028)); opacity: 0; pointer-events: none; will-change: transform, opacity; }
.hero2 .phone-glow { position: absolute; left: 0; top: 0; z-index: 2; width: calc(var(--pw) * 1.9); aspect-ratio: 1.5; border-radius: 50%; background: radial-gradient(closest-side, rgba(170, 230, 196, 0.2), rgba(94, 227, 158, 0.06) 55%, rgba(94, 227, 158, 0)); opacity: 0; pointer-events: none; will-change: opacity; }

/* live timer: a patch the colour of the timer card covers the screenshot's digits, real text ticks on top.
   Sizes are in cqw of the screen (or of the timer-card crop), so they follow any phone size. */
.timer-patch { position: absolute; display: flex; align-items: center; background: var(--timer-card); }
.timer-digits { font-family: Inter, -apple-system, "Segoe UI", sans-serif; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.065em; line-height: 1; color: #fff; }
.hero2 .glass .timer-patch { left: 8.6%; top: 63.55%; width: 27%; height: 4.6%; padding-left: 1.45cqw; }
.hero2 .glass .timer-digits { font-size: 9.9cqw; }
.timer-toggle { position: absolute; left: 77.85%; top: 63.86%; width: 12.3%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.timer-toggle svg { width: 46%; height: 46%; fill: var(--ink); opacity: 0; }
.timer-toggle[aria-pressed="true"] { background: linear-gradient(135deg, #3dd48a, #22b873); }
.timer-toggle[aria-pressed="true"] svg { opacity: 1; }
.timer-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }

.hero2 .scroll-cue { position: absolute; left: max(var(--gutter), calc((100% - var(--max)) / 2)); bottom: 24px; z-index: 6; display: none; flex-direction: row; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); opacity: var(--cue, 1); pointer-events: none; }
.hero2.is-live .scroll-cue { display: flex; }
@media (max-height: 820px) { .hero2.is-live .scroll-cue { display: none; } }
.hero2 .scroll-cue i { width: 36px; height: 1px; background: linear-gradient(90deg, var(--accent-text), rgba(94, 227, 158, 0)); }

/* stacked layout: copy on top, phone below it */
@media (max-width: 899px) {
  .hero2.is-live { height: calc(var(--stage-h) + var(--hero-run-stacked)); }
  .hero2 { --pw: clamp(150px, 60vw, 280px); }
  .hero2 .stage-grid { grid-template-columns: 1fr; align-items: start; padding-top: clamp(20px, 4vh, 44px); text-align: center; }
  .hero2 .hero-copy { align-items: center; gap: 16px; }
  .hero2 .hero-copy p.lead { font-size: 16px; }
  .hero2 .cta-row { justify-content: center; }
  .hero2 .stage-scrim { background: linear-gradient(180deg, rgba(14, 16, 18, 0.94) 0%, rgba(14, 16, 18, 0.9) 46%, rgba(14, 16, 18, 0.5) 70%, rgba(14, 16, 18, 0.15) 100%); }
  .hero2 .stage-dim { background: radial-gradient(90% 60% at 50% 70%, rgba(8, 10, 11, 0.2) 0%, rgba(8, 10, 11, 0.75) 100%); }
  .hero2 .phone3d { right: auto; left: 50%; top: auto; bottom: -18%; transform: translateX(-50%); }
  .hero2 .stage-foot { height: 14%; }
  .hero2 .scroll-cue { display: none !important; }
}

/* ------------------------------------------------------------------ highlights: a sideways carousel of feature cards */
.hl { padding-top: clamp(40px, 6vw, 72px); }
.hl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hl-head .section-head { margin-bottom: 28px; }
.hl-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; flex: none; }
.hl-nav[hidden] { display: none; }
.hl-count { margin-right: 6px; font-size: 13px; font-weight: 600; color: var(--text3); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.hl-count b { color: var(--text); font-weight: 800; }
.hl-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--text); background: var(--card2); border: 1px solid var(--line2); transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease; }
.hl-btn svg { width: 20px; height: 20px; }
.hl-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #06130c; }
.hl-btn:active:not(:disabled) { transform: scale(0.94); }
.hl-btn:disabled { opacity: 0.35; cursor: default; }

.hl-track { --pad: calc((100% - min(100% - var(--gutter) * 2, var(--max))) / 2); counter-reset: hl; display: flex; gap: clamp(14px, 1.6vw, 22px); overflow-x: auto; overflow-y: hidden; padding: 8px var(--pad) 34px; scroll-padding-inline: var(--pad); scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hl-track::-webkit-scrollbar { display: none; }
.hl-track:focus-visible { outline-offset: -4px; }
.hl-track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.hl-track.is-drag .hl-item { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .hl-track { cursor: grab; } }

.hl-item { counter-increment: hl; position: relative; flex: none; width: min(84vw, 372px); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 26px; background: linear-gradient(180deg, #171a1d 0%, #111416 100%); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.35); overflow: hidden; transition: box-shadow 220ms ease, transform 220ms ease; }
@media (hover: hover) { .hl-item:hover { box-shadow: inset 0 0 0 1px rgba(94, 227, 158, 0.32), 0 22px 48px rgba(0, 0, 0, 0.45); transform: translateY(-3px); } }
/* the stage the app pieces land on */
.hl-pieces { position: relative; height: 318px; container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(52, 199, 123, 0.16) 0%, rgba(52, 199, 123, 0.03) 55%, rgba(52, 199, 123, 0) 100%), #0d0f11; border-bottom: 1px solid var(--line); }
.hl-row { display: flex; gap: 8px; align-items: flex-end; }
.hl-item h3 { margin: 0; padding: 22px 24px 0; font-size: 19px; display: flex; align-items: baseline; gap: 10px; }
.hl-item h3::before { content: counter(hl, decimal-leading-zero); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.hl-item p { margin: 8px 0 0; padding: 0 24px 26px; color: var(--text2); font-size: 15px; }

/* one scale for every piece: 361 pt (a full-width card in the app) = 84% of the card */
.piece { display: block; width: calc(var(--w) / 361 * 84cqw); max-width: none; height: auto; flex: none; }
.piece img { width: 100%; height: auto; }
.piece.p-card { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5)); }
.piece.p-slab { background: var(--app-bg); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; padding: 10px 10px 0; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45); }
.piece.p-slab img + img { margin-top: 6px; }
.piece.p-slab.flush { padding: 0; }
.piece.p-fix { background: var(--app-card); border-radius: 17px; overflow: hidden; padding-bottom: 6px; box-shadow: inset 0 0 0 1px var(--line), 0 14px 28px rgba(0, 0, 0, 0.45); }
.piece.p-live { position: relative; container-type: inline-size; }
.piece.p-live .timer-patch { left: 3.4%; top: 17%; width: 31%; height: 46%; padding-left: 1.2cqw; }
.piece.p-live .timer-digits { font-size: 11.25cqw; }

/* float down: only when revamp.js has switched it on, so no-JS and reduced motion see everything in place */
.hl-live .piece, .hl-live .hl-row { opacity: 0; transform: translate3d(0, calc(var(--fall, 150px) * -1), 0) rotate(var(--tilt, -3deg)); }
.hl-live .hl-row .piece { opacity: 1; transform: none; }
.hl-live .hl-item h3, .hl-live .hl-item p { opacity: 0; transform: translate3d(0, 10px, 0); }
.hl-live .is-in .piece, .hl-live .is-in .hl-row { opacity: 1; transform: none; transition: transform 950ms var(--ease-float) var(--d, 0ms), opacity 300ms ease-out var(--d, 0ms); }
.hl-live .is-in .hl-pieces > :nth-child(2) { transition-delay: calc(var(--d, 0ms) + 130ms); }
.hl-live .hl-pieces > :nth-child(2) { --tilt: 2.5deg; --fall: 120px; }
.hl-live .is-in h3, .hl-live .is-in p { opacity: 1; transform: none; transition: transform 500ms var(--ease-float) calc(var(--d, 0ms) + 380ms), opacity 400ms ease-out calc(var(--d, 0ms) + 380ms); }
.hl-live .is-in p { transition-delay: calc(var(--d, 0ms) + 440ms); }

.hl-progress { height: 3px; border-radius: 3px; background: var(--line2); overflow: hidden; max-width: 220px; }
.hl-progress i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--hl-p, 0.3)); transition: transform 180ms ease-out; }
@media (max-width: 699px) {
  .hl-head { align-items: flex-start; flex-direction: column; gap: 0; }
  .hl-nav { display: none !important; }
  .hl-pieces { height: 292px; }
}


/* ------------------------------------------------------------------ round 3 (2026-11-09) */
/* "See How It Works": hover floods the pill with green from the arrow, the text goes dark and the arrow loops down */
.hero2 .how-link { isolation: isolate; overflow: hidden; }
.hero2 .how-link::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(120deg, #5ee39e 0%, #34c77b 55%, #22b873 100%); clip-path: circle(0% at calc(100% - 27px) 50%); transition: clip-path 520ms var(--ease-float); }
.hero2 .how-link .how-text, .hero2 .how-link .how-arrow { transition: color 240ms ease, background 240ms ease; }
.hero2 .how-arrow { overflow: hidden; }
@media (hover: hover) {
  .hero2.is-live .how-link.is-on, .hero2.is-static .how-link { transition: opacity 300ms ease-out, clip-path 700ms var(--ease-float), transform 260ms var(--ease-float), box-shadow 260ms ease; }
  .hero2 .how-link:hover { transform: translateX(-50%) translateY(-3px) scale(1.04); box-shadow: inset 0 0 0 1px rgba(94, 227, 158, 0.9), 0 16px 38px rgba(0, 0, 0, 0.5), 0 0 60px rgba(52, 199, 123, 0.45); }
  .hero2 .how-link:hover::before { clip-path: circle(160% at calc(100% - 27px) 50%); }
  .hero2 .how-link:hover .how-text { color: #06130c; }
  .hero2 .how-link:hover .how-arrow { background: #06130c; color: #5ee39e; }
  .hero2 .how-link:hover .how-arrow svg, .hero2.is-live .how-link.is-on:hover .how-arrow svg { animation: how-drop 0.9s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
}
.hero2 .how-link:active { transform: translateX(-50%) scale(0.97); }
@keyframes how-drop { 0% { transform: translateY(0); } 45% { transform: translateY(26px); } 45.01% { transform: translateY(-26px); } 100% { transform: translateY(0); } }

/* "What you get" pins to the screen and the page scroll runs the slider to its end before moving on */
.hl { overflow: visible; }
.hl.is-pinned { padding-top: 0; padding-bottom: 0; }
.hl.is-pinned .hl-pin { position: sticky; top: var(--nav-h); height: var(--stage-h); display: flex; flex-direction: column; justify-content: center; }
.hl.is-pinned .hl-track { scroll-snap-type: none; overflow-x: hidden; cursor: default; }
.hl.is-pinned .hl-progress { max-width: none; }
.hl.is-pinned .hl-progress i { transition: none; }

/* stats: four cards with an icon each */
.stats2 { padding: clamp(28px, 5vw, 56px) 0 0; }
.stats2 .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.stat2 { position: relative; overflow: hidden; padding: 22px 22px 24px; border-radius: 22px; background: linear-gradient(180deg, #171a1d 0%, #111416 100%); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; transition: box-shadow 220ms ease, transform 220ms ease; }
.stat2::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 199, 123, 0.2), rgba(52, 199, 123, 0)); pointer-events: none; }
.stat2 .s-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-text); background: rgba(52, 199, 123, 0.14); box-shadow: inset 0 0 0 1px rgba(94, 227, 158, 0.28); }
.stat2 .s-icon svg { width: 24px; height: 24px; }
.stat2 b { display: block; margin-top: 6px; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.stat2 b small { font-size: 0.5em; font-weight: 700; letter-spacing: 0; color: var(--accent-text); margin-left: 4px; }
.stat2 .s-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.stat2 p { margin: 0; font-size: 14px; color: var(--text2); }
@media (hover: hover) { .stat2:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(94, 227, 158, 0.32), 0 18px 40px rgba(0, 0, 0, 0.4); } }
.stats-live .stat2 { opacity: 0; transform: translate3d(0, 22px, 0); }
.stats-live.is-in .stat2 { opacity: 1; transform: none; transition: transform 700ms var(--ease-float) calc(var(--i, 0) * 90ms), opacity 500ms ease-out calc(var(--i, 0) * 90ms), box-shadow 220ms ease; }
.stats-live .stat2 .s-icon { transform: scale(0.4) rotate(-20deg); }
.stats-live.is-in .stat2 .s-icon { transform: none; transition: transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 90ms + 150ms); }
@media (max-width: 899px) { .stats2 .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .stat2 { padding: 18px 16px 20px; } }

/* ------------------------------------------------------------------ round 4: the + button on the demo phone opens the app's add menu */
.hero2 .glass .screen-menu { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; pointer-events: none; opacity: 0; clip-path: circle(0% at 50% 92.95%); transition: clip-path 380ms cubic-bezier(0.5, 0, 0.75, 0), opacity 120ms linear 300ms; }
.hero2 .glass.menu-open .screen-menu { opacity: 1; clip-path: circle(135% at 50% 92.95%); transition: clip-path 620ms var(--ease-float), opacity 80ms linear; }
.hero2 .plus-btn { position: absolute; left: 43.6%; top: 90%; width: 12.8%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; pointer-events: none; -webkit-tap-highlight-color: transparent; }
.hero2 .glass.dash-on .plus-btn { pointer-events: auto; }
.hero2 .plus-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }
/* a slow ring so it reads as tappable; it stops once the menu has been opened */
.hero2 .plus-btn i { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(94, 227, 158, 0.75); opacity: 0; pointer-events: none; }
.hero2.is-live .glass.dash-on:not(.menu-used) .plus-btn i { animation: plus-ring 2.2s ease-out 0.6s infinite; }
@media (hover: hover) { .hero2 .glass.dash-on .plus-btn:hover { box-shadow: 0 0 0 3px rgba(94, 227, 158, 0.35), 0 0 22px rgba(52, 199, 123, 0.6); } }
/* while the menu is open the whole screen closes it, like tapping outside the menu in the app */
.hero2 .glass.menu-open .plus-btn { left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; cursor: pointer; }
.hero2 .glass.menu-open .plus-btn:hover { box-shadow: none; }
@keyframes plus-ring { 0% { opacity: 0.9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.75); } }

/* ------------------------------------------------------------------ round 5: each row of the add menu opens its real screen */
.hero2 .menu-row { position: absolute; left: 9.2%; width: 81.5%; top: calc(67.5% + var(--row) * 6.6%); height: 6.5%; padding: 0; border: 0; border-radius: calc(var(--pw) * 0.05); background: transparent; cursor: pointer; pointer-events: none; -webkit-tap-highlight-color: transparent; transition: background 140ms ease; }
.hero2 .glass.menu-open .menu-row { pointer-events: auto; }
@media (hover: hover) { .hero2 .glass.menu-open .menu-row:hover { background: rgba(94, 227, 158, 0.1); box-shadow: inset 0 0 0 1px rgba(94, 227, 158, 0.3); } }
.hero2 .menu-row:active { background: rgba(94, 227, 158, 0.18); }
.hero2 .menu-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* the screen rises from the bottom like a sheet in the app */
.hero2 .glass .screen-sub { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; pointer-events: none; opacity: 0; transform: translate3d(0, 100%, 0); transition: transform 380ms cubic-bezier(0.5, 0, 0.75, 0), opacity 0ms linear 380ms; }
.hero2 .glass[data-sub="plan"] .screen-sub[data-screen="plan"],
.hero2 .glass[data-sub="receipt"] .screen-sub[data-screen="receipt"],
.hero2 .glass[data-sub="checkin"] .screen-sub[data-screen="checkin"] { opacity: 1; transform: none; transition: transform 560ms var(--ease-float), opacity 0ms; }
.hero2 .sub-close { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: pointer; display: none; align-items: flex-end; justify-content: center; -webkit-tap-highlight-color: transparent; }
.hero2 .glass[data-sub] .sub-close { display: flex; }
.hero2 .sub-close span { margin-bottom: 2.2%; padding: 0.9cqw 3cqw; border-radius: 999px; font-family: Inter, sans-serif; font-size: 3.1cqw; font-weight: 700; color: #06130c; background: rgba(94, 227, 158, 0.95); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); opacity: 0; animation: sub-hint 3.2s ease-out 0.7s 1 both; }
@keyframes sub-hint { 0% { opacity: 0; transform: translateY(-6px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* ------------------------------------------------------------------ round 6: the tab bar on the demo phone switches screens */
.hero2 .glass .screen-tab { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; pointer-events: none; opacity: 0; transition: opacity 140ms linear; }
.hero2 .glass[data-tab="plans"] .screen-tab[data-screen="plans"],
.hero2 .glass[data-tab="recipes"] .screen-tab[data-screen="recipes"],
.hero2 .glass[data-tab="account"] .screen-tab[data-screen="account"] { opacity: 1; }
.hero2 .tab-btn { position: absolute; left: calc(var(--cx) * 1% - 8.4%); top: 89.6%; width: 16.8%; height: 6.6%; padding: 0; border: 0; border-radius: calc(var(--pw) * 0.06); background: transparent; cursor: pointer; pointer-events: none; -webkit-tap-highlight-color: transparent; transition: background 140ms ease; }
.hero2 .glass.dash-on .tab-btn { pointer-events: auto; }
@media (hover: hover) { .hero2 .glass.dash-on .tab-btn:hover { background: rgba(94, 227, 158, 0.12); } }
.hero2 .tab-btn:active { background: rgba(94, 227, 158, 0.2); }
.hero2 .tab-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
