/*
 * repupp.fit: the same look as the app (src/shared/theme.ts). Near-black background, charcoal
 * glass panels, red for filled buttons and state only, yellow for text that should stand out.
 */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/jakarta-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/jakarta-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/jakarta-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/jakarta-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/jakarta-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/jakarta-800-italic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/grotesk-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121316;
  --surface: #1d1e22;
  --raised: #25262b;
  --hairline: rgba(255, 255, 255, 0.07);
  --border: #2e2f35;
  --text: #f4f4f5;
  --muted: #a7a7ae;
  /* Fills and state only: under 4.5:1 on the background, so never for text. */
  --primary: #de3515;
  --primary-soft: #2a1510;
  --on-primary: #ffffff;
  --accent: #f5b700;
  --danger: #f2547d;
  --success: #6fd394;
  --radius: 12px;
  --shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-tech: 'Space Grotesk', var(--font);
  --gutter: 20px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  top: 16px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Brand ------------------------------------------------------------------------------- */

/* The RepUp wordmark: "Rep" in white, "Up" in the accent colour, extra-bold italic. */
.wordmark {
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.wordmark span {
  color: var(--accent);
}

.label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tagline {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3em;
  word-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---- Navigation -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 19, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.nav__brand {
  font-size: 26px;
}

.nav__brand:hover {
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a:not(.button) {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.nav__links a:not(.button):hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav__links a:not(.button) {
    display: none;
  }
}

/* ---- Buttons and fields (AuthButton / AuthField in the app) ------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font: 700 16px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.button:hover {
  text-decoration: none;
  opacity: 0.9;
}

.button:active {
  transform: translateY(1px);
  opacity: 0.8;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button--small {
  height: 42px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: var(--radius);
}

.button--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s;
}

.field:focus-within {
  border-color: var(--accent);
}

.field svg {
  flex: none;
  color: var(--muted);
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 16px var(--font);
  caret-color: var(--primary);
}

.field input::placeholder {
  color: var(--muted);
}

/* ---- Panels (Panel in the app: dark glass with a faint top highlight) -------------------- */

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--hairline), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
}

/* ---- Beta form --------------------------------------------------------------------------- */

.beta-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.beta-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.beta-form__row .button {
  height: 58px;
}

@media (max-width: 520px) {
  .beta-form__row {
    grid-template-columns: 1fr;
  }
}

/* A field bots fill in and people never see. */
.beta-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.beta-form__note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.beta-form__status {
  margin: 0;
  min-height: 1.4em;
  font-weight: 500;
  font-size: 14px;
}

.beta-form__status[data-tone='error'] {
  color: var(--danger);
}

.beta-form__status[data-tone='success'] {
  color: var(--success);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 70%);
}

/* The faint dumbbell behind the start screen's logo. */
.hero__mark {
  position: absolute;
  top: -40px;
  right: -120px;
  width: 760px;
  color: rgba(222, 53, 21, 0.1);
  transform: rotate(-20deg);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero__copy {
  display: grid;
  gap: 22px;
}

.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__points svg {
  color: var(--accent);
}

.hero__phone {
  display: flex;
  justify-content: center;
}

/* ---- Sections ---------------------------------------------------------------------------- */

.section {
  padding: 96px 0;
}

@media (max-width: 700px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }
}

.section__head {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 44px;
}

.section__head h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section__head p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

/* ---- Features ---------------------------------------------------------------------------- */

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 24px;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--accent);
}

