/* ============================================================
   Kcal it! — landing. Dark only.
   Art direction: "optical instrument". The logo's four-colour
   viewfinder corners frame the story; one type family (Manrope, light
   weight for accents), mono micro-labels, hairline structure,
   section-specific studio light instead of flat black.
   ============================================================ */

/* lenis@1.3.27/dist/lenis.css, inlined (was a separate render-blocking request) — update with the Lenis version */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

:root {
  color-scheme: dark;
  --bg: #060709;
  --bg-2: #0b0c0f;
  --bg-3: #111317;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f2f1ee;
  --text-2: #c7c9cc;
  --muted: #878c93;
  --dim: #565b62;

  /* brand (logo) */
  --b-blue: #1d8cf5;
  --b-orange: #f46a12;
  --b-green: #52c41a;
  --b-purple: #a51fd0;

  /* app macros */
  --kcal: #3d7bf0;
  --prot: #e040fb;
  --fat: #ffd60a;
  --carb: #35d0ff;

  --pad: clamp(20px, 4.4vw, 72px);
  --max: 1320px;
  /* one left/right content edge for every section (full-bleed ones included) */
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  --sec: clamp(88px, 8vw, 120px); /* vertical rhythm between sections */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --f-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; } /* off-screen primed elements (scan phone) must not add a horizontal scroll */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main, .footer { position: relative; z-index: 1; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; } /* keep intrinsic ratio when only the width is set in CSS */
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--b-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--carb); outline-offset: 3px; border-radius: 8px; }

/* ---------- type system ---------- */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.kicker__n { color: var(--text); display: inline-flex; align-items: center; gap: 14px; }
/* labels that contain brand names (iOS, iPhone) are set in sentence case: "IPHONE" is not allowed, "for iPhone" in caps looks broken */
.kicker__n--case, .nc, .hero .kicker__t { text-transform: none; letter-spacing: .06em; }
.kicker__n::after { content: ""; width: 34px; height: 1px; background: var(--line-2); }

.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 5.3vw, 88px);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-top: 26px;
  text-wrap: balance;
}
.h2--md { font-size: clamp(34px, 3.9vw, 62px); }
/* SplitText line masks (the heading's direct div children, overflow: clip): extra room so descenders (g, q, y, у)
   and accents are not cut; the negative margin keeps the line spacing unchanged */
.h2 > div, .privacy__title > div, .finale__title > div { padding-block: .12em .22em; margin-block: -.12em -.22em; }
.h2--sm { font-size: clamp(32px, 3.6vw, 56px); }
.h2 em, .hero__title em, .privacy__title em, .finale__title em, .beat em {
  /* accent = the same family in a light weight (the italic serif read as foreign in Cyrillic) */
  font-style: normal; font-weight: 300; letter-spacing: -.035em;
}
.h2 em { color: #e8e3d9; }
.lead { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 38ch; margin-top: 24px; text-wrap: pretty; }
p, li, dd, dt { text-wrap: pretty; } /* no one-word last lines */
.m-p { --c: var(--prot); } .m-f { --c: var(--fat); } .m-c { --c: var(--carb); }
.m-p-text { color: var(--prot) !important; }

.rec {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 10px; vertical-align: middle;
  background: var(--b-green); box-shadow: 0 0 0 3px rgba(82, 196, 26, .16), 0 0 10px var(--b-green);
  animation: blink 1.6s var(--ease-io) infinite;
}
@keyframes blink { 50% { opacity: .35; } }

/* ---------- atmosphere: grain, cursor ---------- */
/* Static film grain: an animated full-viewport layer forced a repaint every frame while scrolling. */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scan cursor: a native CSS cursor (drawn by the OS, so it never lags behind the pointer). */
.cursor { display: none; }
[data-cursor="scan"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M4 16V10a6 6 0 0 1 6-6h6' stroke='%231d8cf5'/%3E%3Cpath d='M32 4h6a6 6 0 0 1 6 6v6' stroke='%23f46a12'/%3E%3Cpath d='M4 32v6a6 6 0 0 0 6 6h6' stroke='%2352c41a'/%3E%3Cpath d='M44 32v6a6 6 0 0 1-6 6h-6' stroke='%23a51fd0'/%3E%3Ccircle cx='24' cy='24' r='2.5' fill='white' stroke='black' stroke-width='1'/%3E%3C/svg%3E") 24 24, crosshair; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader__frame { position: relative; width: min(46vw, 200px); aspect-ratio: 1; display: grid; place-items: center; }
.loader__logo { width: 70%; opacity: 0; transform: scale(.92); animation: logoIn .9s .15s var(--ease) forwards; }
.loader .vf { animation: vfLock 1s var(--ease) forwards; }
.loader__bar { position: absolute; bottom: 10vh; width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--text); transform-origin: left; animation: bar 1.4s var(--ease-io) forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(.92); } }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
/* safety net: never trap the page behind the loader if scripts fail */
body.is-loading .loader { animation: loaderOut .6s 3.2s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
@keyframes logoIn { to { opacity: 1; transform: none; } }
@keyframes vfLock { from { inset: -40%; opacity: 0; } to { opacity: 1; } }

/* viewfinder corners (shared) */
.vf { position: absolute; width: 16%; aspect-ratio: 1; border: clamp(3px, .45vw, 6px) solid transparent; pointer-events: none; z-index: 3; }
.vf--tl { left: 0; top: 0; border-left-color: var(--b-blue); border-top-color: var(--b-blue); border-top-left-radius: 22%; }
.vf--tr { right: 0; top: 0; border-right-color: var(--b-orange); border-top-color: var(--b-orange); border-top-right-radius: 22%; }
.vf--bl { left: 0; bottom: 0; border-left-color: var(--b-green); border-bottom-color: var(--b-green); border-bottom-left-radius: 22%; }
.vf--br { right: 0; bottom: 0; border-right-color: var(--b-purple); border-bottom-color: var(--b-purple); border-bottom-right-radius: 22%; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  /* no `transform` here: the magnetic pull is animated by GSAP; a CSS transition eased it twice and lagged */
  transition: background .3s, color .3s, box-shadow .4s, border-color .3s;
}
.btn svg { flex: none; width: 19px; height: 19px; fill: currentColor; margin-top: -2px; } /* never squeezed to a dot */
.btn--primary {
  color: #060709; background: linear-gradient(180deg, #ffffff, #e6e7ea);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.4), 0 18px 44px -14px rgba(160, 190, 255, .35);
}
/* brand viewfinder brackets lock onto the button on hover */
.btn--primary::before {
  content: ""; position: absolute; inset: -8px -10px; pointer-events: none; opacity: 0; transform: scale(1.12);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
  background:
    linear-gradient(var(--b-blue), var(--b-blue)) left top / 14px 2px no-repeat,
    linear-gradient(var(--b-blue), var(--b-blue)) left top / 2px 14px no-repeat,
    linear-gradient(var(--b-orange), var(--b-orange)) right top / 14px 2px no-repeat,
    linear-gradient(var(--b-orange), var(--b-orange)) right top / 2px 14px no-repeat,
    linear-gradient(var(--b-green), var(--b-green)) left bottom / 14px 2px no-repeat,
    linear-gradient(var(--b-green), var(--b-green)) left bottom / 2px 14px no-repeat,
    linear-gradient(var(--b-purple), var(--b-purple)) right bottom / 14px 2px no-repeat,
    linear-gradient(var(--b-purple), var(--b-purple)) right bottom / 2px 14px no-repeat;
}
.btn--primary:hover::before, .btn--primary:focus-visible::before { opacity: 1; transform: none; }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; background: #fff; color: #060709; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--xl { --h: 62px; padding: 0 34px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--edge);
  transition: transform .5s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(6, 7, 9, .7); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav.is-solid::before { opacity: 1; }
/* touch: the nav stays on screen, so a live blur would re-render under it on every scroll frame */
@media (pointer: coarse) {
  .nav::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 7, 9, .9); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--f-display); letter-spacing: -.02em; }
