/* GymBroAI — site vitrine, v2.
   Titres : Libre Franklin 900 italique en capitales (l'esprit Franklin Gothic de la référence).
   Texte : Geist. Fond presque noir, une scène colorée par section, l'accent Lagon de l'app en fil rouge. */
:root {
  --bg: #07080C; --bg2: #0C0E14; --surface: #12151D; --surface2: #191D27; --surface3: #232835;
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #F7F8FB; --text2: #C6CCD6; --muted: #8E97A6;
  --accent: #58C0F0; --a1: #6BE0EC; --a2: #4A9BF2; --ink: #05131B;
  --violet: #8B7CFF; --violet2: #B8A6FF; --coral: #F2805E; --amber: #F0B74A; --ok: #5CCB8A; --neg: #E06A4A;
  --protein: #F28B6E; --carbs: #E9B44C; --fat: #A78BFA;
  --glow: var(--accent);
  --g: clamp(20px, 5vw, 88px); --r: 22px; --r-sm: 14px;
  --display: "Libre Franklin", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.7, 0, .2, 1);
  --max: 1400px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.55; background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, canvas, svg, video { display: block; }
input, button, a { touch-action: manipulation; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--g); padding-right: var(--g); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Type */
body, h1, h2, h3, h4, h5, p, li, b, strong, span, a, button, label { color: inherit; }
body { color: var(--text); }
h1, h2, h3, h4, .d { color: var(--text); }
.d { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.015em; line-height: .9; }
.lbl { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 12.5px; letter-spacing: .05em; line-height: 1; color: var(--glow); display: inline-flex; align-items: center; gap: 10px; }
.lbl::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lbl.plain::before { display: none; }
.lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--text2); font-weight: 400; }
.lead strong { color: var(--text); font-weight: 600; }

/* grain */
body::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 3%); } 40% { transform: translate(4%, -5%); } 60% { transform: translate(-3%, 6%); } 80% { transform: translate(5%, 2%); } 100% { transform: translate(0, 0); } }

/* scenes: one coloured atmosphere per section */
.scene { position: relative; isolation: isolate; }
.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60% 55% at var(--gx, 80%) var(--gy, 10%), color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%),
  radial-gradient(45% 40% at calc(100% - var(--gx, 80%)) 90%, color-mix(in srgb, var(--glow) 14%, transparent), transparent 70%); }
.scene.violet { --glow: var(--violet); } .scene.lagon { --glow: var(--accent); } .scene.coral { --glow: var(--coral); } .scene.amber { --glow: var(--amber); } .scene.none::before { display: none; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; overflow: hidden; }
#loader .lw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
#loader .lw img { width: 76px; height: 76px; border-radius: 19px; opacity: 0; transform: scale(.8); }
#loader .lt { font-size: clamp(40px, 7vw, 88px); color: #fff; overflow: hidden; height: 1em; line-height: 1; display: flex; }
#loader .lt span { display: inline-block; transform: translateY(110%); white-space: pre; }
#loader .lt span.ac { color: var(--accent); }
#loader .lwipe { position: absolute; inset: 0; background: var(--bg); transform: scaleY(0); transform-origin: 50% 100%; }

