/* ═══════════════════════════════════════════════════════════════════════════
   SIMPLE GYM OS — LANDING PAGE DESIGN SYSTEM
   Phase 1 foundation. Every section (all 13) inherits from this file.
   Built on the product's own tokens (dark #0a0a0a, mint #0dd3c5 sole accent),
   extended with a MARKETING type scale + component set the dense product UI
   doesn't ship. Body stays system-sans (matches the app); Manrope is the one
   display webfont, used for headlines only.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand (from product) ────────────────────────────────────────────── */
  --accent:            #0dd3c5;            /* mint — the ONLY brand colour */
  --accent-bright:     #2ff0e2;            /* hover lift on the CTA */
  --accent-deep:       #0a8b82;            /* pressed / shadowed mint */
  --accent-dim:        rgba(13,211,197,0.08);
  --accent-soft:       rgba(13,211,197,0.14);
  --accent-border:     rgba(13,211,197,0.22);
  --accent-glow:       rgba(13,211,197,0.38);
  --on-accent:         #04110f;            /* text on a mint fill — near-black */

  /* ── Backgrounds ─────────────────────────────────────────────────────── */
  --bg-page:           #0a0a0a;
  --bg-card:           #0e0e0e;
  --bg-elevated:       #141414;
  --bg-deep:           #070707;            /* footer / contrast bands */

  /* ── Borders ─────────────────────────────────────────────────────────── */
  --border-subtle:     #1a1a1a;
  --border-default:    #1e1e1e;
  --border-strong:     #2a2a2a;
  --hairline:          rgba(255,255,255,0.06);

  /* ── Text ────────────────────────────────────────────────────────────── */
  --fg-white:          #ffffff;
  --fg-primary:        #f0f0f0;
  --fg-body:           rgba(255,255,255,0.62);  /* marketing body — readable */
  --fg-secondary:      #888888;
  --fg-muted:          #555555;
  --fg-dim:            #333333;

  /* ── Support accent (1 only) ─────────────────────────────────────────── */
  /* Violet pulled from the product's "Systems" semantic colour. Used VERY
     sparingly for the rare second accent so mint never has to fight. */
  --support:           #8b5cf6;

  /* ── Spacing scale — 8px base ────────────────────────────────────────── */
  --s-1:  8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-6:  48px;
  --s-8:  64px;
  --s-12: 96px;
  --s-16: 128px;
  --s-20: 160px;

  /* ── Radii (restrained — from product) ───────────────────────────────── */
  --r-sm:   8px;
  --r-md:   10px;
  --r-lg:   12px;     /* buttons, inputs */
  --r-xl:   16px;     /* cards, image frames */
  --r-pill: 9999px;

  /* ── Layout ──────────────────────────────────────────────────────────── */
  --maxw:        1240px;
  --pad-mobile:  20px;
  --pad-desk:    56px;
  --header-h:    68px;

  /* ── Motion ──────────────────────────────────────────────────────────── */
  --dur-fast:  200ms;
  --dur-mid:   500ms;
  --dur-slow:  750ms;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);   /* the product's house curve */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);  /* entrances — gentle settle */

  /* ── Type ────────────────────────────────────────────────────────────── */
  --font-display: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mark:    'Staatliches', "Arial Narrow", Impact, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--fg-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY — marketing scale
   Headlines: Manrope, very heavy (800), tight tracking. Body: system-sans.
   Weight contrast does the work, not font variety.
   ═══════════════════════════════════════════════════════════════════════════ */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.4rem + 5.0vw, 4.75rem);   /* 40 → 76px */
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg-white);
  text-wrap: balance;
  margin: 0;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem);     /* 32 → 52px */
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg-white);
  text-wrap: balance;
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);      /* 24 → 32px */
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-white);
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;                                  /* 20px */
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-white);
  margin: 0;
}
.lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);  /* 17 → 21px */
  line-height: 1.5;
  color: rgba(255,255,255,0.66);
  text-wrap: pretty;
  margin: 0;
}
.body {
  font-size: 1rem;          /* 16px — mobile-readable floor */
  line-height: 1.6;
  color: var(--fg-body);
  margin: 0;
}
.micro {
  font-size: 0.8125rem;     /* 13px */
  line-height: 1.4;
  color: var(--fg-secondary);
  margin: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 0.625rem;      /* 10px — the product's signature section label */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin: 0;
}
.label--mint { color: var(--accent); }
.accent-text { color: var(--accent); }

/* Wordmark */
.wordmark {
  font-family: var(--font-mark);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--fg-white);
  font-size: 1.375rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
.wordmark .os {
  color: var(--accent);
  font-size: 0.46em;
  margin-left: 4px;
  letter-spacing: 0.02em;
}

/* Mint underline accent for a single emphasised word in a headline */
.ink {
  color: var(--accent);
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   Primary = mint fill, near-black text. The single highest-contrast element.
   Secondary = ghost / hairline outline. Reused across all 13 sections.
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;             /* 17px */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

/* Primary — the CTA. Mint, loud, click-me. */
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px var(--accent-border), 0 8px 24px -8px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 0 0 1px var(--accent),
              0 14px 36px -8px var(--accent-glow),
              0 0 24px 0 var(--accent-soft);
}
.btn--primary:active {
  transform: translateY(0) scale(0.995);
  background: var(--accent);
}

