/* ═══════════════════════════════════════════════════════════
   EZ5K.com — Shared Stylesheet
   ═══════════════════════════════════════════════════════════ */

:root {
  --black:      #0a0a0a;
  --white:      #f5f0e8;
  --accent:     #e8401c;
  --accent2:    #f5a623;
  --gray:       #1c1c1c;
  --mid:        #2e2e2e;
  --card:       #111;
  --border:     #242424;
  --muted:      #888;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── AFFILIATE DISCLOSURE ── */
.affil-disclosure {
  font-size: 0.72rem; color: var(--muted);
  font-style: italic; letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   NAV — shared base
   ═══════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1.5rem; height: 60px; gap: 1rem;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Index nav — taller with more padding */
#primary-nav { padding: 1.2rem 4rem; height: auto; gap: 0; }

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.12em;
  text-decoration: none;
  flex-shrink: 0;
}
/* Index nav logo */
#primary-nav .nav-logo { font-size: 1.6rem; color: var(--accent); }
/* Products nav logo spans */
.nav-logo .ez  { color: var(--accent); }
.nav-logo .fk  { color: var(--white); }
.nav-logo .dot { color: var(--accent); font-size: .85rem; }

/* Index nav links */
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent2); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; padding: 0;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
nav.open .nav-toggle span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Products nav category tabs */
.nav-cats { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cats a {
  display: block; padding: 0 .8rem; height: 60px; line-height: 60px;
  font-size: .65rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  color: var(--muted); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .2s, border-color .2s;
}
.nav-cats a:hover, .nav-cats a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-back {
  font-size: .65rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; flex-shrink: 0; white-space: nowrap; transition: color .2s;
}
.nav-back:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   INDEX PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 4rem 6rem;
  position: relative; overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, #e8401c22 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 80%, #f5a62318 0%, transparent 60%);
}
.hero-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(12rem, 28vw, 26rem);
  line-height: 0.85; color: #ffffff08;
  position: absolute; right: -2rem; top: 50%; transform: translateY(-50%);
  letter-spacing: -0.02em; user-select: none;
}
.hero-runner {
  position: absolute; right: 6%; bottom: 16%;
  width: clamp(220px, 26vw, 380px); height: auto;
  fill: var(--white); opacity: 0.18;
  pointer-events: none; user-select: none; z-index: 1;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9; letter-spacing: 0.02em; max-width: 14ch;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  margin-top: 1.8rem; font-size: 1.1rem; max-width: 42ch;
  color: #ccc; line-height: 1.7;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-cta {
  display: inline-block; margin-top: 2.4rem; padding: 1rem 2.6rem;
  background: var(--accent); color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.hero-cta:hover { background: #c9321a; transform: translateY(-2px); }
.scroll-line {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: pulse 2s infinite;
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #222; border-bottom: 1px solid #222;
}
.stat { padding: 2.5rem 3rem; border-right: 1px solid #222; text-align: center; }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 3.2rem; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }

/* ── SECTION SHELL ── */
section { padding: 7rem 4rem; }
.section-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.8rem, 5vw, 4.5rem); letter-spacing: 0.03em; line-height: 1; margin-bottom: 1.2rem; }
.section-intro { color: #bbb; max-width: 55ch; line-height: 1.8; margin-bottom: 3.5rem; }
.affil-disclosure { max-width: 55ch; margin-top: -2.8rem; margin-bottom: 3.2rem; }

/* ── TRAINING PLAN ── */
.plan-section { background: var(--gray); }
.weeks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: #333; }
.week-card { background: var(--gray); padding: 2rem 2.2rem; position: relative; transition: background 0.2s; }
.week-card:hover { background: var(--mid); }
.week-num { font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 0.4rem; }
.week-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.9rem; }
.week-days { list-style: none; }
.week-days li { font-size: 0.82rem; color: #ccc; padding: 0.45rem 0; border-bottom: 1px solid #333; display: flex; gap: 0.6rem; }
.week-days li:last-child { border-bottom: none; }
.day-label { font-weight: 700; color: var(--white); min-width: 30px; }
.week-badge { position: absolute; top: 1.4rem; right: 1.4rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.6rem; border: 1px solid var(--accent); color: var(--accent); }

/* ── TIPS ── */
.tips-section { background: var(--black); }
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: #222; }
.tip-card { background: var(--black); padding: 2.5rem 2.8rem; transition: background 0.2s; }
.tip-card:hover { background: #111; }
.tip-icon { font-size: 2rem; margin-bottom: 1rem; }
.tip-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }
.tip-text { color: #aaa; font-size: 0.9rem; line-height: 1.75; }

/* ── GEAR SHOP ── */
.gear-section { background: #0f0f0f; }
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gear-card {
  background: var(--gray); padding: 2rem;
  display: flex; flex-direction: column;
  border: 1px solid #2a2a2a;
  transition: border-color 0.2s, transform 0.2s;
}
.gear-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.gear-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent2); margin-bottom: 0.6rem; }
.gear-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.gear-why { font-size: 0.82rem; color: #aaa; line-height: 1.7; flex: 1; margin-bottom: 1.5rem; }
.stars { color: var(--accent2); font-size: 0.8rem; margin-bottom: 0.5rem; }
.gear-link {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; background: var(--accent); color: #fff;
  text-decoration: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; transition: background 0.2s; margin-top: auto;
}
.gear-link:hover { background: #c9321a; }
.gear-link svg { flex-shrink: 0; }
.gear-img {
  display: none;
  width: calc(100% + 4rem); margin: -2rem -2rem 1.5rem;
  background: #fff; min-height: 180px;
  align-items: center; justify-content: center; padding: 1rem;
}
.gear-img.loaded { display: flex; }
.gear-img img { max-width: 100%; max-height: 200px; object-fit: contain; }
.more-gear-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: 3rem; padding: 1.8rem 2.2rem;
  background: var(--gray); border: 1px solid #2a2a2a; border-left: 3px solid var(--accent);
  color: var(--white); text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.18s;
}
.more-gear-cta:hover { background: #1f1f1f; border-color: var(--accent); transform: translateY(-2px); }
.more-gear-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent2); margin-bottom: 0.45rem; }
.more-gear-title { font-size: 1.05rem; font-weight: 500; line-height: 1.45; max-width: 60ch; }
.more-gear-title em { color: var(--accent); font-style: normal; font-weight: 700; }
.more-gear-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; background: var(--accent); color: #fff; transition: background 0.2s, transform 0.2s; }
.more-gear-cta:hover .more-gear-arrow { background: #c9321a; transform: translateX(4px); }

/* ── RACE DAY ── */
.raceday-section { background: var(--black); position: relative; overflow: hidden; }
.raceday-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 88% 28%, #e8401c1f 0%, transparent 65%),
              radial-gradient(ellipse 45% 55% at 8% 92%, #f5a6231a 0%, transparent 60%);
  pointer-events: none;
}
.raceday-section > * { position: relative; z-index: 1; }
.raceday-section .section-intro { max-width: 60ch; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid #222; }
.check-item { padding: 1.2rem 0; border-bottom: 1px solid #222; display: flex; align-items: flex-start; gap: 1rem; font-size: 0.92rem; color: #ddd; transition: color 0.2s; }
.check-item:hover { color: var(--white); }
.check-box { width: 20px; height: 20px; border: 2px solid var(--accent); flex-shrink: 0; margin-top: 0.15rem; transition: background 0.2s; }
.check-item:hover .check-box { background: var(--accent); }
.check-item:nth-child(odd) { padding-right: 2rem; }
.check-item:nth-child(even) { padding-left: 2rem; border-left: 1px solid #222; }

/* ── FOOTER (shared) ── */
footer {
  background: var(--black); border-top: 1px solid var(--border);
  padding: 2rem 2rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem;
}
/* Index footer has more breathing room */
#primary-nav ~ * footer, footer:has(.footer-logo) { padding: 3rem 4rem; align-items: center; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.12em; color: var(--accent); }
.footer-note { font-size: 0.75rem; color: var(--muted); max-width: 55ch; line-height: 1.6; }
.footer-note a { color: var(--accent2); }

/* ═══════════════════════════════════════════════════════════
   PRODUCTS PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE HEADER ── */
.page-header { padding: 80px 1.5rem 3rem; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hglow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 80% at 90% 40%, #e8401c18 0%, transparent 60%), radial-gradient(ellipse 30% 40% at 0% 100%, #f5a62310 0%, transparent 50%); }
.ghost25 { position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); font-family: 'Bebas Neue', sans-serif; font-size: clamp(8rem,22vw,20rem); color: #ffffff05; line-height: 1; user-select: none; pointer-events: none; }
.breadcrumb { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; display: flex; align-items: center; gap: .4rem; opacity: 0; animation: fadeUp .6s .1s forwards; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.eyebrow { font-size: .66rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; opacity: 0; animation: fadeUp .6s .2s forwards; }
h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.1rem,5.5vw,5.5rem); line-height: .92; letter-spacing: .02em; max-width: 18ch; opacity: 0; animation: fadeUp .6s .32s forwards; }
h1 em { color: var(--accent); font-style: normal; }
.hmeta { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; opacity: 0; animation: fadeUp .6s .44s forwards; }
.mpill { font-size: .7rem; color: var(--muted); } .mpill strong { color: var(--white); }
.hint { margin-top: .9rem; max-width: 52ch; font-size: .93rem; color: #aaa; line-height: 1.8; opacity: 0; animation: fadeUp .6s .54s forwards; }
.page-header .affil-disclosure { margin-top: .8rem; max-width: 52ch; opacity: 0; animation: fadeUp .6s .64s forwards; }

/* ── PRODUCT GRID ── */
main { max-width: 1400px; margin: 0 auto; padding: 0 0 4rem; }
.cat-section { padding: 3rem 1.5rem 0; }
.cat-hdr { display: flex; align-items: center; gap: .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); margin-bottom: 1px; }
.cat-icon { font-size: 1.4rem; flex-shrink: 0; }
.cat-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.7rem,3.5vw,2.6rem); letter-spacing: .04em; line-height: 1; }
.cat-range { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.pgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); }

/* ── PRODUCT CARD ── */
.card { background: var(--card); display: flex; flex-direction: column; position: relative; transition: background .18s; overflow: hidden; }
.card:hover { background: #141414; }
.cbody { padding: 1.4rem 1.4rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.ctop { display: flex; align-items: center; gap: .7rem; margin-bottom: .95rem; }
.cnum { font-family: 'Bebas Neue', sans-serif; font-size: 1.45rem; letter-spacing: .04em; color: var(--accent); line-height: 1; flex-shrink: 0; }
.cbadge { display: inline-block; font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: .22rem .55rem; border: 1px solid; width: fit-content; }
.b-best  { border-color: var(--accent2); color: var(--accent2); }
.b-value { border-color: #66bb6a; color: #66bb6a; }
.b-new   { border-color: #42a5f5; color: #42a5f5; }
.b-pop   { border-color: #ce93d8; color: #ce93d8; }
.b-ess   { border-color: var(--accent); color: var(--accent); }
.cname { font-size: 1rem; font-weight: 700; line-height: 1.32; margin-bottom: .4rem; }
.cstars { font-size: .72rem; color: var(--accent2); margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cstars span { color: var(--muted); font-size: .66rem; }
.cdesc { font-size: .82rem; color: #aaa; line-height: 1.72; flex: 1; margin-bottom: 1rem; }
.cvlabel { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.cverdict { font-size: .8rem; color: #ccc; line-height: 1.6; border-left: 2px solid var(--accent); padding-left: .8rem; margin-bottom: 1.2rem; }
.clink { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem 1rem; background: var(--accent); color: #fff; text-decoration: none; font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transition: background .2s; margin-top: auto; }
.clink:hover { background: #c9321a; }
.cimg { width: 100%; background: #fff; overflow: hidden; display: none; align-items: center; justify-content: center; padding: 1.2rem; min-height: 160px; }
.cimg.loaded { display: flex; }
.cimg img { max-width: 100%; max-height: 200px; object-fit: contain; }

/* ── PRODUCTS PAGE CTA ── */
.btncta { background: var(--gray); border-top: 1px solid var(--border); padding: 4rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.btncta h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem,4vw,3rem); letter-spacing: .04em; margin-bottom: .5rem; }
.btncta p { color: #aaa; max-width: 42ch; font-size: .88rem; line-height: 1.7; }
.ctabtn { display: inline-block; padding: .95rem 2.2rem; background: var(--accent); color: #fff; text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: background .2s, transform .15s; flex-shrink: 0; }
.ctabtn:hover { background: #c9321a; transform: translateY(-2px); }
/* Products footer brand block */
.fbrand { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: .1em; }
.fbrand .ez { color: var(--accent); } .fbrand .fk { color: var(--white); }
.fcopy { font-size: .68rem; color: var(--muted); margin-top: .2rem; }
.fnote { font-size: .7rem; color: var(--muted); max-width: 50ch; line-height: 1.65; }
.fnote a { color: var(--accent2); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Index */
  .hero-runner { right: auto; bottom: auto; left: 50%; top: 14%; transform: translateX(-50%); width: clamp(150px, 40vw, 220px); opacity: 0.24; }
  .hero-number { font-size: clamp(7rem, 22vw, 12rem); top: auto; bottom: 6%; right: -1rem; transform: none; }
  #primary-nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10,10,10,0.98); backdrop-filter: blur(16px); border-bottom: 1px solid #222; max-height: 0; overflow: hidden; pointer-events: none; transition: max-height 0.32s ease; }
  nav.open .nav-links { max-height: 360px; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1rem 1.5rem; font-size: 0.85rem; border-top: 1px solid #1a1a1a; }
  .nav-links li:first-child a { border-top: none; }
  section { padding: 5rem 1.5rem; }
  .hero { padding: 0 1.5rem 4rem; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat { border-right: none; border-bottom: 1px solid #222; }
  .weeks-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .check-item:nth-child(even) { border-left: none; padding-left: 0; }
  .more-gear-cta { padding: 1.4rem 1.5rem; gap: 1.2rem; }
  .more-gear-title { font-size: 0.95rem; }
  footer { padding: 2.2rem 1.5rem; }
  /* Products */
  .pgrid { grid-template-columns: repeat(2,1fr); }
  .ghost25 { display: none; }
}
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-back { display: none; }
  .page-header { padding: 70px 1rem 2.2rem; }
  h1 { font-size: clamp(1.9rem,8vw,2.8rem); }
  .pgrid { grid-template-columns: 1fr; }
  .cat-section { padding: 2.2rem 1rem 0; }
  .btncta { padding: 2.8rem 1rem; flex-direction: column; align-items: flex-start; }
  footer { padding: 1.5rem 1rem; }
}
@media (max-width: 380px) {
  .cbody { padding: 1.1rem; }
  .cname { font-size: .95rem; }
}
