/* =========================================================================
   Fitness FX Design System — Foundations
   Verbatim copy of colors_and_type.css from the "Fitness FX Design System"
   Claude Design project (dac7e1ff-4513-4776-87bc-513e103bbd43), which the
   approved pricing page links as its stylesheet. Do not hand-edit; re-pull
   from the design project instead.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Brand colors ---- */
  --fx-red:         #C81923;  /* signature red (from logo) */
  --fx-red-hover:   #A61019;
  --fx-red-press:   #8A0C12;
  --fx-red-soft:    #3A0B0F;  /* tinted dark for gradients */
  --fx-red-glow:    rgba(200, 25, 35, 0.35);

  --fx-black:       #0C0C0D;  /* primary background */
  --fx-white:       #FFFFFF;
  --fx-offwhite:    #F4F4F1;  /* warm light surface */

  /* ---- Steel neutrals (dark-mode native) ---- */
  --fx-steel-950:   #0C0C0D;
  --fx-steel-900:   #141417;  /* card surface on black */
  --fx-steel-800:   #1E1E22;  /* elevated / input background */
  --fx-steel-700:   #2A2A30;  /* border on dark */
  --fx-steel-600:   #3E3E46;
  --fx-steel-500:   #5A5A63;  /* muted body text on dark */
  --fx-steel-400:   #7E7E87;
  --fx-steel-300:   #A7A7B0;  /* secondary text on dark */
  --fx-steel-200:   #C8C8CE;
  --fx-steel-100:   #E8E8EB;
  --fx-steel-050:   #F4F4F4;

  /* ---- Semantic tokens (dark default) ---- */
  --bg:             var(--fx-black);
  --bg-elevated:    var(--fx-steel-900);
  --bg-raised:      var(--fx-steel-800);
  --fg:             var(--fx-white);
  --fg-muted:       var(--fx-steel-300);
  --fg-dim:         var(--fx-steel-500);
  --border:         var(--fx-steel-700);
  --border-strong:  var(--fx-steel-500);
  --accent:         var(--fx-red);
  --accent-hover:   var(--fx-red-hover);
  --accent-fg:      var(--fx-white);
  --success:        #2FB672;
  --warning:        #E0A020;
  --error:          var(--fx-red);

  /* ---- Type families ---- */
  --ff-display: 'Oswald', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --ff-body:    'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ---- Type scale ---- */
  --fs-display:  72px;
  --fs-h1:       56px;
  --fs-h2:       40px;
  --fs-h3:       28px;
  --fs-h4:       20px;
  --fs-body:     16px;
  --fs-small:    14px;
  --fs-eyebrow:  12px;

  --lh-tight:    1.02;
  --lh-snug:     1.15;
  --lh-normal:   1.5;
  --lh-relaxed:  1.7;

  --ls-display:  -0.01em;
  --ls-heading:   0.01em;
  --ls-body:      0em;
  --ls-eyebrow:   0.14em;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* ---- Spacing (8-pt grid) ---- */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* ---- Radii (squared-off brand) ---- */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-pill: 999px; /* use sparingly — off-brand */

  /* ---- Elevation (borders + background lift, not soft shadows) ---- */
  --shadow-press:   0 2px 0 0 rgba(0,0,0,0.5);
  --shadow-glow-red: 0 0 0 0 var(--fx-red-glow);
  --shadow-glow-red-hover: 0 0 24px 2px var(--fx-red-glow);
  --ring-focus:     0 0 0 2px var(--fx-black), 0 0 0 4px var(--fx-red);

  /* ---- Motion ---- */
  --ease-out:  cubic-bezier(0.2, 0, 0, 1);
  --ease-in:   cubic-bezier(0.55, 0, 0.8, 0.3);
  --dur-fast:  120ms;
  --dur-base:  180ms;
  --dur-slow:  220ms;

  /* ---- Layout ---- */
  --container: 1200px;
  --gutter: 48px;
  --section-y: 96px;
  --header-h: 72px;
}

/* ========= Base ========= */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========= Semantic typography ========= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  margin: 0 0 var(--sp-4);
  color: var(--fg);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: 0; }
h4 { font-size: var(--fs-h4); letter-spacing: 0; }

.fx-display {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}

.fx-eyebrow {
  font-family: var(--ff-display);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fx-red);
}

p {
  margin: 0 0 var(--sp-4);
  color: var(--fg);
  max-width: 62ch;
}

small, .fx-small { font-size: var(--fs-small); color: var(--fg-muted); }

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
a:hover { border-bottom-color: var(--fx-red); }
a:focus-visible { outline: 2px solid var(--fx-red); outline-offset: 2px; }

code, pre, .fx-mono {
  font-family: var(--ff-mono);
  font-size: 0.92em;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-7) 0;
}

/* ========= Buttons ========= */
.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-family: var(--ff-display);
  font-weight: var(--fw-semi);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-white);
  background: var(--fx-red);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.fx-btn:hover  { background: var(--fx-red-hover); box-shadow: var(--shadow-glow-red-hover); }
.fx-btn:active { background: var(--fx-red-press); transform: translateY(1px); }
.fx-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }

.fx-btn--ghost {
  background: transparent;
  color: var(--fx-white);
  border: 1px solid var(--fx-steel-700);
}
.fx-btn--ghost:hover  { background: rgba(255,255,255,0.06); border-color: var(--fx-steel-500); box-shadow: none; }
.fx-btn--ghost:active { transform: translateY(1px); }

.fx-btn--outline-red {
  background: transparent;
  color: var(--fx-red);
  border: 2px solid var(--fx-red);
}
.fx-btn--outline-red:hover { background: var(--fx-red); color: var(--fx-white); box-shadow: none; }

.fx-btn--sm { padding: 10px 18px; font-size: 13px; }
.fx-btn--lg { padding: 18px 36px; font-size: 18px; }

/* ========= Inputs ========= */
.fx-input, .fx-select, .fx-textarea {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--fx-white);
  background: var(--fx-steel-800);
  border: 1px solid var(--fx-steel-700);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.fx-input:focus, .fx-select:focus, .fx-textarea:focus {
  outline: none;
  border-color: var(--fx-red);
  box-shadow: inset 0 0 0 1px var(--fx-red);
}
.fx-input::placeholder { color: var(--fg-dim); }
.fx-label {
  display: block;
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

/* ========= Cards ========= */
.fx-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.fx-card:hover { background: var(--bg-raised); border-color: var(--border-strong); }

.fx-card--feature {
  border-top: 3px solid var(--fx-red);
  padding-top: calc(var(--sp-6) - 2px);
}

/* ========= Utility ========= */
.fx-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.fx-section { padding: var(--section-y) 0; }
.fx-stack > * + * { margin-top: var(--sp-4); }
.fx-stack-lg > * + * { margin-top: var(--sp-6); }
.fx-red { color: var(--fx-red); }
.fx-bg-black { background: var(--fx-black); }
.fx-bg-steel { background: var(--fx-steel-900); }

/* ========= Hero overlay (use on top of imagery) ========= */
.fx-hero-overlay {
  background:
    linear-gradient(180deg, rgba(12,12,13,0.35) 0%, rgba(12,12,13,0.92) 100%);
}

/* ========= Diamond plate texture (decorative, very subtle) ========= */
.fx-diamond-plate {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.04) 75%, transparent 75%);
  background-size: 12px 12px;
}

/* ========= Reduced motion ========= */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