.feature h3 {
  margin: 0;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---- Showcase ---------------------------------------------------------------------------- */

.showcase {
  background: linear-gradient(180deg, var(--bg), #16171b 50%, var(--bg));
}

.showcase__grid {
  display: grid;
  gap: 56px 40px;
  justify-items: center;
}

@media (min-width: 900px) {
  .showcase__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.showcase__item {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: 100%;
  text-align: center;
}

.showcase__item h3 {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 19px;
}

.showcase__item p {
  margin: 0;
  max-width: 22em;
  font-size: 15px;
  color: var(--muted);
}

/* ---- Steps ------------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: grid;
  gap: 10px;
  padding: 26px 24px 26px 28px;
}

/* The red bar down the left edge marks the item in focus, as on the workout screen. */
.step::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.step__number {
  font: 700 13px var(--font-tech);
  letter-spacing: 0.18em;
  color: var(--accent);
}

.step h3 {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---- FAQ --------------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  padding: 0 22px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font: 600 24px/1 var(--font-tech);
  color: var(--accent);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ---- Beta call to action ----------------------------------------------------------------- */

.cta {
  display: grid;
  gap: 28px;
  padding: 44px 36px;
  background:
    linear-gradient(135deg, rgba(222, 53, 21, 0.18), transparent 55%),
    linear-gradient(180deg, var(--hairline), transparent 40%),
    var(--surface);
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 56px;
  }
}

@media (max-width: 520px) {
  .cta {
    padding: 32px 20px;
  }
}

.cta h2 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta p {
  margin: 0;
  color: var(--muted);
}

/* ---- Footer ------------------------------------------------------------------------------ */

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: grid;
  gap: 8px;
}

.footer__brand .wordmark {
  font-size: 24px;
}

.footer small {
  color: var(--muted);
  font-size: 13px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-weight: 600;
  font-size: 14px;
}

.footer__links a {
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--text);
}

/* ---- Document pages (privacy, delete account) -------------------------------------------- */

.doc {
  padding: 56px 0 96px;
}

.doc__inner {
  max-width: 760px;
}

.doc h1 {
  margin: 12px 0 8px;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.doc__meta {
  margin: 0 0 36px;
  color: var(--muted);
}

.doc h2 {
  margin: 44px 0 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 24px 0 8px;
  font-weight: 700;
  font-size: 17px;
}

.doc p,
.doc li {
  color: #d6d6da;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--text);
}

.doc__card {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 26px 24px;
}

.doc__card p {
  margin: 0;
}

.doc__card .button {
  justify-self: start;
}

.center-page {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 64px 0;
  text-align: center;
}

.center-page__box {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 520px;
}

.center-page h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.03em;
}

.center-page p {
  margin: 0;
  color: var(--muted);
}

/* ---- Phone mockups ----------------------------------------------------------------------- */
/*
 * Drawn in CSS from the app's screens. Sizes inside the screen are in em, and the screen's font
 * size follows the phone's width (container query units), so a narrow phone scales as a whole.
 */

.phone {
  container-type: inline-size;
  width: min(300px, 100%);
  aspect-ratio: 300 / 620;
  padding: 9px;
  border-radius: 46px;
  background: #0a0b0d;
  box-shadow:
    0 0 0 1px #34353c,
    inset 0 0 0 1px #000,
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(222, 53, 21, 0.08);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: var(--bg);
  font-size: calc(100cqw / 24.5);
  line-height: 1.35;
  text-align: left;
}

.screen__status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.6em;
  padding: 0 1.8em;
  font: 600 0.95em var(--font-tech);
  color: var(--text);
}

/* The punch-hole camera. */
.screen__status::after {
  content: '';
  position: absolute;
  top: 0.75em;
  left: 50%;
  width: 0.95em;
  height: 0.95em;
  margin-left: -0.475em;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1px #1a1b1f;
}

.screen__icons {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.screen__icons i {
  display: block;
  width: 1.1em;
  height: 0.7em;
  border-radius: 0.15em;
  background: var(--text);
}

.screen__icons i:first-child {
  width: 0.8em;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-radius: 0;
}

.screen__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  padding: 0.4em 1.15em 1.2em;
  overflow: hidden;
}

.screen__title {
  padding: 0.4em 0 0.6em;
  text-align: center;
  font-weight: 600;
  font-size: 1.25em;
}

.m-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 1.1em;
  border: 1px solid var(--border);
  border-radius: 0.9em;
  background:
    linear-gradient(180deg, var(--hairline), transparent 40%),
    var(--surface);
  box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.4);
}

.m-panel--square {
  border-radius: 0.2em;
}

.m-panel--raised {
  background:
    linear-gradient(180deg, var(--hairline), transparent 40%),
    var(--raised);
}

.m-panel--bar {
  padding-left: 1.5em;
}

.m-panel--bar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3em;
  background: var(--primary);
}

.m-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.78em;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.m-label--muted {
  color: var(--muted);
}

