/* Landing page styles: style-83-landing-kit.css + style-86-landing-site.css merged, without the review
   board and without How it works, Pricing and FAQ (p004-s02 adds those back).
   - :root tokens = the app's identity (app/lib/design/app_colors.dart) plus the landing's orange set.
   - .app ...      = app components, scoped under .app so the landing layout can never restyle them by accident. */

/* Self-hosted Google Fonts, latin subset only. Roboto is one variable file covering every weight.
   The icon font blocks instead of swapping: swapped in late, ligature names like "local_fire_department" would show as text and shift the layout. */
@font-face{ font-family:'Roboto'; font-style:normal; font-weight:100 900; font-display:swap; src:url(/assets/fonts/roboto-latin.woff2) format('woff2'); }
/* Arial sized to Roboto's metrics (Next.js's values), so text doesn't reflow when Roboto swaps in (CLS 0). */
@font-face{ font-family:'Roboto Fallback'; src:local('Arial'); ascent-override:92.77%; descent-override:24.41%; line-gap-override:0%; size-adjust:100.3%; }
@font-face{ font-family:'Silkscreen'; font-style:normal; font-weight:400; font-display:swap; src:url(/assets/fonts/silkscreen-400.woff2) format('woff2'); }
@font-face{ font-family:'DM Mono'; font-style:normal; font-weight:400; font-display:swap; src:url(/assets/fonts/dm-mono-400.woff2) format('woff2'); }
@font-face{ font-family:'DM Mono'; font-style:normal; font-weight:500; font-display:swap; src:url(/assets/fonts/dm-mono-500.woff2) format('woff2'); }
@font-face{ font-family:'Material Symbols Rounded'; font-style:normal; font-weight:600; font-display:block; src:url(/assets/fonts/material-symbols-rounded.woff2) format('woff2'); }

:root{
  color-scheme:light;
  /* App identity */
  --canvas:#faf8f5; --card:#ffffff; --ink:#1c1a24; --muted:#7a7686; --faint:#a9a5b3; --line:#f0ece5;
  --indigo:#6670bf; --indigo-2:#c9c6e8; --indigo-soft:#edecf7; --planned:#dcdaf0;
  --good:#159873; --good-soft:#e4f7f0; --bad:#e0483f; --bad-soft:#fdeceb;
  --orange:#f08a4b; --yellow:#f2c14e; --mint:#8fd3b8; --flame:#e8793f;
  /* Landing additions (measured on --canvas) */
  --ink-2:#4a4656;          /* body copy, 9.0:1 */
  --ink-3:#625e6d;          /* secondary copy, 6.0:1 (app --muted is 4.2:1, too light for landing body text) */
  --orange-ink:#b8541e;     /* orange as text, 4.6:1 */
  --orange-soft:#fdebdd; --yellow-soft:#fcf1d3; --mint-soft:#e3f4ec;
  --tile:#f2efea;           /* melso-style soft grey card */
  --hair:#e9e4dc;
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --font:'Roboto','Roboto Fallback',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'DM Mono',ui-monospace,Consolas,monospace;
  --pixel:'Silkscreen',monospace;
}

