/*
 * Menos site — shared theme.
 *
 * Mirrors the in-app aesthetic so the App Store → site → app handoff
 * feels like one product:
 *   - dark surfaces (#0a0a0a) + electric-blue accent (#3B82F6)
 *   - monospaced caps for labels/CTAs (JetBrains Mono)
 *   - clean sans for body (Inter)
 *   - pixel-art mascot + class sprites embedded as <img>
 *   - day-tint accents (push red / pull blue / legs purple / fullbody gold)
 *
 * Pages link this once (<link rel="stylesheet" href="/assets/menos.css">)
 * — keep all page-specific tweaks INLINE in the page's <style> block
 * rather than expanding this file with one-off rules.
 */

/* ── Reset + variables ──────────────────────────────────────────── */

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

:root {
  /* Surfaces */
  --bg:           #0a0a0a;
  --surface:      #111111;
  --surface-2:    #1a1a1a;
  --border:       #1e1e1e;
  --border-light: #2a2a2a;

  /* Brand — electric blue (matches app exactly) */
  --primary:        #3B82F6;
  --primary-dim:    rgba(59, 130, 246, 0.12);
  --primary-glow:   rgba(59, 130, 246, 0.35);
  --primary-bright: #5C9CFF;

  /* Day-tint palette — same as the in-app workout-type colors */
  --push:   #FF6B52;  /* red-orange (chest pump) */
  --pull:   #3B82F6;  /* electric blue (lat spread) */
  --legs:   #B884FF;  /* purple (squat power) */
  --gold:   #FFD466;  /* gold (full body / general health) */

  /* Status colors */
  --green:  #22C55E;
  --amber:  #F59E0B;
  --error:  #EF4444;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted:     #6B7280;
  --text-faint:     #404040;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Pixel art images need nearest-neighbor scaling to stay crisp. */
img.pixel,
.pixel img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ── Layout ─────────────────────────────────────────────────────── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

/* ── Typography helpers ────────────────────────────────────────── */

/* Monospaced caps label — matches the "STREAK · 7 DAYS" pattern from
 * the app's stats screen. Use sparingly: section labels, button text,
 * chips. Never for paragraphs. */
.mono-caps {
  font-family: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', ui-monospace, monospace;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.mono-caps.tight  { letter-spacing: 0.12em; }
.mono-caps.wide   { letter-spacing: 0.24em; }

/* Wordmark — italic Plus Jakarta Sans, gradient fill. */
.wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav ────────────────────────────────────────────────────────── */

nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* ── Primary CTA button (matches in-app START WORKOUT) ─────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(59, 130, 246, 0.78) 100%);
  border-radius: 999px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--primary-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary img.sword {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

/* Secondary "quiet" button — pill outlined in mono caps. */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); }

/* ── Mascot ─────────────────────────────────────────────────────── */

/* The animated GIF stitched from the 4 idle frames. Renders pixelated
 * at any scale; size with a width on the parent or with the inline
 * .mascot-* utility classes. */
.mascot {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
}

.mascot-sm   { width: 64px;  height: 64px; }
.mascot-md   { width: 112px; height: 112px; }
.mascot-lg   { width: 180px; height: 180px; }
.mascot-xl   { width: 240px; height: 240px; }

/* Speech bubble — surfaces the mascot's "voice" the same way the
 * in-app narrator does. Rounded surface with a faint primary border. */
.bubble {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--primary-dim);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.bubble-large {
  font-size: 1.05rem;
  padding: 1.15rem 1.4rem;
}

/* ── Class sprite tile — used in landing's class-picker preview ── */

.class-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.class-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}

.class-tile img {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}

.class-tile .tile-class {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.class-tile .tile-detail {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.class-tile.warrior    .tile-class { color: var(--push); }
.class-tile.warrior    { border-color: rgba(255, 107, 82, 0.18); }
.class-tile.berserker  .tile-class { color: var(--gold); }
.class-tile.berserker  { border-color: rgba(255, 212, 102, 0.18); }
.class-tile.ranger     .tile-class { color: var(--legs); }
.class-tile.ranger     { border-color: rgba(184, 132, 255, 0.18); }
.class-tile.adventurer .tile-class { color: var(--primary); }
.class-tile.adventurer { border-color: rgba(59, 130, 246, 0.18); }

/* ── Section labels (matches in-app stats screen) ───────────────── */

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 3.25rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-left {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

/* ── Prose pages (privacy / terms / support / delete) ──────────── */

main.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}

main.prose h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

main.prose .prose-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

main.prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

main.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

main.prose p,
main.prose li {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

main.prose strong { color: var(--text-primary); font-weight: 600; }
main.prose em { color: var(--text-primary); }
main.prose a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--primary-dim); }
main.prose a:hover { text-decoration-color: var(--primary); }

main.prose ul,
main.prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

main.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

main.prose .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; gap: 0.85rem; text-align: center; }
}