.nav__brand img { flex: none; width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.nav__links a { padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .25s, background .25s; }
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
@media (max-width: 900px) { .nav__links { display: none; } .nav { height: 64px; } }

/* ---------- language switcher ---------- */
.nav__end { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer;
  font: 500 12px/1 var(--f-mono); letter-spacing: .1em; transition: background .25s, border-color .25s;
}
.lang__btn:hover, .lang.is-open .lang__btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.lang__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; margin: 0; padding: 6px; list-style: none;
  border-radius: 16px; background: rgba(14, 16, 20, .96); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9);
}
.lang__menu[hidden] { display: none; }
.lang__menu li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: var(--muted); cursor: pointer; outline: none;
}
.lang__menu li:hover, .lang__menu li:focus-visible { background: rgba(255,255,255,.07); color: var(--text); }
.lang__menu li[aria-selected="true"] { color: var(--text); }
.lang__menu li[aria-selected="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--b-green); }
.lang__code { width: 22px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; color: var(--dim); }
@media (max-width: 420px) { .lang__btn span { display: none; } .lang__btn { padding: 0 11px; } }

/* ---------- device frame (CSS iPhone) ---------- */
.device {
  position: relative;
  /* bezel ≈ a real iPhone 17 Pro (~2 % of the width); 3.2 % + 2 px read as a thick case on the small phones */
  padding: 1.9%;
  border-radius: 15.2% / 7%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#020203, #020203) padding-box,
    linear-gradient(140deg, #a7aab0 0%, #3d3f44 18%, #1b1c1f 42%, #55585e 68%, #26272b 86%, #8d9096 100%) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 1px 1px rgba(0,0,0,.6),
    0 30px 60px -24px rgba(0,0,0,.85),
    0 70px 120px -50px rgba(0,0,0,.9);
}
.device::before, .device::after { /* side buttons */
  content: ""; position: absolute; width: 3px; border-radius: 2px;
}
.device::before { /* action + volume up/down */
  left: -4px; top: 17%; height: 22%;
  background: linear-gradient(180deg, #4b4e54 0 14%, transparent 14% 26%, #4b4e54 26% 58%, transparent 58% 68%, #4b4e54 68% 100%);
}
.device::after { right: -4px; top: 25%; height: 11%; background: #4b4e54; }
.device__screen {
  position: relative; overflow: hidden; background: #000;
  aspect-ratio: 1320 / 2868;
  border-radius: 13.6% / 6.3%;
}
.device__screen > img, .device__screen > video { width: 100%; height: 100%; object-fit: cover; }
.device__screen::before { /* dynamic island */
  content: ""; position: absolute; z-index: 2; left: 50%; top: 1.2%; width: 30%; height: 3.1%;
  transform: translateX(-50%); border-radius: 999px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.device__screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.02) 26%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 78%, rgba(255,255,255,.05) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 220vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__light {
  position: absolute; inset: 0; pointer-events: none;
  will-change: opacity; /* scroll-scrubbed opacity: composite it instead of repainting the whole hero */
  background:
    radial-gradient(34vmax 30vmax at 76% 46%, rgba(61, 123, 240, .30), transparent 70%),
    radial-gradient(22vmax 18vmax at 88% 18%, rgba(165, 31, 208, .20), transparent 70%),
    radial-gradient(30vmax 16vmax at 18% 108%, rgba(244, 106, 18, .14), transparent 70%),
    linear-gradient(180deg, transparent 70%, rgba(61, 123, 240, .05));
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* soft floor: the pinned hero must not end on a hard edge that cuts the rings and stars */
.hero__sticky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }
.hero__fallback { display: none; position: absolute; right: 12vw; top: 50%; width: min(290px, 22vw); transform: translateY(-46%) rotate(-5deg); }
.no-webgl .hero__fallback { display: block; }
/* without the 3D phone there is no scroll-driven turn: collapse the hero to one screen */
.no-webgl .hero { height: auto; }
.no-webgl .hero__sticky { position: relative; }
.no-webgl .hero__beat { display: none; }

.hud { position: absolute; inset: 14px; z-index: 3; pointer-events: none; }
.hud__c { position: absolute; width: 46px; height: 46px; border: 2px solid transparent; }
.hud__c--tl { left: 0; top: 0; border-left-color: var(--b-blue); border-top-color: var(--b-blue); border-top-left-radius: 14px; }
.hud__c--tr { right: 0; top: 0; border-right-color: var(--b-orange); border-top-color: var(--b-orange); border-top-right-radius: 14px; }
.hud__c--bl { left: 0; bottom: 0; border-left-color: var(--b-green); border-bottom-color: var(--b-green); border-bottom-left-radius: 14px; }
.hud__c--br { right: 0; bottom: 0; border-right-color: var(--b-purple); border-bottom-color: var(--b-purple); border-bottom-right-radius: 14px; }
.hud__lbl {
  position: absolute; bottom: 14px; display: flex; align-items: center;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.hud__lbl--bl { left: 62px; }
.hud__lbl--br { right: 62px; gap: 12px; }
.hud__drip { position: relative; width: 44px; height: 1px; background: var(--line-2); overflow: hidden; }
/* moves with transform (was `left`): no layout/repaint of the hero layer on every frame */
.hud__drip::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: #fff; animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateX(0); } to { transform: translateX(350%); } }
/* set by main.js while the loop is off-screen or faded out */
.rec.is-paused, .rec.is-faded, .hud__drip.is-paused::after, .hud__drip.is-faded::after { animation-play-state: paused; }

.hero__copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  /* fixed right padding: with var(--edge) on both sides the text got 900px − edge, i.e. one word per line on wide
     (full-screen) windows */
  padding: 96px 32px 76px var(--edge);
  max-width: calc(var(--edge) + 800px);
}
/* desktop: soft shade behind the copy column so orbit rings never cross the headline at full brightness */
@media (min-width: 901px) {
  .hero__copy::before { content: ""; position: absolute; inset: 0 -12% 0 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(6,7,9,.78), rgba(6,7,9,.5) 55%, transparent); }
}
.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(46px, 6.3vw, 112px); line-height: .96; letter-spacing: -.048em;
  margin-top: 28px;
}
.hero__title .line { display: block; }
.hero__title em {
  font-weight: 300;
  background: linear-gradient(96deg, #6cb6ff 0%, #a98bff 42%, #ff8e5a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; margin-top: 40px; }
.hero__lead { color: var(--text-2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; max-width: 40ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.callout {
  position: absolute; display: flex; flex-direction: column;
  padding: 13px 16px 14px; min-width: 150px; border-radius: 14px;
  /* no backdrop-filter: blurring the live WebGL canvas every frame doubled the hero's GPU compositing cost */
  background: rgba(14, 16, 20, .8); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.9);
  will-change: transform;
}
.callout::before, .callout::after { content: ""; position: absolute; top: 50%; }
.callout::before { width: 56px; height: 1px; }
.callout::after { width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.1), 0 0 12px rgba(255,255,255,.6); }
.callout--a::before, .callout--c::before { right: 100%; background: linear-gradient(270deg, rgba(255,255,255,.45), rgba(255,255,255,.05)); }
.callout--a::after, .callout--c::after { right: calc(100% + 56px); }
.callout--b::before { left: 100%; background: linear-gradient(90deg, rgba(255,255,255,.45), rgba(255,255,255,.05)); }
.callout--b::after { left: calc(100% + 56px); }
.callout__k { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.callout__v { font: 600 16px/1.2 var(--f-display); letter-spacing: -.01em; }
.callout__ok { margin-top: 7px; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--b-green); }
.callout__ok::before { content: "● "; }
.callout__big { display: flex; align-items: baseline; gap: 6px; font: 600 44px/1 var(--f-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.callout__big small { font: 500 13px/1 var(--f-body); color: var(--muted); letter-spacing: 0; }
.callout__macros { display: flex; gap: 6px; }
.callout__macros b { font: 500 15px/1 var(--f-mono); color: var(--c); padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 13%, transparent); }
/* boxes sit just outside the resting phone; their dots touch its edge */
.callout--a { right: 1.4vw; top: 15%; }
.callout--b { right: 38vw; top: 37%; }
.callout--b::before { width: 74px; } .callout--b::after { left: calc(100% + 74px); }
.callout--c { right: 1.4vw; bottom: 17%; }

.hero__beat {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--edge);
}
.beat {
  position: relative;
  font: 700 clamp(26px, 2.9vw, 50px)/1.04 var(--f-display); letter-spacing: -.04em;
  max-width: 13ch; opacity: 0;
}
/* dark halo behind the beat words so the orbit rings never strike through them */
.beat::before { content: ""; position: absolute; inset: -40% -22%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(6,7,9,.86), rgba(6,7,9,.5) 60%, transparent); }
.beat--r { text-align: right; }
.beat em { color: #e8e3d9; white-space: nowrap; } /* "already / counted." split the accent */

@media (max-width: 1280px) {
  .callout--b { display: none; }
}
/* long Russian first line ("Сфотографируй") must not run into the callouts */
:lang(ru) .hero__title { font-size: clamp(40px, 5.3vw, 96px); }
@media (max-width: 900px) {
  .hero { height: 190vh; }
  .hud { inset: 8px; }
  .hud__c { width: 28px; height: 28px; }
  .hud__lbl { display: none; }
  .hero .kicker__n { display: none; }
  .hero__copy { justify-content: flex-start; padding: 88px calc(var(--pad) + 4px) 40px; }
  .hero__title { font-size: clamp(38px, 12vw, 84px); margin-top: 20px; }
  :lang(ru) .hero__title { font-size: clamp(34px, 10.4vw, 76px); }
  .hud__c--tl, .hud__c--tr { display: none; } /* sat under the nav bar */
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 22px; }
  .hero__lead { font-size: 15.5px; }
  .hero__actions .btn--ghost { display: none; }
  .callouts { display: none; }
  .hero__fallback { right: 50%; top: auto; bottom: -14%; transform: translateX(50%) rotate(-5deg); width: 54vw; }
  .hero__beat { flex-direction: column; justify-content: space-between; padding: 92px var(--pad) 48px; text-align: center; }
  .beat, .beat--r { max-width: none; text-align: center; font-size: clamp(26px, 7.4vw, 44px); }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 18vh, 220px) var(--pad); }
.manifesto__text {
  font: 600 clamp(27px, 3.8vw, 60px)/1.14 var(--f-display); letter-spacing: -.035em;
  color: var(--text); max-width: 22em;
}
/* inline (not SplitText's inline-block): line breaks stay exactly as in the text, &nbsp; included */
.anim .manifesto__text .mw { display: inline !important; opacity: .12; transition: opacity .45s var(--ease); }
.anim .manifesto__text .mw.is-lit { opacity: 1; }
.pill {
  display: inline-block; width: 1.9em; height: .9em; border-radius: 999px; overflow: hidden;
  vertical-align: -.08em; margin: 0 .02em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 10px 30px -10px rgba(0,0,0,.8);
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
.pill--label img { object-position: 50% 0; transform: scale(1.6); transform-origin: 50% 0; filter: contrast(1.2); } /* show the label's bold heading, not a strip of fine print */
.nw { white-space: nowrap; } /* a photo pill and the comma after it stay on one line */
.w-k { color: #6aa2ff; } .w-p { color: var(--prot); } .w-f { color: var(--fat); } .w-c { color: var(--carb); }

/* ============================================================
   SCAN STORY
   ============================================================ */
.scan { position: relative; }
.scan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40vmax 34vmax at 55% 50%, rgba(53, 208, 255, .07), transparent 70%);
}
.scan__pin {
  position: relative; height: 100vh; height: 100svh;
  padding: 92px var(--edge) 36px;
  display: grid; align-items: center; gap: clamp(28px, 4vw, 72px);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, .62fr);
}
/* the copy column gets narrower on wide screens (fixed --edge), so the heading is also capped by the column width:
   "breakdown." was clipped by the line mask at 1920 px */
.scan__copy { container-type: inline-size; }
.scan__copy .h2 { font-size: clamp(36px, min(4vw, 19cqi), 66px); }
.steps { margin-top: 40px; border-top: 1px solid var(--line); max-width: 440px; }
.step {
  position: relative; display: grid; grid-template-columns: 46px 1fr;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  opacity: .45; transition: opacity .5s var(--ease);
}
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--b-blue), var(--b-purple) 60%, var(--b-orange));
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.step.is-active { opacity: 1; }
.step.is-active::before { transform: none; }
.step__n { font: 500 11.5px/1.9 var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.step h3 { font: 600 clamp(19px, 1.55vw, 24px)/1.25 var(--f-display); letter-spacing: -.02em; }
.step__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease), margin-top .6s var(--ease); }
.step__more > p { min-height: 0; overflow: hidden; color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.step.is-active .step__more { grid-template-rows: 1fr; margin-top: 8px; }

.viewfinder {
  position: relative; margin: 0; justify-self: center;
  height: min(calc(100svh - 140px), 820px); aspect-ratio: 2 / 3; max-width: 100%;
  border-radius: 26px; overflow: hidden; background: #0b0c0f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 120px -50px rgba(0,0,0,.95);
}
.viewfinder__img, .viewfinder__dots { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder__dots { display: none; }
.anim .viewfinder__dots { display: block; clip-path: inset(0 0 100% 0); }
.viewfinder .vf { width: 12%; margin: 20px; border-width: 4px; }
.viewfinder__beam {
  /* hidden (not just transparent) while idle so its blend mode does not isolate the viewfinder;
     moved with transform by the scan timeline */
  position: absolute; left: 0; right: 0; top: -22%; height: 22%; z-index: 2; pointer-events: none; opacity: 0; visibility: hidden;
  background: linear-gradient(180deg, transparent, rgba(53, 208, 255, 0) 40%, rgba(53, 208, 255, .28) 92%, #bff3ff 100%);
  mix-blend-mode: screen;
}
.viewfinder__beam::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #dff9ff; box-shadow: 0 0 24px 4px var(--carb); }
.viewfinder__meta {
  position: absolute; z-index: 4; top: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #dfe3e6;
  /* no backdrop-filter on small pills over moving/scrubbed photos: re-blurred every frame */
  background: rgba(6, 7, 9, .62);
}
.tags li {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  transform: translate(-50%, -50%);
  padding: 7px 11px 7px 24px; border-radius: 999px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .02em; white-space: nowrap;
  background: rgba(6, 7, 9, .74); border: 1px solid rgba(255,255,255,.18);
}
.tags li::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--b-green); box-shadow: 0 0 10px var(--b-green);
}
.readout {
  position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 16px;
  padding: 18px 20px 20px; border-radius: 20px;
  background: rgba(10, 12, 15, .74); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.readout__name { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.readout__kcal { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font: 600 clamp(46px, 4.4vw, 68px)/.9 var(--f-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.readout__kcal small { font: 500 14px/1 var(--f-body); letter-spacing: 0; color: var(--muted); }
/* one shared grid for the three rows: the label column fits the longest label in any language ("Kohlenhydrate") */
.readout__macros { display: grid; grid-template-columns: max-content 1fr 48px; align-items: center; gap: 9px 12px; margin-top: 18px; font-size: 13.5px; }
.bar { display: contents; }
.bar b { color: var(--c); font-weight: 500; }
.bar > span { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > span i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--c); box-shadow: 0 0 12px var(--c); transform-origin: left; }
.bar em { font: 500 13px/1 var(--f-mono); font-style: normal; text-align: right; }

.scan__phone { width: 100%; max-width: min(270px, calc((100svh - 300px) * .46)); justify-self: end; }

@media (max-width: 1100px) {
  .scan__pin { grid-template-columns: minmax(0, 1fr) auto; }
  .scan__phone { display: none; }
  /* tablets: the tall viewport made the photo so wide that the steps were squeezed into a ~90px column */
  .viewfinder { height: auto; width: min(48vw, calc((100svh - 160px) * 2 / 3)); }
}
@media (max-width: 760px) {
  .scan__pin { height: auto; padding-top: 80px; padding-bottom: 60px; grid-template-columns: 1fr; gap: 40px; }
  .viewfinder { height: auto; width: 100%; }
  .step { opacity: 1; }
  .step::before { transform: none; opacity: .5; }
  .step__more { grid-template-rows: 1fr; margin-top: 8px; }
}

/* ============================================================
   TYPES (horizontal)
   ============================================================ */
.types { position: relative; }
.types__pin { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.types__track { display: flex; gap: 24px; padding-right: var(--edge); will-change: transform; } /* last card stops at the content edge */
.types__intro { flex: none; width: calc(var(--edge) + min(520px, 70vw)); padding: 0 calc(var(--pad) + 10px) 0 var(--edge); }
.tcard {
  position: relative; flex: none; isolation: isolate;
  width: clamp(320px, 44vw, 640px); height: min(70vh, 580px);
  border-radius: 24px; overflow: hidden;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line);
}
.tcard__photo { position: absolute; inset: 0; z-index: -1; }
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.tcard:hover .tcard__photo img { transform: scale(1.1); }
/* the label photo: keep its "Nutrition Facts" heading in frame and its fine print darker behind the card text */
.tcard__photo img[src*="label"] { object-position: 50% 0; }
.tcard__photo:has(img[src*="label"])::after { background: linear-gradient(200deg, rgba(6,7,9,.05) 15%, rgba(6,7,9,.97) 66%); }
.tcard__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(6,7,9,.1) 25%, rgba(6,7,9,.94) 78%); }
.tcard__idx { position: absolute; z-index: 2; left: 20px; top: 18px; padding: 6px 9px; border-radius: 999px; background: rgba(6,7,9,.55); font: 500 11px/1 var(--f-mono); letter-spacing: .16em; color: rgba(255,255,255,.85); }
.tcard__phone { position: absolute; right: 6%; top: 8%; width: 33%; transform: perspective(1200px) rotateY(-14deg) rotateZ(3deg); transition: transform .8s var(--ease); }
.tcard:hover .tcard__phone { transform: perspective(1200px) rotateY(-4deg) rotateZ(0) translateY(-10px); }
.tcard__meta { position: absolute; left: 26px; bottom: 26px; right: 44%; }
.tcard__k {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.2); background: rgba(6,7,9,.5);
}
.tcard__meta h3 { font: 600 clamp(24px, 2.3vw, 36px)/1.04 var(--f-display); letter-spacing: -.035em; margin-top: 14px; }
.mono-line { margin-top: 10px; font: 400 12.5px/1.6 var(--f-mono); color: #b9bfc4; }
.mono-line b { color: #fff; font-weight: 500; }
.mono-line .m-p, .mono-line .m-f, .mono-line .m-c { color: var(--c); margin-left: 6px; }
.tcard--modes { background: radial-gradient(80% 80% at 70% 30%, rgba(61,123,240,.3), transparent 70%), var(--bg-2); }
.tcard--modes .tcard__phone { right: 31%; top: 7%; width: 29%; transform: perspective(1200px) rotateY(12deg) rotateZ(-4deg); }
.tcard--modes .tcard__phone--2 { right: 5%; top: 13%; transform: perspective(1200px) rotateY(-12deg) rotateZ(4deg); }
.tcard--modes .tcard__meta { right: 26px; }
@media (max-width: 1100px) { .tcard__meta { right: 26px; } } /* narrow cards: the macro line used the full width under the phone */

@media (max-width: 760px) {
  .types__pin { height: auto; display: block; padding: 80px 0 40px; }
  .types__intro { padding: 0 var(--pad) 36px; width: auto; }
  .types__track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 10px; scroll-padding: 0 var(--pad); gap: 12px; scrollbar-width: none; }
  .types__track::-webkit-scrollbar { display: none; }
  .tcard { width: 84vw; height: 500px; scroll-snap-align: start; }
  .tcard__phone { width: 40%; }
}

/* ============================================================
   ONE TAP
   ============================================================ */
.onetap {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 7vw, 120px);
  max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--pad) calc(var(--sec) + 30px); /* + room for the tag under the phone */
  overflow-x: clip; /* the stage glow must not widen the page on phones */
}
.onetap__stage { position: relative; justify-self: center; width: min(350px, 100%); }
.onetap__stage::before {
  content: ""; position: absolute; inset: 0 -40% -10%; z-index: -1; filter: blur(60px); opacity: .7;
  background: radial-gradient(closest-side, rgba(53,208,255,.35), rgba(165,31,208,.18), transparent);
}
.onetap__tag {
  position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); display: flex; align-items: center; white-space: nowrap;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.strike { position: relative; color: var(--dim); white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: .08em; background: var(--b-orange); transform: rotate(-4deg) scaleX(var(--s, 1)); transform-origin: left; }