*{ box-sizing:border-box; }
html{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
img{ max-width:100%; }

/* ===================== Landing-level shared pieces ===================== */
.pill{ display:inline-flex; align-items:center; justify-content:center; gap:8px; height:52px; padding:0 26px; border-radius:26px;
  font:inherit; font-size:1rem; font-weight:700; text-decoration:none; white-space:nowrap; cursor:pointer;
  border:1.5px solid transparent; -webkit-tap-highlight-color:transparent;
  transition-property:scale, background-color; transition-duration:150ms; transition-timing-function:ease-out; }
.pill:not([aria-disabled="true"]):active{ scale:.96; }
.pill.sm{ height:40px; padding:0 18px; border-radius:20px; font-size:.875rem; }
/* Orange fill with ink label: white on #F08A4B is 2.5:1, ink is 6.9:1. */
.pill.primary{ background:var(--orange); color:var(--ink); }
.pill.dark{ background:var(--ink); color:#fff; }
.pill.outline{ background:transparent; color:var(--ink); border-color:#d9d3ca; }
.pill.outline.soon{ cursor:default; }
.pill.outline.soon:active{ scale:1; }
.pill .soon-tag{ font-weight:500; color:var(--ink-3); }
.pill .apple{ width:16px; height:16px; }
@media (hover:hover){
  .pill.primary:hover{ background:#f39a62; }
  .pill.dark:hover{ background:#34313f; }
}
.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
:focus-visible{ outline:3px solid var(--indigo); outline-offset:3px; }

.brand{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); font-weight:800; font-size:1.375rem; letter-spacing:-.015em; }
.brand .g{ width:40px; height:40px; border-radius:11px; overflow:hidden; background:#fff; box-shadow:0 0 0 1px rgba(28,27,31,.08); flex:none; }
.brand .g img{ display:block; width:100%; height:100%; }

.foot-links{ display:flex; flex-wrap:wrap; gap:8px 22px; list-style:none; margin:0; padding:0; }
.foot-links a{ color:var(--ink-2); font-size:.875rem; text-decoration:underline; text-decoration-color:#cfc8be; text-underline-offset:3px; }
.foot-note{ font-size:.8125rem; color:var(--ink-3); line-height:1.5; margin:0; }
.foot-note a{ color:inherit; text-decoration-color:#cfc8be; text-underline-offset:3px; }

/* ===================== App components (scoped) ===================== */
.app{ font-family:var(--font); color:var(--ink); font-size:14px; line-height:1.3; text-align:left; }
.app button{ font:inherit; color:inherit; -webkit-tap-highlight-color:transparent; }
.app .ms{ font-family:'Material Symbols Rounded'; font-weight:normal; font-style:normal; line-height:1; display:inline-block; width:1em; overflow:hidden;
  font-feature-settings:'liga'; text-transform:none; letter-spacing:normal; white-space:nowrap; }
.app .px{ font-family:var(--pixel); font-weight:400; letter-spacing:-.08em; line-height:.9; }
.app .mono{ font-family:var(--mono); }
.app .kick{ font-size:10.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.app .glyph{ position:relative; display:inline-block; border-radius:50%; flex:none; overflow:hidden; background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); }
.app .glyph img{ display:block; width:100%; height:100%; object-fit:contain; }

.app .btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; font-size:13px; font-weight:800; height:38px; padding:0 16px; border-radius:19px; border:none;
  transition-property:scale, background-color, color; transition-duration:150ms; transition-timing-function:ease-out; }
.app .btn:not(:disabled):active{ scale:.96; }
.app .btn .ms{ font-size:16px; }
.app .btn.dark{ background:var(--ink); color:#fff; }
.app .btn.ghost{ border:1.5px solid var(--line); background:var(--card); color:var(--ink); }

/* --- Phone shell --- */
.app.device{ position:relative; width:372px; padding:10px; border-radius:52px; background:#16141c;
  box-shadow:0 0 0 1.5px #3a3644 inset, 0 40px 80px -20px rgba(60,40,20,.35), 0 18px 36px -18px rgba(60,40,20,.25); }
.app .phone{ position:relative; height:740px; border-radius:42px; overflow:hidden; background:var(--canvas); isolation:isolate; }
.app .notch{ position:absolute; top:10px; left:50%; width:96px; height:28px; border-radius:14px; background:#16141c; transform:translateX(-50%); z-index:9; }
.app .screen{ position:absolute; inset:0; overflow-y:auto; padding:52px 18px 120px; scrollbar-width:none; }
.app .screen::-webkit-scrollbar{ display:none; }
.app .screen[hidden]{ display:none; }
.app .phone::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:100px; pointer-events:none; z-index:4;
  background:linear-gradient(to bottom, rgba(250,248,245,0), var(--canvas) 70%); }
.app .home-ind{ position:absolute; left:50%; bottom:8px; width:120px; height:4px; border-radius:3px; background:rgba(28,26,36,.85); transform:translateX(-50%); z-index:8; }
/* Frameless (mobile hero): the screen is the object, no bezel. */
.app.device.frameless{ width:100%; padding:0; background:none; border-radius:30px; box-shadow:0 0 0 1px var(--hair), 0 24px 48px -24px rgba(60,40,20,.28); }
.app.device.frameless .phone{ height:600px; border-radius:30px; }
.app.device.frameless .notch, .app.device.frameless .home-ind{ display:none; }
.app.device.frameless .screen{ padding-top:22px; }

/* --- Nav (style-53 B): Home / Plan pill + Blaze FAB = Coach --- */
.app .bar{ position:absolute; left:18px; bottom:22px; height:58px; z-index:6; background:rgba(255,255,255,.94);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1px solid var(--line); border-radius:29px;
  box-shadow:0 12px 32px rgba(60,40,20,.12); display:flex; align-items:center; gap:4px; padding:0 6px; }
.app .tab{ border:none; background:none; cursor:pointer; color:var(--muted); padding:0 14px; display:flex; align-items:center; gap:7px; height:46px; border-radius:23px;
  font-size:13px; font-weight:800; transition-property:background-color, color; transition-duration:150ms; }
.app .tab svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.app .tab .lbl{ max-width:0; overflow:hidden; white-space:nowrap; transition:max-width .22s ease; }
.app .tab[aria-selected="true"]{ background:var(--indigo); color:#fff; }
.app .tab[aria-selected="true"] .lbl{ max-width:70px; }
.app .fab{ position:absolute; right:18px; bottom:22px; z-index:6; width:58px; height:58px; border-radius:29px; border:none; padding:0; cursor:pointer;
  background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); box-shadow:0 10px 24px rgba(102,112,191,.3); overflow:hidden; transition-property:scale; transition-duration:150ms; }
.app .fab:active{ scale:.96; }
.app .fab img{ display:block; width:100%; height:100%; }
.app .fab-tip{ position:absolute; right:84px; bottom:38px; z-index:6; height:26px; padding:0 10px; border-radius:13px; background:var(--ink); color:#fff;
  font-size:11.5px; font-weight:800; display:flex; align-items:center; pointer-events:none; }
.app .fab-tip::after{ content:''; position:absolute; right:-4px; top:9px; width:8px; height:8px; background:var(--ink); transform:rotate(45deg); }
.app.on-coach .bar, .app.on-coach .fab, .app.on-coach .fab-tip{ display:none; }

/* --- Home --- */
.app .top{ display:flex; justify-content:space-between; align-items:flex-start; }
.app .hello{ font-size:22px; font-weight:800; letter-spacing:-.4px; margin-top:3px; }
.app .streak-pill{ display:flex; align-items:center; gap:3px; height:32px; padding:0 11px 0 8px; border-radius:16px; border:1px solid var(--line); background:var(--card); font-size:13px; font-weight:800; }
.app .streak-pill .ms{ font-size:17px; color:var(--flame); }
.app .dates{ display:flex; justify-content:space-between; margin-top:16px; }
.app .d{ width:40px; height:54px; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  border:none; background:none; cursor:pointer; font-size:14px; font-weight:700; color:var(--muted); transition-property:background-color, color; transition-duration:150ms; }
.app .d small{ font-size:9.5px; font-weight:700; letter-spacing:.06em; }
.app .d::after{ content:''; width:4px; height:4px; border-radius:50%; background:transparent; }
.app .d.has-run::after{ background:var(--indigo); }
.app .d.missing::after{ background:var(--bad); }
.app .d.is-today{ color:var(--indigo); background:var(--indigo-soft); }
.app .d.sel{ background:var(--ink); color:#fff; }
.app .d.sel.is-today{ background:var(--indigo); }
.app .d.sel.has-run::after{ background:#fff; }
.app .d.sel.missing::after{ background:#ffb3ad; }
.app .acard{ position:relative; margin-top:14px; background:var(--card); border:1px solid var(--line); border-radius:26px; box-shadow:0 18px 40px rgba(28,26,36,.06); }
.app .card-main{ position:relative; padding:18px 20px 20px; height:272px; }
.app .blaze{ position:absolute; pointer-events:none; filter:drop-shadow(0 12px 16px rgba(60,40,20,.12)); }
.app .blaze.act{ bottom:14px; object-fit:contain; object-position:bottom center; }   /* width and right set per pose, as hero_run_card.dart */
.app .blaze.relaxing{ width:141px; height:auto; right:-10px; bottom:20px; }
.app .content{ position:relative; z-index:1; width:62%; height:100%; display:flex; flex-direction:column; align-items:flex-start; }
.app .spill{ display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 11px; border-radius:13px; font-size:11.5px; font-weight:800; }
.app .spill .ms{ font-size:14px; }
.app .spill.today{ background:var(--indigo); color:#fff; }
.app .spill.completed{ background:var(--good-soft); color:var(--good); }
.app .spill.missing{ background:var(--bad-soft); color:var(--bad); }
.app .spill.next{ background:#f3f1ec; color:var(--muted); }
.app .title{ font-size:27px; font-weight:800; letter-spacing:-.6px; margin-top:12px; line-height:1.05; white-space:nowrap; }
.app .dist{ display:flex; align-items:baseline; gap:6px; margin-top:12px; }
.app .dist .px{ font-size:58px; }
.app .dist small{ font-size:14px; font-weight:800; color:var(--muted); }
.app .missing-card .dist .px{ color:var(--faint); }
.app .fields{ display:flex; gap:14px; margin-top:14px; }
.app .fields div{ font-size:13px; font-weight:700; white-space:nowrap; }
.app .fields div span{ display:block; font-size:10px; letter-spacing:.08em; color:var(--muted); font-weight:600; margin-bottom:2px; }
.app .restbody{ font-size:13px; line-height:1.5; color:var(--muted); margin-top:12px; max-width:132px; }
.app .chips{ display:flex; flex-wrap:wrap; gap:4px; max-width:190px; margin-top:12px; }
.app .chip{ display:inline-flex; align-items:center; height:20px; padding:0 8px; border-radius:10px; background:var(--indigo-soft); color:var(--indigo); font-size:11px; font-weight:800; }
.app .actn{ margin-top:auto; height:40px; display:flex; align-items:center; }
.app .planned-on{ display:flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:var(--muted); }
.app .planned-on .ms{ font-size:16px; }

.app .goal{ position:relative; padding:16px 20px 18px; border-radius:0 0 25px 25px; background:var(--indigo); color:#fff; }
.app .goal::before, .app .goal::after{ content:''; position:absolute; top:-9px; width:18px; height:18px; border-radius:50%; background:var(--canvas); }
.app .goal::before{ left:-10px; } .app .goal::after{ right:-10px; }
.app .goal .perf{ position:absolute; left:14px; right:14px; top:0; border-top:1.5px dashed rgba(255,255,255,.4); }
.app .g-top{ display:flex; align-items:flex-end; gap:12px; }
.app .g-top small{ display:block; font-size:9.5px; font-weight:700; letter-spacing:.14em; opacity:.75; }
.app .g-top b{ display:block; font-size:16px; margin-top:4px; }
.app .g-top .meta{ display:block; font-size:12px; opacity:.85; font-weight:600; margin-top:2px; }
.app .g-cd{ margin-left:auto; display:flex; align-items:baseline; gap:5px; }
.app .g-cd .px{ font-size:52px; }
.app .g-cd span{ font-size:13px; font-weight:700; opacity:.85; }
.app .segs{ display:flex; gap:3px; margin-top:14px; }
.app .segs i{ flex:1; height:4px; border-radius:2px; background:rgba(255,255,255,.24); }
.app .segs i.on{ background:#fff; }
.app .segs i.half{ background:linear-gradient(90deg,#fff 40%, rgba(255,255,255,.24) 0); }

.app .notif{ position:relative; display:flex; gap:12px; margin-top:14px; padding:13px 14px 14px; border-radius:22px; background:var(--card);
  border:1px solid var(--line); box-shadow:0 14px 34px rgba(60,40,20,.10), 0 2px 6px rgba(60,40,20,.04); }
.app .n-icon{ width:40px; height:40px; }
.app .n-body{ flex:1; min-width:0; }
.app .n-head{ display:flex; justify-content:space-between; align-items:center; font-size:11px; color:var(--muted); font-weight:600; }
.app .n-head b{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink); font-weight:800; }
.app .n-head .unread{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--indigo); margin-left:6px; vertical-align:1px; }
.app .n-title{ font-size:14px; font-weight:800; margin-top:4px; }
.app .n-body p{ margin:2px 0 0; font-size:12.5px; line-height:1.45; color:var(--muted); }
.app .n-act{ margin-top:10px; display:flex; gap:8px; }

.app .sec-head{ display:flex; justify-content:space-between; align-items:baseline; margin:26px 0 12px; }
.app .sec-head b{ font-size:15px; }
.app .sec-head span{ font-size:12px; color:var(--muted); font-weight:600; }
.app .stats3{ display:grid; grid-template-columns:repeat(3,1fr); }
.app .stats3 div{ font-size:20px; font-weight:800; letter-spacing:-.3px; }
.app .stats3 div + div{ padding-left:14px; border-left:1px solid var(--line); }
.app .stats3 div span{ display:block; font-size:11px; font-weight:600; color:var(--muted); letter-spacing:0; margin-top:2px; }
.app .stats3 .good{ color:var(--good); }
.app .chart{ display:flex; gap:6px; align-items:flex-end; margin-top:20px; }
.app .bc{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; }
.app .bc .trk{ height:56px; width:100%; display:flex; align-items:flex-end; }
.app .bc .trk i{ display:block; width:100%; border-radius:7px 7px 3px 3px; background:var(--planned); }
.app .bc.completed .trk i{ background:var(--indigo); }
.app .bc.missing .trk i{ background:#f3b3ad; }
.app .bc.rest .trk i{ height:3px !important; border-radius:2px; background:#e6e0d8; }
.app .bc small{ font-size:10.5px; font-weight:800; color:var(--faint); }
.app .bc.today small{ color:var(--indigo); }

/* --- Plan --- */
.app .page-title{ font-size:22px; font-weight:800; letter-spacing:-.4px; }
.app .phero{ position:relative; margin-top:16px; border-radius:24px; background:var(--card); border:1px solid var(--line); box-shadow:0 18px 40px rgba(28,26,36,.06); padding:18px 20px 20px; }
.app .phero .b-top{ display:flex; justify-content:space-between; font-size:11.5px; color:var(--muted); }
.app .phero .b-top b{ color:var(--ink); font-weight:500; }
.app .phero .b-big{ display:flex; align-items:flex-end; gap:10px; margin-top:16px; }
.app .phero .b-big .px{ font-size:100px; color:var(--indigo); }
.app .phero .b-big span{ font-size:13px; font-weight:700; color:var(--muted); line-height:1.3; padding-bottom:6px; }
.app .phero .b-big span b{ display:block; font-size:19px; color:var(--ink); font-weight:800; letter-spacing:-.3px; }
.app .phero .b-fields{ display:flex; gap:18px; margin-top:16px; }
.app .phero .b-fields div{ font-size:13px; font-weight:700; white-space:nowrap; }
.app .phero .b-fields div span{ display:block; font-size:10px; color:var(--muted); font-weight:600; margin-bottom:2px; }
.app .phero .segs{ gap:4px; margin-top:18px; }
.app .phero .segs i{ height:5px; border-radius:3px; background:var(--planned); }
.app .phero .segs i.on{ background:var(--indigo); }
.app .phero .segs i.half{ background:linear-gradient(90deg,var(--indigo) 45%, var(--planned) 0); }

.app .diff{ display:flex; gap:12px; align-items:center; padding:10px 12px; border-radius:16px; background:var(--canvas); margin-top:8px; }
.app .diff .dd{ width:32px; flex:none; text-align:center; }
.app .diff .dd small{ display:block; font-size:9.5px; font-weight:700; letter-spacing:.06em; color:var(--muted); }
.app .diff .dd b{ display:block; font-size:15px; font-weight:800; }
.app .diff-txt{ font-size:12.5px; font-weight:700; line-height:1.4; }
.app .diff-txt s{ color:var(--faint); font-weight:600; }
.app .diff-txt em{ font-style:normal; color:var(--indigo); }
.app .verdict{ display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:800; color:var(--good); }
.app .verdict .ms{ font-size:16px; }

.app .weeks{ display:flex; flex-direction:column; gap:8px; }
.app .wk{ background:var(--card); border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.app .wk.current{ border:1.5px solid var(--indigo); }
.app .wk-head{ width:100%; display:flex; align-items:center; gap:12px; padding:12px 14px; border:none; background:none; cursor:pointer; text-align:left; }
.app .wk-num{ width:34px; flex:none; font-size:19px; }
.app .wk.current .wk-num{ color:var(--indigo); }
.app .wk.future .wk-head{ color:var(--muted); }
.app .wk-info{ flex:1; min-width:0; }
.app .wk-info b{ display:flex; align-items:center; gap:6px; font-size:13.5px; font-weight:800; white-space:nowrap; }
.app .wk-info span{ display:block; font-size:11.5px; color:var(--muted); font-weight:600; margin-top:2px; }
.app .tag{ font-size:10px; font-weight:800; padding:2px 7px; border-radius:8px; background:#f3f1ec; color:var(--muted); }
.app .wk-right{ text-align:right; flex:none; }
.app .wk-km{ font-size:13px; font-weight:800; }
.app .wk-stat{ display:inline-block; margin-top:3px; font-size:10.5px; font-weight:800; padding:2px 7px; border-radius:8px; }
.app .wk-stat.ok{ background:var(--good-soft); color:var(--good); }
.app .wk-stat.miss{ background:var(--bad-soft); color:var(--bad); }
.app .wk-stat.now{ background:var(--indigo); color:#fff; }
.app .chev{ flex:none; color:var(--faint); font-size:20px; transition:transform .2s; }
.app .wk.open .chev{ transform:rotate(180deg); }
.app .days{ display:none; padding:0 8px 8px; }
.app .wk.open .days{ display:block; }
.app .day{ display:flex; align-items:center; gap:10px; padding:9px 8px; border-radius:14px; border-top:1px solid var(--line); }
.app .day.today{ background:var(--indigo-soft); border-top-color:transparent; }
.app .day.today + .day{ border-top-color:transparent; }
.app .day .dd{ width:30px; flex:none; text-align:center; }
.app .day .dd small{ display:block; font-size:9.5px; font-weight:700; letter-spacing:.06em; color:var(--muted); }
.app .day .dd b{ display:block; font-size:15px; font-weight:800; margin-top:1px; }
.app .day.today .dd small, .app .day.today .dd b{ color:var(--indigo); }
.app .dic{ width:32px; height:32px; flex:none; border-radius:50%; background:#f5f2ee; display:flex; align-items:center; justify-content:center; }
.app .dic .ms{ font-size:17px; }
.app .day.today .dic{ background:#fff; color:var(--indigo); }
.app .day.rest .dic{ background:transparent; color:var(--faint); }
.app .dinfo{ flex:1; min-width:0; }
.app .dinfo b{ display:block; font-size:13px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.app .dinfo span{ display:block; font-size:11.5px; color:var(--muted); font-weight:600; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.app .day.rest .dinfo b{ color:var(--muted); }
.app .dval{ flex:none; font-size:12.5px; font-weight:800; text-align:right; }
.app .day.rest .dval{ color:var(--faint); }
.app .dst{ flex:none; width:22px; display:flex; justify-content:flex-end; }
.app .dst .ok{ width:20px; height:20px; border-radius:50%; background:var(--good-soft); color:var(--good); display:flex; align-items:center; justify-content:center; }
.app .dst .ok .ms{ font-size:13px; }
.app .dst .miss{ width:8px; height:8px; border-radius:50%; background:var(--bad); }
.app .pill-today{ flex:none; font-size:10.5px; font-weight:800; color:#fff; background:var(--indigo); padding:3px 8px; border-radius:9px; }

/* --- Coach (chat-latest) --- */
.app .screen.coach{ padding:0; overflow:hidden; display:flex; flex-direction:column;
  background:radial-gradient(circle at 92% 2%, rgba(201,198,232,.95), transparent 46%), radial-gradient(circle at 0% 34%, rgba(237,236,247,.95), transparent 44%), var(--canvas); }
.app .screen.coach[hidden]{ display:none; }
.app .c-float{ position:absolute; top:46px; left:14px; right:14px; z-index:4; display:flex; align-items:center; gap:10px; }
.app.device.frameless .c-float{ top:16px; }
.app .surf{ background:var(--card); border:1px solid var(--line); box-shadow:0 10px 26px rgba(60,40,20,.10); }
.app .back{ width:46px; height:46px; border-radius:50%; padding:0; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.app .back .ms{ font-size:24px; }
.app .who{ display:flex; align-items:center; gap:11px; height:56px; padding:0 20px 0 6px; border-radius:28px; }
.app .who b{ display:block; font-size:16px; font-weight:800; }
.app .who span{ display:flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:var(--muted); margin-top:1px; }
.app .online{ width:7px; height:7px; border-radius:50%; background:var(--good); }
.app .c-body{ flex:1; min-height:0; overflow-y:auto; padding:118px 14px 100px; display:flex; flex-direction:column; gap:10px; scrollbar-width:none;
  -webkit-mask-image:linear-gradient(to bottom, transparent 88px, #000 128px); mask-image:linear-gradient(to bottom, transparent 88px, #000 128px); }
.app.device.frameless .c-body{ padding-top:88px; -webkit-mask-image:linear-gradient(to bottom, transparent 60px, #000 96px); mask-image:linear-gradient(to bottom, transparent 60px, #000 96px); }
.app .c-body::-webkit-scrollbar{ display:none; }
.app .date-sep{ text-align:center; font-size:11px; color:var(--muted); font-weight:700; margin:4px 0 2px; }
.app .mrow{ display:flex; gap:8px; align-items:flex-end; }
.app .mrow.user{ justify-content:flex-end; }
.app .mcol{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; max-width:82%; }
.app .bubble{ padding:10px 13px; border-radius:18px; font-size:13.5px; line-height:1.45; }
.app .bubble.b{ background:var(--card); border-bottom-left-radius:6px; box-shadow:0 6px 16px rgba(60,40,20,.06); }
.app .bubble.u{ max-width:82%; background:linear-gradient(135deg,var(--indigo),#8d95d6); color:#fff; font-weight:600; border-bottom-right-radius:6px; }
.app .pcard{ width:100%; display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:18px; background:var(--card); box-shadow:0 10px 24px rgba(28,26,36,.05); text-align:left; }
.app .pc-ic{ width:34px; height:34px; border-radius:11px; flex:none; display:flex; align-items:center; justify-content:center; background:var(--indigo-soft); color:var(--indigo); }
.app .pc-ic .ms{ font-size:18px; }
.app .pc-t{ flex:1; min-width:0; }
.app .pc-t b{ display:block; font-size:12.5px; font-weight:800; }
.app .pc-t span{ display:block; font-size:11px; color:var(--muted); margin-top:1px; }
.app .pc-cta{ flex:none; height:30px; padding:0 12px; border-radius:15px; border:none; background:var(--ink); color:#fff; font-size:11.5px; font-weight:800; cursor:pointer; }
.app .pc-diffs{ width:100%; }
.app .typing{ display:flex; gap:4px; padding:13px 14px; border-radius:18px; border-bottom-left-radius:6px; background:var(--card); box-shadow:0 6px 16px rgba(60,40,20,.06); }
.app .typing i{ width:6px; height:6px; border-radius:50%; background:var(--muted); opacity:.6; }
@media (prefers-reduced-motion:no-preference){
  .app .typing i{ animation:kit-bob 1.1s infinite ease-in-out; }
  .app .typing i:nth-child(2){ animation-delay:.15s; } .app .typing i:nth-child(3){ animation-delay:.3s; }
}
@keyframes kit-bob{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }
.app .spacer{ width:28px; flex:none; }
.app .composer{ position:absolute; left:14px; right:14px; bottom:22px; z-index:4; height:58px; border-radius:29px; padding:5px 5px 5px 0; display:flex; align-items:center; gap:8px; }
.app .field{ flex:1; min-width:0; height:48px; padding:0 18px; border:none; outline:none; background:none; font:inherit; font-size:16px; color:var(--ink); }
.app .field::placeholder{ color:var(--muted); }
.app .send{ cursor:pointer; }
.app .send:disabled{ opacity:.5; cursor:default; }
.app .send{ width:48px; height:48px; border-radius:50%; border:none; padding:0; flex:none; color:#fff; background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); display:flex; align-items:center; justify-content:center; }
.app .send .ms{ font-size:22px; }

/* ===================== Feature mini pieces ===================== */
/* Week strip with Approve */
.app.weekx{ width:100%; max-width:420px; }
.app .wx-panel{ background:var(--card); border:1px solid var(--line); border-radius:24px; padding:16px 14px 14px; box-shadow:0 18px 40px rgba(28,26,36,.06); }
.app .wx-head{ display:flex; justify-content:space-between; align-items:baseline; padding:0 4px; }
.app .wx-head b{ font-size:14px; }
.app .wx-head span{ font-size:11.5px; color:var(--muted); font-weight:600; }
.app .wx-grid{ position:relative; display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-top:12px; }
.app .wx-day{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.app .wx-day small{ font-size:9.5px; font-weight:700; letter-spacing:.06em; color:var(--muted); }
.app .wx-day.is-today small{ color:var(--indigo); }
.app .wx-slot{ width:100%; height:66px; border-radius:14px; background:var(--canvas); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:10.5px; font-weight:800; color:var(--ink); }
.app .wx-slot .ms{ font-size:17px; }
.app .wx-slot.done{ background:var(--indigo); color:#fff; }
.app .wx-slot.today{ background:var(--indigo-soft); color:var(--indigo); box-shadow:inset 0 0 0 1.5px var(--indigo); }
.app .wx-slot.rest{ color:var(--faint); }
.app .wx-slot.empty{ background:transparent; box-shadow:inset 0 0 0 1.5px dashed var(--line); outline:1.5px dashed #e3ddd4; outline-offset:-1.5px; color:var(--faint); }
.app .wx-slot.missed{ background:var(--bad-soft); color:var(--bad); }
/* The moving run: one token positioned by --col, so Approve can slide it across the week. */
.app .wx-token{ position:absolute; left:0; bottom:0; width:calc((100% - 24px) / 7); height:66px; border-radius:14px; background:#fff; color:var(--ink);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:10.5px; font-weight:800;
  box-shadow:0 0 0 1.5px var(--ink) inset, 0 10px 20px rgba(28,26,36,.12); transform:translateX(calc(var(--col) * (100% + 4px))); }
.app .wx-token .ms{ font-size:17px; }
.app .wx-token.moved{ box-shadow:0 0 0 1.5px var(--indigo) inset, 0 10px 20px rgba(102,112,191,.22); color:var(--indigo); }
@media (prefers-reduced-motion:no-preference){
  .app .wx-token{ transition:transform 520ms cubic-bezier(0.77,0,0.175,1), box-shadow 200ms ease-out, color 200ms ease-out; }
}
.app .wx-prop{ display:flex; align-items:center; gap:10px; margin-top:12px; padding:10px 10px 10px 12px; border-radius:18px; background:var(--card); border:1px solid var(--line);
  box-shadow:0 10px 26px rgba(60,40,20,.08); }
.app .wx-prop .glyph{ width:32px; height:32px; }
.app .wx-prop p{ flex:1; margin:0; font-size:12.5px; line-height:1.4; font-weight:600; color:var(--ink); }
.app .wx-prop p span{ display:block; color:var(--muted); font-weight:500; }
.app .wx-prop .btn{ height:34px; padding:0 14px; font-size:12.5px; }
.app .wx-undo{ border:none; background:none; color:var(--muted); font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; padding:4px; }

/* Chat exchange */
.app.chatx{ width:100%; max-width:380px; display:flex; flex-direction:column; gap:10px; }

/* Goal card with distance switcher */
.app.goalx{ width:100%; max-width:380px; }
.app .gx-seg{ display:flex; padding:4px; border-radius:16px; background:#ebe6df; margin-bottom:12px; }
.app .gx-seg button{ flex:1; height:34px; border:none; background:none; border-radius:12px; font-size:12.5px; font-weight:800; color:var(--muted); cursor:pointer;
  transition-property:background-color, color; transition-duration:150ms; }
.app .gx-seg button[aria-pressed="true"]{ background:#fff; color:var(--ink); box-shadow:0 2px 6px rgba(60,40,20,.08); }
.app.goalx .phero{ margin-top:0; }

/* Streak calendar (streak_calendar_sheet.dart) */
.app.streakx{ width:100%; max-width:340px; background:var(--card); border:1px solid var(--line); border-radius:24px; padding:16px 16px 18px; box-shadow:0 18px 40px rgba(28,26,36,.06); }
.app .sx-top{ display:flex; justify-content:space-between; align-items:center; }
.app .sx-count{ display:flex; align-items:center; gap:6px; font-size:26px; font-weight:800; letter-spacing:-.9px; }
.app .sx-count .ms{ font-size:24px; color:var(--indigo); }
.app .sx-month{ font-size:13px; font-weight:800; }
.app .sx-wd, .app .sx-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:5px; }
.app .sx-wd{ margin-top:14px; }
.app .sx-wd span{ text-align:center; font-size:10.5px; font-weight:800; color:var(--faint); }
.app .sx-grid{ margin-top:6px; }
.app .sx-c{ aspect-ratio:1; border-radius:7px; background:var(--line); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; color:#fff; border:none; padding:0; }
.app .sx-c.out{ background:none; box-shadow:inset 0 0 0 1px #e4ddd4; }
.app .sx-c.done{ background:var(--indigo); }
.app .sx-c.today{ background:var(--line); box-shadow:inset 0 0 0 2px var(--indigo); color:var(--indigo); cursor:pointer; }
.app .sx-c.today.done{ background:var(--indigo); box-shadow:none; }
.app .sx-c.today.done b{ display:flex; align-items:center; justify-content:center; width:72%; height:72%; border-radius:999px; background:#fff; color:var(--indigo); }
.app .sx-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:14px; font-size:12px; color:var(--muted); font-weight:600; }
/* ===================== Demo: activity detail + log sheet ===================== */
.app .notif[data-go]{ cursor:pointer; }
.app .notif[data-go]:focus-visible{ outline:3px solid var(--indigo); outline-offset:2px; }
.app .day{ width:100%; border:none; background:none; text-align:left; cursor:pointer; }
.app .ov{ position:absolute; inset:0; z-index:20; background:rgba(28,26,36,.42); display:none; align-items:flex-end; }
.app .ov.show{ display:flex; }
.app .sheet{ width:100%; max-height:92%; overflow-y:auto; overscroll-behavior:contain; background:var(--card); border-radius:28px 28px 0 0; padding:16px 20px 26px; display:flex; flex-direction:column; gap:12px; scrollbar-width:none; }
@media (prefers-reduced-motion:no-preference){ .app .ov.show .sheet{ animation:kit-up .26s cubic-bezier(.22,1,.36,1); } }
@keyframes kit-up{ from{ transform:translateY(40px); opacity:0; } to{ transform:none; opacity:1; } }
.app .sh-head{ display:flex; justify-content:space-between; align-items:center; }
.app .sh-head b{ font-size:15px; font-weight:800; }
.app .sh-head b.mono{ font-size:12px; letter-spacing:.06em; color:var(--muted); font-weight:500; }
.app .xbtn{ width:32px; height:32px; border-radius:50%; border:none; background:#f3f1ec; color:var(--muted); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.app .xbtn .ms{ font-size:17px; }
.app .a-title{ font-size:24px; font-weight:800; letter-spacing:-.5px; }
.app .a-big{ display:flex; align-items:baseline; gap:6px; margin-top:-4px; }
.app .a-big .px{ font-size:48px; }
.app .a-big small{ font-size:13px; font-weight:800; color:var(--muted); }
.app .a-instr{ font-size:13px; color:var(--muted); line-height:1.5; margin:0; }
.app .a-logged{ display:flex; align-items:center; gap:6px; margin:0; padding:10px 12px; border-radius:14px; background:var(--good-soft); color:#0f5a45; font-size:12.5px; font-weight:700; }
.app .a-logged .ms{ font-size:17px; color:var(--good); }
.app .btn.wide{ width:100%; height:46px; border-radius:23px; font-size:14px; }
.app .sh-actions{ display:flex; gap:10px; margin-top:6px; }
.app .sh-actions .btn{ flex:1; height:46px; border-radius:23px; font-size:14px; }
.app .lx-lbl{ display:flex; justify-content:space-between; font-size:10.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:4px 0 -2px; }
.app .lx-lbl em{ font-style:normal; text-transform:none; letter-spacing:0; font-weight:600; color:var(--faint); }
.app .tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.app .tiles.c1{ grid-template-columns:1fr; }
.app .tt{ display:block; padding:10px 10px 12px; border-radius:18px; background:var(--card); border:1.5px solid var(--line); cursor:text; }
.app .tt:focus-within{ border-color:var(--indigo); }
.app .tt small{ display:block; font-size:9.5px; font-weight:800; letter-spacing:.1em; color:var(--muted); }
.app .tt b, .app .tt input{ display:block; width:100%; border:none; outline:none; background:none; padding:6px 0 2px; font-family:var(--pixel); font-weight:400; letter-spacing:-.08em; font-size:23px; color:var(--ink); }
.app .tt input::placeholder{ color:#d6d1dc; }
.app .tt span{ font-size:10.5px; font-weight:700; color:var(--muted); }
.app .tt.derived{ background:var(--indigo-soft); border-color:transparent; cursor:default; } .app .tt.derived b{ color:var(--indigo); }
.app .eff{ display:flex; align-items:center; gap:12px; }
.app .eff-num{ width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:#f1eee9; flex:none; font-family:var(--pixel); font-size:26px; letter-spacing:-.06em; }
.app .eff-side{ flex:1; min-width:0; }
.app .eff-side b{ display:block; font-size:13.5px; font-weight:800; }
.app input[type=range].rpe{ -webkit-appearance:none; appearance:none; display:block; width:100%; height:28px; margin:2px 0 0; padding:0; background:transparent; cursor:pointer; touch-action:pan-y; }
.app input[type=range].rpe::-webkit-slider-runnable-track{ height:10px; border-radius:5px; background:linear-gradient(90deg,#8fd3b8,#6cc08f 30%,#f2c14e 55%,#f08a4b 78%,#e0483f); }
.app input[type=range].rpe::-moz-range-track{ height:10px; border-radius:5px; background:linear-gradient(90deg,#8fd3b8,#6cc08f 30%,#f2c14e 55%,#f08a4b 78%,#e0483f); }
.app input[type=range].rpe::-webkit-slider-thumb{ -webkit-appearance:none; width:26px; height:26px; margin-top:-8px; border-radius:50%; background:#fff; border:3px solid var(--ink); }
.app input[type=range].rpe::-moz-range-thumb{ width:20px; height:20px; border-radius:50%; background:#fff; border:3px solid var(--ink); }
.app input[type=range].rpe.unset{ opacity:.55; }
.app input[type=range].rpe:focus-visible{ outline:3px solid var(--indigo); outline-offset:2px; border-radius:6px; }
.app .faces{ display:flex; justify-content:space-between; }
.app .faces button{ width:44px; height:44px; border-radius:50%; border:1.5px solid var(--line); background:var(--card); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; color:var(--faint);
  transition-property:background-color, border-color, color; transition-duration:150ms; }
.app .faces button .ms{ font-size:26px; }
.app .faces button[aria-pressed="true"]{ background:var(--indigo); border-color:var(--indigo); color:#fff; }
.app .feel-read{ text-align:center; font-size:12.5px; font-weight:800; margin-top:-4px; min-height:16px; }
body{ margin:0; background:var(--canvas); color:var(--ink); font-family:var(--font); font-size:1.125rem; line-height:1.55; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 32px; }
.sec-title{ text-align:center; margin:0 auto; max-width:18ch; font-size:clamp(2.25rem, 5vw, 3.75rem); font-weight:900; line-height:1; letter-spacing:-.04em; text-wrap:balance; }
.sec-sub{ text-align:center; margin:18px auto 0; max-width:48ch; color:var(--ink-2); text-wrap:pretty; }
button.pill{ font-family:inherit; }
section[id]{ scroll-margin-top:80px; }

/* ---------------- Nav ---------------- */
.nav{ position:sticky; top:0; z-index:50; background:rgba(250,248,245,.86); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.nav .wrap{ height:68px; display:flex; align-items:center; gap:24px; }
.nav .links{ display:flex; gap:4px; margin:0 auto; padding:0; list-style:none; }
.nav .links a{ display:inline-flex; align-items:center; height:40px; padding:0 14px; border-radius:20px; color:var(--ink-2); font-size:.9375rem; font-weight:500; text-decoration:none;
  transition-property:background-color, color; transition-duration:150ms; }
.nav .links a[aria-current="page"]{ color:var(--ink); font-weight:700; }
@media (hover:hover){ .nav .links a:hover{ background:#efebe5; color:var(--ink); } }
.menu-btn{ display:none; width:44px; height:44px; border-radius:22px; border:1.5px solid #d9d3ca; background:transparent; color:var(--ink); padding:0; cursor:pointer;
  align-items:center; justify-content:center; -webkit-tap-highlight-color:transparent; }
.menu-btn svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.menu-btn .x{ display:none; }
.menu-btn[aria-expanded="true"] .x{ display:block; }
.menu-btn[aria-expanded="true"] .bars{ display:none; }
.mmenu{ display:none; }
.ios-bar{ display:none; background:var(--ink); color:#fff; font-size:.875rem; font-weight:500; }
.ios-bar .wrap{ height:44px; display:flex; align-items:center; justify-content:center; gap:10px; }
.ios-bar b{ font-weight:700; }
.ios-bar button{ margin-left:6px; border:none; background:none; color:#fff; text-decoration:underline; text-underline-offset:3px; font:inherit; font-weight:700; cursor:pointer; padding:6px; }
html.is-ios .ios-bar{ display:block; }

/* ---------------- Hero ---------------- */
.hero{ text-align:center; padding:96px 0 0; }
.hero h1{ margin:0 auto; font-size:clamp(3rem, 7.4vw, 6.25rem); font-weight:700; line-height:.98; letter-spacing:-.045em; }
.hero .line{ margin:24px auto 0; max-width:30ch; font-size:clamp(1.25rem, 2.2vw, 1.875rem); line-height:1.3; font-weight:600; letter-spacing:-.015em; color:var(--orange-ink); text-wrap:balance; }

.switch-row{ position:relative; display:flex; justify-content:center; margin-top:72px; scroll-margin-top:84px; }
.switch{ display:flex; gap:4px; padding:5px; border-radius:28px; background:#fff; box-shadow:0 0 0 1px var(--hair), 0 10px 26px -12px rgba(60,40,20,.2); }
.switch button{ height:46px; padding:0 24px; border:none; border-radius:23px; background:none; font:inherit; font-size:1rem; font-weight:700; color:var(--ink-3); cursor:pointer;
  display:inline-flex; align-items:center; gap:8px; -webkit-tap-highlight-color:transparent; transition-property:background-color, color; transition-duration:150ms; }
.switch button[aria-selected="true"]{ background:var(--ink); color:#fff; }
.switch img{ width:24px; height:24px; border-radius:50%; background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); }
/* One-off hint: three pulses, then it shrinks away on its own (or on the first tap). It pops with scale, never opacity,
   so its text never sits half-transparent at low contrast. */
.hint{ display:none; }
@media (prefers-reduced-motion:no-preference){
  .hint{ display:flex; position:absolute; left:50%; top:-48px; translate:-50% 0; align-items:center; gap:6px; height:34px; padding:0 14px; border-radius:17px;
    background:var(--orange); color:var(--ink); font-size:.875rem; font-weight:700; white-space:nowrap; pointer-events:none; scale:0; }
  .hint::after{ content:''; position:absolute; left:50%; bottom:-5px; width:10px; height:10px; margin-left:-5px; background:var(--orange); rotate:45deg; }
  .switch-row.hinting .hint{ animation:hint-in 300ms var(--ease-out) both, hint-bob 900ms 300ms ease-in-out 3 alternate, hint-out 300ms 3.1s ease-out forwards; }
  .switch-row.hinting .switch{ animation:ring 1.2s 300ms ease-out 3; }
}
@keyframes hint-in{ from{ scale:0; translate:-50% 8px; } to{ scale:1; translate:-50% 0; } }
@keyframes hint-bob{ to{ translate:-50% -4px; } }
@keyframes hint-out{ to{ scale:0; } }
@keyframes ring{ 0%{ box-shadow:0 0 0 1px var(--hair), 0 0 0 0 rgba(240,138,75,.55); } 100%{ box-shadow:0 0 0 1px var(--hair), 0 0 0 16px rgba(240,138,75,0); } }

/* --fit (set from the window height) scales the 760 px phone so the switch and the whole phone share one screen. */
.stage{ --fit:1; position:relative; height:calc(760px * var(--fit) + 24px); margin-top:64px; text-align:left; }
.stage .demo .grow{ transform:scale(var(--fit)); transform-origin:50% 0; }
.stage .demo{ position:absolute; left:50%; top:0; translate:-50% 0; z-index:3; }
/* Grows 92% -> 100% as it scrolls into view (scroll-driven; browsers without it show 100%). */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline: view()){
    .grow{ animation:grow linear both; animation-timeline:view(); animation-range:entry 0% cover 45%; transform-origin:50% 0; }
  }
}
@keyframes grow{ from{ scale:.92; } to{ scale:1; } }
.explain{ position:absolute; z-index:4; right:calc(50% + 236px); top:150px; width:300px; text-align:right; }
.explain h2{ margin:0; font-size:2rem; font-weight:900; letter-spacing:-.03em; line-height:1.08; text-wrap:balance; }
.explain p{ margin:12px 0 0 auto; max-width:30ch; color:var(--ink-2); font-size:1.0625rem; text-wrap:pretty; }
.explain [hidden]{ display:none; }
.bg-card{ position:absolute; z-index:1; width:300px; filter:blur(5px); opacity:.55; pointer-events:none; }
.bg-card.g1{ left:4%;  top:470px; width:320px; rotate:3deg; }
.bg-card.g3{ right:1%; top:30px;  width:320px; rotate:4deg; }
.bg-card.g4{ right:5%; top:470px; width:300px; rotate:-3deg; }
.bg-card.g4 .mrow{ margin-top:10px; }
.chip-f{ position:absolute; z-index:4; display:inline-flex; align-items:center; gap:10px; height:48px; padding:0 18px 0 8px; border-radius:24px;
  background:#fff; box-shadow:0 1px 0 rgba(28,26,36,.04), 0 14px 34px -8px rgba(60,40,20,.22); font-size:.9375rem; font-weight:700; white-space:nowrap; }
.chip-f .ic{ width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Material Symbols Rounded'; font-size:18px; }
.chip-f.c2{ left:calc(50% + 200px); top:250px; } .chip-f.c2 .ic{ background:var(--orange-soft); color:var(--flame); }
.chip-f.c3{ left:calc(50% - 400px); top:560px; } .chip-f.c3 .ic{ background:var(--yellow-soft); color:#8a6410; }
.chip-f.c4{ left:calc(50% + 196px); top:600px; } .chip-f.c4 .ic{ background:var(--mint-soft); color:var(--good); }
.peek{ position:absolute; z-index:2; left:calc(50% + 70px); top:-64px; width:112px; height:112px; rotate:14deg; }
.peek img{ display:block; width:100%; height:100%; }
.only-mob{ display:none; }

/* Mobile demo: fixed height, no inner scroll (accepted 2026-11-14). */
.app.device.frameless .screen, .app.device.frameless .c-body{ overflow:hidden; }

/* ---------------- Features (A) ---------------- */
.features{ padding:150px 0 0; }
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:56px; }
.tile{ background:var(--tile); border-radius:36px; padding:28px; display:flex; flex-direction:column; }
.tile-ui{ flex:1; min-height:380px; display:flex; align-items:center; justify-content:center; padding:12px 0 28px; }
.tile h3{ margin:0; font-size:1.5rem; font-weight:800; letter-spacing:-.02em; line-height:1.2; }
.tile p{ margin:8px 0 0; color:var(--ink-2); font-size:1.0625rem; max-width:44ch; text-wrap:pretty; }

/* Bigger, clearly tappable distance switch on the goal card */
.app.goalx{ max-width:400px; }
.app .gx-seg{ gap:6px; padding:0; background:none; margin-bottom:14px; }
.app .gx-seg button{ height:48px; border-radius:24px; font-size:15px; background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1.5px #ddd6cc; }
.app .gx-seg button[aria-pressed="true"]{ background:var(--ink); color:#fff; box-shadow:none; }
@media (hover:hover){ .app .gx-seg button[aria-pressed="false"]:hover{ box-shadow:inset 0 0 0 1.5px var(--ink); } }
.app .gx-seg button:active{ scale:.96; }
.app .gx-seg button{ transition-property:background-color, color, box-shadow, scale; transition-duration:150ms; transition-timing-function:ease-out; }

/* ---------------- Join + footer (A) ---------------- */
.join{ padding:150px 0 0; }
.join-card{ position:relative; background:var(--tile); border-radius:44px; padding:0 32px 72px; text-align:center; margin-top:120px; }
.join-card .wave{ display:block; width:220px; height:303px; margin:0 auto; transform:translateY(-120px); margin-bottom:-120px; filter:drop-shadow(0 22px 24px rgba(60,40,20,.16)); }
.join-card h2{ margin:10px 0 0; font-size:clamp(2.75rem, 6vw, 4.5rem); font-weight:900; letter-spacing:-.045em; line-height:.98; }
.join-card p{ margin:16px auto 0; max-width:40ch; color:var(--ink-2); text-wrap:balance; }
footer{ padding:64px 0 48px; }
footer .wrap{ display:grid; grid-template-columns:auto 1fr; gap:20px 40px; align-items:start; }
footer .meta{ display:flex; flex-direction:column; gap:14px; align-items:flex-end; text-align:right; }

/* ---------------- Join panel (<dialog>) + iPhone notice ---------------- */
/* The dialog has no padding, so a click whose target is the dialog itself is a click on the backdrop. */
.jp{ width:calc(100% - 48px); max-width:500px; max-height:calc(100vh - 48px); overflow:auto; overscroll-behavior:contain; background:#fff; color:var(--ink); border:none; border-radius:34px; padding:0;
  box-shadow:0 40px 80px -30px rgba(28,26,36,.5); }
.jp:not([open]){ display:none; }
.jp::backdrop{ background:rgba(28,26,36,.42); }
.jp-in{ padding:30px 30px 26px; }
@media (prefers-reduced-motion:no-preference){
  .jp[open]{ animation:jp-in 260ms var(--ease-out) both; }
}
@keyframes jp-in{ from{ opacity:0; translate:0 12px; } to{ opacity:1; translate:0 0; } }
.jp .handle{ display:none; }
.jp-top{ display:flex; align-items:center; gap:12px; }
.jp-top .g{ width:44px; height:44px; border-radius:50%; overflow:hidden; background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); flex:none; }
.jp-top .g img{ display:block; width:100%; height:100%; }
.jp-top h2{ flex:1; margin:0; font-size:1.5rem; font-weight:900; letter-spacing:-.03em; line-height:1.1; }
.jp-x{ width:44px; height:44px; border-radius:50%; border:none; background:var(--tile); color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center; flex:none; }
.jp-x svg{ width:18px; height:18px; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.jp-sub{ margin:14px 0 0; color:var(--ink-2); font-size:1rem; }
.ios-note{ display:none; gap:12px; align-items:flex-start; margin-top:18px; padding:14px 16px; border-radius:20px; background:var(--yellow-soft); font-size:.9375rem; line-height:1.45; color:#4d3a10; }
.ios-note b{ display:block; color:var(--ink); font-size:1rem; }
.ios-note .ic{ flex:none; width:32px; height:32px; border-radius:10px; background:var(--yellow); color:var(--ink); display:flex; align-items:center; justify-content:center; font-family:'Material Symbols Rounded'; font-size:20px; }
.jp.ios .ios-note{ display:flex; }
.jsteps{ list-style:none; margin:22px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.jstep{ display:grid; grid-template-columns:40px 1fr; gap:4px 14px; padding:18px 18px 18px 16px; border-radius:24px; background:var(--canvas); box-shadow:inset 0 0 0 1.5px var(--hair); }
.jstep .n{ grid-row:span 3; width:40px; height:40px; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 1.5px #d9d2c7; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.0625rem; }
.jstep h3{ margin:0; font-size:1.0625rem; font-weight:800; line-height:1.3; padding-top:8px; }
.jstep p{ margin:0; font-size:.9375rem; color:var(--ink-2); line-height:1.45; }
.jstep .pill{ justify-self:start; margin-top:12px; height:46px; font-size:.9375rem; }
.jstep.current{ background:#fff; box-shadow:inset 0 0 0 2px var(--ink); }
.jstep.current .n{ background:var(--ink); color:#fff; box-shadow:none; }
.jstep.done .n{ background:var(--good); color:#fff; box-shadow:none; font-family:'Material Symbols Rounded'; font-size:22px; font-weight:400; }
.jstep.done .pill{ background:transparent; border-color:#d9d3ca; }
.jstep .state{ display:none; font-size:.875rem; font-weight:700; color:var(--good); margin-top:8px; }
.jstep.done .state{ display:block; }
.jp-foot{ margin:18px 0 0; font-size:.875rem; color:var(--ink-3); }
.jp-foot a{ color:var(--ink); font-weight:600; text-underline-offset:3px; }

@media (max-width:1100px){
  .bg-card, .chip-f{ display:none; }
  .explain{ display:none; }
}
@media (max-width:900px){
  .nav .links{ display:none; }
  .menu-btn{ display:inline-flex; margin-left:auto; }
  .nav .wrap{ gap:10px; }
  .mmenu{ position:absolute; left:0; right:0; top:100%; background:var(--canvas); padding:8px 16px 24px; box-shadow:0 24px 40px -20px rgba(60,40,20,.25); }
  .mmenu.open{ display:block; }
  .mmenu ul{ list-style:none; margin:0; padding:0; }
  .mmenu li + li{ border-top:1px solid var(--hair); }
  .mmenu a{ display:flex; align-items:center; justify-content:space-between; min-height:60px; color:var(--ink); text-decoration:none; font-size:1.375rem; font-weight:800; letter-spacing:-.02em; }
  .mmenu a::after{ content:'arrow_forward'; font-family:'Material Symbols Rounded'; font-size:22px; width:1em; overflow:hidden; font-weight:400; color:var(--ink-3); }
}
@media (max-width:760px){
  .wrap{ padding:0 16px; }
  .nav .wrap{ height:60px; }
  .nav .pill.sm{ height:44px; padding:0 16px; border-radius:22px; }
  .hero{ padding-top:48px; }
  .hero h1{ font-size:clamp(2.75rem, 13vw, 3.5rem); }
  .hero .line{ font-size:1.1875rem; margin-top:18px; }
  .switch-row{ margin-top:72px; }
  .switch{ width:100%; }
  .switch button{ flex:1; justify-content:center; padding:0 6px; }
  .stage{ height:auto; margin-top:72px; }
  .only-desk{ display:none !important; }
  .only-mob{ display:block; }
  .stage .demo{ position:relative; left:auto; translate:none; }
  .peek{ left:auto; right:22px; top:-58px; width:84px; height:84px; rotate:8deg; }
  .explain{ display:block; position:static; width:auto; text-align:left; margin-top:20px; }
  .explain h2{ font-size:1.5rem; }
  .explain p{ margin-left:0; font-size:1rem; }
  .features{ padding-top:96px; }
  .grid{ grid-template-columns:1fr; gap:14px; margin-top:36px; }
  .tile{ padding:18px 16px 24px; border-radius:30px; }
  .tile-ui{ min-height:0; padding:4px 0 22px; }
  .join{ padding-top:72px; }
  .join-card{ padding:0 18px 44px; border-radius:32px; margin-top:96px; }
  .join-card .wave{ width:170px; height:234px; transform:translateY(-92px); margin-bottom:-92px; }
  footer .wrap{ grid-template-columns:1fr; }
  footer .meta{ align-items:flex-start; text-align:left; }
  .ios-bar .wrap{ height:auto; padding-top:10px; padding-bottom:10px; flex-wrap:wrap; text-align:center; gap:2px 8px; }
}
/* Join panel becomes a bottom sheet below 640 px */
@media (max-width:639px){
  .jp{ width:100%; max-width:none; max-height:92vh; margin:auto 0 0; border-radius:30px 30px 0 0; }
  .jp-in{ padding:10px 18px 28px; }
  .jp .handle{ display:block; width:40px; height:5px; border-radius:3px; background:#e2dcd3; margin:0 auto 14px; }
  .jp-top h2{ font-size:1.375rem; }
  .jstep{ padding:16px 14px; }
  .jstep .pill{ justify-self:stretch; }
  @media (prefers-reduced-motion:no-preference){
    .jp[open]{ animation:sheet-in 300ms cubic-bezier(0.32,0.72,0,1) both; }
  }
}
@keyframes sheet-in{ from{ translate:0 100%; } to{ translate:0 0; } }
/* Peek sits on the demo wrapper (behind the screen), so it follows the grow scale. */
.grow{ position:relative; }
.grow > [data-kit]{ position:relative; z-index:1; }
/* Reserve the demo's height before kit.js draws it, so nothing below it shifts. */
[data-kit="demo"]{ min-height:760px; }
[data-kit="demo-frameless"]{ min-height:clamp(440px, calc(100svh - 200px), 620px); }
.stage .demo .peek{ left:auto; right:-6px; top:-64px; z-index:0; }
@media (max-width:760px){ .stage .demo .peek{ right:22px; top:-58px; } }
@media (max-width:760px){
  .stage{ display:flex; flex-direction:column; }
  .stage .explain{ order:2; margin-top:22px; }
}
.jstep > :not(.n){ grid-column:2; }
.stores{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:34px; }
.store-btn{ display:inline-flex; align-items:center; gap:10px; min-height:55px; padding:11px 20px 11px 16px; border:none; border-radius:13px;
  font:inherit; text-align:left; -webkit-tap-highlight-color:transparent;
  transition-property:scale, background-color; transition-duration:150ms; transition-timing-function:ease-out; }
.store-btn svg{ width:26px; height:26px; flex:none; fill:currentColor; }
.store-btn span{ display:flex; flex-direction:column; }
.store-btn small{ font-size:.75rem; font-weight:500; line-height:1.1; letter-spacing:-.005em; }
.store-btn b{ font-size:1.0625rem; font-weight:600; line-height:1.2; letter-spacing:-.01em; }
/* Android: the app's indigo. White on #6670BF measures 4.53:1 (AA). */
.store-btn.android{ background:var(--indigo); color:#fff; cursor:pointer; }
.store-btn.android:active{ scale:.96; }
@media (hover:hover){ .store-btn.android:hover{ background:#5a63b0; } }
/* iPhone: disabled. Grey and muted, no hover, no press; the same type as the Android button. */
.store-btn.soon{ background:#ebe7e1; color:#8a8594; cursor:not-allowed; }
.mmenu .stores{ margin-top:18px; }
/* #0f7a5c, not --good: white on --good is 3.6:1, on this green 5.3:1 (AA for small bold text). */
.tag-free{ display:inline-flex; align-items:center; height:30px; padding:0 14px; border-radius:15px; background:#0f7a5c; color:#fff; font-size:.875rem; font-weight:800; white-space:nowrap; }
.jp-free{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 0; font-size:.9375rem; color:var(--ink-2); }
.jp-free .tag-free{ height:26px; font-size:.8125rem; }
@media (max-width:760px){
  .stores .store-btn{ flex:1 1 0; min-width:0; padding:10px 12px; }
  .stores{ margin-top:28px; }
  /* Mobile: the frameless demo is as tall as the screen allows next to the switch (no inner scroll). */
  .app.device.frameless .phone{ height:clamp(440px, calc(100svh - 200px), 620px); }
  .stage .demo .grow{ transform:none; }
  .switch-row{ margin-top:56px; }
  .stage{ margin-top:64px; }
}
/* ================= Round 4 ================= */
/* Android store button: soft indigo glow, a slow shine sweep every few seconds, a lift on hover.
   The shine sits under the label (z-index), so text contrast stays white on indigo (4.53:1). */
.store-btn.android{ position:relative; overflow:hidden; isolation:isolate;
  box-shadow:0 10px 26px -8px rgba(102,112,191,.55), 0 0 0 1px rgba(102,112,191,.15);
  transition-property:scale, translate, background-color, box-shadow; transition-duration:200ms; transition-timing-function:cubic-bezier(0.2,0,0,1); }
.store-btn.android > *{ position:relative; z-index:1; }
.store-btn.android::before{ content:''; position:absolute; z-index:0; top:0; bottom:0; left:-60%; width:45%; pointer-events:none;
  background:linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%); transform:skewX(-18deg); opacity:0; }
@media (prefers-reduced-motion:no-preference){
  .store-btn.android::before{ animation:shine 4.5s cubic-bezier(0.4,0,0.2,1) 1.2s infinite; }
}
/* Moved with translate (400% of its own 45% width = from -60% to 120% of the button), not left: compositor only, no layout per frame. */
@keyframes shine{ 0%{ translate:0 0; opacity:0; } 6%{ opacity:1; } 28%{ translate:400% 0; opacity:1; } 29%, 100%{ translate:400% 0; opacity:0; } }
@media (hover:hover){
  .store-btn.android:hover{ translate:0 -2px; background:#6d77c6; box-shadow:0 16px 34px -10px rgba(102,112,191,.65), 0 0 0 1px rgba(102,112,191,.2); }
}
.store-btn.android:active{ translate:0 0; scale:.96; }
.store-btn.soon{ box-shadow:none; }

/* Small hover / press feedback on pills, switch and dots */
@media (hover:hover){
  .pill:not([aria-disabled="true"]){ transition-property:scale, translate, background-color, box-shadow; }
  .pill.primary:hover, .pill.dark:hover{ translate:0 -1px; box-shadow:0 8px 18px -10px rgba(28,26,36,.45); }
  .pill.outline:not(.soon):hover{ background:#f0ece6; }
  .switch button[aria-selected="false"]:hover{ background:#f1eee9; color:var(--ink); }
}
.switch button:active{ scale:.96; }
.switch button{ transition-property:background-color, color, scale; }

/* Smooth jumps from the nav, landing under the sticky nav bar */
@media (prefers-reduced-motion:no-preference){ html{ scroll-behavior:smooth; } }
section[id]{ scroll-margin-top:84px; }

/* Reveal: hidden only once JS has added .js-reveal, so content is never lost without JS */
.js-reveal .reveal{ transition-property:opacity, translate; transition-duration:500ms; transition-timing-function:cubic-bezier(0.2,0,0,1); }
.js-reveal .reveal:not(.in){ opacity:0; translate:0 18px; }

/* Mobile demo: keep the chat input above the bottom fade */
.app .composer{ z-index:7; }
.app.on-coach .phone::after{ display:none; }
/* Closing card: the app's dot texture (onboarding_scaffold.dart _DotTexturePainter): 1 px radius dots on a 13 px grid
   from a 6.5 px offset, accent1 #6670BF at 0.28 alpha, fading to nothing. Here the fade is an ellipse from the top
   centre, strongest behind Blaze and gone before the paragraph and buttons, so text contrast is unchanged. */
.join-card{ isolation:isolate; }
.join-card::before{ content:''; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none;
  background-image:radial-gradient(circle at 6.5px 6.5px, rgba(102,112,191,.28) 0 1px, rgba(102,112,191,0) 1.6px);
  background-size:13px 13px;
  -webkit-mask-image:radial-gradient(ellipse 62% 78% at 50% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
          mask-image:radial-gradient(ellipse 62% 78% at 50% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%); }
@media (max-width:760px){
  .join-card::before{ -webkit-mask-image:radial-gradient(ellipse 90% 62% at 50% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
                              mask-image:radial-gradient(ellipse 90% 62% at 50% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%); }
}

/* ================= s02: How it works, Pricing, FAQ (ported from style-86-landing-site.css) ================= */
/* ---------------- How it works ---------------- */
.how{ padding:160px 0 0; }
.steps{ list-style:none; margin:72px 0 0; padding:0; position:relative; }
.steps::before{ content:''; position:absolute; left:27px; top:28px; bottom:28px; width:2px; background:repeating-linear-gradient(to bottom, #d9d2c7 0 6px, transparent 6px 12px); }
.step{ position:relative; display:grid; grid-template-columns:56px minmax(0, 1fr) minmax(0, 1.05fr); gap:0 40px; align-items:start; padding-bottom:88px; }
.step:last-child{ padding-bottom:0; }
.step .num{ position:relative; z-index:1; width:56px; height:56px; border-radius:50%; background:var(--canvas); box-shadow:inset 0 0 0 2px var(--ink); display:flex; align-items:center; justify-content:center;
  font-family:var(--pixel); font-size:1.5rem; letter-spacing:-.06em; }
.step:last-child .num{ background:var(--orange); box-shadow:none; }
.step .copy{ padding-top:6px; }
.step h3{ margin:0; font-size:clamp(1.625rem, 2.8vw, 2.25rem); font-weight:900; letter-spacing:-.035em; line-height:1.08; text-wrap:balance; }
.step p{ margin:14px 0 0; color:var(--ink-2); max-width:44ch; text-wrap:pretty; }
.step ul{ margin:16px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; max-width:46ch; }
.step li{ position:relative; padding-left:22px; color:var(--ink-2); font-size:1rem; line-height:1.5; }
.step li::before{ content:''; position:absolute; left:2px; top:.6em; width:8px; height:8px; border-radius:50%; background:var(--orange); }
.step .piece{ background:var(--tile); border-radius:32px; padding:28px; display:flex; justify-content:center; }

/* Step 1: block builder */
.app.blockx{ width:100%; max-width:440px; background:var(--card); border:1px solid var(--line); border-radius:24px; padding:16px 16px 14px; box-shadow:0 18px 40px rgba(28,26,36,.06); }
.app .bx-in{ display:flex; flex-wrap:wrap; gap:6px; }
.app .bx-in > span{ display:inline-flex; align-items:center; gap:5px; height:28px; padding:0 10px; border-radius:14px; background:var(--canvas); font-size:12px; font-weight:700; color:var(--ink); }
.app .bx-in .ms{ font-size:15px; color:var(--indigo); }
.app .bx-days{ display:flex; align-items:center; gap:8px; margin-top:12px; font-size:12px; font-weight:700; color:var(--muted); }
.app .bx-days .seg{ display:flex; gap:4px; }
.app .bx-days button{ min-width:40px; height:32px; border-radius:16px; border:none; background:var(--canvas); font-size:12.5px; font-weight:800; color:var(--ink); cursor:pointer; padding:0 10px; }
.app .bx-days button[aria-pressed="true"]{ background:var(--ink); color:#fff; }
.app .bx-chart{ display:flex; gap:5px; align-items:flex-end; height:150px; margin-top:16px; }
.app .bx-w{ flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:stretch; gap:2px; border:none; background:none; padding:0; cursor:pointer; border-radius:8px; }
.app .bx-w i{ display:block; border-radius:3px; background:var(--planned); }
.app .bx-w i.hard{ background:var(--indigo); border-radius:6px 6px 3px 3px; }
.app .bx-w.deload i{ background:#ebe8f6; } .app .bx-w.deload i.hard{ background:#b7bbe4; }
.app .bx-w.race i{ background:var(--orange); }
.app .bx-w[aria-pressed="true"]{ outline:2px solid var(--ink); outline-offset:2px; }
.app .bx-ph{ display:flex; gap:5px; margin-top:8px; }
.app .bx-ph span{ font-size:9.5px; font-weight:800; letter-spacing:.04em; color:var(--muted); text-align:center; padding-top:5px; border-top:2px solid; white-space:nowrap; overflow:hidden; }
.app .bx-ph .p-b{ border-color:var(--planned); } .app .bx-ph .p-s{ border-color:var(--indigo); color:var(--indigo); } .app .bx-ph .p-t{ border-color:var(--yellow); color:#8a6410; } .app .bx-ph .p-r{ border-color:var(--orange); color:var(--orange-ink); }
.app .bx-detail{ margin-top:14px; padding:12px 14px; border-radius:16px; background:var(--canvas); display:grid; grid-template-columns:1fr auto; gap:4px 12px; align-items:baseline; }
.app .bx-detail b{ font-size:14px; font-weight:800; }
.app .bx-detail .km{ font-family:var(--pixel); font-size:26px; letter-spacing:-.08em; line-height:1; text-align:right; }
.app .bx-detail p{ grid-column:1 / -1; margin:0; font-size:12px; color:var(--muted); font-weight:600; line-height:1.45; }
.app .bx-key{ display:flex; gap:14px; margin-top:10px; font-size:11px; font-weight:700; color:var(--muted); }
.app .bx-key i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; vertical-align:-1px; }

/* Step 2: log + the week's sessions (log styles live in the kit) */
.app.logx{ width:100%; background:var(--card); border-radius:26px; padding:16px 16px 18px; box-shadow:0 18px 40px rgba(28,26,36,.08); display:flex; flex-direction:column; gap:12px; }
.app .lx-head{ display:flex; justify-content:space-between; align-items:center; }
.app .lx-head b{ font-size:16px; font-weight:800; }
.app .lx-head span{ font-size:12px; color:var(--muted); font-weight:700; }
.app .lx-done{ display:flex; gap:10px; align-items:flex-start; padding:12px; border-radius:18px; background:var(--good-soft); color:#0f5a45; font-size:12.5px; font-weight:600; line-height:1.45; }
.app .lx-done .ms{ font-size:20px; color:var(--good); }
.app.wkx{ width:100%; background:var(--card); border-radius:26px; padding:16px 10px 10px; box-shadow:0 18px 40px rgba(28,26,36,.08); }
.app.wkx .wx-top{ display:flex; justify-content:space-between; align-items:baseline; padding:0 8px 10px; }
.app.wkx .wx-top b{ font-size:16px; font-weight:800; }
.app.wkx .wx-top span{ font-size:12px; color:var(--muted); font-weight:700; }
.app.wkx .day{ cursor:default; }
@media (prefers-reduced-motion:no-preference){ .app.wkx .day.just{ animation:just-done 1.2s ease-out; } }
@keyframes just-done{ from{ background:var(--good-soft); } to{ background:transparent; } }
.log-pair{ grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-width:0; gap:16px; align-items:start; background:var(--tile); border-radius:32px; padding:24px; margin-top:28px; }

/* Step 3: fitness progression */
.app.fitx{ width:100%; max-width:420px; background:var(--card); border-radius:28px; padding:18px; box-shadow:0 18px 40px rgba(28,26,36,.08); }
.app .fx-head{ display:flex; justify-content:space-between; align-items:baseline; }
.app .fx-head b{ font-size:16px; font-weight:800; }
.app .fx-head span{ font-size:11.5px; color:var(--muted); font-weight:600; }
.app .fx-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.app .fx-c{ padding:12px; border-radius:18px; background:var(--canvas); transition-property:background-color; transition-duration:300ms; }
.app .fx-c.up{ background:var(--good-soft); }
.app .fx-c small{ display:block; font-size:10.5px; font-weight:700; color:var(--muted); }
.app .fx-c b{ display:block; font-family:var(--pixel); font-weight:400; font-size:28px; letter-spacing:-.08em; line-height:1; margin-top:8px; }
.app .fx-c.up b{ color:#0d6e52; }
.app .fx-c b span{ font-family:var(--font); font-size:12px; font-weight:800; letter-spacing:0; color:var(--muted); margin-left:3px; }
.app .gain{ display:inline-flex; align-items:center; gap:3px; margin-top:8px; height:24px; padding:0 9px 0 6px; border-radius:12px; background:var(--good); color:#fff; font-size:11.5px; font-weight:800; }
.app .gain .ms{ font-size:15px; }

/* Step 4: adjust (proposal) */
.app.adjx{ width:100%; max-width:400px; }
.app.adjx .notif{ margin-top:0; }
.app .adj-acts{ display:flex; gap:8px; margin-top:12px; }
.app .adj-acts .btn{ flex:1; height:40px; }
.app .adj-out{ margin-top:12px; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12.5px; font-weight:700; color:var(--muted); }
.app .adj-out .verdict.no{ color:var(--muted); }
.app .adj-limits{ display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.app .adj-limits > span{ display:inline-flex; align-items:center; gap:5px; height:28px; padding:0 10px; border-radius:14px; background:#fff; font-size:11.5px; font-weight:800; color:var(--ink); box-shadow:0 0 0 1px var(--line); }
.app .adj-limits .ms{ font-size:15px; color:var(--good); }

/* ---------------- Pricing ---------------- */
.pricing{ padding:160px 0 0; }
.plans{ display:grid; grid-template-columns:1fr 1fr; gap:20px; max-width:880px; margin:56px auto 0; }
.plan{ position:relative; border-radius:36px; padding:34px 32px 32px; background:var(--tile); display:flex; flex-direction:column; }
.plan.best{ background:#fff; box-shadow:inset 0 0 0 2px var(--ink), 0 30px 60px -30px rgba(60,40,20,.3); }
.plan .save{ position:absolute; top:-15px; left:32px; height:30px; padding:0 14px; border-radius:15px; background:var(--orange); color:var(--ink); font-size:.875rem; font-weight:800; display:flex; align-items:center; }
.plan h3{ margin:0; font-size:1.25rem; font-weight:800; }
.plan .price{ display:flex; align-items:baseline; gap:8px; margin-top:18px; }
.plan .price b{ font-size:3.5rem; font-weight:900; letter-spacing:-.04em; line-height:1; font-variant-numeric:tabular-nums; }
.plan .price span{ font-size:1rem; color:var(--ink-3); font-weight:500; }
.plan .per{ margin:8px 0 0; font-size:1rem; color:var(--ink-2); }
.plan .per s{ color:var(--ink-3); }
.plan .pill{ margin-top:28px; }
.incl{ max-width:880px; margin:28px auto 0; display:grid; grid-template-columns:repeat(2, 1fr); gap:10px 28px; padding:0; list-style:none; }
.incl li{ display:flex; gap:10px; font-size:1rem; color:var(--ink-2); }
.incl li::before{ content:'check'; font-family:'Material Symbols Rounded'; font-size:20px; width:1em; flex:none; overflow:hidden; line-height:1.3; color:var(--good); }
.fine{ max-width:880px; margin:28px auto 0; text-align:center; font-size:.9375rem; color:var(--ink-3); text-wrap:balance; }

/* ---------------- FAQ ---------------- */
.faq{ padding:160px 0 0; }
.qs{ max-width:820px; margin:56px auto 0; display:flex; flex-direction:column; gap:10px; }
.qs details{ border-radius:24px; background:var(--tile); }
.qs summary{ list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:72px; padding:16px 22px 16px 26px; cursor:pointer;
  font-size:1.125rem; font-weight:700; line-height:1.35; border-radius:24px; -webkit-tap-highlight-color:transparent; }
.qs summary::-webkit-details-marker{ display:none; }
.qs summary::after{ content:'add'; flex:none; width:36px; height:36px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center;
  font-family:'Material Symbols Rounded'; font-size:22px; font-weight:400; transition:rotate 200ms var(--ease-out); }
.qs details[open] summary::after{ rotate:45deg; }
.qs .a{ padding:0 26px 24px; color:var(--ink-2); max-width:62ch; }
.qs .a p{ margin:0; }
.qs .a p + p{ margin-top:10px; }
.qs a{ color:var(--ink); text-decoration-color:#cfc8be; text-underline-offset:3px; font-weight:600; }

/* How it works, step 1: carousel */
.cx{ width:100%; max-width:460px; }
.cx-track{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; border-radius:24px; overscroll-behavior-x:contain; }
.cx-track::-webkit-scrollbar{ display:none; }
.cx-track:focus-visible{ outline:3px solid var(--indigo); outline-offset:3px; }
.cx-slide{ flex:0 0 100%; scroll-snap-align:start; padding:0 2px; }
.cx-slide h4{ margin:2px 0 10px 4px; font-size:.9375rem; font-weight:800; color:var(--ink-2); }
.app.cx-app{ background:var(--card); border-radius:24px; padding:14px; box-shadow:0 18px 40px rgba(28,26,36,.06); height:468px; overflow:hidden; }
.app.cx-list{ display:flex; flex-direction:column; gap:2px; padding:10px; }
.app.cx-list{ justify-content:center; }
.app.cx-list .day{ cursor:default; padding:14px 8px; }
.app.cx-list .dinfo b{ font-size:14px; }
.app.cx-list .dinfo span{ font-size:12.5px; }
.app.cx-list .day:first-child{ border-top:none; }
.app.cx-list .dinfo span{ white-space:normal; }
.app .lv{ display:flex; align-items:center; gap:12px; padding:12px 8px; border-top:1px solid var(--line); }
.app .lv:first-child{ border-top:none; }
.app .lv .dinfo b{ text-transform:uppercase; letter-spacing:.06em; font-size:12.5px; }
.app .lv .dinfo span{ white-space:normal; line-height:1.4; }
.app .lv-ring{ width:40px; height:40px; flex:none; transform:rotate(-90deg); }
.app .lv-ring .trk{ fill:none; stroke:#f1eee9; stroke-width:5; }
.app .lv-ring .fill{ fill:none; stroke:var(--indigo); stroke-width:5; stroke-linecap:round; }
.app .lv-km{ flex:none; font-size:11px; font-weight:800; color:var(--indigo); background:var(--indigo-soft); padding:4px 8px; border-radius:9px; white-space:nowrap; }
.app .cx-note{ margin:10px 8px 0; font-size:12px; color:var(--muted); font-weight:600; line-height:1.5; }
.cx-dots{ display:flex; justify-content:center; gap:4px; margin-top:12px; }
.cx-dots button{ width:44px; height:28px; border:none; background:none; padding:0; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.cx-dots button::before{ content:''; width:8px; height:8px; border-radius:4px; background:#cfc8be; transition-property:width, background-color; transition-duration:200ms; }
.cx-dots button[aria-current="true"]::before{ width:24px; background:var(--ink); }

/* Step 2 spans the full width: copy on top, then the log + week pair. */
.step-wide .copy{ grid-column:2 / -1; }
.step-wide .log-pair{ grid-column:2 / -1; }

@media (max-width:900px){
  .step{ grid-template-columns:56px minmax(0,1fr); }
  .step .piece{ grid-column:2; margin-top:28px; }
  .step-wide .copy, .step-wide .log-pair{ grid-column:2; }
}
@media (max-width:760px){
  .how, .pricing, .faq{ padding-top:104px; }
  .steps{ margin-top:44px; }
  .steps::before{ left:19px; }
  .step{ grid-template-columns:40px minmax(0,1fr); gap:0 16px; padding-bottom:64px; }
  .step .num{ width:40px; height:40px; font-size:1.125rem; }
  .step .copy{ padding-top:2px; }
  .step .piece{ grid-column:1 / -1; margin-top:22px; padding:16px 12px; border-radius:28px; }
  .plans{ grid-template-columns:1fr; gap:24px; margin-top:44px; }
  .plan{ padding:28px 22px 22px; border-radius:30px; }
  .plan .pill{ width:100%; }
  .incl{ grid-template-columns:1fr; }
  .qs{ margin-top:36px; }
  .qs summary{ padding:14px 14px 14px 20px; font-size:1.0625rem; }
  .qs .a{ padding:0 20px 20px; font-size:1rem; }
  .step-wide .copy{ grid-column:2; }
  .step-wide .log-pair{ grid-column:1 / -1; }
  .log-pair{ grid-template-columns:1fr; gap:12px; padding:16px 12px; border-radius:28px; margin-top:22px; }
  .app.cx-app{ height:500px; }
}
.price-cta .stores{ margin-top:30px; }
.beta-free{ max-width:880px; margin:28px auto 0; display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; text-align:center; }
.beta-free p{ margin:0; color:var(--ink-2); }

/* Small hover / press feedback on carousel dots and FAQ toggles */
@media (hover:hover){
  .cx-dots button:hover::before{ background:#a9a29a; }
  .qs summary:hover::after{ background:#fbfaf7; }
}
.cx-dots button:active, .qs summary:active::after{ scale:.96; }

/* FAQ animation helpers */
.qs details{ overflow:clip; }

/* Step 2: description runs wider */
.step-wide .copy p{ max-width:70%; }
@media (max-width:760px){ .step-wide .copy p{ max-width:none; } }

/* Step 1 carousel: block chart first; progress bar on the active dot while playing */
.cx .app.blockx{ max-width:none; height:468px; box-shadow:0 18px 40px rgba(28,26,36,.06); border:none; border-radius:24px; display:flex; flex-direction:column; justify-content:center; }
.cx-dots button{ position:relative; }
/* The fill is a 24 px bar scaled on X from 0 to 1: linear, transform only, so it runs on the compositor. */
.cx-dots button i{ position:absolute; left:10px; top:10px; width:24px; height:8px; border-radius:4px; background:var(--ink); transform:scaleX(0); transform-origin:left center; display:none; will-change:transform; }
.cx.playing .cx-dots button[aria-current="true"]::before{ background:#cfc8be; }
.cx.playing .cx-dots button[aria-current="true"] i{ display:block; }
.cx.playing .cx-dots button.run i{ animation:dot-fill 3s linear forwards; }
@keyframes dot-fill{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
@media (max-width:760px){ .cx .app.blockx{ height:500px; } }

/* Step 3: round-2 fitness card with the progression switch */
.app .fx-pr{ grid-column:1 / -1; display:grid; grid-template-columns:auto 1fr 1fr; gap:6px 14px; align-items:baseline; }
.app .fx-pr small{ grid-column:1 / -1; }
.app .fx-pr em{ font-style:normal; font-size:12px; font-weight:800; }
.app .fx-pr > span{ font-size:12.5px; font-weight:700; }
.app .fx-pr > span i{ font-style:normal; font-size:10.5px; color:var(--muted); font-weight:600; display:block; }
.app .fx-pr.up > span{ color:#0d6e52; }
.app .fx-pr .pr-gain{ grid-column:1 / -1; }
.app .fx-pr .pr-gain .gain{ margin-top:2px; }
.app .fx-off{ margin-top:14px; }
.app .fx-off p{ margin:0 0 8px; font-size:12px; font-weight:700; color:var(--muted); }
.app .fx-off .seg{ display:flex; gap:4px; padding:4px; border-radius:16px; background:#f1eee9; }
.app .fx-off button{ flex:1; height:38px; border:none; border-radius:12px; background:none; font-size:12.5px; font-weight:800; color:var(--muted); cursor:pointer; transition-property:background-color, color, scale; transition-duration:150ms; }
.app .fx-off button[aria-pressed="true"]{ background:#fff; color:var(--ink); box-shadow:0 2px 6px rgba(60,40,20,.08); }
.app .fx-off button:active{ scale:.96; }
.app .fx-note{ margin-top:10px; font-size:12px; color:var(--muted); font-weight:600; line-height:1.45; min-height:3em; }

/* ================= Round 6: fitness card never changes size ================= */
/* Every gain pill keeps its space on every tab (visibility, not display), numbers use fixed widths, and the
   note reserves three lines, so switching tabs only changes colours and pills. */
.app.fitx .gain{ visibility:hidden; opacity:0; white-space:nowrap; transition-property:opacity; transition-duration:200ms; }
.app.fitx .gain.on{ visibility:visible; opacity:1; }
.app.fitx .fx-c b{ font-variant-numeric:tabular-nums; white-space:nowrap; }
.app.fitx .fx-c b .v{ display:inline-block; min-width:2.7em; margin:0; font:inherit; letter-spacing:inherit; color:inherit; }
.app.fitx .fx-pr > span{ min-width:0; }
.app.fitx .fx-pr > span b{ display:block; font-family:var(--font); font-size:12.5px; font-weight:700; letter-spacing:0; margin:0; color:inherit; font-variant-numeric:tabular-nums; }
.app.fitx .fx-pr .pr-gain{ display:block; min-height:26px; }
.app.fitx .fx-c{ transition-property:background-color, color; transition-duration:250ms; }
.app.fitx .fx-note{ min-height:calc(3 * 1.45em); }
/* The selected tab's bottom edge is the progress bar while auto-playing: linear scaleX in ink, like the carousel. */
.app.fitx .fx-off button{ position:relative; }
.app.fitx .fx-off button i{ position:absolute; left:14px; right:14px; bottom:4px; height:2px; border-radius:1px; background:var(--ink); transform:scaleX(0); transform-origin:left center; }
.app.fitx .fx-off button[aria-pressed="true"] i{ transform:scaleX(1); }
.app.fitx.playing .fx-off button[aria-pressed="true"] i{ transform:scaleX(0); }
.app.fitx.playing .fx-off button.run i{ animation:dot-fill 3s linear forwards; }

/* about */
.a-hero{ text-align:center; padding:104px 0 0; }
.a-hero h1{ margin:0 auto; max-width:13ch; font-size:clamp(2.75rem, 6.6vw, 5.5rem); font-weight:700; line-height:.98; letter-spacing:-.045em; text-wrap:balance; }
.a-hero .line{ margin:24px auto 0; max-width:32ch; font-size:clamp(1.25rem, 2.2vw, 1.75rem); line-height:1.3; font-weight:600; letter-spacing:-.015em; color:var(--orange-ink); text-wrap:balance; }

.mission{ padding:140px 0 0; }
.m-grid{ display:grid; grid-template-columns:1.1fr 1fr; gap:64px; align-items:center; }
.m-grid h2, .vision h2, .principles h2, .team h2{ margin:0; font-size:clamp(2rem, 4.4vw, 3.25rem); font-weight:900; letter-spacing:-.04em; line-height:1.02; text-wrap:balance; }
.m-grid p, .team p{ margin:18px 0 0; color:var(--ink-2); max-width:52ch; text-wrap:pretty; }
/* Blaze rises out of the top of the card, so his ears show above it */
.m-art{ position:relative; background:var(--tile); border-radius:40px; height:380px; margin-top:80px; display:flex; align-items:flex-end; justify-content:flex-end; padding-right:24px; }
.m-art img{ width:300px; height:auto; display:block; margin-right:-4px; border-radius:0 0 40px 40px; filter:drop-shadow(0 20px 22px rgba(60,40,20,.16)); }
/* The bubble sits beside Blaze, never on him: on wide screens it hangs off the card's left edge into the column gap,
   below 1100 px it moves above the card, with Blaze's ears rising into the space between them. */
.m-figure{ position:relative; }
.m-figure .note{ position:absolute; z-index:1; margin:0; left:-60px; top:112px; width:236px; padding:14px 18px; border-radius:20px 20px 6px 20px; background:#fff;
  box-shadow:0 14px 30px -12px rgba(60,40,20,.25); font-size:.9375rem; font-weight:500; line-height:1.4; text-wrap:pretty; }
/* Between 1101 and ~1200 px the column is too narrow for both, so Blaze shrinks to start 12 px right of the bubble
   (bubble ends 176 px into the column; Blaze ends 20 px inside the card's right edge). The card follows his height,
   so his ears always rise 74 px above it. */
@media (min-width:1101px){
  .m-art{ height:auto; }
  .m-art img{ width:min(300px, calc(100% - 184px)); margin-top:-74px; }
}
@media (max-width:1100px){
  .m-figure{ display:flex; flex-direction:column; }
  .m-figure .note{ position:static; align-self:flex-start; width:auto; max-width:300px; }
  .m-figure .m-art{ margin-top:88px; }
}

.vision{ padding:150px 0 0; text-align:center; }
.vision .big{ margin:24px auto 0; max-width:24ch; font-size:clamp(1.75rem, 3.6vw, 2.75rem); font-weight:800; letter-spacing:-.03em; line-height:1.15; text-wrap:balance; }
.vision .big span{ color:var(--orange-ink); }
.vision p.sub{ margin:22px auto 0; max-width:54ch; color:var(--ink-2); text-wrap:pretty; }

.principles{ padding:150px 0 0; }
.principles h2{ text-align:center; }
.pgrid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:52px; }
.pcard{ background:var(--tile); border-radius:32px; padding:30px 30px 32px; }
.pcard .ic{ width:48px; height:48px; border-radius:16px; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; font-family:'Material Symbols Rounded'; font-size:26px; line-height:1; color:var(--ink); }
.pcard h3{ margin:20px 0 0; font-size:1.375rem; font-weight:800; letter-spacing:-.02em; line-height:1.2; }
.pcard p{ margin:8px 0 0; color:var(--ink-2); font-size:1.0625rem; max-width:46ch; text-wrap:pretty; }

.team{ padding:150px 0 0; }
.t-card{ display:grid; grid-template-columns:1fr auto; gap:32px 56px; align-items:end; background:#fff; border-radius:40px; padding:56px; box-shadow:inset 0 0 0 1.5px var(--hair); }
.t-card .mail{ display:inline-flex; margin-top:22px; font-size:1.375rem; font-weight:800; color:var(--ink); text-decoration:underline; text-decoration-color:var(--orange); text-decoration-thickness:3px; text-underline-offset:6px; }

@media (max-width:760px){
  .a-hero{ padding-top:56px; }
  .a-hero h1{ font-size:clamp(2.5rem, 12vw, 3.25rem); }
  .a-hero .line{ font-size:1.1875rem; margin-top:18px; }
  .mission, .vision, .principles, .team{ padding-top:88px; }
  .m-grid{ grid-template-columns:1fr; gap:32px; }
  .m-art{ height:300px; border-radius:30px; margin-top:70px; }
  .m-art img{ width:230px; border-radius:0 0 30px 30px; }
  .m-figure .note{ max-width:260px; font-size:.875rem; }
  .m-figure .m-art{ margin-top:66px; }
  .pgrid{ grid-template-columns:1fr; gap:14px; margin-top:36px; }
  .pcard{ padding:24px 20px 26px; border-radius:28px; }
  .t-card{ grid-template-columns:1fr; padding:30px 22px; border-radius:30px; }
  .t-card .mail{ font-size:1.125rem; }
}

/* ---------------- Analytics consent banner (p005-s02, built by consent.js) ----------------
   Fixed, so it never shifts the layout (CLS 0). A manual popover: the UA popover box styles are reset here.
   Literal colors: the policy pages copy this block into their own inline styles (they don't load site.css). */
.consent{ position:fixed; inset:auto 16px 16px; z-index:50; width:auto; height:auto; max-width:560px; margin:0 auto; overflow:visible;
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; padding:14px 16px; border:none; border-radius:20px;
  background:#fff; color:#1c1a24; box-shadow:0 8px 30px rgba(28,26,36,.18); font:inherit; font-size:.875rem; line-height:1.45; }
.consent[hidden]{ display:none; }
.consent p{ flex:1 1 260px; margin:0; color:#4a4656; }
.consent a{ color:#1c1a24; font-weight:600; text-underline-offset:3px; }
.consent-btns{ display:flex; flex:1 1 auto; gap:8px; }
.consent-btns button{ flex:1 1 0; min-width:96px; height:44px; padding:0 18px; border:1.5px solid #1c1a24; border-radius:22px;
  background:#fff; color:#1c1a24; font:inherit; font-weight:700; cursor:pointer; }
.consent-btns button:focus-visible{ outline:2px solid #6670bf; outline-offset:2px; }