.m-label--tech {
  font-family: var(--font-tech);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.m-dot {
  width: 0.7em;
  height: 0.7em;
  background: var(--primary);
}

.m-big {
  font-weight: 700;
  font-size: 2em;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.m-muted {
  color: var(--muted);
}

.m-small {
  font-size: 0.92em;
}

.m-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.3em;
  border-radius: 0.9em;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 1.05em;
}

.m-button--outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.m-button--square {
  border-radius: 0.2em;
  font-family: var(--font-tech);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.m-tip {
  flex-direction: row;
  gap: 0.8em;
}

.m-tip svg {
  flex: none;
  width: 1.6em;
  height: 1.6em;
  color: var(--accent);
}

.m-tip p {
  margin: 0.25em 0;
  font-size: 1.05em;
  line-height: 1.35;
}

.m-link {
  font-weight: 600;
  font-size: 0.92em;
  color: var(--accent);
}

.m-list {
  padding: 0;
  gap: 0;
}

.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding: 0.85em 1.1em;
}

.m-row + .m-row {
  border-top: 1px solid var(--border);
}

.m-row b {
  display: block;
  font-weight: 700;
  font-size: 1.12em;
}

.m-row small {
  display: block;
  font-size: 0.85em;
}

.m-date {
  font-weight: 500;
  font-size: 0.85em;
  color: var(--accent);
}

.m-chevron {
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}

/* Workout screen: the technical variant, square panels and Space Grotesk. */

.m-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2em 0 0.4em;
}

.m-timer {
  font: 600 1.15em var(--font-tech);
  font-variant-numeric: tabular-nums;
}

.m-finish {
  padding: 0.45em 0.9em;
  border-radius: 0.2em;
  background: var(--primary);
  font: 700 0.85em var(--font-tech);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.m-exercise {
  font-weight: 700;
  font-size: 1.45em;
  line-height: 1.15;
}

.m-target {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font: 700 2.1em var(--font-tech);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.m-target small {
  font-size: 0.5em;
  color: var(--muted);
}

.m-sets {
  display: grid;
  gap: 0.35em;
  font-family: var(--font-tech);
  font-variant-numeric: tabular-nums;
}

.m-sets__row {
  display: grid;
  grid-template-columns: 2.2em 1fr 1fr 1fr 1.6em;
  align-items: center;
  gap: 0.4em;
  min-height: 2.5em;
  padding: 0 0.6em;
  border: 1px solid transparent;
  border-radius: 0.2em;
  font-weight: 600;
  font-size: 1.02em;
}

/* Smaller text inside the cells, so the columns (sized in em) still line up with the rows. */
.m-sets__row--head {
  min-height: 1.6em;
  color: var(--muted);
}

.m-sets__row--head span {
  font-size: 0.7em;
  letter-spacing: 0.16em;
}

.m-sets__row--done {
  background: var(--surface);
}

.m-sets__row--current {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.m-sets__row--done .m-check {
  background: var(--accent);
}

.m-check {
  justify-self: end;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.m-sets__row--done .m-check {
  border-color: var(--accent);
}

.m-sets__prev {
  color: var(--muted);
  font-size: 0.9em;
}

.m-rest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 0.9em;
  border-radius: 0.2em;
  border: 1px solid var(--border);
  font: 600 0.95em var(--font-tech);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.m-rest b {
  font-size: 1.15em;
  letter-spacing: 0;
  color: var(--accent);
}

/* Workout complete: the achievement card. */

.m-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  padding: 1.4em 1.3em;
  border: 1px solid var(--border);
  border-radius: 1.1em;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(222, 53, 21, 0.35), transparent 60%),
    linear-gradient(180deg, var(--primary-soft), var(--surface));
  box-shadow: 0 0.8em 2em rgba(0, 0, 0, 0.5);
}

.m-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-card__head .wordmark {
  font-size: 1.5em;
}

.m-card__title {
  font-weight: 800;
  font-size: 2.3em;
  line-height: 1;
  letter-spacing: -0.03em;
}

.m-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em;
}

.m-stat {
  display: grid;
  gap: 0.2em;
  padding: 0.7em 0.6em;
  border-radius: 0.6em;
  background: rgba(0, 0, 0, 0.28);
}

.m-stat b {
  font: 700 1.3em var(--font-tech);
  font-variant-numeric: tabular-nums;
}

.m-stat span {
  font: 600 0.62em var(--font-tech);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.m-highlight {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 0.8em;
  border-radius: 0.6em;
  background: rgba(245, 183, 0, 0.12);
  font-weight: 600;
  font-size: 0.95em;
}

.m-highlight svg {
  flex: none;
  width: 1.4em;
  height: 1.4em;
  color: var(--accent);
}

.m-heading {
  padding: 0.6em 0 0.2em;
  text-align: center;
}

.m-heading b {
  display: block;
  font-weight: 700;
  font-size: 1.5em;
}