/* ---------- chrome ---------- */
.chrome { position: fixed; left: 0; right: 0; top: 0; z-index: 50; padding: 16px var(--g) 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; transition: transform .6s var(--ease); }
.chrome.hid { transform: translateY(-130%); }
.chrome > * { pointer-events: auto; }
.wm { display: flex; align-items: center; gap: 10px; height: 46px; }
.wm img { width: 34px; height: 34px; border-radius: 9px; }
.wm .d { font-size: 19px; letter-spacing: -.01em; }
.wm .d i { font-style: inherit; color: var(--accent); }
.nav { display: flex; align-items: center; height: 46px; padding: 4px; border-radius: 46px; background: rgba(10,12,18,.7); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); gap: 2px; }
.nav a { height: 38px; padding: 0 15px; border-radius: 38px; display: flex; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--text2); transition: color .3s, background .3s; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(255,255,255,.08); }
.cta { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; height: 46px; padding: 4px; border-radius: 46px; background: rgba(10,12,18,.7); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lang button { width: 40px; height: 38px; border-radius: 38px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; transition: color .3s, background .3s; }
.lang button.on { color: var(--text); background: rgba(255,255,255,.1); }
.store { height: 46px; padding: 0 18px 0 14px; border-radius: 46px; background: #fff; color: #000; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .45s var(--ease), box-shadow .45s; will-change: transform; }
.store svg { width: 17px; height: 17px; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(255,255,255,.45); }
.store.big { height: 62px; padding: 0 28px 0 22px; border-radius: 62px; font-size: 17px; gap: 12px; }
.store.big svg { width: 22px; height: 22px; }
.store.big .t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.store.big small { font-size: 11px; font-weight: 500; opacity: .6; margin-bottom: 3px; }
.mbtn { display: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(10,12,18,.7); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); place-items: center; }
.mbtn .g4 { display: grid; grid-template-columns: repeat(2, 6px); gap: 4px; transition: transform .6s var(--ease); }
.mbtn .g4 i { width: 6px; height: 6px; border-radius: 2px; background: var(--text); transition: border-radius .4s; }
body.menu-open .mbtn .g4 { transform: rotate(45deg); }
body.menu-open .mbtn .g4 i { border-radius: 50%; }
#menu { position: fixed; z-index: 49; top: 74px; right: var(--g); left: var(--g); background: var(--surface); border: 1px solid var(--line2); border-radius: 22px; padding: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); transform-origin: 100% 0; transform: scale(.94) translateY(-8px); opacity: 0; visibility: hidden; transition: transform .55s var(--ease), opacity .3s, visibility 0s .55s; }
body.menu-open #menu { transform: none; opacity: 1; visibility: visible; transition: transform .55s var(--ease), opacity .25s, visibility 0s; }
#menu .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#menu .tile { height: 96px; border-radius: 14px; background: var(--surface2); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }
#menu .tile b { font-size: 22px; }
#menu .tile .lbl { color: var(--muted); }
#menu .mrow { margin-top: 8px; }
#menu .mrow .store { width: 100%; justify-content: center; }

main { position: relative; z-index: 2; }

/* ---------- reveals ---------- */
.ln { display: block; overflow: hidden; padding: .14em 0 .12em; margin: -.14em 0 -.12em; }
.ln > span { display: inline-block; transform: translateY(112%); transition: transform 1.05s var(--ease); will-change: transform; }
.in .ln > span { transform: none; }
.in .ln:nth-child(2) > span { transition-delay: .07s; }
.in .ln:nth-child(3) > span { transition-delay: .14s; }
.in .ln:nth-child(4) > span { transition-delay: .21s; }
.sw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .14em 0 .12em; margin: -.14em 0 -.12em; }
.sw > span { display: inline-block; transform: translateY(112%); transition: transform .95s var(--ease); transition-delay: var(--d, 0s); }
.in .sw > span { transform: none; }
.fade { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.in .fade, .fade.in { opacity: 1; transform: none; }
.in .fade:nth-of-type(2) { transition-delay: .08s; }
.in .fade:nth-of-type(3) { transition-delay: .16s; }
.stag > * { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .8s var(--ease), transform .95s var(--ease); }
.stag.in > * { opacity: 1; transform: none; }
.stag.in > :nth-child(2) { transition-delay: 60ms; } .stag.in > :nth-child(3) { transition-delay: 120ms; } .stag.in > :nth-child(4) { transition-delay: 180ms; }
.stag.in > :nth-child(5) { transition-delay: 240ms; } .stag.in > :nth-child(6) { transition-delay: 300ms; } .stag.in > :nth-child(7) { transition-delay: 360ms; }

/* ---------- device ---------- */
.device { --dw: 300px; position: relative; width: var(--dw); aspect-ratio: 9 / 19.5; border-radius: calc(var(--dw) * .165); background: #0b0c10; padding: calc(var(--dw) * .032); box-shadow: 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 1.5px rgba(255,255,255,.06), 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 calc(var(--dw) * .012) #15181e; }
.device::before { content: ""; position: absolute; left: -2px; top: 16%; width: 3px; height: 7%; border-radius: 2px; background: #2a2e36; }
.device::after { content: ""; position: absolute; right: -2px; top: 20%; width: 3px; height: 11%; border-radius: 2px; background: #2a2e36; }
.device .scr { position: relative; width: 100%; height: 100%; border-radius: calc(var(--dw) * .135); overflow: hidden; background: #000; isolation: isolate; }
.device .island { position: absolute; left: 50%; top: 2.4%; width: 27%; height: 3.3%; border-radius: 999px; background: #000; transform: translateX(-50%); z-index: 9; }
.device .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device .sb { position: absolute; left: 0; right: 0; top: 0; height: 6.4%; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: 0 9%; font-size: calc(var(--dw) * .046); font-weight: 600; color: #fff; pointer-events: none; }
.device .sb svg { height: calc(var(--dw) * .034); width: auto; }
.device .home { position: absolute; left: 50%; bottom: 1.6%; width: 36%; height: 1.1%; border-radius: 999px; background: rgba(255,255,255,.85); transform: translateX(-50%); z-index: 9; pointer-events: none; }
.device canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dev-wrap { position: relative; perspective: 1600px; }
.dev-tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 124px 0 0; overflow: hidden; --gx: 72%; --gy: 20%; }
.hero .bgc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: calc(100svh - 124px); padding-bottom: 88px; }
.hero .lbl { margin-bottom: 26px; }
.hero h1 { font-size: clamp(48px, 6.6vw, 108px); }
.hero h1 em { font-style: inherit; color: var(--accent); }
.hero .lead { margin-top: 28px; max-width: 520px; }
.hero .acts { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.ghost { height: 62px; padding: 0 24px; border-radius: 62px; border: 1px solid var(--line2); display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text); transition: border-color .3s, background .3s, transform .45s var(--ease); }
.ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.ghost .ar { display: inline-block; transition: transform .5s var(--ease); }
.ghost:hover .ar { transform: translateY(3px); }
.proofs { display: flex; gap: 10px 26px; margin-top: 40px; flex-wrap: wrap; }
.proofs span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--text2); }
.proofs span svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero .stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.hero .device { --dw: clamp(250px, 21vw, 330px); }
.chip { position: absolute; z-index: 6; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 12px; border-radius: 44px; background: rgba(18,21,29,.78); border: 1px solid var(--line2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-weight: 500; font-size: 14px; color: var(--text); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); transform: translateZ(60px); }
.chip b { font-weight: 700; color: var(--accent); font-size: 16px; }
.chip.score { right: -8%; top: 14%; }
.chip.angle { left: -12%; bottom: 26%; }
.chip.rep { right: -6%; bottom: 14%; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(88,192,240,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(88,192,240,.55); } 70% { box-shadow: 0 0 0 9px rgba(88,192,240,0); } 100% { box-shadow: 0 0 0 0 rgba(88,192,240,0); } }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.cue i { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, var(--text2)); position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--accent); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- marquee ---------- */
.marq { position: relative; overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.marq .track { display: flex; white-space: nowrap; animation: marq 40s linear infinite; width: max-content; }
.marq:hover .track { animation-play-state: paused; }
.marq .track span { display: inline-flex; align-items: center; gap: 28px; padding: 0 28px; font-size: clamp(30px, 4vw, 56px); color: var(--text); }
.marq .track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }
.marq .track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); -webkit-text-stroke: 0; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.stmt { position: relative; padding: 18vh 0 14vh; --gx: 15%; --gy: 30%; }
.big { font-size: clamp(40px, 6.2vw, 100px); }
.big .dim { color: var(--text2); opacity: .55; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: clamp(44px, 7vh, 88px); align-items: start; }
.cols .txt { max-width: 560px; }
.lead + .lead { margin-top: 1em; }
.pill { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 22px 0 20px; border-radius: 50px; background: var(--surface); border: 1px solid var(--line2); font-size: 14px; font-weight: 600; margin-top: 36px; transition: background .35s, border-color .35s, transform .45s var(--ease); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fact { padding: 24px 22px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fact b { display: block; font-size: clamp(40px, 3.6vw, 56px); line-height: .9; color: var(--text); }
.fact b small { font-size: .45em; letter-spacing: 0; color: var(--text2); margin-left: 4px; }
.fact span { display: block; margin-top: 14px; color: var(--text2); font-size: 14px; line-height: 1.45; }

/* ---------- tools index ---------- */
.tools { padding: 0 0 12vh; }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), border-color .3s; }
.tool::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%); opacity: 0; transition: opacity .5s; }
.tool:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.tool:hover::before { opacity: 1; }
.tool .n { position: relative; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 13px; color: var(--c); }
.tool .ic { position: relative; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); display: grid; place-items: center; margin-top: 18px; }
.tool .ic svg { width: 20px; height: 20px; }
.tool b { position: relative; display: block; margin-top: auto; padding-top: 22px; font-size: 26px; }
.tool span { position: relative; display: block; margin-top: 8px; font-size: 14px; color: var(--text2); line-height: 1.45; }
.tool .ar { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 15px; transition: background .3s, transform .5s var(--ease); }
.tool:hover .ar { background: var(--c); color: #000; border-color: transparent; transform: rotate(-45deg); }

/* ---------- section heads ---------- */
.section { position: relative; padding: 14vh 0; }
.shead { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.shead .lbl { margin-bottom: 20px; }
.shead h2 { font-size: clamp(32px, 3.9vw, 60px); max-width: 18ch; }
.shead h2 em { font-style: inherit; color: var(--glow); }
.shead p { max-width: 440px; color: var(--text2); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; justify-self: end; }

/* ---------- form check (pinned) ---------- */
.form { position: relative; height: 340vh; --gx: 70%; --gy: 50%; }
.form .stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 0 var(--g); }
.form .copy { position: relative; min-height: 380px; }
.form .step { position: absolute; left: 0; top: 50%; transform: translateY(calc(-50% + 24px)); opacity: 0; transition: opacity .55s var(--ease), transform .8s var(--ease); max-width: 540px; pointer-events: none; }
.form .step.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.form .step .lbl { margin-bottom: 20px; }
.form .step h3 { font-size: clamp(32px, 3.6vw, 58px); }
.form .step p { margin-top: 22px; color: var(--text2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; max-width: 460px; }
.form .step ul { margin-top: 22px; display: grid; gap: 10px; list-style: none; }
.form .step li { display: flex; gap: 12px; align-items: flex-start; color: var(--text2); font-size: 15px; line-height: 1.45; }
.form .step li b { color: var(--text); font-weight: 600; }
.form .step li i { flex: none; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 16%, transparent); display: grid; place-items: center; color: var(--accent); margin-top: 1px; }
.form .step li i svg { width: 12px; height: 12px; }
.form .dots { display: flex; gap: 8px; position: absolute; left: var(--g); bottom: 36px; }
.form .dots i { width: 32px; height: 3px; border-radius: 3px; background: var(--surface3); overflow: hidden; position: relative; }
.form .dots i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.form .stage { display: flex; justify-content: center; align-items: center; position: relative; }
.form .device { --dw: clamp(240px, min(22vw, 42svh), 340px); }
.form .meter { position: absolute; z-index: 7; left: 6%; top: 11%; display: grid; gap: 6px; }
.form .meter .m { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px 0 9px; border-radius: 30px; background: rgba(7,9,13,.6); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 500; color: #fff; }
.form .meter .m b { color: var(--accent); font-weight: 700; }
.form .meter .m i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.form .depth { position: absolute; z-index: 7; right: 6%; top: 36%; width: 6px; height: 30%; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
.form .depth i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--d, 0%); background: linear-gradient(180deg, var(--a1), var(--a2)); border-radius: 6px; }
.form .depth::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 1px; background: rgba(255,255,255,.5); }
.form .dlab { position: absolute; z-index: 7; right: 6%; top: calc(66% + 10px); max-width: 40%; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .85; text-align: right; line-height: 1.3; }
.form .rec { position: absolute; z-index: 7; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 30px; background: rgba(7,9,13,.6); border: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.form .rec i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.form .result { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; padding: 18px 16px 44px; background: linear-gradient(180deg, rgba(7,8,12,0) 0%, rgba(7,8,12,.93) 22%, var(--bg) 100%); transform: translateY(100%); transition: transform .9s var(--ease); }
.form .result.on { transform: none; }
.ring { position: relative; width: 72px; height: 72px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring .tr { stroke: var(--surface3); }
.ring .pr { stroke: var(--ok); stroke-dasharray: 201; stroke-dashoffset: 201; transition: stroke-dashoffset 1.3s var(--ease) .2s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.form .rhead { display: flex; align-items: center; gap: 14px; }
.form .rhead .t b { display: block; font-size: 22px; color: var(--ok); }
.form .rhead .t span { color: var(--text2); font-size: 13px; }
.form .rub { margin-top: 14px; display: grid; gap: 8px; }
.form .rub div { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 12.5px; font-weight: 500; }
.form .rub div span:last-child { color: var(--text2); }
.form .rub div i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--surface3); overflow: hidden; }
.form .rub div i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--a1), var(--a2)); border-radius: 4px; transition: width 1s var(--ease) .3s; }
.form .rub div i.ok::after { background: var(--ok); }
.form .tips { margin-top: 14px; display: grid; gap: 7px; }
.form .tips div { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; color: var(--text2); }
.form .tips div b { flex: none; min-width: 60px; font-weight: 700; color: var(--text); }
.form .tips div b.k { color: var(--ok); } .form .tips div b.f { color: var(--neg); } .form .tips div b.n { color: var(--accent); }
.form .replay { display: none; }

