/* dūrō landing — shared by / and /cs/. Phone first; two columns from 960 px.
   One page colour (--paper) for every light section (Radim 11-10: no alternating bands). */
@font-face{font-family:'Archivo';font-style:normal;font-weight:800 900;font-display:swap;src:url("fonts/archivo-var.woff2") format("woff2")}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url("fonts/inter-var.woff2") format("woff2")}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url("fonts/geist-mono-var.woff2") format("woff2")}

:root{
  --white:#f8fafc; --paper:#ffffff;
  --ink:#1a1d27; --ink-2:#232734; --ink-3:#2e3341;
  --red:#d90f26; --red-hover:#b00c1f; --blue:#0075b8;
  --card:#ffffff; --band:#1a1d27; --blue-fill:#0075b8; --red-text:#d90f26; --pro-top:#f2f8fc; --topo-c:#1a1d27; --track:rgba(26,29,39,.08);
  --border:#dee3ea; --muted:#474c58; --line:#9aa0ac; --pill-bg:#eef1f5;
  --on-ink-muted:#c3c9d3; --on-ink-line:#3a3f4d;
  --z1:#3e8ed0; --z2:#2fa84f; --z3:#e5b81a; --z4:#f07a1a; --z5:#d90f26;
  --t1:#e0edf7; --t2:#def1e3; --t3:#f8ecc2; --t4:#fce7d6; --t5:#f7cfd4;
  --i1:#256ea8; --i2:#017c2f; --i3:#806000; --i4:#af4d00; --i5:#b00c1f;
  --head:'Archivo',system-ui,sans-serif;
  --body:'Inter',system-ui,sans-serif;
  --mono:'Geist Mono',ui-monospace,monospace;
  --gutter:clamp(16px,4vw,48px);
  --sec:clamp(64px,6.5vw,96px);
  --r:10px;
  --ring:0 0 0 3px var(--white),0 0 0 5px var(--blue);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;background:var(--paper);color-scheme:light;scroll-behavior:smooth}
/* The terrain map behind the whole page (Radim 11-12), as the live app draws it (duro globals.css .topo-ground): one
   fixed layer at z -1, so content scrolls over a still ground and every opaque surface (nav, cards, chat, frames, the
   ink band) covers it by paint order. body and the light sections carry no background for that; html holds the white.
   img/topo.svg is full ink, --topo is all of its opacity: the one knob (AA: worst case, a glyph pixel on a line) */
