/* ==========================================================================
   Tokens — the app's own (tailwind.config.cjs): iOS 26/27 system colors,
   Liquid Glass fills, the module palette and Inter Tight.
   ========================================================================== */
@property --p { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --card-2: #F2F2F7;
  --label: #000000;
  --label-inv: #FFFFFF;
  --label-2: #727272;
  --label-3: #8A8A8E;
  --sep: rgba(0, 0, 0, .11);
  --border: #C6C6C8;
  --fill-2: rgba(120, 120, 128, .16);
  --fill-3: rgba(118, 118, 128, .12);
  --fill-4: rgba(116, 116, 128, .08);
  --glass: rgba(243, 243, 243, .55);
  --glass-medium: rgba(247, 247, 247, .73);
  --selection: #EDEDED;

  --diet: #34C759;
  --fitness: #FF383C;
  --swim: #00C0E8;
  --run: #FF8D28;
  --walk: #6155F5;
  --cycle: #CB30E0;
  --info: #0088FF;
  --yellow: #FFCC00;
  --success: #34C759;
  --danger: #FF383C;

  --shadow-card: 0 1px 1px rgba(0, 0, 0, .02), 0 18px 50px -28px rgba(0, 0, 0, .22);
  --glass-shadow:
    0 0 0 .5px rgba(0, 0, 0, .09),
    1.25px 0 0 -.75px rgba(0, 0, 0, .18),
    -1.25px 0 0 -.75px rgba(0, 0, 0, .18),
    0 8px 15px 0 rgba(0, 0, 0, .02),
    inset 0 40px 10px -40px rgba(255, 255, 255, .6),
    inset 0 -40px 10px -40px rgba(255, 255, 255, .6),
    inset 0 40px 30px -40px rgba(0, 0, 0, .1);
  --glass-medium-shadow:
    0 0 0 .5px rgba(0, 0, 0, .15),
    1.25px 0 0 -.75px rgba(0, 0, 0, .15),
    -1.25px 0 0 -.75px rgba(0, 0, 0, .15),
    0 8px 48px 0 rgba(0, 0, 0, .18),
    inset 0 40px 10px -40px rgba(255, 255, 255, .6),
    inset 0 -40px 10px -40px rgba(255, 255, 255, .6);

  --r-md: 14px;
  --r-lg: clamp(18px, 2.4vw, 24px);
  --r-xl: clamp(24px, 3.2vw, 36px);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 32px);
}

html.dark {
  --bg: #000000;
  --card: #1C1C1E;
  --card-2: #2C2C2E;
  --label: #FFFFFF;
  --label-inv: #000000;
  --label-2: #8C8C8C;
  --label-3: #8D8D93;
  --sep: rgba(255, 255, 255, .11);
  --border: #38383A;
  --fill-2: rgba(120, 120, 128, .32);
  --fill-3: rgba(118, 118, 128, .24);
  --fill-4: rgba(118, 118, 128, .18);
  --glass: rgba(153, 153, 153, .17);
  --glass-medium: rgba(36, 36, 38, .78);
  --selection: #121212;

  --diet: #30D158;
  --fitness: #FF4245;
  --swim: #5CDBFF;
  --run: #FF9638;
  --walk: #6155F5;
  --cycle: #DB34F2;
  --info: #0091FF;
  --yellow: #FFD60A;
  --success: #30D158;
  --danger: #FF4245;

  --shadow-card: 0 0 0 .5px rgba(255, 255, 255, .05);
  --glass-shadow:
    0 0 0 .5px rgba(0, 0, 0, .6),
    1.25px 0 0 -.75px rgba(0, 0, 0, .6),
    -1.25px 0 0 -.75px rgba(0, 0, 0, .6),
    0 8px 15px 0 rgba(0, 0, 0, .04),
    inset 0 40px 10px -40px rgba(255, 255, 255, .12),
    inset 0 -40px 10px -40px rgba(255, 255, 255, .12),
    inset 0 40px 30px -40px rgba(0, 0, 0, .45);
  --glass-medium-shadow:
    0 0 0 .5px rgba(0, 0, 0, .6),
    1.25px 0 0 -.75px rgba(255, 255, 255, .08),
    -1.25px 0 0 -.75px rgba(255, 255, 255, .08),
    0 8px 48px 0 rgba(0, 0, 0, .5),
    inset 0 40px 10px -40px rgba(255, 255, 255, .1),
    inset 0 -40px 10px -40px rgba(255, 255, 255, .06);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 29px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s ease, color .5s ease;
}
main { display: block; overflow-x: clip; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--info) 30%, transparent); }

i.ic { display: inline-flex; width: 1em; height: 1em; flex-shrink: 0; font-style: normal; }
i.ic svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 3; overflow: visible; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 12vw, 168px) 0; }

/* Liquid Glass (helpers.scss: liquid-glass / liquid-glass-medium) */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(6px) saturate(125%);
  backdrop-filter: blur(6px) saturate(125%);
  box-shadow: var(--glass-shadow);
}
.glass-medium {
  background: var(--glass-medium);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: var(--glass-medium-shadow);
}

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; line-height: 20px; font-weight: 600;
  color: var(--label-2);
}
.h1 {
  font-size: clamp(50px, 8.2vw, 108px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.038em;
  font-weight: 600;
  text-wrap: balance;
}
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.lead { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: var(--label-2); text-wrap: pretty; }
.muted { color: var(--label-2); }
.small { font-size: 15px; line-height: 22px; }
.tiny { font-size: 13px; line-height: 18px; }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .h2 { margin-top: 18px; }
.sec-head .lead { margin-top: 22px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* Icon tile (helpers.scss: list-row-icon) */
.tile {
  --c: var(--label);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: none; color: var(--label); font-size: 18px;
}
.tile.neutral { background: none; color: var(--label); }
.tile.lg, .tile.xl { justify-self: start; }
.tile.lg { width: auto; height: 44px; border-radius: 12px; font-size: 28px; }
.tile.xl { width: auto; height: 60px; border-radius: 16px; font-size: 36px; }
.c-diet { --c: var(--diet); } .c-fitness { --c: var(--fitness); } .c-swim { --c: var(--swim); }
.c-run { --c: var(--run); } .c-walk { --c: var(--walk); } .c-cycle { --c: var(--cycle); }
.c-info { --c: var(--info); } .c-yellow { --c: var(--yellow); } .c-label { --c: var(--label); }

/* Buttons (Button - Liquid Glass - Text) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease-spring), background-color .3s, color .3s, opacity .3s;
  user-select: none;
}
.btn:active { transform: scale(.95); }
.btn .ic { font-size: 20px; }
.btn-prominent { background: var(--label); color: var(--label-inv); box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.btn-glass { color: var(--label); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 15px; font-weight: 400; gap: 4px; }
.btn-sm .ic { font-size: 16px; }
.btn-block { width: 100%; }
.btn-round { width: 44px; height: 44px; padding: 0; }
.btn-round .ic { font-size: 20px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.pro-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; vertical-align: middle;
  height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--label); color: var(--label-inv);
  font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: .04em;
}
.pro-pill .ic { font-size: 13px; margin-left: -2px; }

/* Segmented control */
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: 999px; background: var(--fill-3);
}
.seg button {
  position: relative; z-index: 1; height: 34px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--label-2); white-space: nowrap;
  transition: color .3s;
}
.seg button[aria-pressed="true"] { color: var(--label); }
.seg .seg-thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 999px;
  background: var(--card); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
  transition: transform .45s var(--ease-spring), width .45s var(--ease-spring);
}
html.dark .seg .seg-thumb { background: #636366; }

/* iOS switch (components/switch/switch.scss): 64×28 capsule, 38×24 knob that stretches under the finger; on = label color */
.switch {
  --switch-knob: 38px;
  position: relative; width: 64px; height: 28px; margin: 0; border-radius: 999px; flex-shrink: 0;
  background: var(--fill-2); cursor: pointer; outline: none; touch-action: manipulation;
  transition: background-color .25s ease-out;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: var(--switch-knob); height: 24px; border-radius: 999px;
  background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06);
  transition: left .35s cubic-bezier(.34,1.3,.64,1), width .25s cubic-bezier(.34,1.3,.64,1), background-color .25s ease-out;
}
.switch:active { --switch-knob: 46px; }
.switch[aria-checked="true"] { background: var(--label); }
.switch[aria-checked="true"]::after { left: calc(100% - 2px - var(--switch-knob)); }
html.dark .switch[aria-checked="true"]::after { background: #2C2C2E; }
.switch:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 32%, transparent); }
.switch:disabled { opacity: .4; cursor: default; }

/* Stepper (program-editor.scss) */
.stepper { display: inline-flex; align-items: center; height: 32px; border-radius: 999px; background: var(--fill-3); flex-shrink: 0; }
.stepper button { width: 46px; height: 32px; display: grid; place-items: center; font-size: 18px; border-radius: 999px; transition: background-color .2s; }
.stepper button:active { background: var(--fill-2); }
.stepper button + button { position: relative; }
.stepper button + button::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--sep); }
.stepper .val { padding: 0 6px; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; min-width: 70px; text-align: center; }

/* Cards */
.card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: background-color .5s, box-shadow .5s;
}
.card-pad { padding: clamp(20px, 2.4vw, 28px); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h3 { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-meta { font-size: 15px; color: var(--label-3); }
.hair { height: 1px; background: var(--sep); border: 0; margin: 16px 0; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(32px) scale(.985); transition: opacity 1s ease, transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Activity rings (components/activity-rings): conic arc cut to a band by a
   mask, a deeper tone at the start, round caps, the end cap's shadow when full.
   ========================================================================== */
.rings {
  --size: 160px;
  --wr: .1;
  --w: calc(var(--size) * var(--wr));
  --g: calc(var(--size) * .042 / max(var(--n, 3), 3));
  position: relative; display: inline-block; flex-shrink: 0;
  width: var(--size); height: var(--size);
}
.ring {
  --p: 0deg;
  --c0: color-mix(in oklch, var(--c), #000 18%);
  --track: color-mix(in srgb, var(--c) 20%, transparent);
  position: absolute; border-radius: 50%;
  inset: calc(var(--i) * (var(--w) + var(--g)));
  background: conic-gradient(var(--c0), var(--c) var(--p), transparent 0), var(--track);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - .5px), #000 calc(100% - var(--w) + .5px), #000 calc(100% - .5px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - .5px), #000 calc(100% - var(--w) + .5px), #000 calc(100% - .5px), transparent 100%);
  transition: --p 1.9s var(--ease-out) var(--delay, 0s);
}
html.dark .ring { --track: color-mix(in srgb, var(--c) 26%, transparent); }
.rings.on .ring { --p: var(--t); }
.ring::before, .ring .cap::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: var(--w); height: var(--w); margin-left: calc(var(--w) / -2); border-radius: 50%;
}
.ring::before { background: var(--c0); }
.ring .cap { position: absolute; inset: 0; transform: rotate(var(--p)); }
.ring .cap::before { background: var(--c); }
.ring.is-full .cap::before { box-shadow: calc(var(--w) * .18) 0 calc(var(--w) * .3) rgba(0, 0, 0, .35); }
.ring.is-empty::before, .ring.is-empty .cap { opacity: 0; }
.rings:not(.on) .ring::before, .rings:not(.on) .cap { opacity: 0; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--diet), var(--swim), var(--walk), var(--cycle), var(--fitness), var(--run));
}
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 8px 0 24px; border-radius: 999px;
  background: var(--glass-medium);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--glass-medium-shadow);
  transition: transform .5s var(--ease-out), background-color .5s;
}
.nav.hide { transform: translate(-50%, -90px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .06em; font-size: 16px; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  height: 38px; display: flex; align-items: center; padding: 0 13px; border-radius: 999px;
  font-size: 15px; color: var(--label-2); transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--label); }
