/* Gym Bro marketing site — matches FitTheme dark mint system */
:root {
  color-scheme: dark;
  --bg: #111111;
  --bg-elevated: #1a1a1a;
  --text: #f4f4f4;
  --muted: #a8a8a8;
  --mint: #c2f552;
  --on-accent: rgba(0, 0, 0, 0.88);
  --hairline: rgba(255, 255, 255, 0.14);
  --orange: #ff8c59;
  --radius: 8px;
  --space-sm: 0.625rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3.5rem;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 68rem;
  --content: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #d6ff7a;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--mint);
  color: var(--on-accent);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.1rem clamp(1rem, 4vw, 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: calc(var(--radius) + 2px);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--mint);
}

/* ——— Landing hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 32%,
    rgba(0, 0, 0, 0.72) 58%,
    rgba(17, 17, 17, 0.98) 88%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 7.5rem clamp(1rem, 4vw, 2rem) 3rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-tag {
  margin: 0.85rem 0 0;
  color: var(--mint);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 700;
}

.hero-lede {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.store-badge img {
  display: block;
  max-width: none;
  flex-shrink: 0;
  width: auto;
  height: 48px;
}

/* The 646x250 Google asset has 41px of transparent space on each edge.
   Align its 564x168 visible badge with Apple's 48px badge without distortion. */
.store-badge-google img {
  height: calc(48px * 250 / 168);
  margin: calc(-48px * 41 / 168);
}

.store-badge:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--mint);
  color: var(--on-accent);
}

.btn-primary:hover {
  color: var(--on-accent);
  background: #d6ff7a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

/* ——— Content sections ——— */
.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) clamp(1rem, 4vw, 2rem);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section > p.lede {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.feature-list strong {
  color: var(--mint);
  font-weight: 700;
}

.feature-list span {
  color: var(--muted);
}

@media (max-width: 560px) {
  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--mint);
}

/* ——— Interior pages ——— */
.page {
  padding: 5.5rem clamp(1rem, 4vw, 2rem) 3rem;
}

.page-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.page-inner.wide {
  width: min(100%, 46rem);
}

.page h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.page .meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.page p,
.page li {
  color: var(--muted);
}

.page ul {
  padding-left: 1.15rem;
}

.page li {
  margin: 0.35rem 0;
}

.page strong {
  color: var(--text);
  font-weight: 650;
}

.panel {
  margin-top: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.panel p {
  margin: 0.4rem 0;
}

/* Join */
.join-code {
  margin: 1rem 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  letter-spacing: 0.12em;
  color: var(--mint);
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-width: 22rem;
}

button.btn {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--hairline);
}

button.btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Motion — restrained */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.55s ease both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