/* Secondary — ghost outline for supporting actions. */
.btn--secondary {
  background: transparent;
  color: var(--fg-white);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
}

.btn--lg { padding: 20px 38px; font-size: 1.1875rem; }
.btn--block { display: flex; width: 100%; }

/* The risk-objection micro-line that sits under the CTA everywhere */
.cta-micro {
  font-size: 0.875rem;       /* 14px */
  line-height: 1.4;
  color: var(--fg-secondary);
  margin: 0;
}
.cta-micro .dot { color: var(--accent); margin: 0 7px; }

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT SHELL
   ═══════════════════════════════════════════════════════════════════════════ */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-mobile);
}
@media (min-width: 768px) {
  .shell { padding-inline: var(--pad-desk); }
}

.section {
  padding-block: var(--s-12);
}
@media (min-width: 768px) {
  .section { padding-block: var(--s-16); }
}

/* Hairline divider with a faint mint centre — section separator */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-default) 18%, var(--border-default) 82%, transparent);
  margin: 0;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
@media (min-width: 768px) {
  .site-header__inner { padding-inline: var(--pad-desk); }
}
.logo-lockup { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
  background: radial-gradient(ellipse 140% 140% at 0% 0%, #0dd3c5 0%, #0a3530 45%, #090909 100%);
  display: grid; place-items: center;
  font-family: var(--font-mark); color: #fff; font-size: 13px; letter-spacing: -0.5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.header-cta { display: inline-flex; align-items: center; gap: 18px; }

/* Compact CTA used in the header */
.btn--sm { padding: 11px 20px; font-size: 0.9375rem; border-radius: var(--r-md); }

/* ── Footer placeholder ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-default);
  padding-block: 32px 24px;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .footer-grid { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-links { display: flex; gap: var(--s-3); }
.footer-links a {
  font-size: 0.8125rem;
  color: var(--fg-secondary);
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE TREATMENTS
   One rule for portraits, gym photos and product screenshots across the page.
   House style = hard-cropped rectangle, 16px radius, 1px mint hairline,
   sitting on a faint mint atmosphere. Variants below for exploration.
   ═══════════════════════════════════════════════════════════════════════════ */

.media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
}
/* House treatment: hairline + atmosphere */
.media--house {
  box-shadow: 0 0 0 1px var(--accent-border),
              0 40px 80px -32px rgba(0,0,0,0.8);
}
.media--house::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 var(--accent-border);
  pointer-events: none;
}
/* Duotone: mint-tinted, graphic */
.media--duotone img,
.media--duotone image-slot {
  filter: grayscale(1) contrast(1.08) brightness(0.85);
}
.media--duotone {
  background: var(--accent-deep);
  box-shadow: 0 0 0 1px var(--accent-border), 0 40px 80px -32px rgba(0,0,0,0.85);
}
.media--duotone::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(13,211,197,0.55) 0%, rgba(13,211,197,0.14) 48%, rgba(7,7,7,0.5) 100%);
  mix-blend-mode: screen;
}
/* Soft glow frame */
.media--glow {
  box-shadow: 0 0 0 1px var(--accent-border),
              0 0 0 8px rgba(13,211,197,0.04),
              0 40px 90px -28px var(--accent-glow);
}

/* Mint atmosphere backdrop behind a media element (orbs + dot grid) */
.atmosphere { position: relative; }
.atmosphere::before {
  content: "";
  position: absolute; inset: -8% -4%;
  z-index: -1;
  background:
    radial-gradient(38% 50% at 88% 12%, rgba(13,211,197,0.16), transparent 70%),
    radial-gradient(46% 50% at 8% 92%, rgba(13,211,197,0.10), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

/* Placeholder portrait fill (when no image dropped yet) */
.portrait-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #15201f 0%, #0c1413 55%, #090b0b 100%);
}
.portrait-ph__glyph {
  width: 46%; aspect-ratio: 1; opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOTION — baseline conventions for the whole page
   • Entrances only. No scroll-jacking, no infinite decorative loops on content.
   • Default entrance: fade + 16px rise, 750ms, --ease-out, staggered.
   • Respect reduced-motion: end-state is the base style, animation gates on it.
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
  }
  /* Stagger helpers */
  .reveal.d1 { transition-delay: 90ms; }
  .reveal.d2 { transition-delay: 180ms; }
  .reveal.d3 { transition-delay: 270ms; }
  .reveal.d4 { transition-delay: 360ms; }
  .reveal.d5 { transition-delay: 450ms; }

  /* Media eases in with a touch of scale */
  .reveal-media { opacity: 0; transform: translateY(22px) scale(0.985); }
  .reveal-media.is-in {
    opacity: 1; transform: none;
    transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  }
}

/* Static-capture / print escape hatch — settled frame, no motion */
.no-anim .reveal,
.no-anim .reveal-media { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.trust__item { display: inline-flex; align-items: center; gap: 9px; }
.trust__num { font-family: var(--font-display); font-weight: 800; color: var(--fg-white); font-size: 1.25rem; letter-spacing: -0.02em; }
.trust__lbl { font-size: 0.8125rem; color: var(--fg-secondary); line-height: 1.2; }
.trust__tick { color: var(--accent); flex-shrink: 0; }