.nav-links a.active { color: var(--label); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav .btn-round { width: 42px; height: 42px; }
.nav .menu-btn { display: none; }
.theme-btn .ic-moon { display: none; }
html.dark .theme-btn .ic-sun { display: none; }
html.dark .theme-btn .ic-moon { display: inline-flex; }
.menu-panel {
  position: fixed; z-index: 49; top: 82px; right: 12px; left: 12px;
  border-radius: 28px; padding: 10px;
  display: grid; gap: 2px;
  transform-origin: top right;
  transition: opacity .3s, transform .45s var(--ease-spring);
}
.menu-panel:not(.open) { opacity: 0; transform: scale(.9); pointer-events: none; }
.menu-panel a { padding: 12px 16px; border-radius: 16px; font-size: 17px; }
.menu-panel a:active { background: var(--fill-3); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(164px, 18vw, 228px) 0 0; isolation: isolate; text-align: center; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 46% at 50% 78%, color-mix(in srgb, var(--label) 5%, transparent), transparent 70%);
}
.hero-head { position: relative; z-index: 1; display: grid; justify-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--label-2); }
/* Pro shine (same as the app's pro sheet): soft color patches drifting over text painted with itself as mask */
.hero-eyebrow span {
  background-color: #000;
  background-image:
    radial-gradient(circle at center, #3ba7e0 0%, transparent 70%),
    radial-gradient(circle at center, #e5822a 0%, transparent 70%),
    radial-gradient(circle at center, #8ecdff 0%, transparent 60%);
  background-repeat: no-repeat;
  background-size: 70px 70px, 70px 70px, 84px 84px;
  background-position: -10% 20%, 110% 80%, 40% -10%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: proMesh 12s ease-in-out infinite;
}
html.dark .hero-eyebrow span {
  background-color: #fff;
  background-image:
    radial-gradient(circle at center, #8ecdff 0%, transparent 70%),
    radial-gradient(circle at center, #ffb15e 0%, transparent 70%),
    radial-gradient(circle at center, #fff 0%, transparent 60%);
}
@keyframes proMesh {
  0%, 100% { background-position: -10% 20%, 110% 80%, 40% -10%; }
  25% { background-position: 30% 90%, 70% 10%, 60% 60%; }
  50% { background-position: 90% 30%, 10% 70%, 30% 100%; }
  75% { background-position: 50% -10%, 40% 100%, 80% 20%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow span { animation: none; background-position: 40% 40%, 60% 60%, 50% 50%; }
}
.hero .h1 { margin-top: 22px; max-width: 11ch; font-size: clamp(54px, 9.4vw, 128px); letter-spacing: -.05em; line-height: .94; }
.hero .h1 .q, .final .h1 .q { color: var(--label-3); }
.hero .lead { margin-top: 28px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 36px; align-items: center; justify-content: center; }
.hero-cta .btn { height: 54px; padding: 0 26px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; color: var(--label); }
.text-link .ic { font-size: 16px; transition: transform .35s var(--ease-spring); }
.text-link:hover .ic { transform: translateX(4px); }
.hero-cta .text-link .ic { transform: rotate(90deg); }
.hero-cta .text-link:hover .ic { transform: rotate(90deg) translateX(4px); }

/* Three phones: Fitness, Özet, Diyet. The opening is played by heroIntro() (script): the middle phone rises and wakes,
   its rings close and send a ripple out, the Dynamic Island tells the score, the side phones swing out from behind it,
   light sweeps over the glass and the screens come alive. The transforms below are where everything lands. */
.hero-stage {
  --sx: 78%; --ss: .88; --sdrop: 60px; --ty: 100px; /* how far the phones sit below the top of the stage */
  position: relative; height: clamp(580px, calc(46vw + 160px), 680px); /* 160px taller than the phones need: the extra is room for the rings */
  --fa: calc(clamp(302px, 33vw, 374px) + var(--ty)); --fb: calc(clamp(420px, 46vw, 520px) + var(--ty)); /* the phones fade out where they always did */
  perspective: 1800px;
  -webkit-mask-image: linear-gradient(#000 var(--fa), transparent var(--fb));
  mask-image: linear-gradient(#000 var(--fa), transparent var(--fb));
}
.hero-stage .phone { position: absolute; left: 50%; top: var(--ty); margin-left: calc(var(--pw) / -2); }
.hero-stage .phone.mid { z-index: 2; }
.hero-stage .phone.side { z-index: 1; translate: 0 var(--sdrop); }
.hero-stage .phone.left { transform: translateX(calc(var(--sx) * -1)) scale(var(--ss)); }
.hero-stage .phone.right { transform: translateX(var(--sx)) scale(var(--ss)); }
.js .hero-stage:not(.ready) .phone { opacity: 0; }

/* Black glass before the screen wakes */
.wake { position: absolute; inset: 0; z-index: 7; background: #000; pointer-events: none; opacity: 0; }

/* The ripple the closing rings send out, behind the phones */
.hero-stage-wrap { position: relative; margin-top: clamp(88px, 10vw, 128px); clip-path: inset(0 -100vw); }
/* Neutral concentric rings like the app's Pro sheet: six bands, fading toward the center, closing one after another.
   Centered on the bottom edge of the stage; the hero clips the lower half. */
@property --rp { syntax: "<angle>"; inherits: true; initial-value: 360deg; }
.hero-ripple {
  --rd: clamp(1160px, calc(92vw + 320px), 1360px); /* radius = the stage height, so the rings never rise above it */ --rw: calc(var(--rd) * .05); --rg: calc(var(--rd) * .007);
  position: absolute; z-index: 0; left: 50%; top: 100%; width: 0; height: 0; pointer-events: none; transform: rotate(180deg);
}
.hero-ripple span {
  --rp: 360deg; --rcol: rgba(26, 26, 26, var(--ra));
  --off: calc(var(--i) * (var(--rw) + var(--rg)));
  position: absolute; left: calc(var(--rd) / -2 + var(--off)); top: calc(var(--rd) / -2 + var(--off));
  width: calc(var(--rd) - 2 * var(--off)); height: calc(var(--rd) - 2 * var(--off)); border-radius: 50%;
  background: conic-gradient(var(--rcol) var(--rp), transparent 0), color-mix(in srgb, var(--rcol) 20%, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw) - .5px), #000 calc(100% - var(--rw) + .5px), #000 calc(100% - .5px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw) - .5px), #000 calc(100% - var(--rw) + .5px), #000 calc(100% - .5px), transparent 100%);
}
/* Gradient layer over the rings and the phones: clear at the top, the page color at the bottom edge */
.hero-ripple-fade {
  position: absolute; z-index: 5; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 35%, color-mix(in srgb, var(--bg) 60%, transparent) 70%, var(--bg) 100%);
}
html.dark .hero-ripple span { --rcol: rgba(245, 245, 245, var(--rb)); }
.hero-ripple span:nth-child(1) { --i: 0; --ra: .055; --rb: .11; }
.hero-ripple span:nth-child(2) { --i: 1; --ra: .042; --rb: .085; }
.hero-ripple span:nth-child(3) { --i: 2; --ra: .03; --rb: .06; }
.hero-ripple span:nth-child(4) { --i: 3; --ra: .02; --rb: .04; }
.hero-ripple span:nth-child(5) { --i: 4; --ra: .012; --rb: .025; }
.hero-ripple span:nth-child(6) { --i: 5; --ra: .007; --rb: .014; }

/* Dynamic Island grows into a live activity: the day's rings and score */
.island { display: flex; align-items: center; overflow: hidden; }
.island .live { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 9px 0 7px; opacity: 0; color: #fff; white-space: nowrap; }
.island .live .rings { --size: 26px; }
.island .live b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.island .live b small { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.6); margin-right: 4px; letter-spacing: 0; }

/* Screen details that change once the phones are up */
.focus-seg i { transition: width .7s var(--ease-out); }
.focus-sets span { transition: background-color .35s, color .35s; }
.sfood .box { transition: background-color .3s, border-color .3s, color .3s; }
.no-tr .ring, .no-tr .fill, .no-tr .focus-seg i { transition: none !important; }

/* Phone */
.phone {
  --pw: 340px; --ph: 710px; --s: .8154;
  position: relative; width: var(--pw); height: var(--ph); padding: 11px; border-radius: 58px;
  background: linear-gradient(160deg, #2c2c2f, #0e0e10 45%, #1f1f22);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.1),
    0 0 0 1px rgba(0,0,0,.55),
    0 50px 100px -40px rgba(0,0,0,.5);
}
html.dark .phone { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.06), 0 50px 100px -40px rgba(0,0,0,.9); }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2a2d; }
.phone::before { left: -3px; top: 150px; height: 64px; }
.phone::after { right: -3px; top: 190px; height: 96px; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 47px; overflow: hidden; background: var(--bg); transition: background-color .5s; }
.island { position: absolute; z-index: 9; top: 11px; left: 50%; width: 100px; height: 29px; margin-left: -50px; border-radius: 20px; background: #000; }
.scr {
  position: absolute; top: 0; left: 0; width: 390px; height: 844px;
  transform: scale(var(--s)); transform-origin: 0 0;
  font-size: 17px; line-height: 22px; text-align: left;
}
.status { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; font-size: 17px; font-weight: 600; }
.status-icons { display: flex; gap: 6px; align-items: center; }
.status-icons .bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.status-icons .bars i { width: 3px; background: var(--label); border-radius: 1px; }
.status-icons .batt { width: 25px; height: 12px; border-radius: 4px; border: 1.2px solid color-mix(in srgb, var(--label) 40%, transparent); padding: 1.5px; position: relative; }
.status-icons .batt::before { content: ""; display: block; height: 100%; width: 78%; border-radius: 2px; background: var(--label); }
.status-icons .batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: color-mix(in srgb, var(--label) 40%, transparent); }
.status-icons .ic { font-size: 16px; }
.scr-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 16px 0; }
.scr-title { font-size: 34px; line-height: 41px; font-weight: 600; letter-spacing: -.01em; }
.scr-sub { font-size: 15px; line-height: 20px; color: var(--label-3); margin-top: 2px; }
.scr-head .btn-round { width: 44px; height: 44px; }
.scr-body { padding: 18px 16px 0; display: grid; gap: 18px; }
.scr-headline { font-size: 30px; line-height: 44px; font-weight: 600; letter-spacing: -.02em; text-wrap: pretty; }
.scr-headline .q { color: var(--label-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: -2px; white-space: nowrap;
  height: 36px; padding: 0 12px 0 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c);
  font-size: 22px; line-height: 1; letter-spacing: -.01em;
}
html.dark .chip { background: color-mix(in srgb, var(--c) 20%, transparent); }
.chip .rings { --size: 26px; --wr: .17; }
.scr-score { display: flex; align-items: baseline; gap: 10px; }
.scr-score b { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.scr-score span { color: var(--label-3); font-size: 15px; }
.scr-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.scr-h b { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.scr-h span { font-size: 15px; color: var(--label-3); }
.scr-card { background: var(--card); border-radius: 24px; overflow: hidden; transition: background-color .5s; }
.tabbar {
  position: absolute; left: 16px; right: 16px; bottom: 26px; z-index: 6;
  display: flex; align-items: center; gap: 10px;
}
.tabbar-pill { flex: 1; display: flex; padding: 4px; border-radius: 999px; height: 62px; }
.tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 999px; font-size: 10px; line-height: 12px; font-weight: 600; color: var(--label);
  transition: background-color .3s;
}
.tabbar-item .ic { font-size: 24px; }
.tabbar-item.sel { background: var(--selection); color: var(--c, var(--label)); }
html.dark .tabbar-item.sel { background: rgba(255,255,255,.1); }
.tabbar-acc { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; }

/* Habit rows (home/habits) */
.habit { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; }
.habit + .habit::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--sep); }
.habit-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.habit-title { font-size: 15px; color: var(--label-2); line-height: 18px; }
.habit-value { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.habit-value small { font-size: 14px; font-weight: 400; color: var(--label-3); }
.habit-extra { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--yellow) 22%, transparent); color: color-mix(in srgb, var(--yellow) 70%, var(--label)); }
.bar { display: flex; gap: 3px; height: 6px; border-radius: 6px; background: var(--fill-3); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 6px; background: var(--label); transition: width .7s var(--ease-out); }
.bar .fill.extra { background: var(--yellow); }

/* Phone screens: the fitness focus card and the diet day */
.focus { background: var(--card); border-radius: 26px; padding: 18px; display: grid; gap: 14px; }
.focus-top { display: flex; justify-content: space-between; align-items: center; }
.focus-top small { font-size: 15px; color: var(--label-3); }
.focus-time { font-size: 48px; line-height: 52px; font-weight: 200; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.focus-seg { display: flex; gap: 4px; }
.focus-seg span { flex: 1; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 20%, transparent); overflow: hidden; }
.focus-seg i { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.focus-move small { font-size: 13px; font-weight: 600; color: var(--c); }
.focus-move b { display: block; font-size: 26px; line-height: 31px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.focus-move span { font-size: 14px; color: var(--label-3); }
.focus-sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.focus-sets span { display: grid; justify-items: center; padding: 10px 4px; border-radius: 16px; background: var(--card-2); font-size: 12px; color: var(--label-3); line-height: 15px; }
.focus-sets span b { font-size: 20px; line-height: 24px; color: var(--label); }
.focus-sets span.done { background: var(--c); color: rgba(255,255,255,.85); }
.focus-sets span.done b { color: #fff; }
.focus-next { font-size: 15px; color: var(--label-2); }
.focus-next b { color: var(--label); }
.scr-btn { height: 50px; border-radius: 999px; background: var(--label); color: var(--label-inv); display: grid; place-items: center; font-size: 17px; font-weight: 600; }
.wstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wstrip span { display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--label-3); }
.wstrip b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: var(--label); }
.wstrip span.on b { background: var(--label); color: var(--label-inv); }
.wstrip span.done b { box-shadow: inset 0 0 0 2.5px var(--diet); }
.sfood { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 16px; }
.sfood + .sfood { border-top: 1px solid var(--sep); }
.sfood .box { width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--label-3); display: grid; place-items: center; color: transparent; font-size: 14px; flex-shrink: 0; }
.sfood.on .box { background: var(--diet); border-color: var(--diet); color: #fff; }
.sfood small { margin-left: auto; color: var(--label-3); font-size: 14px; }


/* ==========================================================================
   Modules
   ========================================================================== */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mod { padding: 26px; display: grid; gap: 18px; align-content: start; cursor: default; transition: transform .6s var(--ease-out), box-shadow .5s, background-color .5s; }
.mod-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mod .rings { --size: 92px; --wr: .14; }
.mod h3 { font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.mod p { color: var(--label-2); font-size: 16px; line-height: 24px; margin-top: 6px; }
.mod-progs { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-progs span { font-size: 13px; line-height: 18px; padding: 6px 10px; border-radius: 999px; background: var(--fill-4); color: var(--label-2); }
.mod-glow { position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--c); filter: blur(70px); opacity: 0; transition: opacity .6s; pointer-events: none; }
.mod:hover .mod-glow { opacity: .18; }

.builder { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.builder-side { padding: clamp(22px, 3vw, 36px); }
.builder-side + .builder-side { border-left: 1px solid var(--sep); display: grid; place-items: center; gap: 24px; align-content: center; background: radial-gradient(120% 90% at 50% 100%, var(--fill-4), transparent); }
.pick-list { margin-top: 20px; border-radius: 16px; background: var(--card-2); overflow: hidden; }
html.dark .pick-list { background: var(--card-2); }
.pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 58px; text-align: left; position: relative; transition: opacity .3s; }
.pick + .pick::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--sep); }
.pick-body { flex: 1; display: grid; line-height: 20px; }
.pick-body b { font-weight: 400; font-size: 17px; }
.pick-body small { font-size: 13px; color: var(--label-3); }
.pick .check { font-size: 22px; color: var(--info); opacity: 0; transform: scale(.4); transition: transform .4s var(--ease-spring), opacity .25s; }
.pick[aria-pressed="true"] .check { opacity: 1; transform: none; }
.pick.dim { opacity: .38; }
.pick-note { margin-top: 12px; font-size: 13px; color: var(--label-3); padding: 0 6px; }
.preview-rings .rings { --size: 210px; }
.preview-bar { width: min(360px, 100%); display: flex; gap: 8px; align-items: center; }
.preview-bar .tabbar-pill { height: 58px; }
.preview-bar .tabbar-item { font-size: 10px; animation: pop .45s var(--ease-spring); }
.preview-bar .tabbar-acc { width: 58px; height: 58px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ==========================================================================
   Summary bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.today-headline { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.45; font-weight: 600; letter-spacing: -.025em; }
.today-headline .q { color: var(--label-2); }
.today-headline .chip { font-size: .72em; height: 1.3em; padding-right: .45em; }
.today-headline .chip .rings { --size: 1em; }
.today-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.big-score { font-size: clamp(60px, 7vw, 88px); line-height: .9; font-weight: 200; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.big-score-label { font-size: 15px; color: var(--label-3); margin-top: 8px; }

.energy-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 4px; }
.energy-opt { display: grid; justify-items: center; gap: 6px; padding: 12px 2px 10px; border-radius: 16px; font-size: 12px; line-height: 15px; color: var(--label-2); transition: background-color .3s, color .3s, transform .35s var(--ease-spring); }
.energy-opt .ic { font-size: 30px; color: var(--label); transition: transform .4s var(--ease-spring); }
.energy-opt:hover { background: var(--fill-4); }
.energy-opt[aria-checked="true"] { background: var(--label); color: var(--label-inv); }
.energy-opt[aria-checked="true"] .ic { color: var(--label-inv); transform: scale(1.12) rotate(-6deg); }
.energy-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.energy-week li { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--label-3); }
.energy-week .col { width: 100%; max-width: 26px; height: 54px; border-radius: 8px; background: var(--fill-4); display: flex; align-items: flex-end; overflow: hidden; }
.energy-week .col i { display: block; width: 100%; border-radius: 8px; background: var(--label); transition: height .7s var(--ease-out); }
.energy-week li.today { color: var(--label); font-weight: 600; }
.insight { display: flex; gap: 10px; margin-top: 16px; font-size: 15px; line-height: 21px; color: var(--label-2); }
.insight .ic { font-size: 18px; color: var(--label); margin-top: 1px; }

.matrix { display: grid; grid-template-columns: 92px repeat(7, minmax(0, 1fr)); row-gap: 10px; align-items: center; position: relative; margin-top: 18px; }
.matrix .day { display: grid; justify-items: center; font-size: 12px; line-height: 15px; color: var(--label-3); position: relative; z-index: 1; padding-bottom: 2px; }
.matrix .day b { font-size: 15px; color: var(--label); font-weight: 600; }
.matrix .day.today { color: var(--label); }
.matrix .today-col { position: absolute; top: -6px; bottom: -6px; border-radius: 14px; background: var(--fill-4); z-index: 0; }
.matrix .mtab { display: flex; align-items: center; gap: 8px; font-size: 14px; position: relative; z-index: 1; min-width: 0; }
.matrix .mtab .tile { width: 26px; height: 26px; font-size: 16px; border-radius: 7px; }
.matrix .cell { display: grid; place-items: center; position: relative; z-index: 1; height: 34px; }
.matrix .cell .rings { --size: 30px; --wr: .16; }
.cell .missed { width: 28px; height: 28px; border-radius: 50%; border: 2.5px dashed color-mix(in srgb, var(--c) 55%, transparent); }
.cell .off { width: 6px; height: 6px; border-radius: 50%; background: var(--fill-2); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.figure small { display: block; font-size: 13px; color: var(--label-3); }
.figure b { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figure b span { font-size: 17px; color: var(--label-3); font-weight: 400; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--label-3); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .rings { --size: 16px; --wr: .2; }
.legend .missed { width: 15px; height: 15px; border-radius: 50%; border: 2px dashed var(--label-3); }
.legend .off { width: 6px; height: 6px; border-radius: 50%; background: var(--label-3); margin: 0 5px; }

.trend { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.trend + .trend { border-top: 1px solid var(--sep); }
.trend-title { font-size: 13px; color: var(--label-3); }
.trend-fig { display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.trend-ch { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.trend-ch .ic { font-size: 13px; }
.trend-prev { font-size: 13px; color: var(--label-3); }
.trend-cols { display: flex; gap: 4px; align-items: flex-end; height: 44px; }
.trend-cols span { width: 12px; height: 100%; border-radius: 6px; background: var(--fill-4); display: flex; align-items: flex-end; overflow: hidden; }
.trend-cols i { display: block; width: 100%; border-radius: 6px; background: var(--fill-2); height: 0; transition: height 1.2s var(--ease-out) .2s; }
.trend-cols span + span i { background: var(--label); }

.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.badge { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12px; line-height: 15px; color: var(--label-2); }
.badge-orb { position: relative; width: 68px; height: 68px; display: grid; place-items: center; }
.badge-orb .rings { position: absolute; inset: 0; --size: 68px; --wr: .075; }
.badge-orb .core { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--fill-3); color: var(--label-3); }
.badge.earned .core { background: var(--c, var(--label)); color: #fff; box-shadow: inset 0 -6px 14px rgba(0,0,0,.18), inset 0 6px 12px rgba(255,255,255,.25), 0 8px 20px -8px var(--c, #000); width: 64px; height: 64px; font-size: 30px; }
.badge.earned.c-label .core { color: var(--label-inv); }
.badge.earned { color: var(--label); }
.badge .new { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--info); border: 2px solid var(--card); }

.records { display: grid; }
.record { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.record + .record { border-top: 1px solid var(--sep); }
.record-body { flex: 1; min-width: 0; display: grid; line-height: 19px; }
.record-body small { font-size: 13px; color: var(--label-3); }
.record-body b { font-weight: 400; font-size: 15px; }
.record-val { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 16px; white-space: nowrap; }

.w-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.w-val { font-size: 46px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.w-val small { font-size: 20px; color: var(--label-3); font-weight: 400; letter-spacing: 0; }
.w-ch { margin-top: 8px; font-size: 15px; color: var(--label-2); display: flex; align-items: center; gap: 4px; }
.w-chart { position: relative; height: 210px; margin-top: 18px; touch-action: pan-y; cursor: crosshair; }
.w-chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.w-line { fill: none; stroke: var(--label); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out); }
.w-area { opacity: 0; transition: opacity 1.2s ease 1s; }
.in .w-line { stroke-dashoffset: 0; }
.in .w-area { opacity: 1; }
.w-goal { stroke: var(--label-3); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.w-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--label); box-shadow: 0 0 0 4px var(--card), 0 0 0 10px color-mix(in srgb, var(--label) 12%, transparent); opacity: 0; transition: opacity .4s 2.2s; }
.in .w-dot { opacity: 1; }
.w-goal-label { position: absolute; right: 0; font-size: 12px; color: var(--label-3); transform: translateY(-120%); background: var(--card); padding: 0 4px; }
.w-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--sep); pointer-events: none; opacity: 0; transition: opacity .2s; }
.w-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); pointer-events: none; padding: 6px 10px; border-radius: 12px; font-size: 13px; line-height: 17px; white-space: nowrap; opacity: 0; transition: opacity .2s; text-align: center; }
.w-tip b { display: block; font-size: 15px; }
.w-chart.hover .w-guide, .w-chart.hover .w-tip { opacity: 1; }
.w-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--label-3); margin-top: 8px; }
.w-goal-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sep); font-size: 15px; }
.w-goal-row span { display: flex; gap: 8px; align-items: center; }

