/* MatchWOD, página de apresentação. Tokens = os da app (ios/DESIGN.md, «Cores»); a página é só escura (a app
   tem tema claro desde 28/10/2026, ver «Temas»; o site fica no escuro, que é o defeito e a cara da marca). */

/* As duas letras vêm do próprio site (OFL; licenças ao lado), em woff2 e só com os carateres latinos (pt e en):
   Barlow 20 KB, Nunito 30 KB (pesos 400 a 800). A Nunito só se descarrega fora da Apple, onde o `ui-rounded` (o SF
   Rounded da app) não existe. Para refazer: fontTools (varLib.instancer wght=400:800 e subset --flavor=woff2). */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/assets/fonts/BarlowCondensed-ExtraBoldItalic-latin.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #15161B;
  --card: #212329;
  --card-high: #2B2D34;
  --line: rgba(255, 255, 255, .08);
  --text: #F3F4F7;
  --text-dim: #9499A3;
  --text-faint: #858B96;
  --accent: #DC3942;
  --accent-text: #F26B72;
  --accent-fill: #C9303A;
  --good: #32D583;
  --info: #35C6F4;
  --warn: #F7B955;
  --glow-opacity: .28;

  --font-ui: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif-condensed, system-ui, sans-serif;

  --gutter: 16px;
  --section: 72px;
  --radius-card: 20px;
  --radius-tile: 14px;
  --nav-h: 64px;
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --section: 120px; }
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` ganha sempre a um `display` de classe (os cartões da lista de espera são grid) */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--font-ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 20;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1184px; margin: 0 auto; padding: 0 var(--gutter); }

/* O brilho do dia: a cor de estado a vazar do topo até meio do ecrã, como o GlowBackground da app.
   Vermelho no esforço do WOD; verde quando a secção «todas as manhãs» entra. */
/* Presos à página, não ao ecrã: o vermelho fica no topo (hero) e o verde na secção da manhã, e as secções do meio
   ficam no fundo liso. */
.glow {
  position: absolute; inset: 0 0 auto; height: 100vh; z-index: -1; pointer-events: none;
  transition: opacity 1.2s ease-out;
}
.daily { position: relative; }
.daily .glow { height: min(100vh, 100%); }
.glow-effort { background: linear-gradient(180deg, rgb(220 57 66 / var(--glow-opacity)), transparent 50%); }
.glow-good { background: linear-gradient(180deg, rgb(50 213 131 / var(--glow-opacity)), transparent 50%); opacity: 0; }
body.day-good .glow-effort { opacity: 0; }
body.day-good .glow-good { opacity: 1; }

/* ---------- Tipografia ---------- */

.display {
  font: italic 800 clamp(3.5rem, 10vw, 7.25rem)/.9 var(--font-display);
  letter-spacing: -.005em;
}
.display span { display: block; }

.h2 {
  font: italic 800 clamp(2.25rem, 5.2vw, 3.75rem)/.98 var(--font-display);
  max-width: 18ch;
  text-wrap: balance;
}
.h3 { font: 700 1.1875rem/1.3 var(--font-ui); }

.kicker { color: var(--text-dim); font-weight: 600; font-size: 1rem; margin-bottom: 18px; }
.lead { color: var(--text-dim); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.55; max-width: 34em; margin-top: 20px; }
.lead.narrow { max-width: 38em; }
.fine { color: var(--text-faint); font-size: .875rem; line-height: 1.5; max-width: 38em; }
.fine.strong { color: var(--text-dim); font-weight: 600; margin-top: 6px; }

/* ---------- Botões e campos ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--accent-fill); color: #fff; /* 5,29:1 com branco; o accent daria 4,46 */
  font: 700 1rem/1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease-out, transform .1s ease-out;
}
.btn:hover { background: #B32A33; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .22); margin-top: 32px; }
.btn-ghost:hover { background: rgb(255 255 255 / .06); }

.link { color: var(--accent-text); font-weight: 700; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; padding: 0; }
input[type=email] {
  width: 100%; min-height: 48px; padding: 0 16px;
  background: var(--card); color: var(--text);
  border: 1px solid rgb(255 255 255 / .14); border-radius: 12px;
  font: 400 1rem var(--font-ui); /* 16 px: o Safari do iPhone faz zoom abaixo disto */
}
input[type=email]::placeholder { color: var(--text-faint); }
input[type=email]:hover { border-color: rgb(255 255 255 / .24); }
input[aria-invalid=true] { border-color: var(--accent-text); }
.err { color: var(--accent-text); font-size: .875rem; margin-top: 8px; }

/* ---------- Barra de topo (fundo sólido: nada de gradientes atrás da marca) ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.lockup img { width: 52px; height: auto; }
.wordmark { font: italic 800 1.625rem/1 var(--font-display); color: var(--text); }
.wordmark span { color: var(--accent); }
.nav-links { display: none; gap: 28px; }
.nav-links a, .lang { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav-links a:hover, .lang:hover { color: var(--text); }
.lang { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
@media (max-width: 400px) {
  .nav .btn-sm { padding: 0 12px; }
  .wordmark { font-size: 1.375rem; }
  .lockup img { width: 42px; }
}

/* ---------- Hero ---------- */

.hero { padding-top: 56px; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
}
.hero .lead { margin-top: 28px; }
/* «Vai sair para iPhone, Android e web.»: logo a seguir ao texto, antes do formulário */
.hero-note { margin-top: 14px; color: var(--text); font-weight: 600; }

.signup-inline { margin-top: 36px; max-width: 34rem; }
.signup-inline .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inline-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) {
  .inline-row { flex-direction: row; }
  .inline-row input { flex: 1; }
}
.signup-inline .fine:first-of-type { margin-top: 14px; }
.signup .ok-title { font: italic 800 2rem/1 var(--font-display); }
.signup .ok-text { color: var(--text-dim); margin-top: 10px; }

/* Numa coluna só, o telemóvel empurrava a curva (a prova do que o título promete) para ecrã e meio abaixo do
   formulário: abaixo de 960px sai, e a curva vem logo a seguir. */
.hero-phone { display: none; justify-content: center; }
@media (min-width: 960px) { .hero-phone { display: flex; } }

/* A curva: ocupa a largura toda, por baixo do texto */
.trace { position: relative; margin: 40px 0 0; }
.trace svg { width: 100%; height: clamp(150px, 19vw, 240px); }
.trace-block { fill: rgb(220 57 66 / .14); }
.trace-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Os rótulos ficam numa faixa por cima da curva, cada um à esquerda da sua ronda (não tapam a linha) */
.trace { padding-top: 46px; }
.trace-labels { position: absolute; inset: 0 0 auto; height: 46px; pointer-events: none; }
.trace-label {
  position: absolute; top: 0; padding-left: 10px; border-left: 1px solid rgb(220 57 66 / .5);
  display: flex; flex-direction: column; gap: 2px;
  font-size: .8125rem; color: var(--text-dim); font-weight: 600;
}
.trace-label b { color: var(--text); font-size: .9375rem; }
.trace figcaption { margin-top: 14px; }
@media (max-width: 560px) {
  .trace-label { font-size: .6875rem; padding-left: 4px; }
  .trace-label b { font-size: .8125rem; }
}

/* A orquestração do hero (o único momento de movimento que ninguém pediu): a linha desenha-se da esquerda,
   e cada ronda acende quando a linha lhe chega ao fim (--d = onde a ronda acaba, de 0 a 1). */
.js .trace-draw { transform: scaleX(0); transform-origin: 0 0; }
.js .trace-area, .js .trace-block, .js .trace-label { opacity: 0; }
.js .trace.is-in .trace-draw { transform: scaleX(1); transition: transform 2.4s cubic-bezier(.3, .1, .3, 1); }
/* Não com stroke-dasharray + pathLength: com o traço que não escala (vector-effect) o tracejado não bate com o
   comprimento da linha em ecrãs largos, e via-se o fim da curva antes de tempo e faltava-lhe o fim depois */
.js .trace.is-in .trace-area { opacity: 1; transition: opacity .8s ease-out 2s; }
.js .trace.is-in .trace-block,
.js .trace.is-in .trace-label { opacity: 1; transition: opacity .45s ease-out; transition-delay: calc(var(--d) * 2.4s); }

/* ---------- Telemóvel desenhado (os ecrãs são a app, com os tokens dela) ---------- */

.phone {
  width: min(300px, 82vw); aspect-ratio: 300 / 620;
  padding: 10px; border-radius: 46px; background: #000;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 80px -30px rgb(0 0 0 / .8);
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; padding: 44px 14px 14px;
  background: var(--bg); display: flex; flex-direction: column; gap: 10px;
  font-size: 12px;
}
.glow-screen-effort { background: linear-gradient(180deg, rgb(220 57 66 / .28), var(--bg) 50%); }
.glow-screen-good { background: linear-gradient(180deg, rgb(50 213 131 / .28), var(--bg) 50%); }
.app-bar { color: var(--accent-text); font-weight: 600; font-size: 13px; }
.app-title { font: 700 22px/1.1 var(--font-ui); }
.app-sub { color: var(--text-dim); font-size: 11px; margin-top: -6px; }
.app-card { background: var(--card); border-radius: var(--radius-tile); padding: 12px; }
.app-chart { padding: 8px; }
.app-chart svg, .proposal-chart { width: 100%; height: 72px; }
.mini-blocks rect { fill: rgb(220 57 66 / .2); }
.mini-line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--card); border-radius: var(--radius-tile); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.tile-label { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.tile-value { font: 700 24px/1.1 var(--font-ui); }
.tile-value small, .metric-value small { font-size: .5em; color: var(--text-dim); font-weight: 600; }
.tile-note { color: var(--text-faint); font-size: 10px; }
.rounds ol { display: grid; gap: 7px; margin-top: 8px; }
.rounds li { display: grid; grid-template-columns: 22px 1fr 34px; align-items: center; gap: 8px; font-weight: 600; }
.rounds li span:last-child { text-align: right; }
.rbar { height: 6px; border-radius: 3px; background: var(--card-high); position: relative; overflow: hidden; }
.rbar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); background: var(--accent); border-radius: 3px; opacity: .55; }
.rounds .slow .rbar::after { opacity: 1; }
.rounds .slow { color: var(--accent-text); }

/* ---------- Secções ---------- */

.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }

.steps { display: grid; gap: 40px; margin-top: 48px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step p { color: var(--text-dim); margin-top: 8px; }
.step-n { display: block; font: italic 800 1.75rem/1 var(--font-display); color: var(--accent-text); margin: 24px 0 10px; }
.step-visual {
  height: 268px; border-radius: var(--radius-card); background: var(--card);
  padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.step-visual.center { align-items: center; justify-content: center; }

.paste { color: var(--text-faint); font-size: .8125rem; line-height: 1.35; border-left: 2px solid var(--card-high); padding-left: 10px; }
.plan-list { display: grid; gap: 6px; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; background: var(--card-high); border-radius: 10px; padding: 8px 10px; font-size: .875rem; font-weight: 600; }
.plan-list b { color: var(--text-dim); font-weight: 600; }
.ico { width: 18px; height: 18px; border-radius: 50%; background: rgb(220 57 66 / .25); box-shadow: inset 0 0 0 2px var(--accent); }

/* Apple Watch desenhado: os ecrãs da app de relógio (ios/DESIGN.md, «Relógio»). Fundo preto, números grandes na Barlow
   (WatchBrand.number), texto semibold arredondado, cores do WatchBrand. Desenhado a 46 mm (416 × 496 px a metade) */
.aw {
  --aw-w: 198px; --aw-h: 236px;
  position: relative; width: calc(var(--aw-w) + 24px); height: calc(var(--aw-h) + 24px); flex: none;
  border-radius: 54px; background: linear-gradient(160deg, #3a3c43, #1c1d22 55%, #2b2d33); padding: 12px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 60px -20px rgb(0 0 0 / .7);
}
/* Coroa e botão lateral */
.aw::before { content: ''; position: absolute; right: -7px; top: 58px; width: 9px; height: 40px; border-radius: 4px; background: linear-gradient(90deg, #2b2d33, #4a4c54); }
.aw::after { content: ''; position: absolute; right: -4px; top: 116px; width: 5px; height: 46px; border-radius: 3px; background: #2b2d33; }
.aw-screen {
  position: relative; height: 100%; border-radius: 42px; background: #000; overflow: hidden;
  padding: 14px 14px 12px; display: flex; flex-direction: column; color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: 13px; line-height: 1.2;
}
.aw-num { font-family: var(--font-display); font-style: italic; font-weight: 800; font-variant-numeric: tabular-nums; line-height: .9; }
.aw-dim { color: rgb(255 255 255 / .7); font-weight: 500; }
.aw-clock { text-align: right; font-size: 15px; }
.aw-title { text-align: right; font-size: 15px; color: rgb(255 255 255 / .6); margin-top: -1px; }
.aw-red { color: #F26B72; }
/* Halo da zona atrás da FC (Z4 âmbar, Z5 laranja) */
.aw-halo::before { content: ''; position: absolute; right: -50px; top: -10px; width: 230px; height: 190px; background: radial-gradient(closest-side, rgb(255 89 54 / .3), transparent); pointer-events: none; }
.aw-halo-done::before { right: auto; left: 50%; top: -60px; transform: translateX(-50%); width: 260px; height: 170px; background: radial-gradient(closest-side, rgb(255 199 89 / .26), transparent); }
.aw-halo > * { position: relative; }

/* Início: uma linha por treino com a duração e a miniatura do perfil de esforço */
.aw-rows { display: grid; gap: 5px; margin: 6px -6px 0; flex: 1; grid-auto-rows: 1fr; }
.aw-row { background: #1C1C1E; border-radius: 12px; padding: 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; }
.aw-row span { font-size: 12px; color: var(--c); }
.aw-row-loose { background: #3A3A3C; justify-content: center; }

/* Passo em curso: tempo e FC lado a lado, o bloco da ronda e a faixa de tempos */
.aw-head { font-size: 13px; color: #F26B72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-head span { color: rgb(255 255 255 / .7); font-weight: 500; }
.aw-pair { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.aw-pair .aw-num { font-size: 46px; }
.aw-pair small { display: block; font-size: 12px; margin-top: 3px; }
.aw-hr { text-align: right; color: #FF5936; }
.aw-hr .aw-num { color: #FF5936; }
.aw-hr .aw-num { display: inline-flex; align-items: center; }
.aw-hr .heart { width: 16px; fill: #FF5936; margin-right: 3px; }
.aw-round { flex: 1; margin-top: 8px; border-radius: 12px; background: #2A1013; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #F26B72; font-size: 12px; }
.aw-round .aw-num { font-size: 40px; color: #fff; }
.aw-round .aw-num span { font-size: 22px; color: #F26B72; }
.aw-strip { display: flex; justify-content: space-between; align-items: baseline; margin-top: 7px; padding-top: 4px; border-top: 1px solid rgb(255 255 255 / .2); }
.aw-strip span { font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.aw-strip .aw-num { font-size: 18px; margin-left: 4px; color: #fff; }

/* Fim: o tempo, as zonas, três mosaicos e «Seguinte» */
.aw-done { display: flex; justify-content: space-between; font-size: 13px; margin-top: 4px; }
.aw-done b { text-transform: uppercase; }
.aw-done span { color: rgb(255 255 255 / .7); font-weight: 500; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-big { font-size: 64px; text-align: center; margin: 4px 0 6px; }
.aw-zones { display: flex; gap: 2px; height: 6px; }
.aw-zones i { flex: var(--z); border-radius: 3px; background: var(--c); }
.aw-zline { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; }
.aw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 7px; }
.aw-tiles div { background: #1C1C1E; border-radius: 10px; padding: 5px 2px; text-align: center; display: grid; gap: 1px; font-size: 10px; color: rgb(255 255 255 / .7); font-weight: 500; }
.aw-tiles .aw-num { font-size: 19px; color: #fff; }
.aw-tiles .hot { color: #FF5936; }
.aw-btn { margin-top: auto; background: #C9303A; border-radius: 12px; text-align: center; padding: 8px; font-size: 15px; }

/* No passo 2 o relógio entra mais pequeno, no cartão de 268 px */
.step-visual .aw { transform: scale(.88); }

/* Secção do relógio: o texto e dois relógios, o do passo e o do fim */
.watch-visual { display: flex; justify-content: center; align-items: center; gap: 20px; }
.watch-visual .aw:last-child { transform: translateY(36px); }
@media (max-width: 560px) {
  .watch-visual { gap: 10px; }
  .watch-visual .aw { transform: scale(.74); margin: -32px -26px; }
  .watch-visual .aw:last-child { transform: scale(.74) translateY(40px); }
}
.heart { width: 18px; fill: var(--accent); }

.proposal { display: flex; flex-direction: column; gap: 6px; }
.proposal-chart { height: 62px; }
.proposal-title { font-weight: 700; font-size: 1rem; margin-top: 6px; }
.proposal-title span { color: var(--text-dim); font-weight: 600; }
.proposal-hint { color: var(--text-faint); font-size: .8125rem; }
.app-btn { display: block; text-align: center; background: var(--accent-fill); color: #fff; border-radius: 10px; padding: 10px; font-weight: 700; font-size: .875rem; margin-top: 4px; }
.proposal-links { display: flex; justify-content: center; gap: 24px; color: var(--text-dim); font-size: .8125rem; }

/* Painel: quatro números com escala */
.panel {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin-top: 48px; border-radius: var(--radius-card); overflow: hidden;
  background: var(--line); /* o 1 px entre células é o fundo a aparecer */
}
@media (min-width: 900px) { .panel { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--card); padding: 22px 18px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 196px; }
.metric .tile-label { font-size: .6875rem; }
.metric-value { font: 700 clamp(2.25rem, 4.4vw, 3.25rem)/1 var(--font-ui); margin-top: auto; }
.metric-note { color: var(--text-dim); font-size: .875rem; line-height: 1.35; }
.scale { position: relative; height: 6px; border-radius: 3px; background: var(--card-high); }
.scale-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--accent); border-radius: 3px; }
.scale-dot { position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--card); }
.scale-zones { background: linear-gradient(90deg, rgb(220 57 66 / .12), rgb(220 57 66 / .3) 40%, rgb(220 57 66 / .6) 70%, var(--accent)); }
.zones { display: flex; gap: 2px; height: 6px; }
.zones i { flex: var(--z); border-radius: 2px; background: var(--accent); }
.zones i:nth-child(1) { opacity: .15; } .zones i:nth-child(2) { opacity: .3; } .zones i:nth-child(3) { opacity: .5; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 22px; }
.mini-bars i { width: 10px; height: calc(var(--h) * 100%); background: var(--card-high); border-radius: 2px; }
.mini-bars i.hot { background: var(--accent); }
.js .panel .scale-fill { width: 0; }
.js .panel .scale-dot { left: 0; }
.js .panel.is-in .scale-fill { width: calc(var(--v) * 100%); transition: width .9s ease-out; }
.js .panel.is-in .scale-dot { left: calc(var(--v) * 100%); transition: left .9s ease-out; }
.after { margin-top: 24px; }

/* Duas colunas: texto e um ecrã */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .split.reverse > :first-child { order: 2; }
}
.points { display: grid; gap: 14px; margin-top: 28px; max-width: 34em; }
.points li { padding-left: 18px; position: relative; color: var(--text-dim); }
.points li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.points-accent li::before { background: var(--accent); }
.phone-wrap { display: flex; justify-content: center; }

.hero-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 14px; box-shadow: inset 0 0 0 1px rgb(50 213 131 / .35); border-radius: 22px; }
.ring { position: relative; width: 96px; height: 96px; }
.ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--card-high); }
.ring-fill { stroke: var(--good); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); }
.js .hero-card .ring-fill { stroke-dashoffset: 100; }
.js .hero-card.is-in .ring-fill { stroke-dashoffset: calc(100 - var(--v)); transition: stroke-dashoffset 1.1s ease-out .2s; }
.ring-score { position: absolute; inset: 22px 0 auto; text-align: center; font: 700 30px/1 var(--font-ui); }
.ring-label { position: absolute; inset: 56px 0 auto; text-align: center; font-size: 6.5px; line-height: 1.2; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.hero-card-text { display: flex; flex-direction: column; gap: 3px; }
.verdict-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; gap: 3px 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.verdict-row .why { grid-column: 1; grid-row: 2; }
.verdict-row .verdict { grid-column: 1 / span 2; }
.verdict-row .badge-pro { grid-column: 2; grid-row: 2; justify-self: end; }
.verdict-row .chev { grid-column: 3; grid-row: 1 / span 2; color: var(--text-faint); font-size: 16px; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-weight: 700; font-size: 11px; }
.status i, .verdict i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero-card-title { font: 700 17px/1.15 var(--font-ui); }
.hero-card-reason { color: var(--text-dim); font-size: 11px; line-height: 1.3; }
.week { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.week-bars { display: flex; align-items: flex-end; gap: 5px; height: 26px; }
.week-bars i { width: 9px; height: calc(var(--h) * 100%); border-radius: 2px; background: var(--card-high); }
.week-bars i.today { background: var(--good); }
.verdict { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--text); }
.verdict i { color: var(--good); }
.why { color: var(--text-dim); font-size: 11px; }

.plan-today { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.plan-name { font-weight: 700; font-size: 14px; }
/* Texto claro sobre o vermelho: o accentText sobre este fundo dava 4,47:1 (Lighthouse) */
.pill { font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; background: rgb(220 57 66 / .32); color: var(--text); }

/* Recordes e a imagem de partilha */
.records-visual { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 16px; align-items: center; }
.records { padding: 18px; }
.records ul { display: grid; margin-top: 8px; }
.records li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.records li:first-child { border-top: 0; }
.records li span { display: flex; flex-direction: column; }
.records b { font-weight: 700; }
.records em { font-style: normal; color: var(--text-dim); font-size: .8125rem; }
.records strong { font: 700 1.25rem/1 var(--font-ui); }
.records .pr em, .records .pr strong { color: var(--accent-text); }
.share {
  aspect-ratio: 9 / 16; border-radius: 16px; background: #000; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1);
}
.share-name { font: italic 800 1.25rem/1 var(--font-display); }
.share-result { font: italic 800 3.5rem/.9 var(--font-display); color: var(--accent); }
.share-detail { color: var(--text-dim); font-size: .75rem; font-weight: 600; }
.share-line { width: 100%; height: 56px; margin-top: auto; }
.share-line path { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.share-mark { font: italic 800 1rem/1 var(--font-display); margin-top: 10px; }
.share-mark span { color: var(--accent); }
@media (max-width: 480px) { .records-visual { grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; } .share-result { font-size: 2.75rem; } }

/* App web: uma janela de browser com a semana do /plan e o volume */
.web-head { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .web-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.web-head .checks { margin-top: 0; }
.browser { margin-top: 48px; border-radius: var(--radius-card); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgb(0 0 0 / .8); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--card-high); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .14); }
.browser-bar span { margin-left: 12px; font-size: .8125rem; color: var(--text-dim); background: var(--bg); padding: 4px 12px; border-radius: 8px; }
.browser-body { display: grid; gap: 1px; background: var(--line); }
@media (min-width: 900px) { .browser-body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.web-week, .web-volume { background: var(--bg); padding: 20px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.day { min-height: 116px; border-radius: 12px; background: var(--card); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.dow { font-size: .75rem; font-weight: 700; color: var(--text-dim); }
.day.today .dow { color: var(--accent-text); }
.wchip { font-size: .75rem; font-weight: 600; line-height: 1.25; padding: 6px; border-radius: 8px; overflow-wrap: break-word; hyphens: auto; }
.wchip.wod { background: rgb(220 57 66 / .18); }
.wchip.run { background: rgb(53 198 244 / .16); }
.vbars { display: flex; align-items: flex-end; gap: 5px; height: 116px; margin-top: 12px; }
.vbars i { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 2px; background: linear-gradient(0deg, var(--accent) 0 calc(var(--a) * 100%), transparent 0); position: relative; border-radius: 3px 3px 0 0; opacity: .55; }
.vbars i::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--a) * 100% + 2px); height: calc(var(--b) * 100%); background: var(--info); border-radius: 3px 3px 0 0; }
.vbars i.now { opacity: 1; }
.legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .75rem; color: var(--text-dim); }
.lg { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lg:first-child { margin-left: 0; }
.lg.wod { background: var(--accent); }
.lg.run { background: var(--info); }
@media (max-width: 640px) {
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day { min-height: 92px; }
}

/* Coaches */
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px;
  background: rgb(220 57 66 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26B72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.board { padding: 18px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.board-title { font-weight: 700; font-size: 1.0625rem; }
.chips { display: flex; gap: 6px; }
.chip { font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--card-high); color: var(--text-dim); }
.chip.on { background: var(--accent-fill); color: #fff; }
.board ol { display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 26px 1fr auto 56px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card-high); }
.board .pos { font: italic 800 1.125rem/1 var(--font-display); color: var(--text-dim); }
.board .who { font-weight: 700; }
.board .tag { font-size: .6875rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgb(255 255 255 / .08); }
/* Adaptado: só contorno, para o textDim ficar sobre o cardHigh (4,81:1); sobre o fundo da etiqueta dava 3,73:1 */
.board .tag-dim { color: var(--text-dim); background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.board .res { text-align: right; font-weight: 700; }
.board .me { box-shadow: inset 3px 0 0 var(--accent); background: rgb(220 57 66 / .12); }
.board .me .pos { color: var(--accent-text); }

/* Privacidade */
.facts { display: grid; gap: 28px; margin-top: 48px; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.fact { border-top: 1px solid var(--line); padding-top: 22px; }
.fact svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.fact p { color: var(--text-dim); margin-top: 8px; }

/* Lista de espera */
.join-grid { display: grid; gap: 40px; align-items: start; }
.join-rounds { margin-top: 32px; max-width: 22rem; padding: 16px; }
/* Numa coluna, o cartão das rondas punha o email ~520 px abaixo; posto depois do formulário, ficava solto e a meia largura
   (26/10/2026): no telemóvel sai, e a página acaba no formulário */
@media (max-width: 899px) { .join-grid .signup { margin-top: 32px; } .join-rounds { display: none; } }
/* «Sou coach» no formulário do topo: uma caixa de 44 px de toque, discreta ao lado do email */
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; color: var(--text-dim); font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-fill); margin: 0; }
@media (min-width: 900px) { .join-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 64px; } }
.display-h2 { font-size: clamp(2.75rem, 7vw, 5rem); }
.signup.app-card { padding: 24px; display: grid; gap: 22px; border-radius: var(--radius-card); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--bg); }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; font-weight: 700; color: var(--text-dim); transition: background-color .15s ease-out, color .15s ease-out; }
.seg input:checked + span { background: var(--card-high); color: var(--text); }
.seg input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }

/* Beta do iPhone e listas de espera (28/10/2026). O telemóvel escolhido muda os textos da página toda (`data-p` no body, posto
   pelo site.js); sem JS fica o iPhone, que vem escolhido. A pastilha verde é a única coisa aberta. */
.avail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.avail li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--card); font-size: .9375rem; font-weight: 700; color: var(--text); }
.avail li span { color: var(--text-dim); font-weight: 600; }
.avail li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.avail li.open::before { background: var(--good); box-shadow: 0 0 0 4px rgb(50 213 131 / .18); }
.signup-inline .seg-platform { max-width: 22rem; margin-bottom: 12px; }
.seg-platform span { flex-direction: column; line-height: 1.15; padding: 6px 0; }
.seg-platform small { display: block; margin-top: 1px; font-size: .75rem; font-weight: 600; color: var(--text-faint); }
.seg-platform input:checked + span small { color: var(--text-dim); }
.seg-platform input + .is-open small { color: var(--good); }
body:not([data-p=android]) .only-android, body[data-p=android] .only-ios { display: none; }
.signup .box-check { display: none; }
.signup:has(input[name=role][value=coach]:checked) .box-check { display: inline-flex; }
.badge-wait { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 6px; padding: 3px 9px; border-radius: 999px; background: var(--card-high); color: var(--warn); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge-wait::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.lockup-foot { margin: 0; }
.lockup-foot > span { display: flex; flex-direction: column; gap: 6px; }
.slogan { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.footer-by { margin: 0; color: var(--text-dim); font-size: .9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: .9375rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); }

/* Movimento reduzido: tudo abre já no sítio, como na app */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .trace-draw { transform: none; }
  .js .trace-area, .js .trace-block, .js .trace-label { opacity: 1; }
  .js .panel .scale-fill { width: calc(var(--v) * 100%); }
  .js .panel .scale-dot { left: calc(var(--v) * 100%); }
  .js .hero-card .ring-fill { stroke-dashoffset: calc(100 - var(--v)); }
}

/* Campo isco dos formulários: fora do ecrã (não display:none, que alguns bots saltam) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Página das ligações da lista de espera (confirmar, sair) */
.list-main { padding: 72px var(--gutter) 96px; max-width: 40rem; display: grid; gap: 20px; }
.list-card { padding: 28px; display: grid; gap: 18px; justify-items: start; border-radius: var(--radius-card); }
.list-card .lead { margin-top: 0; }
.list-status { color: var(--text); font-weight: 600; min-height: 1.5em; }

/* Política de privacidade: texto corrido, linha curta */
.policy { padding: 64px var(--gutter) 96px; max-width: 44rem; }
.policy .h3 { margin: 36px 0 8px; }
.policy p { color: var(--text-dim); max-width: 38em; }
.policy .lead { margin: 16px 0 0; }
.policy .fine { margin-top: 12px; }
.policy p:last-child { margin-top: 48px; }
.policy p + p, .policy .policy-list + p { margin-top: 12px; }
.policy-list { color: var(--text-dim); max-width: 38em; padding-left: 1.25em; list-style: disc; }
.policy-list li + li { margin-top: 8px; }

/* Fora do telemóvel desenhado, o cartão das rondas lê-se ao tamanho do resto da página */
.join-rounds .tile-label { font-size: 11px; }
.join-rounds li { font-size: .9375rem; }

/* ---------- Novidades de 26/10/2026: Premium, sinais e Forma aeróbia, força, formatos ---------- */

/* A pastilha «Premium» é a da app (PremiumBadge): cadeado, maiúsculas, acento com branco (5,29:1) */
.badge-pro {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: middle;
  font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  padding: 3px 7px; border-radius: 999px; background: var(--accent-fill); color: #fff;
}
.badge-pro::before {
  content: ''; width: 8px; height: 8px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Formatos que a app lê, por baixo dos três passos */
.formats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 40px; }
.formats-label { color: var(--text-dim); font-weight: 600; }
.formats ul { display: flex; flex-wrap: wrap; gap: 8px; }
.formats li { background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: .875rem; font-weight: 600; }

/* Hoje: sinais de repouso em quatro mosaicos e o cartão da Forma aeróbia */
.signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.signals > div { background: var(--card); border-radius: 12px; padding: 7px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.signals .why { font-size: 8px; line-height: 1.2; }
.signals b { font: 700 14px/1.1 var(--font-ui); white-space: nowrap; }
.signals b small, .aerobic b small { font-size: .6em; color: var(--text-dim); font-weight: 600; }
.sig-up { color: var(--good); font-size: 8px; line-height: 1.2; font-weight: 700; }
.aerobic { display: flex; flex-direction: column; gap: 3px; }
.aerobic-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.aerobic b { font: 700 16px/1.15 var(--font-ui); }
.aerobic .sig-up { font-size: 10px; }

/* Força: a % do 1RM resolvida no plano, por baixo dos recordes */
.pct { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.pct-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--card-high); border-radius: 10px; padding: 8px 10px; font-size: .875rem; font-weight: 600; }
.pct-row b { color: var(--accent-text); }

/* Grátis, Premium e Box Premium */
.tiers { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier { padding: 24px; display: flex; flex-direction: column; gap: 6px; border-radius: var(--radius-card); }
.tier-pro { box-shadow: inset 0 0 0 1.5px var(--accent); }
.tier-name { font: italic 800 1.75rem/1 var(--font-display); text-transform: uppercase; }
.tier-pro .tier-name { color: var(--accent-text); }
.tier-who { color: var(--text-dim); font-size: .9375rem; }
.tier-list { display: grid; gap: 10px; margin: 14px 0 6px; }
.tier-list li { position: relative; padding-left: 26px; }
.tier-list li::before {
  content: ''; position: absolute; left: 0; top: .25em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2332D583' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tier-pro .tier-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26B72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.tier-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-dim); font-weight: 600; }
.plans-seal { margin-top: 20px; color: var(--text-dim); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* O selo não fecha nada: verde, com o visto (o checkmark.seal da app), em vez do cadeado do Premium */
.badge-seal {
  display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1; padding: 3px 7px; border-radius: 999px;
  background: rgb(50 213 131 / .16); color: var(--good);
}
.badge-seal::before { content: '✓'; font-size: 10px; }