/* ---------- scan demos ---------- */
.demo { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.demo.flip { grid-template-columns: 1.1fr minmax(280px, .9fr); }
.demo.flip .stage { order: 2; }
.demo .stage { display: flex; justify-content: center; position: relative; }
.demo .device { --dw: clamp(250px, 22vw, 320px); }
.sweep { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--glow) 30%, var(--glow) 70%, transparent); box-shadow: 0 0 24px 4px color-mix(in srgb, var(--glow) 40%, transparent); opacity: 0; z-index: 6; }
.scanning .sweep { opacity: 1; animation: sweep 1.5s var(--ease-io) infinite; }
@keyframes sweep { 0% { top: 22%; } 50% { top: 72%; } 100% { top: 22%; } }
.tags { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.tag { position: absolute; z-index: 7; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 8px; border-radius: 28px; background: rgba(7,9,13,.66); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: default; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--glow); }
.tag.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.tag.toggle { cursor: pointer; pointer-events: auto; transition: transform .6s var(--ease), opacity .4s, background .3s, border-color .3s; }
.tag.toggle.off { opacity: .45; border-style: dashed; text-decoration: line-through; }
.tag.toggle.off i { background: var(--muted); }
.steps { position: absolute; left: 50%; bottom: 27%; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 12px; border-radius: 34px; background: rgba(7,9,13,.72); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.steps.on { opacity: 1; }
.steps .sp { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--glow); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shutter { position: absolute; left: 50%; bottom: 5.2%; transform: translateX(-50%); z-index: 9; width: 15%; aspect-ratio: 1; border-radius: 50%; }
.shutter::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; transition: border-color .3s; }
.shutter:hover::after, .shutter.hint::after { border-color: var(--glow); animation: pulse 2s infinite; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card .ch { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .ch .st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text2); }
.card .ch .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.card .ch .st.live i { background: var(--glow); } .card .ch .st.done i { background: var(--ok); }
.card .ch .meta { font-size: 13px; color: var(--muted); font-weight: 500; }
.kcal { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.kcal b { font-size: clamp(48px, 5vw, 72px); line-height: .9; font-variant-numeric: tabular-nums; }
.kcal span { color: var(--text2); font-weight: 600; font-size: 18px; }
.kcal small { margin-left: auto; color: var(--text2); font-size: 14px; text-align: right; line-height: 1.35; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.mac { padding: 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.mac > span { display: flex; align-items: center; gap: 7px; color: var(--text2); font-size: 12.5px; font-weight: 600; }
.mac > span i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mac b { display: block; margin-top: 6px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mac b small { font-size: 13px; color: var(--text2); font-weight: 600; margin-left: 2px; }
.mac .bar { margin-top: 10px; height: 4px; border-radius: 4px; background: var(--surface3); overflow: hidden; }
.mac .bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 4px; background: var(--c); transition: width 1.1s var(--ease) .2s; }
.mac.p { --c: var(--protein); } .mac.c { --c: var(--carbs); } .mac.f { --c: var(--fat); }
.score { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); }
.score .ring { width: 56px; height: 56px; } .score .ring b { font-size: 17px; } .score .ring circle { stroke-width: 5; } .score .ring .pr { stroke: var(--amber); stroke-dasharray: 160; stroke-dashoffset: 160; }
.score .t b { display: block; font-size: 18px; }
.score .t span { color: var(--text2); font-size: 13px; line-height: 1.4; display: block; margin-top: 3px; }
.ctips { margin-top: 18px; display: grid; gap: 9px; }
.ctips div { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text2); }
.ctips div b { flex: none; min-width: 78px; font-weight: 700; color: var(--text); }
.ctips div b.k { color: var(--ok); } .ctips div b.i { color: var(--amber); } .ctips div b.s { color: var(--accent); }
.portion { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.portion label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--text2); }
.portion label b { color: var(--text); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin-top: 6px; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--glow) var(--v, 33%), var(--surface3) var(--v, 33%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line2); margin-top: -9px; }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface3); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--glow); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--surface); }
.acts2 { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn { height: 46px; padding: 0 20px; border-radius: 46px; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; transition: transform .45s var(--ease), background .3s, border-color .3s, opacity .3s; }
.btn.pri { background: #fff; color: #000; }
.btn.pri:hover { transform: translateY(-2px); }
.btn.sec { border: 1px solid var(--line2); color: var(--text); }
.btn.sec:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.toast { position: absolute; left: 50%; top: 10%; transform: translate(-50%, -8px); z-index: 12; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 36px; background: #fff; color: #000; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .3s, transform .5s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 14px; height: 14px; }
.card.empty { display: grid; place-items: center; min-height: 420px; text-align: center; color: var(--text2); }
.card.empty p { max-width: 300px; line-height: 1.5; }
.card.empty .ic { width: 56px; height: 56px; border-radius: 18px; background: color-mix(in srgb, var(--glow) 16%, transparent); display: grid; place-items: center; color: var(--glow); margin: 0 auto 16px; }
.card.empty .ic svg { width: 24px; height: 24px; }
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; }
.swap .pane { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.swap .pane[hidden] { display: block; opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden; }

/* fridge */
.ings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ing { height: 36px; padding: 0 14px 0 11px; border-radius: 36px; border: 1px solid var(--line2); display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); transition: border-color .3s, background .3s, color .3s, opacity .3s; }
.ing i { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); transition: background .3s; }
.ing:hover { border-color: var(--glow); }
.ing.off { color: var(--muted); border-style: dashed; text-decoration: line-through; }
.ing.off i { background: var(--surface3); }
.recipes { margin-top: 18px; display: grid; gap: 8px; }
.rcp { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); transition: opacity .4s, transform .6s var(--ease), border-color .3s; }
.rcp.ready { border-color: color-mix(in srgb, var(--glow) 45%, transparent); }
.rcp.miss { opacity: .55; }
.rcp b { grid-column: 1; grid-row: 1; font-weight: 600; font-size: 15.5px; }
.rcp .m { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 12.5px; color: var(--text2); line-height: 1.4; font-variant-numeric: tabular-nums; }
.rcp .m strong { display: block; color: var(--text); font-weight: 700; font-size: 15px; }
.rcp > span:last-child { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--text2); }
.rcp span em { font-style: normal; color: var(--glow); font-weight: 600; }
.rcp.miss span em { color: var(--amber); }