:root{--topo:.04}  /* iOS TopoBackground: 4 % ink lines in light, 3 % white lines in dark */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--topo-c);-webkit-mask:url(img/topo.svg) 50% 0/1000px 1000px repeat;mask:url(img/topo.svg) 50% 0/1000px 1000px repeat;opacity:var(--topo)}
@media (prefers-contrast:more),(prefers-reduced-transparency:reduce),(forced-colors:active),print{body::before,.start::before{display:none}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5;overflow-x:clip;-webkit-font-smoothing:antialiased}
::selection{background:var(--t1);color:var(--ink)}
:root{accent-color:var(--blue);caret-color:var(--blue)}
img,svg{display:block;max-width:100%}
img{height:auto}
a{color:var(--blue);text-decoration:none;text-underline-offset:.18em}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.wrap{max-width:calc(1080px + 2 * var(--gutter));margin:0 auto;padding:0 var(--gutter)}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:500}
.skip{position:absolute;left:var(--gutter);top:-48px;background:var(--band);color:#fff;padding:10px 14px;border-radius:999px;z-index:10}
.skip:focus{top:12px}

/* ---------- type ---------- */
h1,h2{font-family:var(--head);font-weight:800;letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
h1{font-size:clamp(36px,4.2vw,60px);line-height:1.02}
h2{font-size:clamp(28px,2.8vw,40px);line-height:1.05;letter-spacing:-.02em}
.lead{font-size:16px;line-height:24px;color:var(--muted);max-width:560px;text-wrap:pretty}
@media (min-width:720px){.lead{font-size:18px;line-height:28px}}
.lead b{font-weight:600;color:var(--ink)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border-radius:999px;background:var(--red);color:#fff;font:600 16px/1 var(--body);white-space:nowrap;cursor:pointer;touch-action:manipulation;transition:background .15s ease,transform .15s ease}
.btn:hover{background:var(--red-hover);text-decoration:none}
.btn:active{transform:scale(.98)}
.link{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:var(--blue);font-weight:500;border-radius:8px}
.link:hover{text-decoration:underline}

/* ---------- nav ---------- */
.nav{position:sticky;top:0;z-index:5;background:color-mix(in srgb,var(--paper) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.nav .wrap{display:flex;align-items:center;gap:6px;min-height:64px;padding-top:8px;padding-bottom:8px}
.mark{font:900 24px/1 var(--head);letter-spacing:-.03em;color:var(--ink);display:inline-flex;align-items:center;min-height:44px;padding:0 4px;margin-left:-4px;border-radius:8px}
.mark:hover{text-decoration:none}
.mark i{color:var(--red);font-style:normal}
.nav .grow{flex:1}
.nav .login{display:none}
@media (min-width:480px){.nav .login{display:inline-flex}}
@media (min-width:960px){.nav .wrap{min-height:72px;padding-top:12px;padding-bottom:12px;gap:10px}}

/* ---------- sections ---------- */
.sec{padding:var(--sec) 0}
.sec.paper{background:var(--paper)}
.sec.ink{background:var(--ink);color:var(--white)}
.sec.ink h2{color:#fff}
.sec.ink .lead{color:var(--on-ink-muted)}
.sec.ink .lead b{color:#fff}
.mascot{width:auto}
.two{display:grid;gap:40px;align-items:center}
.two .text .mascot{margin-bottom:20px}
.two h2{margin-bottom:18px}
@media (min-width:960px){
  .two{grid-template-columns:5fr 7fr;gap:64px}
  .two.flip .text{order:2}
  .two.flip .visual{order:1}
  .two h2{margin-bottom:22px}
  .two .text .mascot{margin-bottom:28px}
}

/* ---------- hero ---------- */
.hero{padding-top:clamp(40px,5vw,56px);padding-bottom:0;text-align:center}
.hero h1{max-width:15ch;margin:0 auto 20px}
.hero .lead{margin:0 auto 32px}
.hero .cta{display:flex;flex-direction:column;align-items:center;gap:10px}
.hero .note{font-size:14px;color:var(--muted)}
.hero .alt{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;font-size:15px}
@media (min-width:480px){.hero .phone-only{display:none}}
.hero .mascot{margin:96px auto 16px}
@media (min-width:960px){.hero h1{margin-bottom:24px}.hero .lead{margin-bottom:32px}.hero .mascot{margin:128px auto 20px}}
.hero-mock{padding-bottom:var(--sec)}

/* ---------- product frames ---------- */
/* Concentric corners (Atlas; Radim R5): --oi outer inset (frame edge to track on top, left and right; also the card's
   sides and the track-to-card gap), --ii inner inset (track to pill, all four sides), --ph pill height.
   r-pill = ph/2 (full pill) · r-track = r-pill + ii · r-frame = r-track + oi · card radius = r-frame - oi. */
.frame{--oi:8px;--ii:4px;--ph:44px;--r-pill:calc(var(--ph) / 2);--r-track:calc(var(--r-pill) + var(--ii));--r-frame:calc(var(--r-track) + var(--oi));position:relative;border-radius:var(--r-frame);padding:var(--oi);background:linear-gradient(90deg,var(--t1),var(--t2) 28%,var(--t3) 52%,var(--t4) 76%,var(--t5))}
@media (min-width:960px){.frame{--oi:12px;--ii:5px}}
.app{text-align:left;background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:16px;color:var(--ink);font-size:14px;line-height:1.4;box-shadow:0 10px 30px -18px rgba(26,29,39,.25)}
@media (min-width:960px){.app{padding:20px 22px}}
.pill{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;background:var(--pill-bg);color:var(--muted);font:500 13px/1 var(--body);white-space:nowrap}
.app-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.app-head .mark{font-size:18px;min-height:0;margin:0;padding:0}
.app-head .who{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.app-head .who b{font-weight:600}
.app-head .who span{color:var(--muted)}
.app-sub{color:var(--muted);font-size:13px;margin-bottom:12px}
.app-sub .num{color:var(--ink)}
.app .num{font-size:13px}
.btn-app{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:8px;background:var(--blue-fill);color:#fff;font:600 14px/1 var(--body)}

/* mock A: week */
.week{display:grid;gap:8px}
.day{display:grid;grid-template-columns:62px 1fr;gap:10px;align-items:start;padding-top:8px;border-top:1px solid var(--border)}
.day:first-child{border-top:0;padding-top:0}
.day > b{font-weight:600;font-size:13px;color:var(--muted);padding-top:9px}
.day .chips{display:grid;gap:6px}
.chip{position:relative;display:grid;grid-template-columns:18px 1fr auto;gap:8px;align-items:start;padding:8px 10px 8px 14px;background:var(--white);border:1px solid var(--border);border-radius:8px;font-size:13px;line-height:1.3}
.chip::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:4px;border-radius:2px;background:var(--bar,transparent)}
.chip svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.chip .t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500}
.chip .num{color:var(--muted);font-weight:400;white-space:nowrap}
.chip.rest{grid-template-columns:1fr;color:var(--muted);background:transparent;border-style:dashed}
.chip.rest::before{display:none}
.z2{--bar:var(--z2)}.z4{--bar:var(--z4)}.st{--bar:var(--line)}
@media (min-width:960px){
  .week{grid-template-columns:repeat(7,1fr);gap:10px}
  .day{display:block;padding:0;border-top:0;border-left:1px solid var(--border);padding-left:10px}
  .day:first-child{border-left:0;padding-left:0}
  .day > b{display:block;padding:0 0 8px}
  .chip{grid-template-columns:1fr;gap:6px;padding:10px 10px 10px 14px}
  .chip svg{order:0}
  .chip .t{order:1}
  .chip .num{order:2}
}

/* mock B: lactate */
/* R7: the chart takes whatever height the fixed panel leaves (flex:1), the SVG stretches (preserveAspectRatio=none);
   every stroke is non-scaling, so lines and dots keep their pixel size at any aspect */
.chart{position:relative;aspect-ratio:360/250;margin:4px 0 2px}
.js .panels .chart{flex:1 1 0;aspect-ratio:auto;min-height:220px}
.chart svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.chart .grid{stroke:var(--border);stroke-width:1;vector-effect:non-scaling-stroke}
/* R7: no dash. pathLength + stroke-dasharray:1 under non-scaling-stroke laid the dash in screen px, so a chart wider
   than its 360-unit viewBox showed dash, gap, dash: the break Radim saw. The draw-in is now a clip reveal. */
.chart .curve{fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.chart .pt,.chart .pt-in{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke}
.chart .pt{stroke:var(--ink);stroke-width:12}.chart .pt-in{stroke:var(--card);stroke-width:8}
.chart .lt line{stroke-width:2;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
.chart .lt1 line{stroke:var(--blue)}.chart .lt2 line{stroke:var(--red)}
.chart .mk{stroke-width:2;vector-effect:non-scaling-stroke}
.chart .mk.a{stroke:var(--blue)}.chart .mk.b{stroke:var(--red)}
.chart .lab{position:absolute;font-size:12px;line-height:1.15;color:var(--muted);font-family:var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.chart .lab.y{left:4px;transform:translateY(-100%);padding-bottom:2px}
.chart .lab.x{top:100%;transform:translateX(-50%);padding-top:6px}
.chart .lab.unit{left:4px;top:-4px;transform:translateY(-100%);color:var(--muted);font-family:var(--body)}
.chart .lt-lab{position:absolute;top:2px;font:600 12px/1.25 var(--body);text-align:left}
.chart .lt-lab .num{display:block;font-size:12px;font-weight:500}
.chart .lt-lab.l1{color:var(--blue);transform:translateX(calc(-100% - 8px));text-align:right}
.chart .lt-lab.l2{color:var(--red);transform:translateX(8px)}
.marks-cap{font-size:12px;color:var(--muted);margin:30px 0 14px}
.zbar{display:flex;height:14px;border-radius:7px;overflow:hidden}
.zbar span{display:block;height:100%}
.zkey{display:grid;gap:6px 14px;margin:10px 0 16px;font-size:13px;list-style:none}
.zkey li{display:flex;align-items:center;gap:8px;font-weight:500}
.zkey li::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--sw);flex:none}
.zkey .num{font-weight:500}
@media (min-width:600px){.zkey{grid-template-columns:repeat(5,auto);justify-content:space-between}}
.app-foot{display:flex;justify-content:flex-end}

/* mock C: session */
.sess .meta{color:var(--muted);font-size:13px;margin-bottom:4px}
.sess .title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.sess .title b{font:700 22px/1.1 var(--body);letter-spacing:-.01em}
.sess .title .num{font-size:15px;color:var(--muted)}
.chip-lt1{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border:1.5px solid var(--blue);color:var(--blue);border-radius:999px;font:600 12px/1 var(--body)}
.sess .desc{font-size:14px;color:var(--muted);padding-top:12px;border-top:1px solid var(--border);text-wrap:pretty}

/* ---------- bubble (recal tab) ---------- */
.msg{text-align:left;background:var(--white);color:var(--ink);border-radius:16px 16px 16px 4px;padding:10px 12px 8px;font-size:13.5px;line-height:1.42;white-space:pre-line;max-width:94%;text-wrap:pretty}
.msg time{display:block;text-align:right;font-size:11px;color:var(--muted);margin-top:4px;font-family:var(--mono)}

/* ---------- pricing ---------- */
.centre{text-align:center}
.centre .mascot{margin:0 auto 24px}
.centre h2{margin-bottom:32px}
.plans{display:grid;gap:20px;max-width:880px;margin:0 auto 72px;text-align:left}
@media (min-width:720px){.plans{grid-template-columns:1fr 1fr;gap:32px}}
.plan{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:28px 28px 30px;position:relative}
.plan.pro{border:1.5px solid var(--blue)}
.plan h3{font:600 16px/1.2 var(--body);color:var(--muted);margin-bottom:10px;letter-spacing:.01em}
.plan .price{font:800 32px/1 var(--head);letter-spacing:-.02em;color:var(--ink)}
.plan .price small{font:500 16px/1.3 var(--body);color:var(--muted);letter-spacing:0;display:block;margin-top:6px}
.plan .price small + small{margin-top:2px}
.plan ul{list-style:none;margin:22px 0 0;display:grid;gap:10px;font-size:15px;line-height:1.4}
.plan li{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:start}
.plan li svg{width:18px;height:18px;stroke:var(--blue);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;margin-top:2px}
.plan .pnote{margin-top:20px;font-size:14px;color:var(--muted);text-wrap:pretty}
.pricing .cta{display:flex;flex-direction:column;align-items:center;gap:12px}
.pricing .trial{font-size:15px;color:var(--muted);text-wrap:balance}
.pricing .coach{font-size:15px;color:var(--ink);margin-top:20px;text-wrap:balance}
.pricing .coach a{font-weight:500;display:inline-flex;align-items:center;min-height:44px;padding:0 6px;margin:-12px -6px}
.sec.pricing{padding-bottom:32px}
.pricing h2 .h2-red{display:block}   /* Radim 11-12: two sentences, two lines at every width (the scroll mock's coach stands beside it) */
.podium{margin-bottom:2px}   /* Radim 11-12: the scroll mock's podium (mascot-scroll.css) stands on the Pro card's 2 px border, not over it */   /* Radim 11-12: sign-up block further from the cards, closer to the FAQ coach */

/* ---------- faq ---------- */
.faq .head{display:flex;align-items:center;gap:20px;margin-bottom:28px}
.faq .head .mascot{height:88px}
.faq h2{margin:0}
.qa{max-width:760px}
.qa details{border-top:1px solid var(--border)}
.qa details:last-child{border-bottom:1px solid var(--border)}
.qa summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:14px 4px;cursor:pointer;list-style:none;font-weight:600;font-size:16px;line-height:1.4;border-radius:6px}
.qa summary::-webkit-details-marker{display:none}
.qa summary svg{width:20px;height:20px;flex:none;stroke:var(--blue);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.qa details[open] summary svg{transform:rotate(180deg)}
.qa details p{padding:0 4px 18px;color:var(--muted);max-width:60ch;text-wrap:pretty;font-size:16px}
@media (min-width:960px){.faq .head{gap:28px;margin-bottom:36px}.faq .head .mascot{height:120px}}

/* ---------- start ---------- */
.start h2{margin-bottom:36px}
.steps{list-style:none;counter-reset:s;display:grid;gap:22px;max-width:980px;margin:0 auto 40px;text-align:left}
.steps li{counter-increment:s;display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:center;font-size:17px;line-height:1.35;font-weight:500}
.steps li::before{content:counter(s);font:900 44px/1 var(--head);color:var(--blue);letter-spacing:-.04em}
@media (min-width:720px){.steps{grid-template-columns:repeat(3,1fr);gap:28px}.steps li{grid-template-columns:1fr;gap:12px;align-items:start}.steps li::before{font-size:56px}}
.start .mascot{height:120px}
@media (min-width:960px){.start .mascot{height:180px}}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--border);padding:36px 0 40px;font-size:14px;color:var(--muted)}
.foot .links{display:flex;flex-wrap:wrap;gap:2px 12px;list-style:none;margin-bottom:8px}
.foot .links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 10px;margin-left:-10px;color:var(--blue);font-weight:500;border-radius:8px}
.foot .lnote{margin:0 0 8px}
.foot .bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:8px}
.foot .copy{display:flex;align-items:center;gap:12px}
.foot .copy .mascot{height:48px;width:auto}
.foot .lang{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;margin-right:-10px;font-weight:500;border-radius:8px}

/* ---------- motion: product screens only (mascots are static); each runs once; nothing under reduced motion ---------- */
@media (prefers-reduced-motion:no-preference){
  .js [data-anim]:not(.is-in) .curve{clip-path:inset(-10% 100% -10% -10%)}
  .js [data-anim]:not(.is-in) .lt{opacity:0}
  .js .is-in .curve{clip-path:inset(-10%);transition:clip-path 1.2s cubic-bezier(.3,.6,.3,1)}
  .js .is-in .lt{animation:fade .3s ease-out 1.2s both}
  .js .panel.in{animation:fade .25s ease-out both}
  .js .recal .bubble{transition:opacity .35s ease-out,translate .35s ease-out}
  .js .recal .bubble .msg{transition:opacity .3s ease-out}
  .js .recal .recal-week .chip{transition:background-color .4s ease-out,border-color .4s ease-out,box-shadow .4s ease-out,color .4s ease-out}
  .js .recal .recal-week .chip svg{transition:stroke .4s ease-out}
  .js .recal .rc-beat{transition:opacity .25s ease-out}
  .js .recal.s4 .rc .bar{transition:opacity .2s ease-out calc(var(--i) * 350ms)}
  .js .recal.s4 .rc .bar i{transition:scale .6s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 350ms + 200ms)}
  .js .recal.s4 .rc .old{transition:opacity .25s ease-out calc(var(--i) * 350ms + 250ms)}
  .js .recal.s4 .rc .new{transition:opacity .25s ease-out calc(var(--i) * 350ms + 300ms)}
  .js .recal.s4 .rc .delta{transition:opacity .2s ease-out calc(var(--i) * 350ms + 450ms),scale .3s cubic-bezier(.16,1,.3,1) calc(var(--i) * 350ms + 450ms)}
  .js .recal .rc-state{transition:opacity .3s ease-out,scale .3s ease-out}
  .js .typing i{animation:dot 1s ease-in-out infinite}.js .typing i:nth-child(2){animation-delay:.15s}.js .typing i:nth-child(3){animation-delay:.3s}
  .js .clog .b.on,.js .su-log .b{animation:up .25s ease-out both}
  .js .rc-beat i{animation:spin .8s linear infinite}
}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes up{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes dot{0%,80%,100%{opacity:.3}40%{opacity:1}}
@keyframes spin{to{rotate:1turn}}

/* ---------- tabs (hero product frame) ---------- */
.tablist{display:flex;gap:4px;padding:var(--ii);margin:0 0 var(--oi);border-radius:var(--r-track);background:var(--track);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tablist::-webkit-scrollbar{display:none}
.tablist [role=tab]{flex:none;min-height:var(--ph);padding:0 18px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--ink);font:600 15px/1 var(--body);cursor:pointer;white-space:nowrap;touch-action:manipulation;transition:background .15s ease,color .15s ease}
.tablist [role=tab]:not([aria-selected=true]):hover{background:rgba(255,255,255,.55)}
.tablist [role=tab][aria-selected=true]{background:var(--card);box-shadow:0 1px 2px rgba(26,29,39,.12)}
.tablist [role=tab]:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
@media (min-width:960px){.tablist{gap:6px}.tablist [role=tab]{flex:1 0 auto;padding:0 20px;font-size:16px}}
.panel{position:relative}
.panel[hidden]{display:none}
html:not(.js) .tablist{display:none}
html:not(.js) .panel + .panel{margin-top:16px}
.panel .app,.panel .chatwin{border-radius:calc(var(--r-frame) - var(--oi))}
/* R7 (Radim 11-11): one panel height for every tab. All panels share one grid cell, so the cell is as tall as the
   tallest panel whose content cannot shrink ("New test → recalibrated"); the others stretch to it and their chart
   (lactate curve, session profile, weeks bars, chat log) takes the rest. Hidden panels keep their box but are
   visibility:hidden, so they are out of the a11y tree and never focusable. */
.js .panels{display:grid}
.js .panels > .panel{grid-area:1/1;display:flex;flex-direction:column;min-width:0}
.js .panels > .panel[hidden]{display:flex;visibility:hidden}
.panel > .app,.panel > .chatwin,.panel > .recal{flex:1 1 auto}
.panel > .app[data-mock=B],.panel > .sess,.panel > .weeks{display:flex;flex-direction:column}

/* ---------- today's session: steps + study ---------- */
.sess-grid{display:grid;gap:22px;margin-top:4px}
@media (min-width:720px){.sess-grid{grid-template-columns:1fr 1fr;gap:32px}}
.sess .h4{font:600 13px/1.2 var(--body);color:var(--muted);margin:0 0 10px;letter-spacing:.01em}
.steplist{list-style:none;display:grid;gap:8px;font-size:13.5px}
.steplist li{display:grid;grid-template-columns:10px 1fr auto auto;gap:10px;align-items:center}
.steplist li i{width:10px;height:10px;border-radius:3px;display:block}
.steplist .num{color:var(--muted)}
.steplist .num:last-child{color:var(--ink)}
.study .desc{border-top:0;padding-top:0;font-size:14px;color:var(--ink)}
.study .cite{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:12px;font-size:13px;color:var(--muted)}
.study .ref{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:6px;background:var(--pill-bg);color:var(--ink);font-size:12px}

/* ---------- recalibration tab ---------- */
.recal{display:grid;gap:16px}
@media (min-width:960px){.recal{grid-template-columns:5fr 7fr;gap:24px;align-items:start}}
.recal-msg{display:grid;gap:12px;align-content:start}
.recal-msg .pill{justify-self:start}
.recal .bubble{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:end}
.recal .bubble .ava{width:32px;height:32px}  /* LANDING-POLISH-1120: the mascot face, as the chat list (.ava), not a "d." */
.recal .bubble .msg{background:var(--card);border:1px solid var(--border);border-radius:16px 16px 16px 4px;font-size:14px;line-height:1.45;padding:12px 14px 8px;max-width:100%;white-space:normal}
.replay{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1.5px solid var(--blue);border-radius:999px;background:var(--card);color:var(--blue);font:600 14px/1 var(--body);cursor:pointer;justify-self:start;touch-action:manipulation}
.replay:hover{background:var(--t1)}
.replay svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.recal-week .week{gap:6px}
.recal-week .day{grid-template-columns:72px 1fr}
.rc-state{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:0 10px;border-radius:999px;background:var(--t2);color:var(--i2);font:500 13px/1 var(--body);white-space:nowrap}
.chip.rc{grid-template-columns:18px 1fr auto;grid-template-areas:"i t d" "i tg tg" "i bar bar";row-gap:6px}
.chip.rc svg{grid-area:i}.chip.rc .t{grid-area:t}.chip.rc .d{grid-area:d}
.chip.rc .tg{grid-area:tg;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.chip.rc .tg .num{color:var(--ink);font-weight:500}
.chip.rc .old{color:var(--muted);text-decoration:line-through}
.chip.rc .delta{display:inline-flex;align-items:center;min-height:20px;padding:0 7px;border-radius:999px;background:var(--t2);color:var(--i2);font-size:12px;font-weight:500}
.chip.rc .bar{grid-area:bar;display:block;height:6px;border-radius:3px;background:var(--pill-bg);overflow:hidden}
.chip.rc .bar i{display:block;height:100%;width:var(--w);border-radius:3px;background:var(--bar);transform-origin:left center;scale:1 1}
/* R10 sequence (site.js): none = the week as it was, old targets, every chip neutral · s1 dūrō types · s2 the line
   lands · s3 the 3 rides light up, the rest recede ("recalibrating") · s4 the rides change, 350 ms apart (strike, new
   range, +W pill, shift bar) · s5 "3 recalibrated". No JS or reduced motion: every class at once = the end state. */
.js .recal:not(.s1) .bubble{opacity:0;translate:0 8px}
.recal .bubble{position:relative}
.rtyping{position:absolute;left:42px;bottom:0}
.js .recal.s1:not(.s2) .rtyping{display:inline-flex}
.js .recal:not(.s2) .bubble .msg{opacity:0}
.rc-beat{display:none;align-items:center;gap:6px;min-height:26px;font:500 13px/1 var(--body);color:var(--blue)}
.rc-beat i{width:12px;height:12px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent}
.js .recal.s3:not(.s5) .rc-beat{display:inline-flex}
.js .recal:not(.s4) .rc .bar{opacity:0}
.js .recal:not(.s4) .rc .bar i{scale:var(--k) 1}
.js .recal:not(.s4) .rc .new,.js .recal:not(.s4) .rc .delta{opacity:0}
.js .recal:not(.s4) .rc .delta{scale:.6}
.js .recal:not(.s4) .rc .old{text-decoration:none;color:var(--ink);font-size:13px}
.js .recal:not(.s5) .rc-state{display:none}
.js .recal.s4 .rc .old{opacity:.7}
.chip.z2 .bar i{background:var(--z2)}.chip.z4 .bar i{background:var(--z4)}
@media (min-width:960px){.recal-week .week{grid-template-columns:1fr}.recal-week .day{display:grid;grid-template-columns:84px 1fr;border-top:1px solid var(--border);border-left:0;padding:8px 0 0}.recal-week .day:first-child{border-top:0;padding-top:0}.recal-week .day > b{padding:9px 0 0}.recal-week .chip{grid-template-columns:18px 1fr auto;padding:8px 10px 8px 14px}.recal-week .chip.rc{grid-template-columns:18px 1fr auto}.recal-week .chip svg,.recal-week .chip .t,.recal-week .chip .num{order:0}.recal-week .day .chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px}}

/* ---------- plan weeks tab ---------- */
.wchart{position:relative;height:150px;margin:24px 0 10px 0;padding-left:34px}
.panels .panel > .weeks .wchart{flex:1 1 150px;height:auto;min-height:150px}
.wchart .bars{display:flex;align-items:flex-end;gap:3px;height:100%;border-bottom:1px solid var(--border)}
.wchart .bars i{flex:1;display:block;border-radius:3px 3px 0 0;min-width:0}
.wchart .lab{position:absolute;left:0;font-size:12px;color:var(--muted);font-family:var(--mono);transform:translateY(50%)}
.ph-base{background:#7cb6e8}.ph-rec{background:#dee3ea}.ph-build{background:#f59a4e}.ph-taper{background:#f2cc4a}.ph-race{background:var(--red)}
.wchart .bars i.now{background:var(--blue)}
.wchart .flag{position:absolute;top:-22px;font:600 12px/1 var(--body);color:var(--blue);white-space:nowrap}
.wchart .now-flag{left:calc(34px + (100% - 34px) * 1.5 / 31);transform:translateX(-50%)}
.wchart .race-flag{right:0;color:var(--red)}

/* ---------- why row ---------- */
.why-row{list-style:none;display:grid;gap:40px;max-width:960px;margin:0 auto}
@media (min-width:720px){.why-row{grid-template-columns:repeat(3,1fr);gap:40px}}
.why-row li{display:grid;justify-items:center;gap:4px;max-width:34ch;margin:0 auto}
.why-row svg{width:28px;height:28px;stroke:var(--ink);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;margin-bottom:12px}
.why-row h2{margin:0;color:var(--ink);font:600 18px/1.4 var(--body);letter-spacing:-.015em;text-wrap:balance}
.why-row p{font-size:15px;line-height:1.5;color:var(--muted);text-wrap:pretty}
.why-row p b{color:var(--ink);font-weight:600}

/* ---------- "Push or rest?": an open chat with dūrō ---------- */
.pchat-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap-reverse;margin-bottom:var(--oi)}
.pchat-top .mhead{font:600 16px/1.4 var(--body);color:var(--ink);text-align:left;text-wrap:balance;max-width:44ch;padding:2px 4px}
.chatwin{display:grid;background:var(--card);border:1px solid var(--border);overflow:hidden;text-align:left;min-height:520px;box-shadow:0 10px 30px -18px rgba(26,29,39,.25)}
.js .panels .panel > .chatwin{min-height:0}
.clist{display:none}
@media (min-width:860px){.chatwin{grid-template-columns:260px 1fr}.clist{display:block;border-right:1px solid var(--border);background:var(--white);padding:14px 10px}}
.clist-h{font:600 13px/1 var(--body);color:var(--muted);padding:4px 8px 12px}
.crow{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center;padding:8px;border-radius:12px}
.crow.on{background:var(--t1)}
.crow .ct small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:13px}
.crow time{align-self:start;font:500 12px/1.4 var(--mono);color:var(--muted)}
.ct{display:grid;min-width:0;line-height:1.25}.ct b{font-weight:600}
.ava{width:40px;height:40px;border-radius:50%;flex:none;background:var(--white) url("img/mascot/face.svg") 50% 50%/100% no-repeat;box-shadow:inset 0 0 0 1px var(--line)}  /* face.svg = iOS mascot_face.svg's crop of the rig (opaque band, so the surface token works in both modes) */
.cmain{display:grid;grid-template-rows:auto 1fr auto;min-width:0}
.chead{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border)}
.chead small{color:var(--i2);font-size:13px}
.clog{display:flex;flex-direction:column;gap:8px;padding:14px;background:var(--white);min-height:0}
.clog .daysep,.su-log .daysep{align-self:center;font-size:12px;color:var(--muted);background:var(--card);border:1px solid var(--border);border-radius:999px;padding:3px 10px;margin:4px 0}
.b{max-width:min(92%,560px);padding:9px 12px 7px;font-size:14px;line-height:1.45;white-space:pre-line;text-wrap:pretty}
.b time{display:block;text-align:right;font:500 11px/1.2 var(--mono);color:var(--muted);margin-top:4px}
.b.in{align-self:flex-start;background:var(--card);border:1px solid var(--border);border-radius:16px 16px 16px 4px}
.b.out{align-self:flex-end;background:var(--t1);border-radius:16px 16px 4px 16px}
.js #pchat:not(.done) [data-seq]:not(.on){display:none}
.typing{display:none;align-self:flex-start;gap:4px;padding:12px 14px;background:var(--card);border:1px solid var(--border);border-radius:16px 16px 16px 4px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted)}
.js #pchat.typing-on .typing,.su-log .typing{display:inline-flex}
.cinput{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 14px 14px;min-height:44px;padding:0 6px 0 16px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:15px}
.cinput svg{width:32px;height:32px;padding:7px;border-radius:50%;background:var(--pill-bg);stroke:var(--muted);fill:none;stroke-width:2;stroke-linejoin:round}

/* ---------- integrations ---------- */
.integ-note{max-width:60ch;margin:16px auto 0;font-size:14px;color:var(--muted)}
.integ .coming{margin:40px 0 12px;font:600 15px/1.3 var(--body);color:var(--muted)}

/* ---------- signup demo (the app's /signup chat, scripted) ---------- */
.su-lead{margin:-16px auto 28px}
.su{--oi:8px;--r-out:24px;max-width:720px;margin:0 auto 48px;text-align:left;background:var(--card);border:1px solid var(--border);border-radius:var(--r-out);overflow:hidden;box-shadow:0 10px 30px -18px rgba(26,29,39,.25)}
.su-head{display:flex;align-items:center;gap:10px;padding:8px 14px}
.su-head .ct small{color:var(--muted);font-size:12px}
.su-head .acc{margin-left:auto;display:flex;align-items:center;gap:4px;font-size:14px;color:var(--muted)}
.su-head .acc a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-weight:600}
.su-prog{height:3px;background:var(--pill-bg)}.su-prog i{display:block;height:100%;background:var(--blue);transform-origin:left center;scale:var(--p,0) 1;transition:scale .3s cubic-bezier(.16,1,.3,1)}
.su-log{scrollbar-width:thin;scrollbar-color:var(--line) transparent;display:flex;flex-direction:column;gap:8px;height:min(440px,60svh);overflow-y:auto;padding:16px 14px;background:var(--white);overscroll-behavior:contain}
.su-tray{display:grid;gap:10px;padding:12px 14px 14px;border-top:1px solid var(--border)}
.su-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (min-width:600px){.su-grid.three{grid-template-columns:repeat(3,1fr)}}
.su-grid.four{grid-template-columns:repeat(4,1fr)}.su-grid.seven{grid-template-columns:repeat(7,1fr);gap:4px}
.su-chip,.su-pill{display:grid;align-content:center;min-height:48px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--ink);font:600 15px/1.2 var(--body);text-align:left;cursor:pointer;touch-action:manipulation}
.su-chip small{display:block;font:400 12.5px/1.3 var(--body);color:var(--muted);margin-top:2px}
.su-pill{justify-items:center;text-align:center;padding:8px 4px;font-size:14px}
.su-chip:hover,.su-pill:hover{border-color:var(--blue)}
.su-pill[aria-pressed=true]{background:var(--blue-fill);border-color:var(--blue-fill);color:#fff}
.su-pill[aria-disabled=true]{border-style:dashed;color:var(--muted);cursor:not-allowed}
.su-pill.lock{cursor:default}.su-pill small{font:400 11.5px/1.2 var(--body)}
.su-label{font:600 13px/1.3 var(--body);color:var(--muted)}
.su-hint{font-size:13px;color:var(--muted)}
.su input[type=date]{display:block;box-sizing:border-box;-webkit-appearance:none;appearance:none;text-align:left;min-height:48px;width:100%;min-width:0;padding:0 12px;border:1px solid var(--line);border-radius:12px;font:16px var(--body);color:var(--ink);background:var(--card)}
.su-go{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border:0;border-radius:999px;background:var(--band);color:#fff;font:600 15px/1 var(--body);cursor:pointer}
.su-go[disabled]{opacity:.45;cursor:not-allowed}
.su-go:hover:not([disabled]){background:var(--ink-3)}
.su-go.red{background:var(--red)}.su-go.red:hover:not([disabled]){background:var(--red-hover)}
.su-link{justify-self:center;min-height:44px;padding:0 10px;border:0;background:none;color:var(--blue);font:500 15px/1 var(--body);cursor:pointer}
.su-card{align-self:stretch;margin:4px 0;padding:12px 14px 4px;background:var(--card);border:1px solid var(--border);border-radius:14px}
.su-card h4{display:flex;justify-content:space-between;align-items:center;font:800 16px/1.2 var(--head);letter-spacing:-.01em}
.su-card h4 i{color:var(--red);font-style:normal;margin-right:auto}
.su-card h4 span{font:500 13px/1 var(--body);color:var(--muted)}
.su-card ol{list-style:none}
.su-card li{display:grid;grid-template-columns:20px 1fr;gap:10px;padding:10px 0;border-top:1px solid var(--border)}
.su-card li:first-child{border-top:0}
.su-card li > i{width:18px;height:18px;margin-top:2px;border-radius:50%;border:2px solid #9cc5e3}
.su-card li.done > i{background:var(--blue-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;border-color:var(--blue)}
.su-card li small{font:500 11px/1.2 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.su-card li p{font-size:14.5px;line-height:1.4;margin-top:2px}
.su-card li:not(.done) p span{color:transparent;background:var(--pill-bg);border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.su-end{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
html:not(.js) .su,html:not(.js) .su-lead{display:none}
.su input[type=date]::-webkit-date-and-time-value{text-align:left}
.h2-red{color:var(--red-text)}  /* Radim 11-14: red headings use the red-text token in both themes: #d90f26 on #fff (5.19:1), #ff6b7a on dark; solid, not gradient text (craft floor) */

/* ---------- R7: equal panel height — the recal head never changes height mid-sequence, the chat fits under it ---------- */
.recal-week .app-head{display:grid;grid-template-columns:1fr auto;grid-template-rows:minmax(26px,auto);align-items:start}
.recal-week .rc-beat,.recal-week .rc-state{grid-area:1/2}
.chead{padding:8px 14px}
.clog{gap:6px}
.js .panel .clog{justify-content:flex-end}  /* a chat sits on its newest message */
.clog .daysep{margin:2px 0}
@media (min-width:960px){.clog .b{max-width:min(94%,680px)}.pchat-top .mhead{max-width:none}.chead{padding:6px 14px}.chead .ava{width:36px;height:36px}.clog{padding:10px 14px}.b{padding:8px 12px 6px}.b time{margin-top:2px}.cinput{margin:6px 14px 10px}}
/* phone: the recal week as one row per day; unchanged sessions shrink to icon + duration (title stays for screen
   readers), the recalibrated rides keep title, old → new and the delta. Message pill and Replay share a row. */
@media (max-width:599px){
  .recal{gap:12px}
  .recal-msg{grid-template-columns:1fr auto;align-items:center;gap:8px 12px}
  .recal-msg .pill{justify-self:start}
  .recal-msg .bubble{grid-column:1/-1;grid-row:2}
  .recal-msg .replay{grid-column:2;grid-row:1}
  .recal-week .app-head{margin-bottom:8px}
  .recal-week .app-head{grid-template-columns:1fr auto;grid-template-areas:"b b" "n s";gap:4px 10px;align-items:center}
  .recal-week .app-head .who{display:contents}.recal-week .who b{grid-area:b}.recal-week .who .num{grid-area:n}
  .recal-week .rc-beat,.recal-week .rc-state{grid-area:s}
  .recal-week .app-head{grid-template-rows:auto minmax(26px,auto)}
  .recal .bubble .msg{padding:10px 12px 6px;line-height:1.4}
  .recal-week .week{gap:4px}
  .recal-week .day{grid-template-columns:44px 1fr;gap:6px;padding-top:3px}
  .recal-week .day .mo{display:none}
  .frame{--oi:6px}
  .recal{gap:8px}
  .panel .recal-week{padding:12px 12px 10px}
  .recal-week .day > b{padding-top:6px;font-size:12px;line-height:1.25;white-space:nowrap}
  .recal-week .day .chips{display:flex;flex-wrap:wrap;gap:4px}
  .recal-week .chip{grid-template-columns:16px auto;gap:6px;align-items:center;padding:5px 9px 5px 12px}
  .recal-week .chip svg{width:16px;height:16px;margin:0}
  .recal-week .chip::before{top:5px;bottom:5px}
  .recal-week .chip:not(.rc) .t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .recal-week .chip.rc{flex:1 1 100%;grid-template-columns:16px 1fr auto;grid-template-areas:"i t d" "i tg tg";row-gap:3px;padding-bottom:8px}
  .recal-week .chip.rc .bar{position:absolute;left:12px;right:9px;bottom:3px;height:3px}
  .clog{padding:10px}
  .clog .b{max-width:100%}
  .chead{padding:6px 12px}.chead .ava{width:32px;height:32px}
  .cinput{display:none}  /* decorative (aria-hidden) input bar: the one block a phone chat can lose */
  .clog{padding:8px 8px 10px}
  .clog .daysep{font-size:11px;padding:2px 9px}
  .b{padding:8px 11px 6px}.b time{margin-top:2px}
  .pchat-top{gap:6px}
  .pchat-top .mhead{font-size:15px;line-height:1.35}
}

/* ---------- R8 (Radim 11-11, real iPhone): on a phone the whole framed tab container fits the small viewport ----------
   frame = 3 × 6 px inset + 52 px tablist + panels; nav 64 px; 16 px air → panels = 100svh − 150px (px and vh fallbacks).
   The box is fixed and every panel's content fits it; nothing sizes the box from content. */
.nav{background:var(--paper)}  /* solid: the translucent nav showed the mascot as a pink blur behind it; with the frame
   fully in view (top at nav + 8 px) the mascot, 16 px above the frame, is wholly under it */
@media (max-width:599px){
  .js .panels{grid-template-rows:minmax(0,1fr);height:520px;height:calc(100vh - 150px);height:calc(100svh - 150px);min-height:440px}
  .js .panels > .panel{container-type:size}
  .panel > .app{padding:14px}
  .panel > .app[data-mock=B] .app-head,.panel > .weeks .app-head{display:grid;grid-template-columns:1fr auto;gap:4px 10px;margin-bottom:10px}
  .panel > .app[data-mock=B] .app-head .who,.panel > .weeks .app-head .who{display:contents}
  .panel > .app[data-mock=B] .who b,.panel > .weeks .who b{grid-area:1/1}
  .panel > .app[data-mock=B] .who .num,.panel > .weeks .who .num{grid-area:2/1/3/3}
  .panel > .app[data-mock=B] .app-head .pill,.panel > .weeks .app-head .pill{grid-area:1/2}
  /* lactate */
  .js .panels .chart{min-height:150px;margin-top:40px}
  .js .panels .chart .lt-lab{top:auto;bottom:calc(100% + 8px)}  /* LT labels above the plot, clear of the top points */
  .marks-cap{margin:26px 0 10px}
  .zkey{grid-template-columns:1fr 1fr;gap:4px 12px;margin:8px 0 10px;font-size:12.5px}
  /* session: the profile is a strip again, rows denser */
  .sess .title{margin-bottom:10px}.sess .title b{font-size:20px}
  .sess-grid{gap:12px;margin-top:10px}
  .sess .h4{margin-bottom:6px}
  .steplist{gap:4px;font-size:13px}
  .study .desc{font-size:13.5px}.study .cite{margin-top:8px}
  /* chat: both mornings' messages from dūrō (R13, Radim: "should show two"); the athlete's replies and the input bar
     give way so they fit (site.js skips the replies there), and the 07:00 stamps (the heading says 7:00) */
  #pchat .b.out,#pchat .cinput,#pchat .b time{display:none}
  #pchat .b{font-size:13px}
  /* weeks */
  .panels .panel > .weeks .wchart{min-height:110px;margin-top:20px}
}
@media (max-width:599px){
  /* recal: the full week fits from ~690 px of panel (390×844); below that the card keeps the three recalibrated rides,
     the bubble already says swims, runs and strength stay */
  .recal{gap:6px}
  .recal .bubble .msg{padding:8px 12px 5px}
  .panel .recal-week{padding:10px 12px 8px}
  .recal-week .app-head{margin-bottom:6px}
  .recal-week .chip.rc{row-gap:1px}
  @container (max-height:690px){
    .recal-week .day:not(.rc-day),.recal-week .day .chip:not(.rc){display:none}
    .recal-week .rc-day:nth-child(1 of .rc-day){border-top:0;padding-top:0}
    .recal-week .week{gap:8px}
  }
}

/* ---------- R8: the signup demo is one fixed box (fits 100svh minus the nav on a phone, 900 px on desktop); the log
   takes what the tray leaves and drops its oldest lines whole (site.js down()), so no inner scroll and no jump ---------- */
.su{display:flex;flex-direction:column;max-height:600px;max-height:min(640px,calc(100vh - 104px));max-height:min(640px,calc(100svh - 104px))}
.su-head,.su-prog,.su-tray{flex:none}
.su-log{flex:0 1 auto;min-height:0;height:auto;overflow:hidden;justify-content:flex-end}
/* Radim 11-14 (dark, 1440: an empty strip over the first messages): the box fits its content and grows with the chat up
   to the same cap; from there the log drops its oldest lines whole as before */
.su-log .gone{display:none}
@media (max-width:599px){
  .su{max-height:520px;max-height:max(440px,calc(100vh - 80px));max-height:max(440px,calc(100svh - 80px));margin-bottom:32px}
  .su-log{padding:10px}
  .su-tray{gap:8px;padding:10px 12px 12px}
  .su-grid.three{grid-template-columns:repeat(3,1fr)}
  .su-pill,.su-chip{min-height:44px}
  .su-card{padding:10px 12px 2px}
  .su-card li{gap:8px;padding:6px 0}
  .su-card li > div > *{display:inline}
  .su-card li small{margin-right:6px}
  .su-card li p{font-size:13.5px}
}
@media (max-width:359px){.js .panels{min-height:600px}.recal-msg{grid-template-columns:1fr}.recal-msg .replay{grid-column:1;grid-row:3}}  /* 320 px phones: content needs more than the svh box; the page scrolls, nothing spills */

/* ================= R9 (Radim 11-11) ================= */
/* --- today's session: the app's workout view (stats, zone time, interval profile with FTP line, repeat brackets) --- */
.sess .title{margin-bottom:8px}
.istats{display:flex;flex-wrap:wrap;gap:2px 22px;align-items:baseline;margin:0 0 10px}
.istats p{display:flex;align-items:baseline;gap:6px}
.istats b{font:600 26px/1.1 var(--mono);letter-spacing:-.03em;color:var(--ink)}
.istats small{font:600 11px/1 var(--body);letter-spacing:.12em;color:var(--muted)}
.izbar{display:flex;gap:2px;height:8px;border-radius:4px;overflow:hidden}
.izbar span{display:block}
.izkey{list-style:none;display:flex;gap:16px;margin:8px 0 6px;font-size:13px}
.izkey li{display:flex;align-items:center;gap:6px}.izkey li b{font-weight:600}
.izkey li::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--sw)}
.iprof{display:flex;flex-direction:column;height:220px;margin-bottom:6px}
.js .panels .iprof{flex:1 1 0;height:auto;min-height:130px}
.brks{position:relative;height:24px;flex:none}
.brk{position:absolute;bottom:5px;padding-bottom:4px;border-bottom:2px solid var(--ink-3);text-align:center;font:500 12px/1 var(--mono);color:var(--ink)}
.plot{position:relative;flex:1;min-height:80px;border-bottom:1px solid var(--line)}
.plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.plot rect{stroke:var(--card);stroke-width:1;vector-effect:non-scaling-stroke}
.plot .z1{fill:var(--z1)}.plot .z2{fill:var(--z2)}.plot .z3{fill:var(--z3)}.plot .z4{fill:var(--z4)}.plot .z5{fill:var(--z5)}
.plot .ftp{stroke:var(--ink-3);stroke-width:1.2;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.ftp-lab{position:absolute;right:0;margin-bottom:4px;padding-left:6px;background:var(--card);font:500 11px/1 var(--mono);color:var(--muted)}
.ticks{position:relative;height:20px;flex:none}
.ticks span{position:absolute;top:5px;transform:translateX(-50%);font:12px/1 var(--mono);color:var(--muted)}
.ticks span:first-child{transform:none}
.steplist li{grid-template-columns:10px 1fr auto auto}
.steplist .easy{color:var(--muted)}
@media (max-width:599px){
  .istats{gap:0 16px}.istats b{font-size:19px}.istats small{font-size:10px}
  .sess .title b{font-size:19px}
  @container (max-height:640px){.sess-grid > div:first-child{display:none}}  /* the profile and the note carry the structure */
}
/* --- recal: the three recalibrated rides are the story; unchanged sessions recede --- */
html:not(.js) .recal-week .chip.rc, .js .recal.s3 .recal-week .chip.rc{background:var(--t1);border-color:var(--blue);box-shadow:0 0 0 1px var(--blue),0 4px 14px -8px rgba(0,117,184,.55)}
html:not(.js) .recal-week .chip.rc .t, .js .recal.s3 .recal-week .chip.rc .t{font-weight:600}
.chip.rc .old{font-size:12px}
.chip.rc .new{font-size:14px;font-weight:700!important}
.chip.rc .new::before{content:"→ ";color:var(--blue);font-weight:700}
.chip.rc .delta{background:var(--blue-fill);color:#fff;font-weight:700;min-height:22px;padding:0 8px}
.chip.rc .bar{height:8px;border-radius:4px;background:var(--card)}
.chip.rc .bar i{border-radius:4px;background:linear-gradient(90deg,var(--line) 0 calc(var(--k) * 100%),var(--blue) 0)}  /* grey = old top, blue = the gain */
html:not(.js) .recal-week .chip:not(.rc), .js .recal.s3 .recal-week .chip:not(.rc){background:transparent;color:#6b7080;border-color:#e8ecf1;--bar:var(--border)}
html:not(.js) .recal-week .chip:not(.rc) .t, .js .recal.s3 .recal-week .chip:not(.rc) .t{font-weight:400}
html:not(.js) .recal-week .chip:not(.rc) svg, .js .recal.s3 .recal-week .chip:not(.rc) svg{stroke:var(--line)}
.js .recal:not(.s4) .rc .new::before{content:""}
/* --- plan by week: months, zone-stacked weeks, week numbers, phase strip, whole-plan summary --- */
.wmonths{position:relative;height:16px;margin:4px 0 0 34px;font:600 12px/1 var(--mono);color:var(--ink)}
.wmonths span{position:absolute;top:0;padding-left:3px;border-left:1px dashed var(--border)}
.wchart{margin:22px 0 0;height:120px}
.panels .panel > .weeks .wchart{flex:1 1 90px;min-height:90px;margin-top:22px}
.wchart .bars{gap:3px}
.wchart .bars i{display:flex;flex-direction:column-reverse;flex:1;overflow:hidden;border-radius:3px 3px 0 0;background:none}
.wchart .bars i span{display:block;flex:none}
.wchart .bars i.now{outline:2px solid var(--blue);outline-offset:1px}
.wnums{position:relative;height:16px;margin-left:34px;font:11px/1 var(--mono);color:var(--muted)}
.wnums span{position:absolute;top:3px;transform:translateX(-50%)}
.wphase{display:flex;gap:3px;height:8px;margin:2px 0 10px 34px}
.wphase i{flex:1;border-radius:2px}
.wleg{display:flex;flex-wrap:wrap;gap:4px 18px;margin-bottom:12px}
.wleg ul{list-style:none;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--muted)}
.wleg li,.wp-k li{display:flex;align-items:center;gap:6px}
.wleg li::before,.wp-k li::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--sw);flex:none}
.wplan{padding-top:10px;border-top:1px solid var(--border)}
.wp-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14px}
.wp-h b{font:800 15px/1.2 var(--head)}
.wp-s{font-size:13px;color:var(--muted);margin:4px 0 8px}.wp-s .num{color:var(--ink);font-size:12.5px}
.wp-bar{display:flex;gap:2px;height:8px;border-radius:4px;overflow:hidden}.wp-bar span{display:block}
.wp-k{list-style:none;display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:12.5px;color:var(--muted)}
.wp-k .num{color:var(--ink)}
@media (max-width:599px){.wleg{gap:2px 12px;margin-bottom:8px}.wleg ul{gap:2px 10px;font-size:12px}.wp-k{gap:2px 10px;font-size:12px}.wplan{padding-top:8px}.wmonths{font-size:11px}}
/* --- FAQ centred like the other sections --- */
.faq .head{justify-content:center}
.qa{margin:0 auto}
/* --- the "try it" section on ink (contrast in gen/README: white 16.6:1, --on-ink-muted 11.0:1, #4db3f0 7.6:1) --- */
.start{background:var(--band);color:#fff}
.start h2{color:#fff}
.start .su-lead{color:var(--on-ink-muted)}
.start .steps li{color:#fff}
.start .steps li::before{color:#4db3f0}
.start .su{border-color:var(--on-ink-line);box-shadow:0 18px 50px -20px rgba(0,0,0,.6)}
.start .btn:focus-visible{box-shadow:0 0 0 3px var(--ink),0 0 0 5px #4db3f0}
@media (max-width:599px){
  .recal-week .chip.rc{border-width:1px;padding-top:4px;padding-bottom:6px}
  .chip.rc .bar{height:6px}.chip.rc .delta{min-height:20px}
}
@media (max-width:359px){.panel > .weeks .app-head .pill{grid-area:3/1}.panel > .weeks .app-head .num{white-space:normal}}
@media (max-width:599px){.recal-week .chip.rc .bar{height:4px}@container (max-height:690px){.recal-week .week{gap:6px}}}
@media (max-width:359px){.nav .btn{padding:0 14px;font-size:15px}.nav .link{padding-inline:6px}}  /* cs "Zaregistrovat se" pushed the 320 px nav 37 px wide */
.istats b.num{font:600 26px/1.1 var(--mono);letter-spacing:-.03em;color:var(--ink)}
@media (max-width:599px){.istats{display:grid;grid-template-columns:repeat(4,auto);justify-content:space-between;gap:0 8px}.istats p{flex-direction:column;gap:2px}.istats b.num{font-size:18px}}
.wphase{margin-bottom:2px}
.wplab{position:relative;height:16px;margin:0 0 8px 34px;font:600 11.5px/1 var(--body);color:var(--blue)}
.wplab span{position:absolute;top:2px;padding-left:3px;border-left:1.5px solid var(--blue);white-space:nowrap}
@media (max-width:599px){.wplab span.short{display:none}.wplab{font-size:11px}}  /* a 2-week peak is 19 px wide on a phone; the race-week flag marks the end */
.start .su{color:var(--ink)}  /* the demo stays the app's light screen, framed on ink */
.steps li{align-content:start}
.integ-note{max-width:none;text-wrap:balance}
.faq .head{flex-direction:column;justify-content:center;text-align:center;gap:10px}
.chip.rc .new::before{color:#00639c}  /* 5.4:1 on --t1; --blue is 4.2 */
@media (max-width:599px){.js .panels .iprof{min-height:112px}}
.plot polygon{stroke:var(--card);stroke-width:1;vector-effect:non-scaling-stroke}
/* R10 (Radim, 1440): air from the week numbers down to "Whole plan"; the flex chart above gives the height back */
@media (min-width:960px){
  .wnums{height:20px}
  .wphase{margin-top:8px;margin-bottom:4px}
  .wplab{margin-bottom:20px}
  .wleg{margin-bottom:24px}
  .wplan{padding-top:20px}
  .wp-s{margin:8px 0 12px}
  .wp-k{margin-top:12px}
}
.izkey{flex-wrap:wrap;row-gap:2px}@media (max-width:599px){.izkey{gap:2px 10px;font-size:12px}}
@media (max-width:599px){
  .izkey{flex-wrap:nowrap;justify-content:space-between;gap:6px;font-size:11.5px}.izkey li{gap:4px}.izkey li::before{width:8px;height:8px}
  .sess .study .cite{margin-top:6px}
}
@container (max-height:700px){.sess-grid > div:first-child{display:none}}
@media (max-width:359px){.izkey{flex-wrap:wrap;justify-content:flex-start;gap:2px 10px}}
html:not(.js) .recal-week .chip:not(.rc) .num, .js .recal.s3 .recal-week .chip:not(.rc) .num{color:inherit}

/* ================= R11 integrations hub (Radim 11-11): marks in round badges aim at dūrō, dūrō speaks to you =========
   build.py writes one coordinate set per layout (desktop 1120×540 left → right, phone 358×372 top → down) as % custom
   properties and each badge's diameter in stage px; sizes scale with the stage (cqw), so lines meet badge centres and
   nothing collides at any width. */
.integ{padding:56px 0}
.integ h2{margin-bottom:0}
.integ .wrap{max-width:1180px}
.hub-wrap{position:relative;max-width:1120px;margin:24px auto 0;container-type:inline-size}
.hub{position:relative;aspect-ratio:1120/430}
.hub svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.hub-m{display:none}
.hub .e{fill:none;stroke:var(--blue);stroke-width:1.5;stroke-opacity:.5}
.hub .pulse{fill:var(--blue);stroke:var(--card);stroke-width:1.5;opacity:0}
.hub-nodes{list-style:none;position:absolute;inset:0;margin:0;padding:0}
.hn{--u:calc(100cqw / 1120);--sz:calc(var(--sn) * var(--u));position:absolute;left:var(--x);top:var(--y);width:0;height:0}
.hn .hb{position:absolute;left:calc(var(--sz) / -2);top:calc(var(--sz) / -2);width:var(--sz);height:var(--sz);display:grid;place-items:center;border-radius:50%;background:var(--card);border:1px solid var(--border);box-shadow:0 8px 20px -12px rgba(26,29,39,.4)}
.hn .hb img{display:block;height:calc(var(--sz) * .5);width:auto;max-width:calc(var(--sz) * .66)}
.hn.word .hb img{height:auto;width:calc(var(--sz) * .7);max-width:none}  /* Wahoo: its wordmark scaled into the same badge, the name under it */
.hn .l{position:absolute;top:calc(var(--sz) / 2 + 6 * var(--u));left:0;transform:translateX(-50%);width:max-content;max-width:calc(92 * var(--u));text-align:center;font:600 max(11px, calc(12.5 * var(--u)))/1.2 var(--body);color:var(--ink)}
.hn.dev .l{top:0;left:auto;right:calc(var(--sz) / 2 + 10 * var(--u));transform:translateY(-50%);max-width:none;text-align:right;white-space:nowrap}
.hn.duro .hb{background:var(--band);border:calc(4 * var(--u)) solid var(--blue);box-shadow:0 0 0 calc(12 * var(--u)) rgba(0,117,184,.16),0 16px 34px -16px rgba(26,29,39,.7)}  /* LANDING-POLISH-1120: a solid blue ring where the blue lines meet, so dūrō reads as the centre (in dark the ink badge sat on an ink page) */
.mark-n{font:900 calc(var(--sz) * .24)/1 var(--head);letter-spacing:-.03em;color:#fff}  /* R13: sized by its badge (30 units on 124 on desktop; on a phone 30 overflowed 68) */.mark-n i{color:var(--red);font-style:normal}
#mascot-anchor-integrations{position:absolute;left:57.143%;top:var(--dy);width:0;height:0}  /* the travelling mascot's seat, on dūrō (build.py: --dy) */
/* R13 (Radim 11-11): the coming ones in a dashed box above the hub, no lines to dūrō */
.soon-box{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 20px;max-width:880px;margin:24px auto 0;padding:12px 18px;border:1.5px dashed var(--line);border-radius:16px}
.soon-tag{display:inline-flex;align-items:center;min-height:24px;margin:0;padding:0 10px;border-radius:999px;background:var(--pill-bg);font:600 12px/1 var(--body);letter-spacing:.04em;color:var(--muted)}
.soon-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin:0;padding:0;list-style:none}
.soon-row li{display:inline-flex;align-items:center;gap:7px;font:500 13px/1.2 var(--body);color:var(--muted)}
.soon-row img{display:block;width:auto;height:20px;filter:grayscale(1);opacity:.6}
.you{position:absolute;z-index:1;left:80%;right:0;top:var(--dy);transform:translateY(-50%);margin:0;padding:12px 14px;text-align:left;background:var(--card);border:1px solid var(--border);border-radius:16px 16px 16px 4px;box-shadow:0 14px 30px -18px rgba(26,29,39,.45)}
.you figcaption{font-size:12px;color:var(--muted);margin-bottom:4px}.you figcaption b{color:var(--ink)}
.you p{font-size:14px;line-height:1.4;color:var(--ink);text-wrap:pretty}
.integ-note{margin-top:16px}
.js .hub-wrap.pre .you{opacity:0;translate:0 8px}
.js .hub-wrap .you{transition:opacity .35s ease-out,translate .35s ease-out}
.js .hub-wrap.lit .hn.duro .hb{animation:hubping .6s ease-out}
@keyframes hubping{from{box-shadow:0 0 0 0 rgba(0,117,184,.45),0 16px 34px -16px rgba(26,29,39,.7)}to{box-shadow:0 0 0 22px rgba(0,117,184,0),0 16px 34px -16px rgba(26,29,39,.7)}}
@media (max-width:599px){
  .integ{padding:32px 0}
  .hub-wrap{max-width:358px;margin-top:16px}.hub{aspect-ratio:358/318}
  .soon-box{max-width:358px;margin-top:16px;padding:10px 12px;gap:8px}
  .soon-row{gap:6px 14px}.soon-row li{font-size:12px;gap:6px}.soon-row img{height:16px}
  .hub-d{display:none}.hub-m{display:block}
  .hn{--u:calc(100cqw / 358);--sz:calc(var(--msn) * var(--u));left:var(--mx);top:var(--my)}
  .hn .l,.hn.dev .l{top:calc(var(--sz) / 2 + 4 * var(--u));left:0;right:auto;transform:translateX(-50%);max-width:calc(58 * var(--u));text-align:center;white-space:normal;font-size:calc(10.5 * var(--u));line-height:1.15}
  .hn.dev .l{white-space:nowrap;max-width:none}
  .hn.tg .l{display:none}  /* the card under it says "dūrō on Telegram" */
  #mascot-anchor-integrations{left:16.8%;top:var(--mdy)}
  .soon-tag{min-height:22px;font-size:11px}
  .you{position:relative;left:auto;right:auto;top:auto;transform:none;margin-top:calc(-18 * 100cqw / 358);padding:calc(22 * 100cqw / 358) 12px 10px;border-radius:14px;text-align:center}
  .you figcaption{font-size:11px;margin-bottom:2px}.you p{font-size:13px;line-height:1.35}
}
.hn.tg{z-index:2}
/* R12 (Radim 11-11, phone): the hub's device names collided and lines ran through the labels. The six device names
   go (the note under the card names them; the badges keep their logos), the other labels get a paper ground the lines
   pass behind, and build.py gives the stage more height round dūrō */
@media (max-width:599px){
  .hn.dev .l{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .hn.main .l{background:var(--card);padding:0 3px;border-radius:3px}
}
/* R12 (Radim 11-11, phone): shorter week chart; sport totals one per line, R13: the times right-aligned under the
   whole plan's total (mono, tabular figures) */
@media (max-width:599px){
  .panels .panel > .weeks .wchart{flex:0 0 auto;height:80px;min-height:0}
  .wp-s .sep{display:none}
  .wp-s .sp{display:flex;justify-content:space-between}
}
/* R13 (Radim 11-11, round 3) */
.plan.pro{border:2px solid var(--blue);background:linear-gradient(180deg,var(--pro-top),var(--card) 120px);box-shadow:0 0 0 4px rgba(0,117,184,.08),0 18px 36px -22px rgba(0,117,184,.6)}  /* a little more present than Free, not louder */
.plan.pro h3{color:var(--blue)}
.no-nav .nav{position:static;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}  /* Radim 11-12: no header bar; the logo and links stay at the top of the hero and scroll away with it. ?nav=1 = the sticky header */
.su-pill[aria-pressed=true][aria-disabled=true]{color:#fff;border-style:solid}  /* the preselected goal sport: was muted ink on blue */
.chip.rc .tg .delta{color:#fff}  /* the recalibrated deltas: .tg .num had made them ink on blue (3.4:1) */
/* R14 (Radim 11-12: "messages in a more eye-catching colour, small icons on the sports").
   Every message from dūrō, in every chat on the page, is the brand blue with white text and stamps: #fff on #0075b8
   4.96:1 (AA). The athlete's replies keep --t1, so the two voices differ by weight, not by hue alone. */
/* R16 (Radim 11-12, "swap message bubbles colors between duro and user"): dūrō speaks in --t1 with ink
   (#1a1d27 on #e0edf7 14:1, stamps --muted 7.9:1), the athlete's replies are the solid brand blue (#fff on #0075b8 4.96:1) */
.b.in,.typing,.recal .bubble .msg,.you{background:var(--t1);border-color:var(--t1);color:var(--ink)}
.b.in time,.recal .bubble .msg time{color:var(--muted)}
.you{box-shadow:none}  /* Radim 11-12: the heavy shadow made it a card, not a message; flat like the chat's dūrō bubbles */
.you figcaption{color:var(--muted)}.you figcaption b,.you p{color:var(--ink)}
.b.out{background:var(--blue-fill);color:#fff}.b.out time{color:#fff}
/* sport icons: the page's one line set (Lucide strokes in the sprite), blue on white, white on a chosen pill */
.su-ic{display:flex;gap:2px;color:var(--blue)}
.su-l{display:flex;align-items:center;gap:8px}  /* R15 (Radim 11-12): the sport's name beside its icon */
.su-ic svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.su-pill .su-l{display:inline-flex}
.su-pill[aria-pressed=true] .su-ic{color:#fff}
.wp-s .n{display:inline-flex;align-items:center;gap:5px}
.wp-s svg{width:15px;height:15px;flex:none;stroke:var(--blue);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:599px){.su-ic svg{width:16px;height:16px}.su-l{gap:6px}.su-grid.three.goals{grid-template-columns:repeat(2,1fr)}}  /* two goal columns on a phone: the name fits beside its icon */

/* R17 (Radim 11-12, "the topo map adds depth and some sections feel messy"): Integrations and the FAQ sit on one white
   sheet each over the terrain map, in the page's card tokens (white, --border, the sign-up form's 24 px radius and
   shadow); its outer edge stays on the gutter lines, the content steps in */
.sheet{background:var(--card);border:1px solid var(--border);border-radius:24px;box-shadow:0 10px 30px -18px rgba(26,29,39,.25);padding:clamp(32px,4vw,56px) clamp(16px,3vw,48px)}
@media (max-width:599px){.you{border-radius:16px 16px 16px 4px;text-align:left}}  /* a message, not a centred card */
/* Radim 11-12, "add the topo to black as well, but just very light": the ink band covers the page's map, so it carries
   its own: the same tile as white lines (the SVG as a mask on white), --topo-ink of it; it scrolls with the band */
:root{--topo-ink:.03}
.start{position:relative;isolation:isolate}
.start::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:#fff;-webkit-mask:url(img/topo.svg) 50% 0/1000px 1000px repeat;mask:url(img/topo.svg) 50% 0/1000px 1000px repeat;opacity:var(--topo-ink)}

/* ---------- round 2 (Radim 11-14) ----------
   Optical centring: each pose is centred on its body, not its bounding box (a raised arm, a thumb or the thought bubble
   pulls the box off the body). Offset = 50 % − the torso's centre in the SVG's viewBox (gen/mascot-meta.json bodyCx,
   from the rig's own torso part): waving 46.27 %, thumbsup 54.74 %, thinking 35.38 %; standing 49.49 % (0.5 px, none).
   resting sits left of the © line, not on an axis. */
.mascot.m-wave{translate:3.73% 0}.mascot.m-thumb{translate:-4.74% 0}.mascot.m-think{translate:14.62% 0}

/* Dark mode follows the system, no toggle. Tokens from the iOS colorsets (duro origin/ios-batch DesignSystem.xcassets,
   dark appearance): ground systemGroupedBackground #0d0f14, cards secondarySystemGroupedBackground #1a1d27, inner
   surfaces tertiary #262a36, label #f2f4f7, secondaryLabel #aab0bc, separator #2e3341, tint #44a1e7 (text, lines,
   focus) over tintFill #0075b8 (fills under white text: pay/selected/replies), duroRed #d90f26 stays the CTA fill,
   duroRedText #ff6b7a for red text, chartLt2 #f04a5a, the zone, zone-ink and zone-tint sets dark, topoInk white at 3 %. */
@media (prefers-color-scheme:dark){
  :root{
    --paper:#0d0f14; --card:#1a1d27; --white:#262a36; --band:#1a1d27;
    --ink:#f2f4f7; --ink-2:#c3c7d0; --ink-3:#aab0bc;
    --blue:#44a1e7; --blue-fill:#0075b8; --red-text:#ff6b7a; --pro-top:#14293a;
    --border:#2e3341; --muted:#aab0bc; --line:#5d6472; --pill-bg:#262a36; --track:rgba(255,255,255,.08);
    --on-ink-muted:#c3c9d3; --on-ink-line:#3a4051;
    --z1:#7cb6e8; --z2:#5ccb7a; --z3:#f2cc4a; --z4:#f59a4e; --z5:#ff6b7a;
    --t1:#16293b; --t2:#142c1d; --t3:#2e2711; --t4:#33210f; --t5:#361419;
    --i1:#7cb6e8; --i2:#5ccb7a; --i3:#f2cc4a; --i4:#f59a4e; --i5:#ff6b7a;
    --topo:.03; --topo-c:#ffffff;
    --ring:0 0 0 3px var(--paper),0 0 0 5px var(--blue);
  }
  html{color-scheme:dark}
  .mark i,.su-card h4 i,.mark-n i,.chart .lt-lab.l2,.wchart .race-flag{color:var(--red-text)}
  .chart .lt2 line,.chart .mk.b{stroke:#f04a5a}
  .tablist [role=tab]:not([aria-selected=true]):hover{background:rgba(255,255,255,.08)}
  .tablist [role=tab][aria-selected=true]{box-shadow:0 1px 2px rgba(0,0,0,.5)}
  .ph-rec{background:#343a49}
  html:not(.js) .recal-week .chip:not(.rc), .js .recal.s3 .recal-week .chip:not(.rc){color:#8d94a2;border-color:var(--border)}
  .su-card li > i{border-color:#2a5476}
  .start .btn:focus-visible{box-shadow:0 0 0 3px var(--band),0 0 0 5px #4db3f0}
  /* vendor marks are drawn for white: their badges stay white; the greyed "coming soon" marks turn light */
  .hn:not(.duro) .hb{background:#fff;border-color:#fff}
  .soon-row img{filter:grayscale(1) invert(1);opacity:.7}
  .app,.chatwin,.su,.sheet,.plan,.frame{box-shadow:none}
  /* LANDING-POLISH-1120 (Radim 11-20, dark): a lighter chat ground, so dūrō's bubbles (--t1) stand off it (1.04:1 on
     --white); links on it go a step lighter to keep 4.5:1 (#6cb8f0 on #343a49 5.3:1, muted 5.2:1) */
  .clog,.su-log{background:#343a49;--blue:#6cb8f0}
  .hn.duro .hb{box-shadow:0 0 0 calc(12 * var(--u)) rgba(68,161,231,.22),0 16px 34px -16px rgba(0,0,0,.7)}
}

/* ---------- round 3 (Radim 11-14, iPhone, dark) ----------
   (1) Tab panels fit their own content: no shared grid cell, no fixed phone box (R7/R8 retired). Hidden panels leave
   the flow; charts, the session profile and the weeks chart take their own heights again instead of filling the box;
   the phone's size containment goes (it would collapse an auto-height panel to 0; nothing in a panel uses cq units).
   No minimum height: the tabs sit above the panel, so a height change moves only what is below it, never the tab
   under the finger (TABS: the page does not move). Vertical gaps inside the panels ~20 % tighter; targets unchanged. */
.js .panels{display:block;height:auto;min-height:0}
.js .panels > .panel{display:flex;flex-direction:column;container-type:normal}
.js .panels > .panel[hidden]{display:none}
.panel > .app,.panel > .chatwin,.panel > .recal{flex:none}
.js .panels .chart{flex:none;aspect-ratio:360/250;min-height:0}
@media (min-width:600px){.js .panels .chart{aspect-ratio:auto;height:380px}}  /* a wide frame would make the 360:250 curve ~750 px tall */
.js .panels .iprof{flex:none;height:200px;min-height:0}
.panels .panel > .weeks .wchart{flex:none;height:120px;min-height:0;margin-top:18px}
.app-head{margin-bottom:11px}
.marks-cap{margin:24px 0 11px}
.zkey{gap:5px 14px;margin:8px 0 13px}
.sess .title{margin-bottom:6px}
.sess-grid{gap:18px}
.steplist{gap:6px}
.study .cite{margin-top:10px}
.istats{margin-bottom:8px}
.izkey{margin:6px 0 5px}
.recal-msg{gap:10px}
.clog{gap:5px}
.day{padding-top:6px}
@media (max-width:599px){
  .js .panels .iprof{height:160px}
  .panels .panel > .weeks .wchart{height:80px;margin-top:16px}
  .weeks .app-head,.recal-week .app-head{margin-bottom:8px}
  .marks-cap{margin:21px 0 8px}
  .zkey{gap:3px 12px;margin:6px 0 8px}
  .sess-grid{gap:10px;margin-top:8px}
  .study .cite{margin-top:6px}
  .recal-week .week{gap:6px}
}
@media (max-width:359px){.js .panels{min-height:0}}
/* (2) Closing section: in dark mode it sits on the page ground, and the page's own topo runs on across it (its own
   topo layer would double the lines). Light mode keeps the ink band. */
@media (prefers-color-scheme:dark){
  .start{background:transparent}
  .start::before{display:none}
  .start .btn:focus-visible{box-shadow:0 0 0 3px var(--paper),0 0 0 5px #4db3f0}
}
/* (3) One button per pricing tier, at the card's foot so both line up: blue (pay/subscribe buttons are blue, never
   red); the recommended tier (Pro) filled, Free outlined; 48 px tall; the page's focus ring. */
.plan{display:flex;flex-direction:column}
.plan .pact{margin-top:auto;padding-top:24px}
.pbtn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:0 20px;border:2px solid var(--blue-fill);border-radius:999px;font:600 16px/1 var(--body);text-decoration:none;cursor:pointer;touch-action:manipulation;transition:background .15s ease,color .15s ease,transform .15s ease}
.pbtn:hover{text-decoration:none}
.pbtn:active{transform:scale(.98)}
.pbtn.fill{background:var(--blue-fill);color:#fff}
.pbtn.fill:hover{background:#00639c;border-color:#00639c}
.pbtn.line{background:transparent;color:var(--blue)}
.pbtn.line:hover{background:rgba(0,117,184,.08)}
@media (prefers-color-scheme:dark){.pbtn.line{border-color:var(--blue)}.pbtn.line:hover{background:rgba(68,161,231,.12)}}
.pricing .cta{margin-top:-40px}  /* the trial line sits under the cards (the shared button went into the cards) */

/* ---------- the scroll coach (round 5, Radim 11-14: the 11-11 prototype's rig and engine; site.js, last IIFE; motion
   only, html.ms-on) ----------
   One coach on the page: the static mascots he lands on keep their boxes (visibility), so at rest he covers his own
   still exactly; the pricing one goes (he cheers on the podium instead) and so does the footer's. The other seats are
   the prototype's square stage boxes (mascot-scroll.css, the flat seats): bottom edge his ground line, height his
   stage. The layer sits under the nav (5), over the hub's nodes (2); the tab frame and the podium sit in front of it
   (4), so he leans and ducks behind the frame. x-clipped, so a walk past the edge never widens the page. */
.ms-layer{position:absolute;left:0;top:0;width:100%;height:0;overflow-x:clip;z-index:3;pointer-events:none}
.ms-stage{position:absolute;left:-150px;top:-300px;width:300px;height:300px;transform-origin:50% 100%;will-change:transform}
.ms-stage svg{display:block;width:100%;height:100%;overflow:visible}
.ms-on .hero img.mascot,.ms-on .faq .head img.mascot,.ms-on .start img.mascot,.ms-on .foot img.mascot{visibility:hidden}
/* Round 5 (review round 4 #3): what changes the flow is set at first paint, from the head line's ms-js (Element.animate
   and DOMMatrix there) and the motion setting, not once the coach is built, so a reload at Pricing does not shift the
   cards. Reduced motion (also switched on live) puts it back. */
@media (prefers-reduced-motion:no-preference){.ms-js .pricing img.mascot{display:none}}
.ms-seat{position:absolute;aspect-ratio:1;pointer-events:none}
.ms-on .frame.tabs{z-index:4}
.ms-on .sec.hero{overflow-x:clip}  /* the wide tab seat reaches past the screen edge: no sideways scroll from it */
/* tabs, leaning (the standing drawing tipped 9° onto its left elbow, the right foot tapping). Below 1240 px: over the
   frame's top-right corner, the elbow on the rim, the rest behind the frame; he ducks behind it (260 ms) once his head
   reaches the nav. From 1240 px: in the right-side margin, his elbow on the frame's right edge, his feet 40vh below
   the frame's top (in view as the frame crosses the line) */
#mascot-anchor-tabs{--ms-duck:1;--w:140px;right:6px;bottom:calc(100% - .34 * var(--w));width:var(--w)}
@media (min-width:600px){#mascot-anchor-tabs{--w:180px}}
@media (min-width:1240px){#mascot-anchor-tabs{--ms-side:1;--ms-duck:0;--w:clamp(120px,calc((100vw - 1080px) / 2 + 30px),210px);right:auto;bottom:auto;left:calc(100% - .11 * var(--w));top:calc(40vh - var(--w))}}
/* integrations, writing (the lactate-meter drawing): on top of dūrō's badge on desktop, left of it on a phone, clear of
   Claude's label; sized in the hub's own units (build.py --dy / --mdy) */
.ms-on #mascot-anchor-integrations{--u:calc(100cqw / 1120);width:calc(156 * var(--u));height:auto;aspect-ratio:1;top:calc(var(--dy) - 60 * var(--u));translate:-50% -100%}
@media (max-width:599px){.ms-on #mascot-anchor-integrations{--u:calc(100cqw / 358);width:calc(100 * var(--u));top:calc(var(--mdy) + 34 * var(--u))}}
/* pricing: he cheers (hops) on the podium's 1st step on the Pro card; 1st step white on #0075b8 4.96:1, the others
   ink on the zone tint */
.podium{position:absolute;z-index:4;bottom:100%;right:28px;display:flex;align-items:flex-end;gap:3px;pointer-events:none}  /* decorative (review round 4 #4) */
.podium > span{display:grid;place-items:center;width:44px;height:30px;border-radius:6px 6px 0 0;background:var(--t1);color:var(--ink);font:900 15px/1 var(--head)}
.podium > .p1{position:relative;width:58px;height:44px;background:var(--blue-fill);color:#fff}
.podium > .p3{height:20px}
#mascot-anchor-pricing{z-index:-1;left:50%;bottom:calc(100% - 2px);width:130px;translate:-50% 0}
@media (max-width:719px){
  @media (prefers-reduced-motion:no-preference){.ms-js .pricing .plans{gap:184px}}  /* stacked cards: the gap above the Pro card holds the podium and him */
  .podium{right:16px}.podium > span{width:36px;height:24px;font-size:13px}.podium > .p1{width:46px;height:36px}.podium > .p3{height:16px}
  #mascot-anchor-pricing{width:110px}
}

/* ---------- round 5 (Radim 11-14): the signup demo ----------
   No Continue in the race step (it sends itself, site.js raceTray); each answer has the app's Change under it
   (chat-parts.tsx Answer: Blue text, a 44 px target). Every control shows its edge at 3:1 or more on the card
   (T2 SU-CONTRAST): the pills, chips and the date field take 75 % Blue on the card (3.2:1 light, 4.0:1 dark), and in
   dark the dark Continue (--band = the card, 1:1, review round 4 #1) is Blue #0075b8, white label 4.96:1. */
:root{--su-edge:#4098ca}
.su-chip,.su-pill,.su input[type=date]{border-color:var(--su-edge)}
.su-field{display:grid;gap:6px}
.ans{align-self:flex-end;display:flex;flex-direction:column;align-items:flex-end;max-width:min(92%,560px)}
.ans .b{max-width:100%}
.su-change{min-height:44px;min-width:44px;margin-right:-8px;padding:0 8px;border:0;border-radius:8px;background:none;color:var(--blue);font:600 14px/1 var(--body);cursor:pointer;touch-action:manipulation}
.su-change:hover{text-decoration:underline;text-underline-offset:4px}
@media (prefers-color-scheme:dark){
  :root{--su-edge:#3a80b7}
  .su-go{background:var(--blue-fill)}
  .su-go:hover:not([disabled]){background:#00639c}
}

/* ---------- chat demo: one constant card height (Radim 11-14: "keep the container size constant") ----------
   The card is a fixed box in every state (before, during and after the messages, every tab visit); the log scrolls
   inside it and site.js keeps the newest message in view. Heights = the tallest final state at that width (measured
   1440: ~590, 768: ~660, 390: ~440) rounded up. */
.js .panels .panel > .chatwin{height:600px;min-height:0;grid-template-rows:minmax(0,1fr)}
.js .panels .cmain{min-height:0}
.js .panels .clog{overflow-y:auto;overscroll-behavior:contain;justify-content:flex-start}
.js .panels .clog > .daysep:first-child{margin-top:auto}  /* short logs sit on the bottom; a long one scrolls from the top */
@media (max-width:959px){.js .panels .panel > .chatwin{height:680px}}
@media (max-width:599px){.js .panels .panel > .chatwin{height:460px}}