.lock-note { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--label-2); font-size: 15px; justify-content: center; text-align: center; flex-wrap: wrap; }

/* ==========================================================================
   Workout demo
   ========================================================================== */
.wk-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.steps { display: grid; gap: 6px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px; border-radius: 20px; transition: background-color .4s, opacity .4s; opacity: .45; }
.step.active { opacity: 1; background: var(--card); box-shadow: var(--shadow-card); }
.step.done { opacity: .8; }
.step .tile { transition: transform .4s var(--ease-spring); }
.step.active .tile { transform: scale(1.08); }
.step b { display: block; font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.step p { font-size: 15px; line-height: 22px; color: var(--label-2); margin-top: 4px; }

.wk { padding: 22px; border-radius: 32px; }
.wk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wk-day { font-size: 15px; color: var(--label-3); line-height: 20px; }
.wk-time { font-size: 44px; line-height: 50px; font-weight: 200; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wk-state { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill-3); color: var(--label-2); }
.wk-state.live { background: color-mix(in srgb, var(--fitness) 16%, transparent); color: var(--fitness); }
.wk-state.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.wk-seg { display: flex; gap: 4px; margin: 16px 0 18px; }
.wk-seg span { flex: 1; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--fitness) 20%, transparent); overflow: hidden; }
.wk-seg i { display: block; height: 100%; width: 0; background: var(--fitness); border-radius: 6px; transition: width .5s var(--ease-out); }
.wk-now { padding: 18px; border-radius: 22px; background: var(--card-2); }
.wk-region { font-size: 13px; color: var(--fitness); font-weight: 600; letter-spacing: .02em; display: flex; justify-content: space-between; }
.wk-region span { color: var(--label-3); font-weight: 400; }
.wk-move { font-size: 26px; line-height: 31px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.wk-move .ic { font-size: 18px; color: var(--label-3); }
.wk-last { font-size: 14px; color: var(--label-3); margin-top: 2px; }
.wk-sets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.set {
  display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border-radius: 16px; background: var(--card);
  font-size: 13px; color: var(--label-3); transition: background-color .3s, color .3s, transform .35s var(--ease-spring);
}
.set b { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--label); font-variant-numeric: tabular-nums; transition: color .3s; }
.set:active { transform: scale(.94); }
.set.done { background: var(--fitness); color: rgba(255,255,255,.85); }
.set.done b { color: #fff; }
.set .ic { font-size: 14px; }
.wk-weight { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 15px; color: var(--label-2); }
.wk-next { display: flex; align-items: center; gap: 10px; margin: 14px 4px 16px; font-size: 15px; color: var(--label-2); }
.wk-next b { color: var(--label); font-weight: 600; }
.wk-actions { display: flex; gap: 10px; }
.wk-sum { position: absolute; inset: 0; z-index: 4; padding: 26px; display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; border-radius: inherit; animation: sheetUp .6s var(--ease-out); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.wk-sum .rings { --size: 140px; --wr: .14; }
.wk-sum-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.wk-sum-figs div { padding: 12px 6px; border-radius: 16px; background: var(--fill-4); }
.wk-sum-figs small { display: block; font-size: 12px; color: var(--label-3); }
.wk-sum-figs b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wk-sum .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.kind { padding: 24px; display: grid; gap: 14px; align-content: start; }
.kind h3 { font-size: 22px; line-height: 27px; font-weight: 600; letter-spacing: -.02em; }
.kind p { font-size: 15px; line-height: 23px; color: var(--label-2); }
.mini { border-radius: 18px; background: var(--card-2); padding: 14px; display: grid; gap: 10px; }
.mini-row { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 20px; }
.mini-row .grow { flex: 1; min-width: 0; }
.mini-row small { color: var(--label-3); font-size: 13px; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; }
.mini-head b { font-size: 28px; font-weight: 200; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mini-head span { font-size: 13px; color: var(--label-3); }
.food { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 15px; border-radius: 10px; }
.food + .food { border-top: 1px solid var(--sep); border-radius: 0; }
.food .box { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--label-3); display: grid; place-items: center; font-size: 13px; color: transparent; transition: background-color .25s, border-color .25s, color .25s; flex-shrink: 0; }
.food[aria-pressed="true"] .box { background: var(--diet); border-color: var(--diet); color: #fff; }
.food small { margin-left: auto; color: var(--label-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.meal-seg { display: flex; gap: 4px; }
.meal-seg span { flex: 1; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--diet) 22%, transparent); overflow: hidden; }
.meal-seg i { display: block; height: 100%; width: 0; background: var(--diet); transition: width .5s var(--ease-out); }
.lengths { display: grid; gap: 8px; }
.len { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.len .grow { flex: 1; }
.len .stepper { height: 28px; }
.len .stepper button { width: 34px; height: 28px; font-size: 15px; }
.len .stepper .val { min-width: 44px; font-size: 14px; }
.pace-ring { display: flex; gap: 14px; align-items: center; }
.pace-ring .rings { --size: 74px; --wr: .14; }

/* ==========================================================================
   Move guide / program editor
   ========================================================================== */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.sheet { border-radius: 32px; padding: 0 0 22px; overflow: hidden; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 0; }
.sheet-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 8px auto 0; }
.sheet-head { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 8px 24px 18px; }
.sheet-head .sym { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; }
.sheet-head h3 { font-size: 26px; line-height: 31px; font-weight: 600; letter-spacing: -.02em; }
.sheet-head p { font-size: 15px; color: var(--label-2); line-height: 21px; }
.sheet-body { padding: 0 20px; display: grid; gap: 14px; }
.sheet-group { background: var(--card); border-radius: 20px; padding: 14px 16px; }
html.dark .sheet .sheet-group { background: var(--card-2); }
.sheet-group h4 { font-size: 13px; color: var(--label-3); font-weight: 400; margin: 0 0 8px; letter-spacing: .01em; }
.muscles { display: flex; flex-wrap: wrap; gap: 6px; }
.muscles span { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--fill-3); color: var(--label-2); }
.muscles span.main { background: color-mix(in srgb, var(--fitness) 16%, transparent); color: var(--fitness); font-weight: 600; }
.howto { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: h; }
.howto li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; line-height: 21px; }
.howto.num li::before { counter-increment: h; content: counter(h); width: 24px; height: 24px; border-radius: 50%; background: var(--label); color: var(--label-inv); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.howto .ic { font-size: 20px; margin-top: 1px; }
.stop-note { font-size: 13px; color: var(--label-3); display: flex; gap: 8px; line-height: 18px; padding: 0 4px; }

.editor { position: relative; overflow: hidden; border-radius: 32px; }
.ed-bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 14px; gap: 8px; }
.ed-bar .t { text-align: center; font-weight: 600; font-size: 17px; transition: opacity .3s; }
.ed-bar .ok { background: var(--label); color: var(--label-inv); box-shadow: none; }
.ed-pages { display: flex; width: 300%; transition: transform .65s var(--ease-out); }
.ed-page { width: 33.3333%; padding: 4px 20px 24px; display: grid; gap: 14px; align-content: start; }
.list { background: var(--card); border-radius: 18px; overflow: hidden; }
html.dark .editor .list { background: var(--card-2); }
.li { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; font-size: 16px; position: relative; width: 100%; text-align: left; }
.li + .li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.li .grow { flex: 1; min-width: 0; display: grid; line-height: 19px; padding: 8px 0; }
.li .grow small { color: var(--label-3); font-size: 13px; }
.li .end { color: var(--label-3); font-size: 15px; display: flex; align-items: center; gap: 6px; }
.li .end .ic { font-size: 14px; }
.li.add { color: var(--info); }
.li.tap { transition: background-color .2s; }
.li.tap:active, .li.tap.flash { background: var(--fill-4); }
.list-h { font-size: 13px; color: var(--label-3); padding: 0 16px; margin-bottom: -6px; text-transform: uppercase; letter-spacing: .02em; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--fitness) 15%, transparent); color: var(--fitness); }
.ed-dots { display: flex; gap: 6px; justify-content: center; padding-bottom: 18px; }
.ed-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--fill-2); transition: width .4s var(--ease-out), background-color .3s; }
.ed-dots span.on { width: 22px; background: var(--label); }