.ticks { margin-top: 36px; border-top: 1px solid var(--line); max-width: 520px; }
.ticks li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.ticks__n { font: 500 13px/1 var(--f-mono); color: var(--b-green); }
@media (max-width: 860px) {
  .onetap { grid-template-columns: 1fr; padding-block: var(--sec) calc(var(--sec) + 40px); }
  .onetap__stage { width: min(270px, 70vw); order: 2; }
}

/* ============================================================
   TODAY
   ============================================================ */
.today {
  position: relative; overflow-x: clip; /* the fanned side phones must not widen the page on phones */
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px;
  max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--pad);
}
.today__stage { position: relative; perspective: 1800px; }
.today__stage::before {
  content: ""; position: absolute; inset: 10% 5%; z-index: -1; filter: blur(70px);
  background: radial-gradient(closest-side, rgba(61,123,240,.32), transparent);
}
.figures { display: flex; margin-top: 44px; border-top: 1px solid var(--line); }
.figure { display: flex; flex-direction: column-reverse; gap: 10px; padding: 22px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.figure:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.figure dd { font: 600 clamp(32px, 3.4vw, 54px)/1 var(--f-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.figure:first-child dd { color: #4ade6b; }
.fan { position: relative; height: min(760px, 86vh); }
.fan .device { position: absolute; top: 50%; left: 50%; width: min(300px, 25vw); }
.fan__c { z-index: 2; transform: translate(-50%, -50%); }
.fan__l { transform: translate(-128%, -46%) rotateY(28deg) rotateZ(-6deg) scale(.86); filter: brightness(.62); }
.fan__r { transform: translate(28%, -46%) rotateY(-28deg) rotateZ(6deg) scale(.86); filter: brightness(.62); }
@media (max-width: 900px) {
  .today { grid-template-columns: 1fr; padding-block: var(--sec); }
  .fan { height: 104vw; max-height: 560px; }
  .fan .device { width: min(46vw, 250px); } /* tablets: taller phones overflowed up into the figures */
  .figure { padding-right: 18px; margin-right: 18px; }
}

/* ============================================================
   STATS — ledger + live phone
   ============================================================ */
.stats { position: relative; padding: var(--sec) 0; }
.stats::before {
  content: ""; position: absolute; right: 0; top: 30%; width: 60vw; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(244,106,18,.10), transparent);
}
.stats__head {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; gap: 60px; /* same columns as the body: the lead sits over the phone */
}
.stats__head .lead { margin: 0 0 8px; }
.stats__body {
  position: relative;
  max-width: var(--max); margin: 70px auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 60px;
}
.ledger { border-top: 1px solid var(--line); }
.ledger__row {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px;
  width: 100%; padding: 26px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; text-align: left; cursor: pointer;
  opacity: .55; transition: opacity .4s var(--ease);
}
.ledger__row:hover { opacity: .75; }
.ledger__row.is-active { opacity: 1; }
.ledger__row:focus-visible { outline-offset: -2px; }
.ledger__k { grid-column: 1; font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ledger__v { grid-column: 2; grid-row: 1 / span 2; align-self: start; font: 500 14px/1 var(--f-body); color: var(--muted); white-space: nowrap; }
.ledger__v b { font: 600 clamp(32px, 3.2vw, 50px)/1 var(--f-display); letter-spacing: -.045em; color: var(--text); margin-right: 4px; font-variant-numeric: tabular-nums; }
/* every open description is as tall as the longest one (main.js sets --ledger-d) and the open/close is animated in px:
   pixel heights interpolate linearly, so the closing and the opening row always add up and the ledger keeps one height
   when the rows auto-advance (0fr↔1fr is not linear; on phones the stats phone under the ledger jumped) */
.ledger__d { grid-column: 1; display: grid; grid-template-rows: 0px; transition: grid-template-rows .6s var(--ease), margin-top .6s var(--ease); }
.ledger__d > span { min-height: 0; overflow: hidden; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 36ch; }
.ledger__row.is-active .ledger__d { grid-template-rows: var(--ledger-d, 1fr); margin-top: 12px; }
.ledger.is-measuring .ledger__d { transition: none; }
/* timer bar grows with transform (was `width`): the 5 s auto-advance no longer relayouts every frame */
.ledger__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--b-blue), var(--b-purple) 60%, var(--b-orange)); transform: scaleX(0); transform-origin: left; }
.ledger__row.is-active .ledger__bar { transform: none; transition: transform var(--dur, .8s) var(--bar-ease, var(--ease)); }
.stats__stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.stats__phone { position: relative; z-index: 1; width: min(290px, 64%); }
.stats__phone .device__screen > img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.stats__phone .device__screen > img.is-active { opacity: 1; }
@media (max-width: 900px) {
  .stats { padding: var(--sec) 0; }
  .stats__head, .stats__body { grid-template-columns: 1fr; }
  .stats__head .lead { margin-top: 4px; }
  .stats__body { margin-top: 36px; gap: 40px; }
  .stats__stage { min-height: 0; padding: 20px 0; }
  .stats__phone { width: min(260px, 66vw); }
}

/* ============================================================
   WIDGETS + WATCH
   ============================================================ */
.widgets { padding: var(--sec) 0; }
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 760px) { .section-head--center { text-align: left; align-items: flex-start; } } /* phones: every heading starts on the left */
.section-head--center .h2 { max-width: 15em; }
.wstage {
  position: relative; max-width: calc(var(--max) - 2 * var(--pad)); height: min(720px, 70vw); margin: 50px auto 0;
  perspective: 1600px;
}
.wstage__wall {
  position: absolute; inset: 6% 4%; border-radius: 56px; overflow: hidden;
  background:
    radial-gradient(50% 60% at 22% 30%, rgba(78, 86, 255, .5), transparent 70%),
    radial-gradient(46% 56% at 82% 72%, rgba(165, 31, 208, .38), transparent 70%),
    radial-gradient(40% 50% at 62% 16%, rgba(53, 208, 255, .22), transparent 70%),
    radial-gradient(36% 40% at 30% 92%, rgba(244, 106, 18, .18), transparent 70%),
    linear-gradient(160deg, #12122c, #090a18 60%, #150c22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.12);
}
.wstage__wall::after { /* glass reflection */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,.07), transparent 35%);
}
.w-large { position: absolute; z-index: 2; left: 7%; top: 20%; width: 52%; border-radius: 6.9% / 21.5%; box-shadow: 0 50px 100px -30px rgba(0,0,0,.9); }
.w-small { position: absolute; z-index: 3; left: 30%; top: 50%; width: 22%; border-radius: 22%; box-shadow: 0 40px 80px -20px rgba(0,0,0,.9); }
.watch { position: absolute; z-index: 3; right: 9%; top: 19%; width: 25%; } /* the top strap stays inside the wall */
.watch__case {
  position: relative; padding: 7.5%; border-radius: 26%;
  background: linear-gradient(145deg, #9a9ca0, #3b3d41 30%, #6f7176 55%, #222326 80%, #55575c);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.2), inset 0 0 0 7px #0b0b0c, 0 50px 90px -30px rgba(0,0,0,.95);
}
.watch__case::before, .watch__case::after { /* bands */
  content: ""; position: absolute; left: 14%; right: 14%; height: 40%; z-index: -1; border-radius: 22px;
  background: linear-gradient(90deg, #17181b, #2b2d31 50%, #17181b);
}
.watch__case::before { bottom: 88%; } .watch__case::after { top: 88%; }
.watch__crown { position: absolute; right: -5%; top: 26%; width: 6%; height: 18%; border-radius: 6px; background: linear-gradient(90deg, #6c6e72, #c2c4c8, #5d5f63); }
.watch__screen { border-radius: 20%; overflow: hidden; background: #000; }
.watch__screen img { width: 100%; }
.wfeatures {
  max-width: var(--max); margin: 40px auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.wfeatures > div { padding: 24px 28px 0 0; border-top: 1px solid var(--line); }
.wfeatures > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.wfeatures__n { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.wfeatures h3 { font: 600 21px/1.2 var(--f-display); letter-spacing: -.025em; margin-top: 14px; }
.wfeatures p { color: var(--muted); margin-top: 8px; font-size: 15px; }
@media (max-width: 760px) {
  /* stacked: large widget on top, small widget + watch below with room for the watch bands */
  .wstage { height: 142vw; }
  .wstage__wall { border-radius: 32px; inset: 2% 0; }
  .w-large { left: 5%; top: 7%; width: 90%; }
  .w-small { left: 7%; top: 52%; width: 40%; }
  .watch { right: 7%; top: 47%; width: 42%; }
  .wfeatures { grid-template-columns: 1fr; }
  .wfeatures > div, .wfeatures > div + div { padding: 20px 0; border-left: 0; }
}

/* ============================================================
   FINE TUNING
   ============================================================ */
.tune {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); align-items: center; gap: 60px;
  max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--pad);
}
.switches {
  margin-top: 34px; max-width: 520px; border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line);
}
.switches li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; font-size: 15px; color: var(--text-2);
}
.switches li + li { box-shadow: inset 0 1px 0 var(--line); }
.sw { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .5s var(--ease); }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .5s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switches li.is-on .sw { background: #34c759; }
.switches li.is-on .sw::after { transform: translateX(18px); }
.tune__phone { width: min(290px, 100%); justify-self: center; transform: perspective(1600px) rotateY(-14deg) rotateZ(2deg);
  /* the settings screen ends after three rows: fade the empty lower half instead of showing a black slab */
  -webkit-mask-image: linear-gradient(#000 56%, transparent 84%); mask-image: linear-gradient(#000 56%, transparent 84%); }
@media (max-width: 860px) {
  .tune { grid-template-columns: 1fr; padding-block: var(--sec); }
  .tune__phone { width: min(250px, 64vw); }
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy { position: relative; max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--pad); }
.privacy::before {
  content: ""; position: absolute; left: -10%; top: 0; width: 70%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(82,196,26,.07), transparent);
}
.privacy__title { position: relative; font: 700 clamp(46px, 8.4vw, 150px)/.98 var(--f-display); letter-spacing: -.05em; margin-top: 30px; }
.privacy__title em { color: #e8e3d9; white-space: nowrap; } /* inline: an inline-block em lost the space before it after SplitText */
.privacy__ledger { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line-2); }
.prow { display: flex; flex-direction: column; gap: 18px; padding: 30px 28px 0 0; }
.prow + .prow { padding-left: 28px; border-left: 1px solid var(--line); }
/* fixed-height value row: big "0" and smaller "iCloud" share a baseline, so the descriptions line up */
.prow b { display: flex; align-items: flex-end; height: calc(clamp(52px, 5.4vw, 88px) * .94); font: 700 clamp(52px, 5.4vw, 88px)/.94 var(--f-display); letter-spacing: -.05em; }
.prow:nth-child(3) b, .prow:nth-child(4) b { font-size: clamp(36px, 3.4vw, 56px); line-height: .94; }
.prow span { color: var(--muted); font-size: 15.5px; max-width: 26ch; }
.privacy__note { position: relative; margin-top: 56px; color: var(--muted); max-width: 70ch; font-size: 14.5px; }
@media (max-width: 900px) {
  .privacy { padding-block: var(--sec); }
  .privacy__ledger { grid-template-columns: 1fr 1fr; }
  .prow:nth-child(3) { padding-left: 0; border-left: 0; }
  .prow:nth-child(n+3) { margin-top: 30px; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .privacy__ledger { grid-template-columns: 1fr; margin-top: 50px; }
  .prow, .prow + .prow { display: grid; grid-template-columns: 136px 1fr; align-items: baseline; gap: 16px; padding: 22px 0; margin: 0; border-left: 0; border-bottom: 1px solid var(--line); border-top: 0; }
  .prow b, .prow:nth-child(3) b, .prow:nth-child(4) b { display: block; height: auto; font-size: 26px; line-height: 1; } /* fits "Здоровье" in the label column */
  .prow:nth-child(-n+2) b { font-size: 44px; }}

/* ============================================================
   FINALE / CTA
   ============================================================ */
.finale { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad); overflow: hidden; isolation: isolate; }
.finale__wall {
  position: absolute; inset: -12% -8%; z-index: -2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: center;
  opacity: .5; transform: rotate(-7deg);
}
.finale__wall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.finale::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 50% at 50% 50%, rgba(6,7,9,.84), rgba(6,7,9,.62) 70%, rgba(6,7,9,.9) 100%),
    linear-gradient(#060709, transparent 18%, transparent 82%, #060709);
}
.finale__frame {
  position: relative; width: min(880px, 100%);
  padding: clamp(60px, 8vw, 110px) clamp(24px, 5vw, 72px);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.finale__frame .vf { width: clamp(44px, 7vw, 76px); border-width: clamp(3px, .4vw, 5px); }
.finale__icon { width: clamp(92px, 9vw, 132px); height: auto; aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -20px rgba(61,123,240,.65); }
.finale__title { font: 700 clamp(42px, 6.8vw, 112px)/.98 var(--f-display); letter-spacing: -.048em; margin-top: 34px; text-wrap: balance; }
.finale__title em { background: linear-gradient(96deg, #6cb6ff 0%, #a98bff 42%, #ff8e5a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finale .lead { margin-inline: auto; max-width: 34ch; color: var(--text-2); text-wrap: balance; }
.finale .btn { margin-top: 38px; }
.finale__fine { margin-top: 24px; font: 500 12px/1.7 var(--f-mono); letter-spacing: .02em; color: var(--text-2); max-width: 60ch; text-wrap: balance; }
@media (max-width: 760px) {
  .finale__wall { grid-template-columns: repeat(2, 1fr); inset: -6% -30%; }
}
@media (max-width: 420px) {
  .btn--xl { --h: 58px; padding: 0 24px; font-size: 16px; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px var(--edge) 48px; color: var(--muted); font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__mark { width: 52px; height: auto; margin-right: auto; opacity: .9; }
.footer__row a:hover { color: var(--text); }
.footer__fine { margin: 22px 0 0; font-size: 12px; line-height: 1.6; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  .hero { height: auto; }
  .hero__sticky { position: relative; }
  .hero__beat { display: none; }
}