/* ---------- coach ---------- */
.coach { --gx: 20%; --gy: 70%; }
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.tones { display: grid; gap: 8px; }
.tone { text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.tone:hover { border-color: var(--line2); transform: translateY(-1px); }
.tone.on { border-color: var(--accent); }
.tone b { font-size: 17px; }
.tone span { color: var(--text2); font-size: 13px; line-height: 1.4; }
.tone i { grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; transition: border-color .3s; }
.tone i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease); }
.tone.on i { border-color: var(--accent); }
.tone.on i::after { transform: scale(1); }
.ctx { margin-top: 10px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ctx ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.ctx li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text2); align-items: center; line-height: 1.4; }
.ctx li i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.ctx li b { color: var(--text); font-weight: 600; }
.thread { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-height: 560px; max-height: 680px; overflow: hidden; }
.thread .top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--surface2); display: grid; place-items: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; }
.thread .top b { display: block; font-size: 16px; }
.thread .top span { display: block; color: var(--text2); font-size: 12.5px; }
.thread .top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: pop .5s var(--ease); }
.msg.me { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 6px; font-weight: 500; }
.msg.ai { align-self: flex-start; background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--text); }
.msg.ai strong { font-weight: 700; color: #fff; }
.msg.ai p + p { margin-top: 8px; }
.msg.ai .w { display: inline-block; opacity: 0; animation: w .35s var(--ease) forwards; }
@keyframes w { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.think { align-self: flex-start; display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 13px; padding: 8px 4px; }
.think i { display: inline-flex; gap: 4px; }
.think i b { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: tb 1.1s infinite; }
.think i b:nth-child(2) { animation-delay: .15s; } .think i b:nth-child(3) { animation-delay: .3s; }
@keyframes tb { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.sugg button { height: 36px; padding: 0 14px; border-radius: 36px; border: 1px solid var(--line2); font-size: 13.5px; font-weight: 500; color: var(--text); transition: border-color .3s, background .3s, opacity .3s; text-align: left; }
.sugg button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer input { flex: 1; height: 46px; border-radius: 46px; background: var(--surface2); border: 1px solid var(--line); padding: 0 18px; color: var(--text); font: inherit; font-size: 15px; outline: 0; min-width: 0; }
.composer input::placeholder { color: var(--muted); }
.composer input:focus { border-color: var(--accent); }
.composer button { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.composer button svg { width: 18px; height: 18px; }
.composer button:hover { transform: translateY(-1px); }
.disc { padding: 0 18px 12px; color: var(--muted); font-size: 11.5px; text-align: center; }

/* ---------- day bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { position: relative; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-height: 240px; display: flex; flex-direction: column; overflow: hidden; transition: transform .5s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line2); }
.tile .lbl { color: var(--muted); }
.tile h4 { font-size: 24px; margin-top: 12px; }
.tile p { color: var(--text2); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.tile.t-day { grid-column: span 3; }
.tile.t-rest { grid-column: span 3; }
.tile.t-prog { grid-column: span 2; }
.tile.t-streak { grid-column: span 2; }
.tile.t-consent { grid-column: span 2; }
.dayring { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 18px; }
.dayring .ring { width: 120px; height: 120px; }
.dayring .ring circle { stroke-width: 8; }
.dayring .ring .pr { stroke: url(#lagon); stroke-dasharray: 327; stroke-dashoffset: 327; }
.dayring .ring b { font-size: 26px; flex-direction: column; }
.dayring .ring b small { display: block; font-size: 11px; color: var(--text2); font-weight: 600; margin-top: 2px; }
.dayring .ms { flex: 1; display: grid; gap: 10px; }
.dayring .ms div { font-size: 13px; font-weight: 600; color: var(--text2); display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.dayring .ms div b { color: var(--text); font-variant-numeric: tabular-nums; }
.dayring .ms div i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--surface3); overflow: hidden; }
.dayring .ms div i::after { content: ""; display: block; height: 100%; width: var(--w, 0); background: var(--c); border-radius: 4px; transition: width 1.1s var(--ease) .3s; }
.rest { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 18px; }
.rest .ring { width: 124px; height: 124px; }
.rest .ring circle { stroke-width: 7; }
.rest .ring .pr { stroke: var(--accent); stroke-dasharray: 327; stroke-dashoffset: 0; transition: none; }
.rest .ring b { font-size: 27px; font-variant-numeric: tabular-nums; }
.rest .ring.done .pr { stroke: var(--ok); }
.rest .ctl { display: grid; gap: 8px; flex: 1; }
.rest .ctl .row { display: flex; gap: 8px; flex-wrap: wrap; }
.rest .btn { height: 42px; padding: 0 16px; font-size: 13.5px; }
.rest .set { display: flex; gap: 6px; flex-wrap: wrap; }
.rest .set button { height: 32px; padding: 0 12px; border-radius: 32px; border: 1px solid var(--line2); font-size: 12.5px; font-weight: 600; color: var(--text2); transition: border-color .3s, color .3s; }
.rest .set button.on, .rest .set button:hover { border-color: var(--accent); color: var(--text); }
.rest .msg2 { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.spark { margin-top: auto; padding-top: 14px; }
.spark svg { width: 100%; height: 92px; overflow: visible; }
.spark path.l { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.in .spark path.l { stroke-dashoffset: 0; }
.spark path.a { fill: url(#sparkfill); opacity: 0; transition: opacity 1s .9s; }
.in .spark path.a { opacity: 1; }
.spark .dots circle { fill: var(--text2); }
.spark .big { font-size: 30px; }
.spark .big small { font-size: 13px; font-family: var(--body); font-style: normal; text-transform: none; color: var(--ok); font-weight: 600; letter-spacing: 0; margin-left: 8px; }
.streak { margin-top: auto; padding-top: 16px; }
.streak .n { font-size: 48px; }
.streak .n small { font-size: 14px; font-family: var(--body); font-style: normal; text-transform: none; color: var(--text2); font-weight: 600; letter-spacing: 0; margin-left: 8px; }
.streak .wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.streak .wk i { aspect-ratio: 1; border-radius: 8px; background: var(--surface3); }
.streak .wk i.on { background: linear-gradient(135deg, var(--a1), var(--a2)); }
.streak .wk i.today { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.streak .wk span { font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; }
.widget { margin-top: auto; padding-top: 14px; display: flex; gap: 14px; align-items: flex-end; }
.wsm { width: 132px; height: 132px; border-radius: 28px; background: var(--surface2); border: 1px solid var(--line2); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.wsm .ring { width: 54px; height: 54px; } .wsm .ring circle { stroke-width: 5; } .wsm .ring .pr { stroke: var(--accent); stroke-dasharray: 150; stroke-dashoffset: 150; } .wsm .ring b { font-size: 12px; }
.wsm b.v { font-weight: 700; font-size: 17px; letter-spacing: -.02em; line-height: 1; }
.wsm b.v small { display: block; font-size: 10.5px; color: var(--text2); font-weight: 600; margin-top: 3px; }
.swt { position: relative; width: 50px; height: 30px; border-radius: 30px; background: var(--surface3); transition: background .3s; flex: none; }
.swt::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); }
.swt.on { background: var(--accent); }
.swt.on::after { transform: translateX(20px); }
.consent { margin-top: auto; padding-top: 14px; display: grid; gap: 10px; }
.consent .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.consent .row b { font-weight: 600; font-size: 14px; color: var(--text); display: block; }
.consent .row span { color: var(--text2); font-weight: 500; font-size: 13px; display: block; margin-top: 2px; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tr { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s; }
.tr:hover { transform: translateY(-3px); border-color: var(--line2); }
.tr .ic { width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); display: grid; place-items: center; }
.tr .ic svg { width: 20px; height: 20px; }
.tr h4 { margin-top: 20px; font-size: 22px; }
.tr p { margin-top: 10px; color: var(--text2); font-size: 14.5px; line-height: 1.55; }

/* ---------- pro ---------- */
.pro { --gx: 50%; --gy: 100%; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.plan { padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.plan.pro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.plan > * { position: relative; }
.plan h3 { font-size: 40px; margin-top: 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan h3 small { font-size: 14px; font-family: var(--body); font-style: normal; text-transform: none; color: var(--text2); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; margin-top: 22px; display: grid; }
.plan li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan li:last-child { border-bottom: 0; }
.plan li .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; color: var(--text2); }
.plan li .ic svg { width: 15px; height: 15px; }
.plan.pro li .ic { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.plan li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.plan li b small { font-weight: 500; color: var(--text2); font-size: 12.5px; margin-left: 4px; }
.plan .foot { margin-top: auto; padding-top: 22px; color: var(--text2); font-size: 13.5px; line-height: 1.55; }
.plan .badge { position: absolute; right: 22px; top: 22px; height: 30px; padding: 0 12px; border-radius: 30px; background: #fff; color: #000; font-size: 12px; font-weight: 700; display: flex; align-items: center; }
.plan .store { margin-top: 20px; align-self: flex-start; }

/* ---------- final block ---------- */
.fin { position: relative; margin: 6vh var(--g) 0; border-radius: 34px; overflow: hidden; background: linear-gradient(135deg, #6BE0EC 0%, #4A9BF2 55%, #7C6CFF 100%); color: var(--ink); padding: clamp(56px, 9vw, 120px) clamp(28px, 6vw, 96px); }
.fin::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 90% 0%, rgba(255,255,255,.35), transparent 70%); pointer-events: none; }
.fin .inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.fin .lbl { color: var(--ink); }
.lets { display: block; margin-top: 22px; font-size: clamp(44px, 8.6vw, 140px); color: var(--ink); line-height: 1.06; }
.lets .wd { display: inline-block; white-space: nowrap; }
.lets .ch { display: inline-block; overflow: hidden; vertical-align: top; height: 1.06em; }
.lets .ch > span { display: block; line-height: 1.06; transition: transform .7s var(--ease); }
.lets .ch > span::after { content: attr(data-c); display: block; color: #fff; }
.lets:hover .ch > span { transform: translateY(-50%); }
.lets .ch.sp { width: .22em; }
.fin .acts { margin-top: 36px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fin .store { background: #000; color: #fff; }
.fin .store:hover { box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); }
.fin .ghost { border-color: rgba(5,19,27,.35); color: var(--ink); }
.fin .ghost:hover { background: rgba(5,19,27,.08); border-color: rgba(5,19,27,.6); }
.fin .meta { margin-top: 22px; color: rgba(5,19,27,.72); font-size: 13.5px; font-weight: 500; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px; border-radius: 22px; background: #000; color: #fff; }
.qr #qr { width: 132px; height: 132px; }
.qr #qr img, .qr #qr canvas { width: 132px !important; height: 132px !important; }
.qr span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }

/* ---------- footer ---------- */
.foot { padding: 64px 0 32px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.fgrid h4 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 12.5px; letter-spacing: .05em; color: var(--muted); margin-bottom: 16px; }
.fgrid p, .fgrid a { display: block; font-size: 15px; line-height: 1.55; color: var(--text2); }
.fgrid a { width: max-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.fgrid a:hover { background-size: 100% 1px; color: var(--text); }
.fgrid .brand { display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 12px; }
.fgrid .brand img { width: 30px; height: 30px; border-radius: 9px; }
.fgrid .brand .d { font-size: 18px; }
.fbase { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .mbtn { display: grid; }
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 96px; }
  .hero .stage { min-height: 0; margin-top: 36px; }
  .chip.angle { left: 0; } .chip.score { right: 0; } .chip.rep { right: 0; }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.t-day, .tile.t-rest, .tile.t-prog, .tile.t-streak, .tile.t-consent, .tile.t-widget { grid-column: span 1; }
  .trust { grid-template-columns: 1fr 1fr; }
  .chat { grid-template-columns: 1fr; }
  .tones { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cols, .shead { grid-template-columns: 1fr; }
  .shead p { justify-self: start; }
  .facts { grid-template-columns: 1fr; }
  .form { height: 300vh; }
  .form .stick { grid-template-columns: 1fr; align-content: start; gap: 0; padding-top: 86px; }
  .form .copy { min-height: 0; order: 2; margin-top: 14px; }
  .form .step { position: relative; top: auto; transform: translateY(14px); display: none; max-width: none; }
  .form .step.on { display: block; transform: none; }
  .form .step h3 { font-size: 28px; }
  .form .step p { font-size: 15px; margin-top: 10px; }
  .form .step ul { display: none; }
  .form .device { --dw: clamp(190px, 25svh, 215px); }
  .form .result .rub, .form .rhead .t span { display: none; }
  .form .result.on ~ .meter, .form .result.on ~ .rec { opacity: 0; }
  .form .result { padding: 14px 12px 26px; }
  .form .rhead .t b { font-size: 18px; }
  .form .tips { margin-top: 10px; gap: 5px; }
  .form .tips div { display: block; font-size: 11.5px; line-height: 1.3; }
  .form .tips div b { display: inline; min-width: 0; margin-right: 4px; }
  .form .dots { bottom: 22px; }
  .demo, .demo.flip { grid-template-columns: 1fr; }
  .demo.flip .stage { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .fin .inner { grid-template-columns: 1fr; }
  .qr { display: none; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --r: 18px; }
  .chrome { padding-top: 12px; }
  .wm .d { display: none; }
  .store .lbl2 { display: none; }
  .store { padding: 0 14px; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero .acts .ghost { display: none; }
  .hero .device { --dw: min(66vw, 280px); }
  .chip { height: 38px; font-size: 13px; }
  .cue { display: none; }
  .marq { padding: 18px 0; }
  .tgrid { grid-template-columns: 1fr; }
  .tool { min-height: 0; }
  .tool b { padding-top: 16px; }
  .section { padding: 10vh 0; }
  .shead { margin-bottom: 36px; }
  .card { padding: 20px; }
  .macros { gap: 8px; } .mac { padding: 12px; } .mac b { font-size: 18px; }
  .bento, .trust, .tones { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .thread { min-height: 480px; }
  .fgrid { grid-template-columns: 1fr; }
  .ctips div b, .form .tips div b { min-width: 60px; }
  .demo .device { --dw: min(70vw, 280px); }
  .fin { margin: 4vh 12px 0; border-radius: 26px; }
}
@media (hover: none) { .form .replay { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) {
  .ln > span, .sw > span, .fade, .stag > * { transition: none !important; transform: none !important; opacity: 1 !important; }
  .marq .track { animation: none; }
  .chip .dot, .shutter::after, .cue i::after { animation: none; }
  body::after { animation: none; }
  .dev-tilt { transition: none; }
}
