/* FitFormBuddy exercise library — shared styles (brand tokens from the app). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
  --accent: #D4FF4F;
  --bg: #000000;
  --surface: #15171C;
  --surface-alt: #1D2026;
  --stroke: #2A2E36;
  --text-dim: #9AA0AB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: #fff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 20px)
           calc(env(safe-area-inset-right) + 20px)
           calc(env(safe-area-inset-bottom) + 28px)
           calc(env(safe-area-inset-left) + 20px);
  -webkit-tap-highlight-color: transparent;
}

.top { width: 100%; display: flex; justify-content: center; }
.top .logo { width: 92px; height: auto; display: block; }
.top .home { display: block; }

main { width: 100%; max-width: 560px; }

h1 { font-size: 26px; font-weight: 700; letter-spacing: 0.2px; margin-top: 18px; }
.library h1, .exercise h1 { text-align: center; }
.tagline { margin-top: 8px; font-size: 14px; color: var(--text-dim); text-align: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  margin-top: 16px;
}
.card h2 {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 12px;
}

/* ---------- library index ---------- */
.ex-list { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.ex-card {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: #fff;
  padding: 14px;
  transition: transform 120ms ease, border-color 120ms ease;
}
.ex-card:active { transform: scale(0.98); }
@media (hover: hover) { .ex-card:hover { border-color: rgba(212, 255, 79, 0.45); } }
.ex-card img {
  width: 72px; height: 72px; border-radius: 14px;
  object-fit: cover; background: var(--surface-alt);
  flex: none;
}
.ex-text { flex: 1; min-width: 0; }
.ex-name { display: block; font-size: 16px; font-weight: 700; }
.ex-sub { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-dim); }
.chev { flex: none; width: 18px; height: 18px; stroke: var(--text-dim); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- exercise page ---------- */
.crumbs { margin-top: 18px; font-size: 12.5px; color: var(--text-dim); }
.crumbs a { color: var(--text-dim); }
.exercise .crumbs { text-align: center; }

.tags { margin-top: 12px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text-dim);
  border: 1px solid var(--stroke); border-radius: 999px;
  padding: 5px 12px;
}

.demo { padding: 0; overflow: hidden; }
.demo video { display: block; width: 100%; height: auto; }

.muscle-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; margin-top: 8px; }
.muscle-row strong { color: var(--text-dim); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; min-width: 86px; }
.chip {
  display: inline-block;
  background: rgba(212, 255, 79, 0.10);
  border: 1px solid rgba(212, 255, 79, 0.3);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px; font-weight: 600;
  text-decoration: none;
}
.hint-line { margin-top: 12px; font-size: 12px; color: var(--text-dim); }

.cues { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.cues li::marker { color: var(--accent); font-weight: 700; }

.mistakes { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.mistakes strong { color: #fff; }

.coach p { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.checks { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.checks li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
}
.checks .watch { color: #fff; }
.checks .say { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; margin-top: 24px; padding: 24px 20px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; }
.cta h2 { font-size: 17px; font-weight: 700; }
.cta p { margin-top: 8px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.stores { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.stores a { display: block; }
.stores img { display: block; height: 44px; width: auto; }

footer { margin-top: 36px; text-align: center; }
.foot-links { font-size: 12.5px; color: var(--text-dim); display: flex; gap: 10px; justify-content: center; }
.foot-links a { color: var(--text-dim); }
.copyright { margin-top: 14px; font-size: 11px; letter-spacing: 1.5px; color: var(--text-dim); opacity: 0.55; text-transform: uppercase; }

@media (min-width: 700px) {
  .top .logo { width: 110px; }
  h1 { font-size: 30px; }
}