.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 14px; padding: 16px; border-radius: 20px; background: var(--card); text-align: left; width: 100%; transition: box-shadow .3s, transform .35s var(--ease-spring); box-shadow: var(--shadow-card); }
.choice:active { transform: scale(.98); }
.choice .grow { flex: 1; display: grid; gap: 4px; }
.choice b { font-size: 17px; font-weight: 600; }
.choice small { font-size: 13px; color: var(--label-3); }
.choice p { font-size: 14px; line-height: 20px; color: var(--label-2); }
.choice .chk { width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--border); display: grid; place-items: center; color: transparent; flex-shrink: 0; font-size: 14px; transition: all .3s; }
.choice[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c), var(--shadow-card); }
.choice[aria-pressed="true"] .chk { background: var(--c); border-color: var(--c); color: #fff; }

.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.wkp { padding: 14px 12px; border-radius: 16px; background: var(--card-2); display: grid; gap: 8px; position: relative; overflow: hidden; }
.wkp small { font-size: 12px; color: var(--label-3); }
.wkp b { font-size: 15px; line-height: 19px; font-weight: 600; }
.wkp .bars { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.wkp .bars i { flex: 1; border-radius: 3px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.wkp.cur { background: color-mix(in srgb, var(--c) 12%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--c); }
.wkp.cur .bars i, .wkp.past .bars i { background: var(--c); }
.wkp.past::after { content: "✓"; position: absolute; top: 10px; right: 12px; font-size: 13px; color: var(--c); font-weight: 600; }

/* ==========================================================================
   History calendar
   ========================================================================== */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head b { font-size: 20px; font-weight: 600; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; }
.cal .dn { font-size: 12px; color: var(--label-3); text-align: center; padding-bottom: 4px; }
.cal .d { display: grid; justify-items: center; gap: 4px; font-size: 13px; color: var(--label-3); padding: 4px 0; border-radius: 12px; position: relative; }
.cal .d .mk { width: 30px; height: 30px; display: grid; place-items: center; }
.cal .d .rings { --size: 28px; --wr: .17; }
.cal .d .missed { width: 26px; height: 26px; border-radius: 50%; border: 2.5px dashed color-mix(in srgb, var(--fitness) 55%, transparent); }
.cal .d .ara { font-size: 10px; font-weight: 600; padding: 3px 6px; border-radius: 999px; background: var(--fill-3); color: var(--label-2); }
.cal .d .rest { width: 5px; height: 5px; border-radius: 50%; background: var(--fill-2); }
.cal .d .plus { position: absolute; top: 2px; right: 8%; width: 14px; height: 14px; border-radius: 50%; background: var(--info); color: #fff; font-size: 10px; display: grid; place-items: center; }
.cal-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.cal-figs div { padding: 10px; border-radius: 14px; background: var(--card-2); }
.cal-figs small { display: block; font-size: 12px; color: var(--label-3); }
.cal-figs b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.feature-list { display: grid; gap: 14px; }
.feat { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 20px; }
.feat b { font-size: 18px; line-height: 23px; font-weight: 600; letter-spacing: -.01em; display: block; }
.feat p { font-size: 15px; line-height: 22px; color: var(--label-2); margin-top: 4px; }

/* ==========================================================================
   Pause
   ========================================================================== */
.pause-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.reason { display: grid; justify-items: center; gap: 6px; padding: 14px 4px; border-radius: 18px; background: var(--card-2); font-size: 14px; color: var(--label-2); transition: all .3s var(--ease-out); }
.reason .ic { font-size: 28px; color: var(--label); transition: transform .45s var(--ease-spring); }
.reason[aria-checked="true"] { background: var(--label); color: var(--label-inv); }
.reason[aria-checked="true"] .ic { color: var(--label-inv); transform: scale(1.15); }
.counter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.counter div { padding: 14px 4px; border-radius: 18px; background: var(--card-2); }
.counter b { display: block; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; font-weight: 200; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.counter small { font-size: 12px; color: var(--label-3); }
.pause-tabs { display: grid; }
.pause-tab { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pause-tab + .pause-tab { border-top: 1px solid var(--sep); }
.pause-tab .grow { flex: 1; }
.streak-keep { display: grid; place-items: center; gap: 12px; text-align: center; padding: 32px 24px; background: radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--run) 18%, transparent), transparent); }
.flame { font-size: 96px; color: var(--run); filter: drop-shadow(0 12px 30px color-mix(in srgb, var(--run) 50%, transparent)); animation: flick 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flick { 25% { transform: scale(1.04, .97) rotate(-2deg); } 50% { transform: scale(.97, 1.04) rotate(1.5deg); } 75% { transform: scale(1.02, .99) rotate(-1deg); } }
.streak-num { font-size: clamp(72px, 9vw, 120px); line-height: .9; font-weight: 200; letter-spacing: -.05em; }
.days-strip { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.days-strip span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--run); color: #fff; }
.days-strip span.ara { background: var(--fill-3); color: var(--label-2); }

/* ==========================================================================
   Notifications
   ========================================================================== */
/* An iOS 26 lock screen: a flowing blue wallpaper, the tall Liquid Glass clock and a front wave of the wallpaper
   that the clock's lower part slips behind (the depth effect). The wallpaper is a photo, so it ignores the theme. */
.notif-stage { position: relative; height: 700px; display: grid; justify-items: center; align-content: start; padding-top: 30px; overflow: hidden; border-radius: 32px; background: #0d2178; }
.notif-stage .wall { position: absolute; inset: 0; width: 100%; height: 100%; }
.lock-time { position: relative; z-index: 1; justify-self: stretch; text-align: center; color: #cfe0ff; }
.lock-time small { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
/* The clock: rounded-stroke digits whose strokes mask a layer that lightens, tints and slightly softens the wallpaper
   behind it, so the wallpaper's curves stay visible through the glass; an SVG on top adds the soft inner light,
   a specular streak and a fine rim. No filter/opacity on .lock-clock itself: that would cut the glass off from the backdrop. */
.lock-clock { position: relative; width: min(90%, 420px); aspect-ratio: 442 / 360; margin: 10px auto 0; }
.lock-clock .glass-fill, .lock-clock .glass-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.lock-clock .glass-fill {
  background: linear-gradient(180deg, rgba(175,205,255,.34), rgba(150,190,255,.22) 60%, rgba(175,205,255,.3));
  -webkit-backdrop-filter: blur(2.5px) saturate(140%) brightness(1.55);
  backdrop-filter: blur(2.5px) saturate(140%) brightness(1.55);
  -webkit-mask: var(--clock-mask) 0 0 / 100% 100% no-repeat;
  mask: var(--clock-mask) 0 0 / 100% 100% no-repeat;
}
.lock-clock svg { overflow: visible; }
.lock-clock .front { position: absolute; left: 50%; top: 74%; width: 1100px; height: 700px; transform: translateX(-50%); }
.notifs { position: relative; z-index: 2; width: min(380px, calc(100% - 28px)); margin-top: -40px; height: 280px; }
.notif {
  position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 12px; padding: 12px 14px; border-radius: 24px;
  transition: transform .7s var(--ease-out), opacity .6s ease, filter .6s;
}
.notif .app { width: 38px; height: 38px; border-radius: 10px; background: var(--label); color: var(--label-inv); display: grid; place-items: center; flex-shrink: 0; }
.notif .app svg { width: 26px; height: 26px; }
.notif .body { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; }
.notif .body b { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.notif .body b small { font-weight: 400; color: var(--label-3); font-size: 13px; }
.notif .body p { color: var(--label); opacity: .85; }
.rem-list { display: grid; }
.rem { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.rem + .rem { border-top: 1px solid var(--sep); }
.rem .grow { flex: 1; display: grid; line-height: 20px; }
.rem .grow small { font-size: 13px; color: var(--label-3); line-height: 18px; }

/* ==========================================================================
   Share posters
   ========================================================================== */
.share-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; }
.share-ctrls { display: grid; gap: 22px; align-content: start; }
.share-ctrls h4 { font-size: 13px; color: var(--label-3); font-weight: 400; margin: 0 0 10px; }
.share-ctrls .seg { width: 100%; }
.share-ctrls .seg button { padding: 0 8px; font-size: 14px; }
.share-stage { position: relative; min-height: 600px; display: grid; place-items: center; padding: 30px; border-radius: var(--r-xl); overflow: hidden; background: var(--card-2); }
.share-stage.sticker-bg { background:
  linear-gradient(45deg, var(--fill-4) 25%, transparent 25%, transparent 75%, var(--fill-4) 75%) 0 0 / 24px 24px,
  linear-gradient(45deg, var(--fill-4) 25%, transparent 25%, transparent 75%, var(--fill-4) 75%) 12px 12px / 24px 24px,
  var(--card-2); }
.poster {
  --pc: var(--run);
  position: relative; width: 300px; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 26px 24px;
  background: var(--pc); color: #fff;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.45);
  transition: height .6s var(--ease-out), width .6s var(--ease-out), background-color .5s, color .5s, border-radius .5s, padding .5s;
}
.poster::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 60% at 100% 0%, rgba(255,255,255,.25), transparent 60%); transition: opacity .5s; }
.poster.dark { background: #000; color: #fff; }
.poster.dark::before { background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--pc) 45%, transparent), transparent 60%); }
.poster.light { background: #fff; color: #000; }
.poster.light::before { background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--pc) 25%, transparent), transparent 60%); }
.poster.sticker { border-radius: 28px; padding: 20px; }
.poster-top { position: relative; display: flex; align-items: center; gap: 10px; }
.poster-top .tile { background: rgba(255,255,255,.22); color: currentColor; width: 36px; height: 36px; border-radius: 10px; font-size: 22px; }
.poster.dark .poster-top .tile, .poster.light .poster-top .tile { background: var(--pc); color: #fff; }
.poster-top b { display: block; font-size: 18px; line-height: 21px; font-weight: 600; }
.poster-top small { font-size: 13px; opacity: .75; }
.poster-figs { position: relative; display: grid; gap: 14px; }
.poster-fig small { display: block; font-size: 13px; opacity: .75; }
.poster-fig b { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.poster-fig b span { font-size: 20px; font-weight: 400; opacity: .8; letter-spacing: 0; margin-left: 2px; }
.poster.dark .poster-fig b, .poster.light .poster-fig b { color: var(--pc); }
.poster-brand { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; opacity: .85; }
.poster-brand svg { width: 20px; height: 20px; }
.poster.sticker .poster-figs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.poster.sticker .poster-fig b { font-size: 24px; }
.poster.sticker .poster-fig b span { font-size: 13px; }
.poster.sticker .poster-brand { display: none; }
.formats-note { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; color: var(--label-3); }

/* ==========================================================================
   Goals
   ========================================================================== */
.aims { display: grid; gap: 0; border-radius: 18px; overflow: hidden; background: var(--card-2); }
.aim { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; width: 100%; position: relative; }
.aim + .aim::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--sep); }
.aim .grow { flex: 1; display: grid; line-height: 20px; }
.aim .grow small { font-size: 13px; color: var(--label-3); }
.aim .check { color: var(--info); font-size: 20px; opacity: 0; transform: scale(.4); transition: all .35s var(--ease-spring); }
.aim[aria-checked="true"] .check { opacity: 1; transform: none; }
.goal-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goal-fig { padding: 18px 14px; border-radius: 20px; background: var(--card-2); display: grid; gap: 10px; }
.goal-fig b { font-size: clamp(26px, 2.8vw, 34px); line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.goal-fig small { font-size: 13px; color: var(--label-3); }
.safety { display: grid; gap: 12px; margin-top: 18px; }
.safety div { display: flex; gap: 12px; font-size: 15px; line-height: 21px; color: var(--label-2); }
.safety .ic { font-size: 20px; color: var(--success); flex-shrink: 0; margin-top: 1px; }

/* ==========================================================================
   Privacy
   ========================================================================== */
.vault { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vault .card { padding: 26px; display: grid; gap: 16px; align-content: start; }
.vault .card.end { grid-template-rows: 1fr; align-content: stretch; }
.vault .card.end > .tile { align-self: start; }
.vault h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 27px; }
.vault ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.vault li { display: flex; gap: 10px; font-size: 15px; line-height: 21px; color: var(--label-2); }
.vault li .ic { font-size: 18px; color: var(--label); margin-top: 1px; }
.vault .note { font-size: 13px; color: var(--label-3); line-height: 18px; }
/* The app's iCloud sheet head (partial/elements/icloud-sheet), scaled from 72px: the cloud in the label color on a plain fill,
   dimmed until sync is on; syncing = a dip, arrows flowing through it and a fading arc turning around the circle;
   synced = a ripple leaving the circle, a bounce and a checkmark drawn inside */
.cloud-orb { position: relative; width: 120px; height: 120px; margin: 4px auto 0; display: grid; place-items: center; border-radius: 50%; background: var(--fill-3); color: var(--label-2); transition: color .3s ease-out; }
.cloud-orb.on { color: var(--label); }
.cloud-orb svg { width: 80px; height: 80px; overflow: visible; }
.cloud-orb .shape, .cloud-orb .up, .cloud-orb .down, .cloud-orb .ok { stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.cloud-orb .shape { stroke-width: 2.1; }
.cloud-orb .up, .cloud-orb .down { stroke-width: 2; opacity: 0; transition: opacity .3s ease-out; }
.cloud-orb .ok { stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .3s ease-in, opacity .3s ease-in; }
.cloud-orb .ring, .cloud-orb .ripple { position: absolute; inset: -10px; border-radius: 50%; pointer-events: none; opacity: 0; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5.5px), #000 calc(100% - 5px), #000 calc(100% - 1px), transparent 100%); mask: radial-gradient(farthest-side, transparent calc(100% - 5.5px), #000 calc(100% - 5px), #000 calc(100% - 1px), transparent 100%); }
.cloud-orb .ring { background: conic-gradient(transparent 0deg 90deg, currentColor 360deg); transition: opacity .35s ease-out; }
.cloud-orb .ring::before { content: ''; position: absolute; top: 0; left: calc(50% - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cloud-orb .ripple { background: currentColor; }
.cloud-orb.syncing svg { animation: cloud-dip .5s var(--ease-spring); }
.cloud-orb.syncing .up, .cloud-orb.syncing .down, .cloud-orb.syncing .ring { opacity: 1; }
.cloud-orb.syncing .up { animation: cloud-flow-up 1.4s cubic-bezier(.4, 0, .6, 1) infinite; }
.cloud-orb.syncing .down { animation: cloud-flow-down 1.4s cubic-bezier(.4, 0, .6, 1) .7s infinite both; }
.cloud-orb.syncing .ring { animation: cloud-spin .9s linear infinite; }
.cloud-orb.on:not(.syncing) svg { animation: cloud-bounce .6s var(--ease-spring) .1s; }
.cloud-orb.on:not(.syncing) .ok { opacity: 1; stroke-dashoffset: 0; animation: cloud-check .45s cubic-bezier(.22, 1, .36, 1) .2s both; }
.cloud-orb.on:not(.syncing) .ripple { animation: cloud-ripple .8s cubic-bezier(.22, 1, .36, 1); }
@keyframes cloud-flow-up { from { transform: translateY(9px); } to { transform: translateY(-9px); } }
@keyframes cloud-flow-down { from { transform: translateY(-9px); } to { transform: translateY(9px); } }
@keyframes cloud-dip { 35% { transform: scale(.86); } }
@keyframes cloud-ripple { from { opacity: .55; } to { opacity: 0; transform: scale(1.4); } }
@keyframes cloud-spin { to { transform: rotate(360deg); } }
@keyframes cloud-bounce { 40% { transform: scale(1.16); } }
@keyframes cloud-check { from { stroke-dashoffset: 1; } }
@keyframes ripple { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) {
  .cloud-orb svg, .cloud-orb .up, .cloud-orb .down, .cloud-orb .ring, .cloud-orb .ok, .cloud-orb .ripple { animation: none !important; }
}
.trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--card); box-shadow: var(--shadow-card); }
.trust .ic { font-size: 20px; color: var(--success); }

/* ==========================================================================
   Everywhere
   ========================================================================== */
.ev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ev .card { padding: clamp(26px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.ev h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 27px; }
.ev p { font-size: 15px; line-height: 22px; color: var(--label-2); }
.ev .lang-card { grid-template-rows: auto 1fr auto auto; }
.lang-word { height: 64px; overflow: hidden; position: relative; align-self: end; }
.lang-word span { position: absolute; left: 0; top: 0; font-size: 54px; line-height: 64px; font-weight: 600; letter-spacing: -.04em; transition: transform .7s var(--ease-out), opacity .5s; }
.lang-word span.out { transform: translateY(-100%); opacity: 0; }
.lang-word span.wait { transform: translateY(100%); opacity: 0; }
.ev .langs { color: var(--label-3); }
.langs span { transition: color .4s; }
.langs span.on { color: var(--label); }
.units { display: grid; }
.unit-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; }
.unit-row + .unit-row { border-top: 1px solid var(--sep); }
.unit-row b { font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity .25s; }

/* ==========================================================================
   Pro
   ========================================================================== */
.pro { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(28px, 5vw, 72px); background: #000; color: #fff; isolation: isolate; }
html.dark .pro { background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
/* Neutral rings like the app's Pro sheet: the regular ring component in one tone, fading toward the center. They sit
   centered on the comparison so it is framed by them, and close with the same animation as every other ring. */
.pro-rings { --size: min(840px, 175vw); position: absolute; z-index: -2; left: 50%; top: 50%; margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); pointer-events: none;
  --fade: linear-gradient(to right, transparent 4%, #000 24%); -webkit-mask-image: var(--fade); mask-image: var(--fade); }
@media (max-width: 980px) { .pro-rings { --fade: linear-gradient(to bottom, transparent 6%, #000 34%); } } /* the text is above the table there */
.pro-rings .ring { --c: #fff !important; --track: rgba(255, 255, 255, .05); transition-delay: calc(var(--delay) + .45s); }
.pro-rings .ring:nth-child(1) { opacity: .14; }
.pro-rings .ring:nth-child(2) { opacity: .115; }
.pro-rings .ring:nth-child(3) { opacity: .095; }
.pro-rings .ring:nth-child(4) { opacity: .075; }
.pro-rings .ring:nth-child(5) { opacity: .06; }
.pro-rings .ring:nth-child(6) { opacity: .045; }
.pro .pro-grid { position: relative; }
.pro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.pro .pro-pill { background: #fff; color: #000; height: 28px; padding: 0 13px 0 11px; font-size: 13px; gap: 6px; }
.pro .pro-pill .ic { font-size: 15px; }
.pro .h2 { color: #fff; margin-top: 20px; }
.pro .lead { color: rgba(255,255,255,.66); margin-top: 20px; max-width: 440px; }
.pro .seg { margin-top: 32px; background: rgba(255,255,255,.12); }
.pro .seg button { color: rgba(255,255,255,.6); }
.pro .seg button[aria-pressed="true"] { color: #fff; }
.pro .seg .seg-thumb, html.dark .pro .seg .seg-thumb { background: rgba(255,255,255,.2); box-shadow: none; }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 28px; }
.price b { font-size: clamp(52px, 6.4vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .per { font-size: 20px; color: rgba(255,255,255,.6); align-self: flex-end; padding-bottom: 6px; }
.save { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: 999px; background: #fff; color: #000; font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity .3s, transform .4s var(--ease-spring); }
.save.off { opacity: 0; transform: scale(.6); }
.price-sub { margin-top: 10px; color: rgba(255,255,255,.66); font-size: 15px; min-height: 22px; }
.pro .btn-prominent { background: #fff; color: #000; box-shadow: none; }
.pro-cta { margin-top: 28px; }
.pro-cta .btn { height: 54px; padding: 0 28px; }
/* The app's Pro shine on the label (black on the white button): color patches drifting over text painted with itself as mask */
.pro-cta .shine {
  background-color: #000;
  background-image:
    radial-gradient(circle at center, #3ba7e0 0%, transparent 70%),
    radial-gradient(circle at center, #e5822a 0%, transparent 70%),
    radial-gradient(circle at center, #8ecdff 0%, transparent 60%);
  background-repeat: no-repeat;
  background-size: 55px 55px, 55px 55px, 66px 66px;
  background-position: -10% 20%, 110% 80%, 40% -10%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: proMesh 12s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .pro-cta .shine { animation: none; background-position: 40% 40%, 60% 60%, 50% 50%; } }
.pro-notes { display: grid; gap: 10px; margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.6); line-height: 20px; max-width: 460px; }
.pro-notes div { display: flex; gap: 10px; }
.pro-notes .ic { font-size: 18px; color: #fff; flex-shrink: 0; margin-top: 1px; }
/* Free vs Pro, as in the app's Pro sheet: a folder-tab card, the Pro column one highlighted strip with the chrome shine as
   its border, row separators stopping at it. The two right columns have fixed widths, the shapes behind follow them. */
.cmp { --cf: 76px; --cp: 76px; --ct: calc(var(--cf) + var(--cp)); position: relative; margin-top: 18px; padding: 6px 10px 6px 16px; }
.cmp::before { /* the Pro column's border: blue edge, white core, amber edge */
  content: ""; position: absolute; right: 10px; bottom: 10px; top: -8px; width: var(--cp); border-radius: 14px;
  background: linear-gradient(135deg, #fff, #3ba7e0, #fff, #e5822a, #fff);
  box-shadow: 0 0 24px rgba(59, 167, 224, .2), 0 0 24px rgba(229, 130, 42, .2);
}
.cmp::after { /* its fill: opaque, so the gradient only shows as a ring */
  content: ""; position: absolute; top: -6px; right: 12px; bottom: 12px; width: calc(var(--cp) - 4px); border-radius: 12px;
  background: #2c2c2e; box-shadow: inset 0 0 0 999px rgba(118, 118, 128, .24);
}
.cmp-bg { position: absolute; z-index: -1; top: 42px; right: 0; bottom: 0; left: 0; background: #2c2c2e; border-radius: 20px 12px 20px 20px; }
.cmp-bg::before { /* the tab above the Pro column */
  content: ""; position: absolute; top: -38px; right: 10px; width: var(--ct); height: 38px; background: #2c2c2e; border-radius: 14px 14px 0 0;
}
.cmp-bg::after { /* the concave notch where tab and body meet */
  content: ""; position: absolute; top: -14px; right: calc(10px + var(--ct)); width: 14px; height: 14px; transform: rotate(180deg);
  background: radial-gradient(circle at bottom right, transparent 14px, #2c2c2e 14px);
}
.cmp table { position: relative; z-index: 1; width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 0; }
.cmp thead th { width: var(--cf); height: 36px; text-align: center; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.cmp thead th:first-child { width: auto; text-align: left; }
.cmp thead th.is-pro { width: var(--cp); color: #fff; }
.cmp-title { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.cmp tbody th { padding: 12px 12px 12px 0; text-align: left; font-size: 15px; line-height: 20px; font-weight: 400; color: #fff; }
.cmp tbody td { text-align: center; vertical-align: middle; }
.cmp tbody i { font-size: 18px; color: rgba(255,255,255,.6); -webkit-text-stroke: .5px currentColor; }
.cmp tbody i.no { color: rgba(255,255,255,.28); }
.cmp tbody td.is-pro i { color: #fff; -webkit-text-stroke: .9px currentColor; }
.cmp tbody tr + tr th, .cmp tbody tr + tr td:not(.is-pro) { border-top: .5px solid rgba(255,255,255,.14); }
@media (max-width: 480px) { .cmp { --cf: 64px; --cp: 56px; padding-left: 14px; } .cmp tbody th { font-size: 14px; } }

/* Soon */
.soon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.soon .card.wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: 1fr auto 1fr; grid-template-areas: "vis tag" "vis h" "vis p"; column-gap: 28px; align-content: center; }
.soon .wide .droid { grid-area: vis; } .soon .wide .tag2 { grid-area: tag; align-self: end; } .soon .wide h3 { grid-area: h; } .soon .wide p { grid-area: p; align-self: start; max-width: 520px; }
@media (max-width: 680px) { .soon .card.wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "tag" "vis" "h" "p"; } }
.soon .card { padding: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.soon .tag2 { justify-self: start; display: inline-flex; align-items: center; height: 24px; line-height: 1; font-size: 12px; font-weight: 600; padding: 0 10px; border-radius: 999px; background: var(--fill-3); color: var(--label-2); letter-spacing: .03em; }
.soon h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 27px; }
.soon p { font-size: 15px; line-height: 22px; color: var(--label-2); }
.widget { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.widget > div { aspect-ratio: 1; border-radius: 22px; background: var(--card-2); padding: 12px; display: grid; align-content: space-between; }
.widget .rings { --size: 58px; --wr: .14; }
.widget b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.widget small { font-size: 11px; color: var(--label-3); display: block; }
.widget .tile { transform-origin: 50% 90%; }
.widget b { font-variant-numeric: tabular-nums; }
/* Widgets drop onto the home screen one after the other, then idle like live widgets: a slow bob, a flickering streak */
@keyframes widgetIn { from { opacity: 0; transform: translateY(24px) scale(.82); } }
.in .widget > div { animation: widgetIn .9s var(--ease-spring) backwards, floatY 5s ease-in-out infinite; animation-delay: .25s, 1.4s; }
.in .widget > div + div { animation-delay: .4s, 2.2s; }
.in .widget .tile { animation: popIn .7s var(--ease-spring) .7s backwards, flick 2.4s ease-in-out 1.6s infinite; }
.in .widget small { animation: fadeUp .7s var(--ease-out) .8s backwards; }

/* Soon: Apple Health. Data rides two lanes between Health's heart and the app's rings: reads in, writes out */
.hk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px 14px; border-radius: 22px; background: var(--card-2); min-height: 150px; }
.hk-heart { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 30px; background: linear-gradient(160deg, #FF6482, #FF2D55); box-shadow: 0 6px 18px -6px rgba(255, 45, 85, .6); }
.hk-heart::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #FF2D55; opacity: 0; }
.hk .rings { --size: 52px; --wr: .14; }
.hk-lanes { display: grid; gap: 10px; }
.hk-lane { position: relative; height: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.hk-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--label-3) 0 4px, transparent 4px 10px); opacity: .5; }
.hk-lane i { position: absolute; top: 0; left: -26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--c); background: color-mix(in srgb, var(--c) 26%, var(--card)); }
.hk-lane i svg { width: 15px; height: 15px; }
.hk-lane.to-health i { left: 100%; }
@keyframes laneR { from { left: -26px; } to { left: 100%; } }
@keyframes laneL { from { left: 100%; } to { left: -26px; } }
@keyframes dashR { to { background-position: 10px 0; } }
@keyframes dashL { to { background-position: -10px 0; } }
@keyframes beat { 0%, 45%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(.98); } 34% { transform: scale(1.07); } }
.in .hk-heart { animation: popIn .8s var(--ease-spring) .2s backwards, beat 1.6s ease-in-out 1s infinite; }
.in .hk-heart::before { animation: ripple 1.6s ease-out 1s infinite; }
.in .hk-lane.to-app::before { animation: dashR .6s linear infinite; }
.in .hk-lane.to-health::before { animation: dashL .6s linear infinite; }
.in .hk-lane.to-app i { animation: laneR 3.6s linear infinite; animation-delay: calc(var(--k) * 1.2s + .4s); }
.in .hk-lane.to-health i { animation: laneL 3.6s linear infinite; animation-delay: calc(var(--k) * 1.2s + 1s); }

/* Soon: coach. The coach's plan ticks off set by set while the shared bar fills, then starts over */
.coach { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: var(--card-2); min-height: 150px; }
.coach-top { display: flex; align-items: center; gap: 10px; }
.coach-top b { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.coach-top small { display: block; font-size: 11px; line-height: 14px; color: var(--label-3); }
.avs { display: flex; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #fff; background: var(--c); box-shadow: 0 0 0 2px var(--card-2); }
.av + .av { margin-left: -9px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--diet); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.coach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.coach-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; }
.coach-list em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; color: var(--label-3); }
.ck { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; box-shadow: inset 0 0 0 1.5px var(--label-3); }
.ck .ic { transform: scale(0); }
.coach-bar { height: 6px; border-radius: 3px; background: var(--fill-3); overflow: hidden; }
.coach-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--walk), var(--run)); transform-origin: 0 50%; transform: scaleX(0); }
@keyframes tick { 0%, 10%, 66%, 100% { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--label-3); } 14%, 62% { background-color: var(--diet); box-shadow: inset 0 0 0 0 transparent; } }
@keyframes tickIc { 0%, 11%, 64%, 100% { transform: scale(0); } 16%, 60% { transform: scale(1); } }
@keyframes tickTx { 0%, 10%, 66%, 100% { color: var(--label); } 14%, 62% { color: var(--label-3); } }
@keyframes coachBar { 0%, 10% { transform: scaleX(0); } 14%, 25% { transform: scaleX(.3333); } 29%, 40% { transform: scaleX(.6667); } 44%, 58% { transform: scaleX(1); } 62%, 73% { transform: scaleX(.6667); } 77%, 88% { transform: scaleX(.3333); } 92%, 100% { transform: scaleX(0); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--diet) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.in .avs .av { animation: popIn .7s var(--ease-spring) backwards; animation-delay: .25s; }
.in .avs .av + .av { animation-delay: .4s; }
.in .live::before { animation: livePulse 1.8s ease-out infinite; }
.in .coach-list li { animation: stagIn .7s var(--ease-out) backwards, tickTx 6s ease 1.2s infinite; animation-delay: calc(var(--k) * 90ms + .35s), calc(var(--k) * .9s + 1.2s); }
.in .coach-list .ck { animation: tick 6s ease calc(var(--k) * .9s + 1.2s) infinite; }
.in .coach-list .ck .ic { animation: tickIc 6s var(--ease-spring) calc(var(--k) * .9s + 1.2s) infinite; }
.in .coach-bar i { animation: coachBar 6s var(--ease-out) 1.2s infinite; }
/* Soon: Android. The bot peeks up, blinks and wiggles its antennas over a build bar that keeps running */
.droid { --droid: #3DDC84; display: grid; place-items: center; align-content: center; gap: 12px; padding: 18px 14px; border-radius: 22px; background: var(--card-2); min-height: 150px; overflow: hidden; }
.droid small { font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--label-3); }
.bot { position: relative; width: 72px; height: 36px; border-radius: 36px 36px 4px 4px; background: var(--droid); margin-top: 14px; transform-origin: 50% 100%; }
.bot .ant { position: absolute; top: -12px; left: 18px; width: 3px; height: 16px; border-radius: 2px; background: var(--droid); transform: rotate(-30deg); transform-origin: 50% 100%; }
.bot .ant.r { left: auto; right: 18px; transform: rotate(30deg); }
.bot .eye { position: absolute; top: 17px; left: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--card-2); }
.bot .eye.r { left: auto; right: 20px; }
.droid-bar { position: relative; width: min(140px, 70%); height: 6px; border-radius: 3px; background: var(--fill-3); overflow: hidden; }
.droid-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: inherit; background: var(--droid); transform: translateX(-100%); }
@keyframes peek { from { transform: translateY(46px); } }
@keyframes botBob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-3px) rotate(-3deg); } 75% { transform: translateY(-3px) rotate(3deg); } }
@keyframes eyeBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes antL { 0%, 70%, 100% { transform: rotate(-30deg); } 78% { transform: rotate(-44deg); } 86% { transform: rotate(-24deg); } }
@keyframes antR { 0%, 70%, 100% { transform: rotate(30deg); } 78% { transform: rotate(44deg); } 86% { transform: rotate(24deg); } }
@keyframes build { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.in .bot { animation: peek .9s var(--ease-spring) .35s backwards, botBob 3.2s ease-in-out 1.3s infinite; }
.in .bot .eye { animation: eyeBlink 3.6s ease-in-out 1.6s infinite; }
.in .bot .ant { animation: antL 2.8s ease-in-out 1.2s infinite; }
.in .bot .ant.r { animation-name: antR; }
.in .droid-bar i { animation: build 1.8s cubic-bezier(.65, 0, .35, 1) .8s infinite; }
@media (prefers-reduced-motion: reduce) {
  .droid-bar i { transform: none; left: 30%; }
  .hk-lane { -webkit-mask-image: none; mask-image: none; display: flex; justify-content: space-evenly; }
  .hk-lane i, .in .hk-lane i { position: relative; left: auto; animation: none !important; }
  .in .coach-list li { animation: none !important; }
  .in .coach-list li:not(:last-child) { color: var(--label-3); }
  .in .coach-list li:not(:last-child) .ck { animation: none !important; background: var(--diet); box-shadow: none; }
  .in .coach-list li:not(:last-child) .ck .ic { animation: none !important; transform: none; }
  .in .coach-bar i { animation: none !important; transform: scaleX(.6667); }
}

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--fill-3); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; transition: transform .45s var(--ease-spring); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 22px; color: var(--label-2); font-size: 16px; line-height: 25px; }
.faq details[open] .ans { animation: fadeIn .5s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }

/* Final CTA */
.final { position: relative; text-align: center; padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 120px); overflow: hidden; }
.final .rings { --size: min(360px, 78vw); --wr: .055; }
.final .h1 { margin-top: 40px; font-size: clamp(44px, 7vw, 92px); }
.final .lead { margin: 22px auto 0; max-width: 560px; }
.final .hero-cta { justify-content: center; }

footer { border-top: 1px solid var(--sep); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot { display: grid; justify-items: center; gap: 18px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; color: var(--label-2); }
.foot-links a:hover { color: var(--label); }
.foot small { display: block; font-size: 13px; color: var(--label-3); max-width: 480px; line-height: 19px; }

/* ==========================================================================
   Motion: what plays as each part comes into view (on top of .rv)
   ========================================================================== */
@keyframes stagIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes popIn { from { opacity: 0; transform: scale(.3) rotate(-24deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }
@keyframes growW { from { width: 0; } }
@keyframes growH { from { height: 0; } }
@keyframes dashIn { from { opacity: 0; transform: rotate(-140deg) scale(.4); } }
@keyframes posterIn { from { opacity: 0; transform: translateY(90px) rotate(-7deg) scale(.88); } }
@keyframes navIn { from { opacity: 0; transform: translate(-50%, -110%); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fitness) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes floatY { 50% { transform: translateY(-10px); } }

.nav { animation: navIn 1s var(--ease-out) .15s backwards; }

/* Headings come up word by word from behind a line */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .02em .16em; margin: -.1em -.02em -.16em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--wi) * 55ms + .05s); }
.in .w > span, .w.in > span { transform: none; }
.sec-head.in .eyebrow .tile { animation: popIn .8s var(--ease-spring) .05s backwards; }
.sec-head.in .lead { animation: fadeUp .9s var(--ease-out) .35s backwards; }

/* Children of a [data-stagger] list follow one another (index in --i, step in --step) */
.in [data-stagger] > *, .in[data-stagger] > * { animation: stagIn .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * var(--step, 70ms) + var(--sd, .2s)); }
[data-stagger] > * .ring { transition-delay: calc(var(--i, 0) * var(--step, 70ms) + .45s); }

/* Module cards fold up in 3D */
.mods .mod.rv:not(.in) { transform: perspective(1100px) rotateX(22deg) translateY(70px) scale(.95); transform-origin: 50% 100%; }
.bento > .rv:not(.in) { transform: translateY(46px) scale(.94); filter: blur(8px); }
.bento > .rv { transition: opacity 1s ease, transform 1.15s var(--ease-out), filter 1s ease; transition-delay: var(--d, 0s); }

/* Bars and columns grow in */
.rv.in .bar .fill { animation: growW 1.2s var(--ease-out) .35s backwards; }
.rv.in .energy-week .col i { animation: growH 1s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms + .3s); }
.rv.in .wkp .bars i { animation: growH .9s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + .5s); }
.rv.in .wkp .bars i:nth-child(2) { animation-delay: calc(var(--i, 0) * 90ms + .56s); } .rv.in .wkp .bars i:nth-child(3) { animation-delay: calc(var(--i, 0) * 90ms + .62s); }
.rv.in .wkp .bars i:nth-child(4) { animation-delay: calc(var(--i, 0) * 90ms + .68s); } .rv.in .wkp .bars i:nth-child(n+5) { animation-delay: calc(var(--i, 0) * 90ms + .74s); }

/* The week grid fills column by column */
.matrix .cell .ring { transition-delay: calc(var(--col, 0) * 90ms + .25s); }
.rv.in .matrix .cell .missed { animation: dashIn 1.1s var(--ease-out) backwards; animation-delay: calc(var(--col, 0) * 90ms + .25s); }
.rv.in .matrix .cell .off { animation: popIn .6s var(--ease-spring) backwards; animation-delay: calc(var(--col, 0) * 90ms + .25s); }
.rv.in .matrix .today-col { animation: fadeUp .9s var(--ease-out) .9s backwards; }

/* Earned badges catch the light once */
.badge.earned .core { position: relative; overflow: hidden; }
.badge.earned .core::after { content: ""; position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-120%) skewX(-18deg); }
.rv.in .badge.earned .core::after { animation: shine 1.1s ease-in-out backwards; animation-delay: calc(var(--i, 0) * 70ms + 1s); }

/* Pro: the checks pop row by row */

/* Share: the poster flies in and floats */
.share-stage.in .poster { animation: posterIn 1.3s var(--ease-out) .2s backwards, floatY 6s ease-in-out 1.6s infinite; }

/* The workout's first step calls for a tap */
.btn.pulse { animation: pulseRing 2.2s ease-out infinite; }

/* Final rings sit on a slow float */
.final .rings.on { animation: floatY 7s ease-in-out 2s infinite; }

/* Toast */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px 12px 12px; border-radius: 22px; font-size: 15px; line-height: 20px; transition: transform .55s var(--ease-spring); }
.toast.show { transform: translate(-50%, 0); }
.toast .tile { width: 30px; height: 30px; }
#confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; width: 100%; height: 100%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links a { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .menu-btn { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .wk-grid, .duo, .pause-grid, .share-wrap, .pro-grid, .builder { grid-template-columns: minmax(0, 1fr); }
  .builder-side + .builder-side { border-left: 0; border-top: 1px solid var(--sep); }
  .mods, .kinds, .vault, .ev, .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .bento > .span-4:nth-of-type(n) { grid-column: span 6; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .mods, .kinds, .vault, .ev, .soon { grid-template-columns: minmax(0, 1fr); }
  .bento > .span-4:nth-of-type(n) { grid-column: span 12; }
  .phone { --pw: 300px; --ph: 624px; --s: .7128; border-radius: 52px; }
  .phone-screen { border-radius: 42px; }
  .hero-ripple { --rd: 1160px; }
  .hero-stage { height: 580px; --fa: calc(302px + var(--ty)); --fb: calc(420px + var(--ty)); --sx: 66%; --ss: .84; --sdrop: 48px; }
  .matrix { grid-template-columns: 30px repeat(7, minmax(0, 1fr)); }
  .matrix .mtab > span:not(.tile) { display: none; }
  .matrix .cell .rings { --size: 26px; }
  .cell .missed { width: 24px; height: 24px; }
  .badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .badge-orb { transform: scale(.86); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .cal-figs { grid-template-columns: repeat(2, 1fr); }
  .goal-figs { grid-template-columns: 1fr; }
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .share-stage { min-height: 560px; padding: 20px 12px 40px; }
  .poster { width: 250px; }
  .wk { padding: 16px; }
  .wk-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counter b { font-size: 28px; }
  .trend-cols { display: none; }
}
@media (max-width: 400px) {
  .phone { --pw: 280px; --ph: 582px; --s: .6615; }
  .hero-ripple { --rd: 1080px; }
  .hero-stage { height: 540px; --fa: calc(274px + var(--ty)); --fb: calc(380px + var(--ty)); --ty: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .w > span { transform: none; }
}
