/* Movance — site. Design: Figma «Movance Reborn» › 3.0 · Сайт movanceapp.com › Головна v6 (desktop 951:130106, phone 951:131384). */

@font-face { font-family: Onest; src: url("/assets/fonts/onest-regular.df3dbad2be.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Onest; src: url("/assets/fonts/onest-medium.fbc43ae7b2.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Onest; src: url("/assets/fonts/onest-semibold.c32a3c6ece.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #111317; --ink-2: #2a2e37; --muted: #4a4f59; --muted-2: #626873; /* #6b717c in v6 — darker for WCAG AA 4.5:1 on lavender tints */
  --lav-50: #efeaff; --lav-100: #f1edff; --lav-200: #cfc3ff; --lav-300: #b9a8ff; --lav-500: #6a4cf5; --lav-600: #5b47d6;
  --bg: #f7f6fb; --bg-hero: #f6f5fb; --line: #e6e2f3; --line-2: #eceaf3;
  --protein: #4f7cf0; --carbs: #f0942e; --fat: #2fb58c;
  --shadow-card: 0 14px 36px rgba(59, 42, 154, .08);
  /* 1 unit = 1 design px at 1440 wide, shrinking with the window down to 1024 */
  --u: min(1px, calc(100vw / 1440));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.4; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lav-500); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* visible to screen readers only */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; position: relative; }
.sec { position: relative; padding: 120px 0; overflow: clip; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(var(--b, 140px)); }

/* hero title per language: the longest line fits the column (measured; see web/site/README.md) */
html[lang="uk"] { --tk: .69; --tkm: .89; }
html[lang="de"] { --tk: .76; --tkm: .96; }
html[lang="pt-BR"] { --tk: .75; --tkm: .96; }
html[lang="es"] { --tk: .88; }
html[lang="fr"], html[lang="it"] { --tk: .87; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(106, 76, 245, .08); border: 1px solid rgba(106, 76, 245, .18); color: var(--lav-600); font-size: 14px; font-weight: 500; line-height: 18px; }
.eyebrow .i { width: 14px; height: 14px; }
/* first screen: the pill sits on the lavender orbs — a lighter glass keeps the text at 4.5:1 */
.hero .eyebrow { background: rgba(255, 255, 255, .72); }
.eyebrow.icon { padding: 5px 12px 5px 6px; }
.eyebrow.icon .i { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: #fff; }
.head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.head.center { align-items: center; text-align: center; margin: 0 auto 64px; max-width: 820px; }
.head h2, .h-more { font-size: 56px; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.head .sub { font-size: 20px; line-height: 1.45; color: var(--muted); max-width: 720px; }
.head.dark .eyebrow, .eyebrow.dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--lav-200); }
.head.dark h2 { color: #fff; }
.head.dark .sub { color: rgba(255, 255, 255, .7); }
.pro { display: inline-block; padding: 3px 7px; border-radius: 999px; background: rgba(106, 76, 245, .12); color: #4a36c4; font-size: 10px; font-weight: 600; letter-spacing: .06em; line-height: 1.2; vertical-align: 2px; }
.pro.dark { background: rgba(255, 255, 255, .14); color: var(--lav-200); }

/* buttons & stores */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); padding: 16px 24px; font-size: 16px; align-self: flex-start; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: block; border-radius: 9px; transition: transform .15s ease; }
.stores a:hover { transform: translateY(-1px); }
.stores img { height: 52px; width: auto; }
.stores .soon { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.stores .soon .i { width: 18px; height: 18px; }

/* ===== hero ===== */
.hero { position: relative; background: var(--bg-hero); overflow: clip; }
.hero .o1 { left: calc(50% + 40 * var(--u)); top: -180px; width: 720px; height: 620px; background: rgba(122, 92, 255, .55); --b: 160px; }
.hero .o2 { left: calc(50% + 360 * var(--u)); top: 300px; width: 520px; height: 520px; background: rgba(185, 168, 255, .6); }
.hero .o3 { left: calc(50% - 200 * var(--u)); top: 560px; width: 560px; height: 420px; background: rgba(209, 198, 252, .7); }
.hero .o4 { left: calc(50% - 920 * var(--u)); top: -200px; width: 520px; height: 420px; background: rgba(239, 234, 255, .9); --b: 120px; }
.nav { position: absolute; z-index: 3; top: 28px; left: 50%; transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: 40px; padding: 12px 12px 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--lav-600); }
.hero-inner { position: relative; width: min(100%, 1440px); height: calc(900 * var(--u)); min-height: 640px; margin: 0 auto; }
.hero-text { position: absolute; left: calc(120 * var(--u)); top: calc(252 * var(--u)); width: calc(560 * var(--u)); min-width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; z-index: 2; }
.hero h1 { font-size: calc(var(--tk, 1) * max(64px, calc(96 * var(--u)))); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.hero .lead { font-size: max(17px, calc(21 * var(--u))); line-height: 1.45; color: var(--muted); }
.hero .note { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: -4px; }
/* the text column never runs under the «530 kcal» card (its left edge is at 658 design px; the column starts at 120) */
@media (min-width: 1024px) { .hero .lead, .hero .note { max-width: calc(538 * var(--u) - 12px); } }
.hero-vis { position: absolute; left: calc(530 * var(--u)); top: calc(106 * var(--u)); width: calc(910 * var(--u)); aspect-ratio: 910 / 794; --sw: 910px; --sh: 794px; }
.hero-vis .vstage-img { --ix: 0px; --iy: 0px; --iw: 910px; }

/* ===== how it works ===== */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 28px; background: var(--bg); }
.step .num { font-size: 15px; font-weight: 600; color: var(--lav-500); }
.step h3 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.step > p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.step-vis { margin-top: auto; padding: 20px; border-radius: 20px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.voice { display: flex; align-items: center; gap: 10px; }
.voice .dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lav-50); color: var(--lav-600); }
.voice .dot .i { width: 18px; height: 18px; }
.wave { display: flex; align-items: center; gap: 3px; height: 36px; }
.wave i { width: 4px; border-radius: 2px; background: var(--lav-500); }
.wave i:nth-child(n+16) { background: var(--lav-300); }
/* bar heights — Figma «Just say it» waveform */
.wave i { height: var(--h); }
.wave i:nth-child(1) { --h: 6px; } .wave i:nth-child(2) { --h: 12px; } .wave i:nth-child(3) { --h: 20px; } .wave i:nth-child(4) { --h: 28px; }
.wave i:nth-child(5) { --h: 18px; } .wave i:nth-child(6) { --h: 32px; } .wave i:nth-child(7) { --h: 24px; } .wave i:nth-child(8) { --h: 14px; }
.wave i:nth-child(9) { --h: 26px; } .wave i:nth-child(10) { --h: 36px; } .wave i:nth-child(11) { --h: 22px; } .wave i:nth-child(12) { --h: 30px; }
.wave i:nth-child(13) { --h: 16px; } .wave i:nth-child(14) { --h: 10px; } .wave i:nth-child(15) { --h: 20px; } .wave i:nth-child(16) { --h: 28px; }
.wave i:nth-child(17) { --h: 14px; } .wave i:nth-child(18) { --h: 8px; } .wave i:nth-child(19) { --h: 18px; } .wave i:nth-child(20) { --h: 24px; }
.wave i:nth-child(21) { --h: 12px; } .wave i:nth-child(22) { --h: 6px; }
.quote { font-size: 13px; font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 999px; background: var(--lav-100); color: var(--lav-600); font-size: 12px; font-weight: 500; }
.chips .i { width: 14px; height: 14px; }
.kcal { font-size: 14px; font-weight: 500; color: var(--muted-2); }
.kcal b { font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin-right: 2px; }
.step-vis.day { flex-direction: row; align-items: center; gap: 20px; position: relative; }
.ring { width: 88px; height: 88px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke: #eceaf3; stroke-width: 7; }
.ring .fg { stroke: var(--ink); stroke-dasharray: 58 100; stroke-linecap: round; }
.pct { position: absolute; left: 20px; width: 88px; text-align: center; font-weight: 600; font-size: 17px; }
.step-vis.day .kcal b { font-size: 30px; }
.small { font-size: 13px; color: var(--muted-2); }
.pill { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: var(--lav-50); color: var(--lav-600); font-size: 12px; font-weight: 600; }

/* photo block */
.snap { margin-top: 64px; padding: 72px 64px 56px; border-radius: 40px; background: linear-gradient(135deg, #0e0f16, #1d1744); border: 1px solid rgba(255, 255, 255, .08); position: relative; overflow: clip; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.snap::before { content: ""; position: absolute; left: 30%; top: 40%; width: 520px; height: 420px; border-radius: 50%; background: rgba(106, 76, 245, .45); filter: blur(160px); }
.snap::after { content: ""; position: absolute; left: 75%; top: 8%; width: 320px; height: 320px; border-radius: 50%; background: rgba(155, 131, 255, .22); filter: blur(140px); }
.snap > * { position: relative; z-index: 1; }
.snap .head.center { margin-bottom: 0; }
.snap .head h2 { font-size: 52px; }
.snap .head .sub { font-size: 19px; }
/* the photo story is a stage in Figma pixels (1072 × 570), scaled to the card */
.process { position: relative; width: 100%; max-width: 1072px; aspect-ratio: 1072 / 570; --sw: 1072px; --sh: 570px; }
.p-cam { left: -60px; top: -39px; width: 320px; max-width: none; }
.p-arrow { width: 48px; top: 197px; fill: none; stroke: var(--lav-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-arrow.a1 { left: 216px; } .p-arrow.a2 { left: 696px; }
.pstage > .p-photo { left: 280px; top: 9px; width: 400px; }
.pstage > .p-result { left: 760px; top: 0; width: 312px; }
.pstage > .p-caps { inset: 0; }
.p-caps li { position: absolute; top: 450px; width: 240px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.p-caps li:nth-child(1) { left: 100px; } .p-caps li:nth-child(2) { left: 480px; } .p-caps li:nth-child(3) { left: 916px; }
.p-caps .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lav-500); color: #fff; font-size: 14px; font-weight: 600; }
.p-caps b { color: #fff; font-size: 18px; font-weight: 600; }
.p-caps span:last-child { color: rgba(255, 255, 255, .6); font-size: 15px; line-height: 1.45; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.modes .lbl { color: rgba(255, 255, 255, .55); font-size: 14px; font-weight: 500; padding: 0 4px; }
.modes span:not(.lbl) { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 500; }
.modes .i { width: 14px; height: 14px; color: var(--lav-200); }

/* ===== features ===== */
.features { background: var(--bg); }
.features .f1 { right: -100px; top: 200px; width: 640px; height: 560px; background: rgba(185, 168, 255, .35); --b: 180px; }
.features .f2 { left: -200px; top: 700px; width: 560px; height: 420px; background: rgba(209, 198, 252, .5); --b: 160px; }
.features .head.center { margin-bottom: 112px; }
.row { display: grid; grid-template-columns: 500px 620px; justify-content: space-between; align-items: center; margin-bottom: 112px; }
.row.flip { grid-template-columns: 620px 500px; }
.row.flip .row-vis { order: -1; }
.row-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.row-text h3 { font-size: 44px; font-weight: 600; letter-spacing: -.025em; line-height: 1.06; margin-bottom: -10px; }
.row-text .body { font-size: 18px; line-height: 1.5; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.checks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--lav-50); color: var(--lav-600); stroke-width: 2.2; }
.row-vis { position: relative; display: block; aspect-ratio: 620 / 540; }
picture.row-vis img { position: absolute; top: var(--t, 0); left: var(--l); width: var(--w); max-width: none; }
.v-workouts { --sw: 620px; --sh: 540px; }
.v-workouts .vstage-img { --ix: -58px; --iy: 0px; --iw: 735px; }
.v-menus { --l: -9.677%; --w: 110%; }
.v-progress { --l: 0%; --w: 109.032%; }
.v-trackers { --l: -9.677%; --w: 109.677%; }

.more { padding-top: 8px; }
.more .head.center { margin-bottom: 40px; }
.h-more { font-size: 44px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.coach { grid-column: span 2; grid-row: span 2; position: relative; overflow: clip; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: 28px; background: linear-gradient(135deg, #0e0f16, #241b57); box-shadow: 0 24px 60px rgba(42, 26, 128, .2); color: #fff; }
.coach::before { content: ""; position: absolute; left: 45%; top: 35%; width: 70%; height: 80%; border-radius: 50%; background: rgba(106, 76, 245, .5); filter: blur(120px); }
.coach > * { position: relative; }
.coach h3 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; max-width: 330px; }
.coach .body { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .7); max-width: 330px; }
.mini-chat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 320px; max-width: 62%; }
.mini-chat .u { padding: 9px 13px; border-radius: 16px; background: var(--lav-500); font-size: 14px; font-weight: 500; }
.mini-chat .r { padding: 9px 13px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, .92); }
.mini-chat .chips span { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--lav-200); padding: 6px 11px; }
.coach-rudi { position: absolute !important; right: 8px; bottom: -6px; width: 210px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow-card); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.tile > .i, .abilities .i, .ptiles .i { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--lav-50); color: var(--lav-600); }
.tile h4 { font-size: 19px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; }
.tile p { font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ===== Rudi ===== */
.rudi { background: linear-gradient(180deg, #fff, #f3efff 50%, #fff); }
.rudi .r1 { left: calc(50% - 360px); top: 300px; width: 720px; height: 560px; background: rgba(185, 168, 255, .45); --b: 160px; }
.rudi .r2 { left: -120px; top: 700px; width: 480px; height: 420px; background: rgba(209, 198, 252, .6); }
.rudi .r3 { right: -100px; top: 520px; width: 480px; height: 420px; background: rgba(201, 189, 255, .5); }
.rudi .head.center { margin-bottom: 56px; }
.stage { display: grid; grid-template-columns: 340px 1fr; gap: 60px; margin-bottom: 56px; }
.stage-side { display: flex; flex-direction: column; padding-top: 48px; }
.rcard { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 28px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: 0 30px 70px rgba(59, 42, 154, .14); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 60px; height: 60px; border-radius: 50%; background: var(--lav-50); }
.who b { display: block; font-size: 22px; font-weight: 600; }
.who span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted-2); }
.online { width: 8px; height: 8px; border-radius: 50%; background: var(--fat); }
.box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: #f6f3ff; }
.cap { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.row-sb { display: flex; justify-content: space-between; align-items: center; }
.edit { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--lav-600); }
.li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.li .i { width: 16px; height: 16px; color: var(--lav-600); }
.mem { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.mem::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lav-500); flex: none; }
.new { margin-left: auto; padding: 2px 6px; border-radius: 999px; background: var(--lav-500); color: #fff; font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.box .small { font-size: 12px; line-height: 1.4; }
.rudi-pose { position: relative; margin-top: -8px; width: 210px; margin-left: 10px; }
.rudi-pose::before { content: ""; position: absolute; left: -30px; top: -20px; width: 280px; height: 280px; border-radius: 50%; background: rgba(185, 168, 255, .55); filter: blur(70px); }
.rudi-pose img { position: relative; }
.speech { position: absolute; left: 118px; top: 30px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 11px 14px 11px 12px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .92); border: 1px solid #fff; box-shadow: 0 14px 32px rgba(59, 42, 154, .14); font-size: 14px; font-weight: 500; }
/* longer languages wrap inside the column instead of running under the chat phone */
.speech { width: max-content; max-width: 236px; white-space: normal; }
.speech .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--lav-50); color: var(--lav-600); }
.chats { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.chat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chat figcaption { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid #e1dafb; font-size: 15px; font-weight: 600; }
.chat figcaption .i { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--lav-50); color: var(--lav-600); }
.chat { overflow: visible; }
/* Chat with Rudi — the phone screen of «rudi-chat-food / -training» (Figma 951:135923 / 951:136162, 360 × 766) with the
   conversation rebuilt in HTML over it: a white cover hides the pictured messages under the header, the thread is
   anchored to the bottom like in the app (E-7.02) and fades out under the header. Sizes are Figma px of the frame. */
.chat-vis { position: relative; width: 100%; aspect-ratio: 360 / 766; margin-bottom: 20%; --sw: 360px; --sh: 766px; }
/* the picture is the phone itself (720 × 1533, 2×); its Figma drop shadow is drawn here: 0 30 blur 70, #2A1A80 at 20 % */
.chat-img { left: 0; top: 0; width: 360px; max-width: none; height: auto; border-radius: 57.36px; box-shadow: 0 30px 70px rgba(42, 26, 128, .2); }
.cv-cover { left: 6px; top: 98px; width: 348px; height: 589px; background: #fff; }
.cv { left: 6px; top: 98px; width: 348px; height: 549px; overflow: hidden;
      -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .5) 30px, #000 72px, #000 calc(100% - 4px), transparent 100%);
      mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .5) 30px, #000 72px, #000 calc(100% - 4px), transparent 100%); }
/* under the header the thread blurs away, like the app's frosted header (Figma: layer blur 2.66 on the rows under it) */
.cv::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 72px; z-index: 1; background: linear-gradient(180deg, rgba(254, 253, 255, .92), rgba(255, 255, 255, 0)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.thread { position: absolute; left: 14px; bottom: 4px; width: 320px; display: flex; flex-direction: column; gap: 8.85px; font-size: 12.4px; line-height: 17.71px; color: #0e1116; }
.thread .m { display: flex; align-items: flex-end; gap: 7.08px; }
.thread .m.u { justify-content: flex-end; }
.thread .m.c { justify-content: center; }
.thread .ava { flex: none; width: 25px; height: 25px; border-radius: 50%; background: #efeaff; }
.thread .col { display: flex; flex-direction: column; gap: 5.31px; max-width: 241px; }
.thread .b { max-width: 230px; padding: 8.85px 12.4px; overflow-wrap: anywhere; }
.thread .b.r { align-self: flex-start; background: #f4f1ff; border-radius: 15.94px 15.94px 15.94px 5.31px; }
.thread .b.u { background: #0e1116; color: #fff; border-radius: 15.94px 15.94px 5.31px 15.94px; }
.thread .b .rest { color: transparent; }
.thread .wait { display: none; }
.thread .wait.on { display: flex; }
.js .chat-vis .off { display: none; }
.thread .dots { display: flex; gap: 4px; padding-block: 15px; }
.thread .dots i { width: 5.3px; height: 5.3px; border-radius: 50%; background: #8b80d8; opacity: .35; }
.thread .ph { width: 195px; overflow: hidden; background: #0e1116; color: #fff; border-radius: 15.94px 15.94px 5.31px 15.94px; }
.thread .ph img { width: 195px; height: 177px; object-fit: cover; }
.thread .ph p { padding: 8.85px 12.4px; }
.thread .card { width: 241px; display: flex; flex-direction: column; gap: 8.85px; padding: 10.63px; background: #fff; border: .885px solid #e9ebef; border-radius: 14.17px; }
.c-head { display: flex; align-items: center; gap: 8.85px; }
.c-head .thumb { flex: none; width: 35.4px; height: 35.4px; border-radius: 10.63px; }
.c-head .heart { display: grid; place-items: center; background: #f4f1ff; color: var(--lav-600); }
.c-head .heart .i { width: 17.7px; height: 17.7px; stroke-width: 1.33; }
.c-head b { display: block; font-weight: 500; }
.c-head small, .c-imp i, .thread .effect { display: block; font-size: 10.63px; line-height: 14.17px; font-style: normal; color: #474d58; }
.c-imp { display: flex; flex-direction: column; gap: 3.54px; }
.c-imp span { display: flex; justify-content: space-between; gap: 5.31px; }
.c-imp b { flex: none; font-size: 10.63px; line-height: 14.17px; font-weight: 500; }
.c-imp .bar { position: relative; height: 5.3px; border-radius: 2.66px; background: #dfe7fd; overflow: hidden; }
.c-imp .bar s { position: absolute; top: 0; bottom: 0; left: 0; width: 112.9px; background: var(--protein); }
.c-imp .bar .add { left: 114.7px; width: 64.1px; opacity: .45; }
.c-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14.17px; font-size: 11.51px; line-height: 15.94px; font-weight: 600; }
.c-act > span { white-space: nowrap; } /* a longer language moves the second button down instead of breaking a pill */
.btn-d { display: inline-flex; align-items: center; gap: 5.31px; padding: 7.08px 10.63px; border-radius: 999px; background: #0e1116; color: #fff; }
.btn-d .i { width: 14.2px; height: 14.2px; stroke-width: 2; }
.btn-t { color: #474d58; }
.thread .fact { padding: 8.85px 10.63px; border-radius: 10.63px; background: #f4f5f7; font-size: 11.51px; line-height: 15.94px; }
/* one line — a pill; a longer language wraps between its parts, never inside them */
.receipt { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 5.31px; max-width: 320px; padding: 5.31px 10.63px 5.31px 8.85px; border-radius: 13.3px; background: #f4f5f7; font-size: 10.63px; line-height: 14.17px; font-weight: 500; }
.receipt > * { white-space: nowrap; }
.receipt .i { width: 12px; height: 12px; stroke-width: 2.2; color: var(--lav-600); }
.receipt em { font-style: normal; color: var(--lav-600); }
.receipt .undo { color: #474d58; }
.sugg { left: 20px; top: 654px; width: 320px; display: flex; gap: 7.08px; overflow: hidden; }
.sugg span { flex: none; padding: 5.31px 8.85px 5.31px 7.08px; border-radius: 999px; background: #efeaff; color: var(--lav-600); font-size: 10.63px; line-height: 15.38px; font-weight: 500; white-space: nowrap; }
.abilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.abilities li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: var(--shadow-card); }
.abilities h3 { font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.abilities p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.try { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.try .lbl { font-size: 15px; font-weight: 500; color: var(--muted-2); }
.try span:not(.lbl) { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid #e1dafb; font-size: 15px; font-weight: 500; color: var(--ink-2); }

/* ===== pricing ===== */
.pricing { background: linear-gradient(180deg, #0b0d12, #17132e); color: #fff; }
.pricing .p1 { left: calc(50% - 340px); top: 120px; width: 700px; height: 600px; background: rgba(106, 76, 245, .4); --b: 200px; }
.pricing .p2 { left: calc(50% + 380px); top: 500px; width: 420px; height: 420px; background: rgba(155, 131, 255, .25); --b: 180px; }
.plans { display: grid; grid-template-columns: repeat(2, 520px); gap: 32px; justify-content: center; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 40px; border-radius: 32px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.pro-plan { border: 1.5px solid transparent; background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) padding-box, linear-gradient(#18142f, #18142f) padding-box, linear-gradient(90deg, var(--lav-300), var(--lav-500)) border-box; box-shadow: 0 0 80px rgba(106, 76, 245, .5); }
.plan h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; }
.badge { padding: 4px 10px; border-radius: 999px; background: rgba(185, 168, 255, .2); color: var(--lav-200); font-size: 12px; font-weight: 600; }
.price { display: flex; flex-direction: column; gap: 4px; }
.price b { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.price span { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.plan ul { display: flex; flex-direction: column; gap: 14px; }
.plan li { display: flex; gap: 12px; font-size: 17px; font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.plan li .i { width: 20px; height: 20px; color: var(--lav-300); margin-top: 2px; }
.plan .small { color: rgba(255, 255, 255, .55); }

/* ===== privacy ===== */
.privacy { background: var(--bg); }
.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ptiles li { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(59, 42, 154, .05); }
.ptiles .i { width: 40px; height: 40px; padding: 10px; }
.ptiles h3 { font-size: 20px; font-weight: 600; letter-spacing: -.005em; margin-bottom: 8px; }
.ptiles p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ===== FAQ ===== */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 420px 700px; justify-content: space-between; align-items: start; }
.faq .head h2 { font-size: 56px; }
.faq .sub a { color: var(--lav-600); text-decoration: none; font-weight: 500; }
.faq .sub a:hover { text-decoration: underline; }
.qa details { border-top: 1px solid var(--line); padding: 24px 0; }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none; font-size: 20px; font-weight: 600; letter-spacing: -.005em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { width: 22px; height: 22px; transition: transform .2s ease; }
.qa details[open] summary .i { transform: rotate(45deg); }
.qa details p { margin-top: 12px; max-width: 620px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ===== CTA ===== */
.cta { background: #fff; padding: 80px 0 120px; }
.panel { position: relative; overflow: clip; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 96px 80px; border-radius: 48px; text-align: center; color: #fff; background: radial-gradient(60% 90% at 85% 0%, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03) 50%, rgba(255, 255, 255, 0) 100%), linear-gradient(130deg, #4a2ef2 0%, #5a3ef1 55%, #6a4fee 100%); box-shadow: 0 40px 90px rgba(74, 46, 242, .28); }
.panel > * { position: relative; z-index: 1; }
.halo { position: absolute; z-index: 0; left: 50%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .1); transform: translateX(-50%); }
.h-a { width: 900px; height: 900px; top: 60px; }
.h-b { width: 600px; height: 600px; top: 210px; border-width: 1px; border-color: rgba(255, 255, 255, .08); }
.panel .orb { position: absolute; z-index: 0; }
.panel .c1 { left: 120px; top: 280px; width: 520px; height: 420px; background: rgba(58, 31, 216, .45); --b: 140px; }
.panel .c2 { left: 780px; top: -80px; width: 420px; height: 360px; background: rgba(255, 255, 255, .08); --b: 130px; }
.phrase { position: absolute !important; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(30, 16, 110, .3); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 12px 30px rgba(42, 26, 128, .18); font-size: 15px; font-weight: 500; white-space: nowrap; }
.phrase .i { width: 17px; height: 17px; }
.ph1 { left: 6%; top: 70px; } .ph2 { right: 6%; top: 110px; } .ph3 { left: 10%; top: 470px; font-size: 14px; opacity: .85; } .ph4 { right: 12%; top: 500px; font-size: 14px; opacity: .85; }
.cta-icon { width: 208px; margin: -40px -48px -48px; }
.panel h2 { margin-top: 8px; font-size: 80px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.panel .sub { font-size: 20px; line-height: 1.5; color: #fff; max-width: 700px; margin-bottom: 12px; }
.panel .stores img { height: 56px; }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--line-2); padding: 64px 0 48px; }
.f-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.f-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.f-brand p { font-size: 15px; color: var(--muted); }
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--lav-50); }
.lang summary .i { width: 16px; height: 16px; }
.lang summary .i:last-child { width: 14px; height: 14px; transition: transform .2s ease; }
.lang[open] summary .i:last-child { transform: rotate(180deg); }
.langs { position: absolute; z-index: 5; left: 0; bottom: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(59, 42, 154, .14); }
.langs a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.langs a:hover { background: var(--bg); }
.langs a[aria-current] { color: var(--lav-600); font-weight: 600; }
.f-cols { display: flex; gap: 80px; }
.f-cols div { display: flex; flex-direction: column; gap: 12px; }
.f-cols h2 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.f-cols a { font-size: 15px; color: var(--muted); text-decoration: none; }
.f-cols a:hover { color: var(--lav-600); }
.f-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted-2); }

/* ===== 404 ===== */
.nf .hero { min-height: 100vh; display: grid; place-items: center; }
.nf-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 48px 20px; text-align: center; }
.nf-rudi { width: 210px; margin: 12px 0 -4px; }
.nf h1 { font-size: 48px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.nf .lead { font-size: 18px; color: var(--muted); max-width: 420px; }
.nf .btn { padding: 14px 24px; font-size: 16px; }

/* ===== 1024–1199: same layout, tighter ===== */
@media (max-width: 1199px) {
  /* CTA: the panel is narrower than in the 1440 frame — the lower phrases move into the bottom padding, off the text */
  .ph3 { top: auto; bottom: 28px; left: 5%; } .ph4 { top: auto; bottom: 28px; right: 5%; }
  .row { grid-template-columns: minmax(0, 44%) minmax(0, 52%); }
  .row.flip { grid-template-columns: minmax(0, 52%) minmax(0, 44%); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 36% 58%; }
  .stage { grid-template-columns: 300px 1fr; gap: 40px; }
  .chats { gap: 40px; }
  .snap { padding: 64px 40px 48px; }
  .nav { gap: 28px; }
  .nav-links { gap: 24px; }
  .speech { left: 104px; top: 6px; white-space: normal; width: 190px; }
}

/* ===== phone & tablet (< 1024) — Figma phone 390 ===== */
@media (max-width: 1023px) {
  .sec { padding: 72px 0; }
  .wrap { width: min(560px, calc(100% - 40px)); }
  .head { gap: 12px; }
  .head.center { align-items: flex-start; text-align: left; margin-bottom: 32px; }
  .head h2, .h-more { font-size: 34px; letter-spacing: -.02em; line-height: 1.08; }
  .head .sub { font-size: 17px; line-height: 1.5; }
  .eyebrow { font-size: 13px; padding: 6px 12px; }

  /* hero: centred */
  .nav { position: relative; top: 16px; width: min(560px, calc(100% - 40px)); padding: 8px 8px 8px 12px; justify-content: space-between; }
  .nav-links { display: none; }
  .hero-inner { height: auto; min-height: 0; padding-top: 52px; display: flex; flex-direction: column; align-items: center; }
  .hero-text { position: static; width: min(560px, calc(100% - 40px)); min-width: 0; align-items: center; text-align: center; gap: 18px; }
  .hero h1 { font-size: calc(var(--tkm, 1) * 56px); }
  .hero .lead { font-size: 17px; max-width: 330px; }
  .hero .stores img { height: 44px; }
  .stores .soon { font-size: 14px; padding: 13px 18px; white-space: nowrap; }
  .hero .stores { justify-content: center; }
  .hero-vis { position: relative; left: auto; top: auto; width: min(100% - 40px, 520px); margin-top: 20px; aspect-ratio: 350 / 600; --sw: 350px; --sh: 600px; }
  .hero-vis .vstage-img { --ix: -20px; --iy: -6px; --iw: 390px; }
  .hero .o1 { left: 25%; top: -200px; width: 420px; height: 380px; --b: 120px; }
  .hero .o2 { left: 40%; top: 600px; width: 360px; height: 360px; --b: 110px; }
  .hero .o3 { left: -30%; top: 760px; width: 320px; height: 300px; --b: 100px; }
  .hero .o4 { display: none; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px; }
  .step h3 { font-size: 22px; }
  .step .chips, .step .pill { display: none; }

  .snap { margin-top: 40px; padding: 32px 24px 28px; border-radius: 32px; gap: 24px; align-items: stretch; }
  .snap .head.center { align-items: flex-start; text-align: left; }
  .snap .head h2 { font-size: 32px; }
  .snap .head .sub { font-size: 16px; }
  .process { aspect-ratio: auto; max-width: 420px; margin: 0 auto; }
  .process .pstage { position: static; transform: none; width: auto; height: auto; display: flex; flex-direction: column; gap: 16px; }
  .process .pstage > * { position: static; }
  .process .pstage > .p-photo { position: relative; left: auto; top: auto; }
  .pstage > .p-photo, .pstage > .p-result { width: 100%; }
  .p-cam, .p-arrow { display: none !important; }
  .p-caps { order: -1; display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
  .p-caps li { position: static; transform: none; width: auto; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; text-align: left; }
  .p-caps .n { grid-row: span 2; width: 26px; height: 26px; font-size: 13px; }
  .p-caps b { font-size: 16px; }
  .p-caps span:last-child { font-size: 14px; }

  .modes { justify-content: flex-start; }

  .features .head.center { margin-bottom: 48px; }
  .row, .row.flip { display: flex; flex-direction: column; align-items: stretch; gap: 28px; margin-bottom: 72px; }
  .row.flip .row-vis { order: 0; }
  .row-text { gap: 18px; }
  .row-text h3 { font-size: 32px; margin-bottom: -6px; }
  .row-text .body { font-size: 16px; }
  .checks li { font-size: 15px; align-items: flex-start; }
  .row-vis { aspect-ratio: 350 / 420; max-width: 420px; }
  .v-workouts { --sw: 350px; --sh: 420px; }
  .v-workouts .vstage-img { --ix: -20px; --iy: 0px; --iw: 390px; }
  .v-menus { --l: -5.714%; --t: -1.429%; --w: 110.286%; }
  .v-progress { --l: 0%; --w: 105.714%; }
  .v-trackers { --l: -5.714%; --w: 111.429%; }
  .h-more { font-size: 32px; }
  .more-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .coach { grid-row: auto; padding: 24px 20px 150px; }
  .coach h3 { font-size: 26px; }
  .mini-chat { max-width: 100%; width: 100%; }
  .coach-rudi { width: 130px; right: 6px; bottom: -4px; }
  .tile { padding: 16px; gap: 8px; border-radius: 20px; }
  .tile > .i { width: 30px; height: 30px; padding: 7px; }
  .tile h4 { font-size: 16px; }
  .tile p { font-size: 13px; }

  .stage { display: flex; flex-direction: column; gap: 32px; margin-bottom: 36px; }
  .stage-side { padding-top: 0; }
  .rudi-pose { order: -1; margin: 0 0 8px; width: 170px; }
  .speech { left: 130px; top: 60px; font-size: 13px; }
  .rcard { padding: 20px; }
  .chats { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -20px; padding: 0 20px 8px 0; scrollbar-width: none; }
  .chats::-webkit-scrollbar { display: none; }
  .chat { flex: 0 0 272px; scroll-snap-align: start; }
  .abilities { grid-template-columns: 1fr; gap: 12px; }
  .abilities li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px; }
  .abilities .i { grid-row: span 2; }
  .abilities h3 { font-size: 17px; }
  .try { justify-content: flex-start; gap: 8px; }
  .try span:not(.lbl) { font-size: 14px; padding: 8px 14px; }

  .plans { grid-template-columns: 1fr; gap: 20px; }
  .pro-plan { order: -1; }
  .plan { padding: 28px 24px; }
  .btn-light { align-self: stretch; }

  .ptiles { grid-template-columns: 1fr; gap: 12px; }
  .ptiles li { flex-direction: row; gap: 14px; padding: 20px; border-radius: 20px; }
  .ptiles .i { width: 36px; height: 36px; padding: 9px; flex: none; }
  .ptiles h3 { font-size: 18px; margin-bottom: 4px; }

  .faq-grid { display: flex; flex-direction: column; gap: 32px; }
  .faq .head h2 { font-size: 34px; }
  .qa summary { font-size: 18px; align-items: flex-start; }

  .cta { padding: 56px 0; }
  .panel { padding: 112px 20px 44px; border-radius: 32px; gap: 18px; }
  .h-a { width: 520px; height: 520px; top: 40px; }
  .h-b { width: 340px; height: 340px; top: 130px; }
  .panel .c1 { left: -80px; top: 260px; width: 300px; height: 300px; --b: 90px; }
  .panel .c2 { left: 180px; top: -80px; width: 240px; height: 240px; --b: 80px; }
  .phrase { font-size: 12px; padding: 8px 12px 8px 10px; }
  .phrase .i { width: 14px; height: 14px; }
  .ph1 { left: 16px; top: 18px; } .ph2 { right: 16px; left: auto; top: 62px; } .ph3, .ph4 { display: none !important; }
  .cta-icon { width: 156px; margin: -30px -36px -36px; }
  .panel h2 { font-size: 44px; line-height: 1.04; }
  .panel .sub { font-size: 16px; max-width: 290px; }
  .panel .stores img { height: 44px; }
  .panel .stores { justify-content: center; }

  .footer { padding: 48px 0 40px; }
  .f-top { flex-direction: column; gap: 36px; }
  .f-cols { gap: 32px; flex-wrap: wrap; }
  .f-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: calc(var(--tkm, 1) * 48px); }
  .more-grid { grid-template-columns: 1fr; }
  .stores img { height: 40px !important; }
}

/* =====================================================================
   Living interface — app cards rebuilt in HTML over the phone screens (Figma v6 «Glass card», «Rest», «Rudi suggests», «Chip»).
   A visual is a stage in design pixels, scaled to its box: 1 design px = box width / --sw.
   ===================================================================== */
.vis { container-type: inline-size; }
.vstage { position: absolute; left: 0; top: 0; width: var(--sw); height: var(--sh); transform-origin: 0 0; transform: scale(tan(atan2(100cqw, var(--sw)))); }
.vstage-img img { position: absolute; left: var(--ix); top: var(--iy); width: var(--iw); max-width: none; height: auto; }
.vstage > * { position: absolute; }

/* glass card */
.gc { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 18px 44px rgba(59, 42, 154, .12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.gc.solid { background: rgba(255, 255, 255, .82); border-color: rgba(255, 255, 255, .95); box-shadow: 0 14px 36px rgba(59, 42, 154, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; }
.gc-head { display: flex; align-items: center; gap: 10px; }
.gc-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lav-50); color: var(--lav-600); }
.gc-ic .i { width: 20px; height: 20px; }
.gc-head b { display: block; font-size: 16px; font-weight: 600; line-height: 20px; }
.gc-head small { display: block; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--muted-2); }
.gc .wave { height: 36px; }
.gc-quote { font-size: 13px; font-weight: 500; line-height: 17px; color: var(--muted); min-height: 17px; }
/* typing: the part not typed yet stays in place, invisible; the caret is its left edge */
.gc-quote .rest { color: transparent; }
.typing .gc-quote .rest { box-shadow: inset 1.5px 0 0 var(--lav-500); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { box-shadow: none; } }
.rec { position: absolute; right: 18px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: #f04b4b; opacity: 0; transition: opacity .6s ease; }
.listening .rec { opacity: 1; }
.cnt { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }

.c-say { left: 44px; top: 132px; width: 250px; }
.c-say .gc-quote { margin-right: -12px; }
.c-kcal { left: 128px; top: 483px; width: 230px; }
.c-snap { left: 620px; top: 364px; width: 250px; }
.kc { display: flex; align-items: baseline; gap: 6px; }
.kc b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 43px; font-variant-numeric: tabular-nums; }
.kc span { font-size: 15px; font-weight: 500; color: var(--muted-2); }
.mb { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--muted); }
.mb b { margin-left: 6px; color: var(--ink); font-weight: 600; }
.mb i { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 18%, transparent); overflow: hidden; }
.mb i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 3px; background: var(--c); transform-origin: 0 50%; }
.mb.p { --c: var(--protein); --v: 34%; } .mb.c { --c: var(--carbs); --v: 52%; } .mb.f { --c: var(--fat); --v: 46%; }
.gc-log { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--lav-600); }
.gc-log .i { width: 14px; height: 14px; stroke-width: 2.4; }
.snap-ph { position: relative; height: 133px; border-radius: 14px; overflow: hidden; }
.snap-ph img { width: 100%; height: 100%; object-fit: cover; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(180deg, rgba(185, 168, 255, 0), rgba(185, 168, 255, .45) 85%, #fff 100%); opacity: 0; mix-blend-mode: screen; }
.gc-cap { font-size: 13px; font-weight: 600; line-height: 17px; }
.gc-cap em { font-style: normal; color: var(--lav-600); }

/* workouts */
.c-rest { left: -28px; top: 330px; min-width: 167px; max-width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 20px; background: var(--lav-500); color: #fff; box-shadow: 0 14px 30px rgba(59, 42, 154, .3); overflow: hidden; }
.c-rest small { font-size: 12px; font-weight: 500; line-height: 15px; color: rgba(255, 255, 255, .75); }
.c-rest b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 38px; font-variant-numeric: tabular-nums; }
.c-rest .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .55); transform-origin: 0 50%; transform: scaleX(var(--left, 1)); transition: transform 1s linear; }
.c-next { left: 440px; top: 96px; width: 201px; gap: 6px; padding: 16px; }
.c-next .gc-head { gap: 8px; }
.c-next .gc-ic { width: 24px; height: 24px; }
.c-next .gc-ic .i { width: 14px; height: 14px; }
.c-next .gc-head span { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.c-next .val { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 31px; }
.c-next .delta { font-size: 13px; font-weight: 500; line-height: 17px; color: var(--fat); }
/* set ticks drawn over the logger's empty circles (sets 3 and 4 in «feat-workouts») */
.chk { left: 406.75px; width: 23.5px; height: 23.5px; display: grid; place-items: center; border-radius: 50%; background: #0e1116; color: #fff; opacity: 0; transform: scale(.7); }
.chk .i { width: 11px; height: 11px; stroke-width: 2.6; }
.chk.k3 { top: 402px; } .chk.k4 { top: 447.75px; }
.chk.on { opacity: 1; transform: none; }
/* anchored right: a longer record (other languages) grows to the left, never past the panel */
.c-rec { right: 0; top: 476px; min-width: 240px; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; overflow: hidden; }
.c-rec .gc-ic { width: 30px; height: 30px; }
.c-rec .gc-ic .i { width: 16px; height: 16px; }
.c-rec small { display: block; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--muted-2); }
.c-rec b { display: block; font-size: 15px; font-weight: 600; line-height: 19px; white-space: nowrap; }
.step-vis .mb { gap: 6px; }
.chips.cycle span { transition: background-color .5s ease, color .5s ease; }
.js .chips.cycle span.on { background: var(--lav-500); color: #fff; }
.sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); transform: skewX(-18deg) translateX(0); opacity: 0; }

/* ---- motion (only when the page script runs and the visitor allows motion) ---- */
/* Motion rules: calm and continuous — soft ease-out, no springs, nothing floats.
   Transitions in a base rule are how a thing arrives; in a .reset / .r1 / .r2 / .hide rule — how it leaves (short, no delay). */
.instant, .instant *, .instant *::before, .instant *::after { transition: none !important; }
@media (prefers-reduced-motion: no-preference) {
  :root { --soft: cubic-bezier(.22, 1, .36, 1); }

  /* chat: the thread glides up as a message arrives, the message fades in where it lands, Rudi's dots pulse */
  .thread { transition: transform .55s var(--soft); }
  .js .thread [data-step] { animation: chat-in .5s ease-out both; }
  @keyframes chat-in { from { opacity: 0; } to { opacity: 1; } }
  .js .play .thread .dots i { animation: dot 1.2s ease-in-out infinite; }
  .js .play .thread .dots i:nth-child(2) { animation-delay: .2s; } .js .play .thread .dots i:nth-child(3) { animation-delay: .4s; }
  @keyframes dot { 0%, 70%, 100% { opacity: .35; } 35% { opacity: 1; } }
  .js .sugg { transition: opacity .6s ease; }
  .js .sugg.hide { opacity: 0; transition-duration: .2s; }

  /* voice: the bars never stop — between phrases they only calm down; uneven periods so the loop never shows */
  .wave { transition: transform 1.1s var(--soft), opacity 1.1s ease; }
  .js .wave.quiet { transform: scaleY(.3); opacity: .55; }
  .js .play .wave i { animation: wv 1.3s ease-in-out infinite; transform-origin: 50% 50%; }
  .js .play .wave i:nth-child(2n) { animation-duration: 1.7s; }
  .js .play .wave i:nth-child(3n) { animation-duration: 1.1s; }
  .js .play .wave i:nth-child(5n) { animation-duration: 1.9s; }
  .js .play .wave i:nth-child(7n) { animation-duration: 1.5s; }
  .js .play .wave i:nth-child(4n+1) { animation-delay: -.4s; } .js .play .wave i:nth-child(4n+2) { animation-delay: -.9s; } .js .play .wave i:nth-child(4n+3) { animation-delay: -1.3s; }
  @keyframes wv { 0%, 100% { transform: scaleY(.4); } 25% { transform: scaleY(1); } 50% { transform: scaleY(.6); } 75% { transform: scaleY(.9); } }
  .js .play .rec { animation: rec 1.4s ease-in-out infinite; }
  @keyframes rec { 50% { scale: .7; } }
  .gc-quote { transition: opacity .5s ease; }
  .js .hush .gc-quote { opacity: 0; }

  .js .play .scan { animation: scan 4.4s cubic-bezier(.45, 0, .55, 1) infinite; }
  @keyframes scan { 0% { opacity: 0; transform: translateY(-100%); } 12% { opacity: 1; } 60% { opacity: 1; transform: translateY(250%); } 75%, 100% { opacity: 0; transform: translateY(250%); } }

  .js .play .sheen::before { animation: sheen 7s ease-in-out infinite 1.4s; }
  @keyframes sheen { 0% { opacity: 1; transform: skewX(-18deg) translateX(0); } 22% { opacity: 1; transform: skewX(-18deg) translateX(420%); } 23%, 100% { opacity: 0; } }

  /* numbers fade in and count; then protein, carbs and fat arrive one after another */
  .kc b, .kcal b { transition: opacity .5s ease; }
  .js .reset .kc b, .js .reset .kcal b, .js .r2 .kc b { opacity: 0; transition-duration: .35s; }
  .js .mb { transition: opacity .6s ease, transform .9s var(--soft); }
  .js .mb i::after { transition: transform 1.2s var(--soft); }
  .js .mb.p { transition-delay: .3s; } .js .mb.c { transition-delay: .75s; } .js .mb.f { transition-delay: 1.2s; }
  .js .mb.p i::after { transition-delay: .45s; } .js .mb.c i::after { transition-delay: .9s; } .js .mb.f i::after { transition-delay: 1.35s; }
  .js .reset .mb { opacity: 0; transform: translateY(6px); transition-duration: .35s; transition-delay: 0s; }
  .js .reset .mb i::after { transform: scaleX(0); transition-duration: .35s; transition-delay: 0s; }
  .gc-log { transition: opacity .6s ease 1.9s, transform .9s var(--soft) 1.9s; }
  .js .reset .gc-log { opacity: 0; transform: translateY(6px); transition-duration: .35s; transition-delay: 0s; }

  .ring .fg { transition: stroke-dasharray 1.9s var(--soft); }
  .js .reset .ring .fg { stroke-dasharray: 0 100; transition-duration: .35s; }
  .pill { transition: opacity .6s ease 1.7s, transform .9s var(--soft) 1.7s; }
  .js .reset .pill { opacity: 0; transform: translateY(4px); transition-duration: .3s; transition-delay: 0s; }

  /* workouts: the rest card turns green when the time is up; the set gets ticked; the record slides in */
  .js .c-rest.done { animation: done 1.4s ease; }
  @keyframes done { 30%, 70% { background: var(--fat); } }
  .chk { transition: opacity .35s ease, transform .6s var(--soft); }
  .c-rec { transition: opacity .7s ease, transform 1s var(--soft); }
  .js .hide .c-rec { opacity: 0; transform: translateY(10px); transition-duration: .4s; }

  /* entrance */
  .js .pop { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform 1.1s var(--soft); }
  .js .in .pop, .js .pop.in { opacity: 1; transform: none; }
  .js .in .pop.d1 { transition-delay: .15s; } .js .in .pop.d2 { transition-delay: .4s; } .js .in .pop.d3 { transition-delay: .65s; }

  /* reveal on scroll */
  .js .rv { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform 1.1s var(--soft); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .steps .rv:nth-child(2) { transition-delay: .15s; } .js .steps .rv:nth-child(3) { transition-delay: .3s; }
}

@media (max-width: 1023px) {
  .hero-vis .c-snap, .hero-vis .gc-head small, .hero-vis .gc-quote, .hero-vis .gc-log, .hero-vis .rec { display: none; }
  .hero-vis .gc { gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .65); border: 0; box-shadow: 0 12px 32px rgba(59, 42, 154, .14); }
  .hero-vis .gc-ic { width: 32px; height: 32px; } .hero-vis .gc-ic .i { width: 18px; height: 18px; }
  .hero-vis .gc-head { gap: 8px; } .hero-vis .gc-head b { font-size: 14px; line-height: 18px; }
  .hero-vis .c-say { left: -12px; top: 380px; width: 200px; }
  .hero-vis .c-say .wave i:nth-child(n+21) { display: none; }
  .hero-vis .c-kcal { left: 196px; top: 410px; width: 168px; }
  .hero-vis .kc { gap: 4px; } .hero-vis .kc b { font-size: 26px; line-height: 33px; } .hero-vis .kc span { font-size: 13px; }
  .hero-vis .mb { gap: 5px; }
  .v-workouts .c-rest, .v-workouts .c-next, .v-workouts .c-rec { transform-origin: 0 0; scale: .8; }
  .v-workouts .c-rest { left: -8px; top: 250px; } .v-workouts .c-next { left: 196px; top: 64px; } .v-workouts .c-rec { right: 8px; top: 372px; transform-origin: 100% 0; }
  .chk { left: 253.5px; width: 17.5px; height: 17.5px; } .chk .i { width: 8px; height: 8px; }
  .chk.k3 { top: 309px; } .chk.k4 { top: 344px; }
}

/* ---- photo story: recognized photo + check entry (Figma «Photo · Rudi recognizes», «Result · Check entry») ---- */
.p-photo { aspect-ratio: 1; --sw: 400px; --sh: 400px; border-radius: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.p-photo .vstage { border-radius: 32px; overflow: hidden; }
.ph-img { left: 0; top: 0; width: 400px; height: 400px; }
.band { left: 0; top: 0; width: 400px; height: 90px; background: linear-gradient(180deg, rgba(139, 108, 255, 0), rgba(139, 108, 255, .32) 92%, rgba(185, 168, 255, 0)); transform: translateY(222px); }
.band::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 1px; background: var(--lav-200); box-shadow: 0 0 10px rgba(139, 108, 255, .9); }
.vf { width: 34px; height: 34px; border: 3px solid #fff; }
.vf.a { left: 16px; top: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.vf.b { right: 16px; top: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.vf.c { left: 16px; bottom: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.vf.d { right: 16px; bottom: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 7px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); font-size: 13px; font-weight: 500; line-height: 17px; color: var(--ink); white-space: nowrap; transform-origin: 14px 50%; }
.tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--lav-500); box-shadow: 0 0 0 2px #fff; }
.tag.t1 { left: 89px; top: 90px; } .tag.t2 { left: 219px; top: 122px; } .tag.t3 { left: 62px; top: 232px; }
.found { left: 50%; top: 22px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(17, 19, 23, .72); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 14px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.found .i { width: 16px; height: 16px; }

.p-result > div { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); color: var(--ink); }
.when { align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: #f1f2f4; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--muted); }
.p-result .kc span { font-size: 14px; }
.mcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mc { display: flex; flex-direction: column; gap: 5px; }
.mc span { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; line-height: 14px; color: var(--muted-2); }
.mc span i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mc b { font-size: 15px; font-weight: 600; line-height: 19px; }
.mc u { position: relative; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--c) 18%, transparent); overflow: hidden; }
.mc u::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 3px; background: var(--c); transform-origin: 0 50%; }
.mc.p { --c: var(--protein); --v: 30%; } .mc.c { --c: var(--carbs); --v: 21%; } .mc.f { --c: var(--fat); --v: 29%; }
.items li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #ecedf0; }
.items span { display: flex; flex-direction: column; gap: 1px; }
.items b { font-size: 14px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.items small { font-size: 12px; line-height: 15px; color: var(--muted-2); }
.logbtn { padding: 13px 0; border-radius: 999px; background: var(--ink); color: #fff; text-align: center; font-size: 15px; font-weight: 600; line-height: 19px; }

/* ---- menus ---- */
.v-menus { --sw: 620px; --sh: 540px; }
.v-menus .vstage-img { --ix: -60px; --iy: 0px; --iw: 682px; }
.c-diet { left: 330px; top: 28px; flex-direction: row; gap: 6px; padding: 10px 12px; border-radius: 999px; }
.c-diet span { padding: 5px 10px; border-radius: 999px; background: var(--lav-50); color: var(--lav-600); font-size: 13px; font-weight: 500; line-height: 17px; white-space: nowrap; }
.c-swap { left: -24px; top: 448px; flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
.c-swap small { display: block; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--muted-2); }
.c-swap b { display: block; font-size: 15px; font-weight: 600; line-height: 19px; white-space: nowrap; }
.c-swap em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--lav-600); }

/* ---- progress ---- */
.v-progress { --sw: 620px; --sh: 540px; }
.v-progress .vstage-img { --ix: 0px; --iy: 0px; --iw: 676px; }
.c-trend { left: 340px; top: 70px; width: 300px; padding: 18px; border-radius: 22px; }
.c-trend small, .c-badges small { font-size: 12px; font-weight: 500; line-height: 15px; color: var(--muted-2); }
.tv { display: flex; align-items: baseline; gap: 4px; font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 31px; }
.tv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tv span { margin-left: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--fat); }
.chart { width: 264px; height: 140px; overflow: visible; }
.chart .grid rect, .chart .base { fill: #e9ebef; } .chart .base { fill: #cdd1d8; }
.chart text { font-size: 9.6px; fill: #666c77; }
.chart .ylab text { font-size: 9.6px; }
.chart .xlab .t, .chart .goal-t { fill: var(--lav-600); font-weight: 500; }
.chart .area { fill: #f4f1ff; }
.chart .goal { stroke: #cdd1d8; stroke-width: 1.2; stroke-dasharray: 3.2 3.2; stroke-linecap: round; fill: none; }
.chart .range { fill: var(--lav-50); }
.chart .fore { stroke: var(--lav-500); stroke-width: 1.6; stroke-dasharray: 3.2 3.2; stroke-linecap: round; fill: none; }
.chart .todayl { fill: #cdd1d8; }
.chart .pts circle { fill: #7f858f; stroke: #fff; stroke-width: 1.6; }
.chart .trend { fill: none; stroke: var(--lav-500); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.chart .now { fill: #0e1116; stroke: #fff; stroke-width: 1.6; }
.chart .now-halo { fill: var(--lav-500); opacity: 0; }
.c-badges { left: 400px; top: 340px; width: 202px; padding: 16px; border-radius: 22px; }
.bdg { display: flex; gap: 14px; }
.bdg span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bdg img { width: 72px; height: 72px; border-radius: 50%; }
.bdg b { font-size: 12px; font-weight: 600; line-height: 15px; text-align: center; white-space: nowrap; }

/* ---- trackers ---- */
.v-trackers { --sw: 620px; --sh: 540px; }
.v-trackers .vstage-img { --ix: -60px; --iy: 0px; --iw: 680px; }
.c-health { left: -24px; top: 120px; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; }
.c-health .gc-ic { width: 30px; height: 30px; background: #ffecec; color: #e5484d; }
.c-health .gc-ic .i { width: 16px; height: 16px; }
.c-health small { display: block; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--muted-2); }
.c-health b { display: block; font-size: 15px; font-weight: 600; line-height: 19px; white-space: nowrap; }
.c-health em { font-style: normal; font-variant-numeric: tabular-nums; }
.c-watch { left: 430px; top: 250px; width: 167px; height: 186px; }
.w-body { position: relative; width: 161px; height: 186px; border-radius: 35px; background: #1a1b20; border: 1.86px solid #3a3c44; box-shadow: 0 12px 27px rgba(0, 0, 0, .35); }
.w-crown { position: absolute; left: 158px; top: 43px; width: 5px; height: 25px; border-radius: 2px; background: #3a3c44; }
.w-in { position: absolute; left: 5px; top: 5px; width: 146px; height: 171px; border-radius: 38px; background: #0e1116; }
.w-screen { position: absolute; left: 9px; top: 9px; width: 129px; height: 154px; border-radius: 30px; background: #0b0d12; padding: 6px 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #f1f2f4; }
.w-top { display: flex; justify-content: space-between; width: 100%; font-size: 8px; font-weight: 600; line-height: 12px; }
.w-top b { color: var(--lav-300); font-weight: 600; }
.w-ring { position: relative; width: 64px; height: 64px; margin-top: 3px; }
.w-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.w-ring circle { fill: none; stroke-width: 6.3; }
.w-ring .tr { stroke: #2a2f3a; }
.w-ring .pr { stroke: var(--lav-500); stroke-linecap: round; stroke-dasharray: 58 100; }
.w-ring p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.w-ring b { font-size: 17px; font-weight: 600; line-height: 20px; font-variant-numeric: tabular-nums; }
.w-ring span { font-size: 7.4px; line-height: 10px; color: #a7adb8; white-space: nowrap; }
.w-chips { display: flex; gap: 4px; }
.w-chips span { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px 2px 5px; border-radius: 7px; background: #1d2129; font-size: 7.4px; font-weight: 500; line-height: 10px; white-space: nowrap; }
.w-chips .i { width: 9px; height: 9px; color: var(--lav-300); stroke-width: 2.2; }
.w-btns { display: flex; gap: 4px; }
.w-log { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--lav-500); font-size: 8px; font-weight: 600; }
.w-log .i { width: 10px; height: 10px; stroke-width: 2.2; }
.w-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 12px; background: #1d2129; color: #a7adb8; }
.w-ico .i { width: 11px; height: 11px; }

/* ---- motion for the new scenes ---- */
@media (prefers-reduced-motion: no-preference) {
  /* photo: labels land one by one, then the entry fills in */
  .tag { transition: opacity .6s ease, transform .9s var(--soft); }
  .tag.t2 { transition-delay: .4s; } .tag.t3 { transition-delay: .8s; }
  .js .r1 .tag { opacity: 0; transform: translateY(4px) scale(.94); transition-duration: .35s; transition-delay: 0s; }
  .found { transition: opacity .6s ease 1.2s, translate .9s var(--soft) 1.2s; }
  .js .r1 .found { opacity: 0; translate: -50% -6px; transition-duration: .35s; transition-delay: 0s; }
  .js .play .p-photo .band { animation: band 4s cubic-bezier(.45, 0, .55, 1) infinite; }
  @keyframes band { 0% { opacity: 0; transform: translateY(-90px); } 10% { opacity: 1; } 70% { opacity: 1; transform: translateY(400px); } 71%, 100% { opacity: 0; transform: translateY(400px); } }
  .js .mc u::after { transition: transform 1.2s var(--soft); }
  .js .mc.c u::after { transition-delay: .25s; } .js .mc.f u::after { transition-delay: .5s; }
  .js .r2 .mc u::after { transform: scaleX(0); transition-duration: .35s; transition-delay: 0s; }
  .js .items li { transition: opacity .6s ease, transform .9s var(--soft); }
  .js .items li:nth-child(1) { transition-delay: .5s; } .js .items li:nth-child(2) { transition-delay: .85s; } .js .items li:nth-child(3) { transition-delay: 1.2s; }
  .js .r2 .items li { opacity: 0; transform: translateX(10px); transition-duration: .35s; transition-delay: 0s; }
  .js .play .logbtn.press { animation: press .8s ease; }
  @keyframes press { 40% { transform: scale(.97); background: var(--lav-500); } }

  /* menus: filters one by one, then the swapped dinner */
  .c-diet span { transition: opacity .6s ease, transform .9s var(--soft); }
  .c-diet span:nth-child(2) { transition-delay: .3s; } .c-diet span:nth-child(3) { transition-delay: .6s; }
  .js .reset .c-diet span { opacity: 0; transform: translateY(4px); transition-duration: .3s; transition-delay: 0s; }
  .c-swap { transition: opacity .7s ease, transform 1s var(--soft); }
  .js .hide .c-swap, .js .hide.c-swap { opacity: 0; transform: translateX(-12px); transition-duration: .35s; }
  .js .play .c-swap em { animation: undo 3.2s ease-in-out infinite 1s; }
  @keyframes undo { 50% { opacity: .55; } }

  /* progress: the trend draws, points settle along it, badges arrive after */
  .chart .trend { transition: stroke-dashoffset 2.2s cubic-bezier(.45, 0, .2, 1); }
  .js .reset .chart .trend { stroke-dashoffset: 1; transition-duration: 0s; }
  .chart .pts circle { transition: opacity .5s ease, transform .7s var(--soft); transform-box: fill-box; transform-origin: center; }
  .js .reset .chart .pts circle { opacity: 0; transform: scale(.4); transition-duration: .3s; transition-delay: 0s; }
  .chart .pts circle:nth-child(2) { transition-delay: .2s; } .chart .pts circle:nth-child(3) { transition-delay: .4s; } .chart .pts circle:nth-child(4) { transition-delay: .6s; } .chart .pts circle:nth-child(5) { transition-delay: .8s; }
  .chart .pts circle:nth-child(6) { transition-delay: 1s; } .chart .pts circle:nth-child(7) { transition-delay: 1.2s; } .chart .pts circle:nth-child(8) { transition-delay: 1.4s; } .chart .pts circle:nth-child(9) { transition-delay: 1.6s; } .chart .pts circle:nth-child(10) { transition-delay: 1.8s; }
  .js .play .chart .fore { animation: march 1.6s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -6.4; } }
  .js .play .chart .now-halo { animation: halo 2.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes halo { 0% { opacity: .45; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
  .bdg span { transition: opacity .7s ease 1s, transform 1s var(--soft) 1s; }
  .bdg span:nth-child(2) { transition-delay: 1.35s; }
  .js .reset .bdg span { opacity: 0; transform: translateY(8px); transition-duration: .3s; transition-delay: 0s; }
  .js .play .bdg img { animation: glint 6s ease-in-out infinite 2.5s; }
  @keyframes glint { 0%, 80%, 100% { filter: none; } 88% { filter: brightness(1.15) saturate(1.08); } }

  /* trackers */
  .w-ring .pr { transition: stroke-dasharray 1.9s var(--soft); }
  .js .reset .w-ring .pr { stroke-dasharray: 0 100; transition-duration: .3s; }
  .js .play .w-log { animation: pulse 2.8s ease-in-out infinite 1.5s; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(106, 76, 245, .5); } 50% { box-shadow: 0 0 0 6px rgba(106, 76, 245, 0); } }

  /* call to action: the spoken phrases light up in turn (they stay in place) */
  .phrase { transition: background-color .6s ease, border-color .6s ease; }
  .phrase.on { background: rgba(30, 16, 110, .5); border-color: rgba(255, 255, 255, .85); }
}

@media (max-width: 1023px) {
  .p-photo .tag, .p-photo .found { scale: 1.17; }
  .p-photo .found { translate: -50% 0; transform-origin: 50% 0; }
  .v-menus { --sw: 350px; --sh: 420px; }
  .v-menus .vstage-img { --ix: -20px; --iy: -6px; --iw: 386px; }
  .v-progress { --sw: 350px; --sh: 420px; }
  .v-progress .vstage-img { --ix: 0px; --iy: 0px; --iw: 370px; }
  .v-trackers { --sw: 350px; --sh: 420px; }
  .v-trackers .vstage-img { --ix: -20px; --iy: 0px; --iw: 390px; }
  .c-diet, .c-swap, .c-health, .c-watch { transform-origin: 0 0; scale: .8; }
  /* anchored right: longer languages grow to the left instead of past the phone edge */
  .c-diet { left: auto; right: 13px; top: 12px; transform-origin: 100% 0; } .c-swap { left: -8px; top: 336px; }
  .c-trend { left: 140px; top: 50px; scale: .72; transform-origin: 0 0; }
  .c-badges { left: 170px; top: 262px; scale: .78; transform-origin: 0 0; }
  .c-health { left: -8px; top: 100px; } .c-watch { left: 220px; top: 236px; }
}
