/* Gym Coach · visual
   Base: design system Lingo (Open Design), versão clara, com acentos pastéis
   rosa, roxo e amarelo escolhidos pelo Marcelo (opção 2, 23/11/2026).
   Pedido explícito: nada "agrupado demais"; espaço generoso entre blocos.
   Corpo em 16 px (não 9 pt do padrão de relatórios): no iPhone, campos
   abaixo de 16 px disparam zoom automático e o app é usado com uma mão. */

:root {
  /* tokens Lingo (tokens.css) */
  --bg: #fbf9ff;
  --surface: #ffffff;
  --lavender: #f1ecff;
  --fg: #1d1b2a;
  --fg-2: #4f4863;
  --muted: #786f8f;
  --border: #ded7f0;
  --border-soft: #eee9f8;
  --accent: #6d4aff;
  --accent-press: #4b2fd1;
  /* pastéis do Gym Coach */
  --pink-bg: #ffe1ef;
  --pink-fg: #a3245f;
  --yellow-bg: #fff1bf;
  --yellow-fg: #5a4300;
  --ok: #22a06b;
  --danger: #e5484d;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px rgba(45, 36, 85, 0.08);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* Mobile-first: 20 px de respiro lateral + áreas seguras do iPhone */
.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 32px) 20px calc(env(safe-area-inset-bottom) + 24px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.top { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.lead { font-size: 17px; color: var(--fg-2); }
.muted { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.tint-lavender { background: var(--lavender); border-color: transparent; box-shadow: none; }

.card-head { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none; }
.dot.ok { background: var(--ok); }
.dot.err { background: var(--danger); }

.kv { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; border-top: 1px solid var(--border-soft); }
.kv div { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.kv dt { font-size: 13px; color: var(--muted); }
.kv dd { font-size: 16px; font-weight: 500; word-break: break-all; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--fg-2); }
.steps li.done { color: var(--fg); }

/* pílulas: raio maior que cards (hierarquia de arredondamento) */
.pill { flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; min-width: 74px; text-align: center; }
.pill-yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
.pill-pink { background: var(--pink-bg); color: var(--pink-fg); }

.actions { display: flex; flex-direction: column; gap: 12px; }
.btn {
  font: inherit; font-weight: 600; font-size: 16px;
  min-height: 52px; border-radius: var(--radius-md); border: 0; cursor: pointer;
  padding: 14px 18px; -webkit-tap-highlight-color: transparent;
  transition: transform 150ms cubic-bezier(.22,1,.36,1);
}
.btn:active { transform: translateY(2px); }
/* botão principal Lingo: borda inferior 3D "apertável" */
.btn-primary { background: var(--accent); color: #fff; border-bottom: 4px solid var(--accent-press); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }

/* Desktop: mais respiro, mesma coluna (app pensado para o celular) */
@media (min-width: 768px) {
  .app { padding-top: 56px; gap: 32px; }
  h1 { font-size: 40px; }
  .card { padding: 28px 28px; }
}

/* === Splash M2Labs (cópia fiel do componente oficial) === */
#m2-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; background: #F4EEE1; opacity: 1; transition: opacity .55s ease;
}
#m2-splash.m2-hide { opacity: 0; pointer-events: none; }
#m2-splash .m2-castor { width: 150px; height: 150px; filter: drop-shadow(0 6px 18px rgba(154,102,56,0.18)); animation: m2pop .7s cubic-bezier(.2,.8,.25,1) both; }
#m2-splash .m2-word { font-family: "DM Sans", "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 46px; letter-spacing: -1px; color: #2D2A26; animation: m2rise .7s ease .12s both; }
#m2-splash .m2-word b { color: #A0673C; font-weight: 700; }
#m2-splash .m2-sign { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 16px; color: #5F5140; animation: m2rise .7s ease .22s both; }
@keyframes m2pop { from { opacity:0; transform: scale(.82); } to { opacity:1; transform: scale(1); } }
@keyframes m2rise { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* === Assinatura M2Labs (componente oficial, variante clara) === */
.m2-sig { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px 8px; text-align: center; }
.m2-sig .m2-app { font-size: 8pt; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #9b8e78; margin-bottom: 6px; }
.m2-sig .m2-app .sep { margin: 0 6px; opacity: .6; }
.m2-sig .m2-line { width: 46px; height: 1px; background: #E1CFB2; margin-bottom: 10px; }
.m2-sig .m2-castor { width: 40px; height: 40px; filter: drop-shadow(0 4px 12px rgba(154,102,56,0.16)); }
.m2-sig .m2-word { font-family: "DM Sans", "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.4px; color: #2D2A26; }
.m2-sig .m2-word b { color: #A0673C; font-weight: 700; }
.m2-sig .m2-sign { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 12.5px; color: #5F5140; }
