/* Rucking Challenges — shared stylesheet for monthly challenge pages
   Design tokens per design_handoff_monthly_challenge_page/README.md */

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

html { scroll-behavior: smooth; }

body {
  font-family: Karla, sans-serif;
  color: oklch(0.15 0 0);
  background: oklch(1 0 0);
  position: relative;
}

a { color: inherit; text-decoration: none; }

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

.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(8px);
  z-index: 20;
  border-bottom: 1px solid oklch(0.92 0 0);
}
.site-header .wrap {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover;
}
.brand-name {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.pill-link {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  border: 1.5px solid oklch(0.52 0.14 250);
  padding: 10px 16px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hero */
.hero { padding: 48px 0 36px; text-align: center; }
.badge {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.52 0.14 250);
  background: oklch(0.95 0.03 250);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.badge span { font-weight: normal; }
.hero h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 0.92;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.hero .subhead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: oklch(0.45 0 0);
  max-width: 420px;
  margin: 0 auto 28px;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  background: oklch(0.52 0.14 250);
  color: oklch(1 0 0);
  border: none;
  padding: 15px 32px;
  border-radius: 100px;
  cursor: pointer;
}
.btn-secondary {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  border: 1.5px solid oklch(0.85 0 0);
  padding: 13px 28px;
  border-radius: 100px;
}

/* Grey band sections */
.band { padding: 40px 0; background: oklch(0.97 0 0); }
.band h2, .section-white h2 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.card {
  background: oklch(1 0 0);
  border: 1px solid oklch(0.9 0 0);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.card .card-title {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card p { font-size: 15px; line-height: 1.65; color: oklch(0.4 0 0); margin: 0; }

.label-row {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  margin: 24px 0 10px;
}
.label-row:first-of-type { margin-top: 0; }

.level-table {
  background: oklch(1 0 0);
  border: 1px solid oklch(0.9 0 0);
  border-radius: 12px;
  overflow: hidden;
}
.level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid oklch(0.9 0 0);
}
.level-row:first-child { border-top: none; }
.level-name {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: oklch(0.52 0.14 250);
  width: 96px;
  flex-shrink: 0;
}
.level-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: oklch(0.35 0 0); }
.level-specs .spec-label { color: oklch(0.55 0 0); }

.info-card {
  background: oklch(1 0 0);
  border: 1px solid oklch(0.9 0 0);
  border-radius: 12px;
  padding: 16px 18px;
}
.info-card p { font-size: 15px; line-height: 1.6; color: oklch(0.35 0 0); margin: 0; }
.info-card a { color: oklch(0.52 0.14 250); text-decoration: underline; }

/* Anchor targets: offset for sticky header so jumps don't land underneath it */
#plan, #patch, #faq { scroll-margin-top: 84px; }

/* Plan section */
.section-white { padding: 40px 0 8px; }
.plan-subcopy { font-size: 14px; color: oklch(0.5 0 0); margin: 0 0 20px; }
.plans { display: flex; flex-direction: column; gap: 16px; }
.plan-card {
  position: relative;
  border: 2px solid oklch(0.9 0 0);
  border-radius: 16px;
  padding: 24px;
}
.plan-card.featured { border-color: oklch(0.52 0.14 250); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: oklch(0.52 0.14 250);
  color: oklch(1 0 0);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.plan-name {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}
.plan-price { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 26px; }
.plan-price span { font-size: 14px; font-weight: 500; color: oklch(0.5 0 0); }
.plan-benefits { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; font-size: 14px; color: oklch(0.35 0 0); }
.plan-buy-wrap { width: 100%; }
.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border-radius: 100px;
  cursor: pointer;
  box-sizing: border-box;
}
.plan-btn-primary {
  background: oklch(0.52 0.14 250);
  color: oklch(1 0 0);
  border: none;
  padding: 15px;
}
.plan-btn-primary:hover { background: oklch(0.44 0.14 250); }
.plan-btn-secondary {
  background: transparent;
  color: oklch(0.15 0 0);
  border: 2px solid oklch(0.15 0 0);
  padding: 13px;
}
.plan-btn-secondary:hover { background: oklch(0.15 0 0); color: oklch(1 0 0); }
.plan-card.soldout { border-color: oklch(0.85 0 0); }
.plan-card.soldout .plan-name { color: oklch(0.5 0 0); }
.plan-soldout-note { font-size: 14px; color: oklch(0.5 0 0); margin: 4px 0 20px; }
.plan-fineprint { font-size: 12px; color: oklch(0.55 0 0); margin-top: 12px; text-align: center; }
.plan-switch { text-align: center; margin-top: 16px; font-size: 13px; }
.plan-switch a { color: oklch(0.52 0.14 250); text-decoration: underline; }

/* Patch */
.patch-frame {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: oklch(1 0 0);
}
.patch-frame img { width: 100%; height: 100%; object-fit: contain; }
.patch-cta {
  display: block;
  width: 100%;
  margin-top: 20px;
  font-weight: 700;
  font-size: 18px;
  background: oklch(0.52 0.14 250);
  color: oklch(1 0 0);
  border: none;
  padding: 18px;
  border-radius: 100px;
  cursor: pointer;
  text-align: center;
}

/* FAQ */
.faq-section { padding: 0 0 48px; }
.faq-section h2 { margin: 40px 0 20px; }
.faq-list { border-top: 1px solid oklch(0.9 0 0); }
.faq-item { border-bottom: 1px solid oklch(0.9 0 0); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 16px 0;
  text-align: left;
  font-family: Karla, sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: oklch(0.15 0 0);
}
.faq-icon {
  font-size: 20px;
  flex-shrink: 0;
  font-family: "Big Shoulders Display", sans-serif;
  color: oklch(0.52 0.14 250);
}
.faq-answer {
  display: none;
  font-size: 15px;
  line-height: 1.7;
  color: oklch(0.4 0 0);
  padding: 0 0 18px;
}
.faq-answer a { color: oklch(0.52 0.14 250); text-decoration: underline; }
.faq-item.open .faq-answer { display: block; }

/* Footer */
.site-footer {
  padding: 32px 0 36px;
  text-align: center;
  border-top: 1px solid oklch(0.92 0 0);
}
.footer-brand {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-parent { font-size: 13px; color: oklch(0.5 0 0); margin-bottom: 20px; }
.footer-parent a { text-decoration: underline; }
.footer-social { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 12px; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid oklch(0.85 0 0);
}
.footer-disclaimer { margin-bottom: 16px; }
.footer-disclaimer a { font-size: 13px; color: oklch(0.52 0.14 250); }
.footer-copyright { font-size: 12px; color: oklch(0.55 0 0); }

@media (max-width: 480px) {
  .hero h1 { font-size: 48px; }
}

/* ===================== Archive page ===================== */
.archive-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.site-header .archive-wrap {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.archive-hero { padding: 44px 0 28px; text-align: center; }
.archive-hero h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 0.95;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.archive-hero p { font-size: 16px; color: oklch(0.45 0 0); margin: 0; }

.archive-filter-bar {
  position: sticky;
  top: 77px;
  z-index: 20;
  background: oklch(1 0 0 / 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid oklch(0.92 0 0);
  border-bottom: 1px solid oklch(0.92 0 0);
  padding: 16px 0;
}
.archive-filter-row { display: flex; flex-direction: column; gap: 12px; }
.archive-search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.archive-search {
  flex: 1;
  min-width: 200px;
  font-family: Karla, sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid oklch(0.85 0 0);
  border-radius: 100px;
  outline: none;
  color: oklch(0.15 0 0);
}
.archive-status-group { display: flex; gap: 6px; flex-shrink: 0; }
.status-btn {
  font-family: Karla, sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 100px;
  cursor: pointer;
  border: 1.5px solid oklch(0.85 0 0);
  background: oklch(1 0 0);
  color: oklch(0.35 0 0);
}
.status-btn.active {
  border-color: oklch(0.52 0.14 250);
  background: oklch(0.52 0.14 250);
  color: oklch(1 0 0);
}
.archive-year-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.year-pill {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: oklch(0.35 0 0);
  background: oklch(0.95 0.005 90);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: Karla, sans-serif;
}

.archive-results { padding: 32px 0 60px; }
.archive-empty { text-align: center; padding: 60px 0; color: oklch(0.5 0 0); font-size: 15px; }
.archive-year-group { margin-bottom: 40px; }
.archive-year-heading {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-top: 90px;
  margin-top: -90px;
  color: oklch(0.15 0 0);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px 16px;
}
.archive-card { display: block; }
.archive-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid oklch(0.9 0 0);
  overflow: hidden;
  background: oklch(0.97 0 0);
}
.archive-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-card-title { margin-top: 8px; font-size: 13px; font-weight: 700; color: oklch(0.15 0 0); }
.archive-badge {
  margin-top: 4px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}
.archive-badge.available { background: oklch(0.93 0.03 250); color: oklch(0.52 0.14 250); }
.archive-badge.soldout { background: oklch(0.93 0 0); color: oklch(0.45 0 0); }

@media (max-width: 480px) {
  .archive-hero h1 { font-size: 36px; }
  .archive-filter-bar { top: 73px; }
}

/* ===================== Simple content pages (disclaimer, etc.) ===================== */
.page-hero { padding: 48px 0 8px; text-align: center; }
.page-hero h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}
.page-content { padding: 24px 0 56px; }
.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: oklch(0.35 0 0);
  margin: 0 0 20px;
}
.page-content p:last-child { margin-bottom: 0; }
.page-content a { color: oklch(0.52 0.14 250); text-decoration: underline; }

/* ===================== 404 page ===================== */
.notfound-hero { padding: 72px 0; text-align: center; }
.notfound-hero .badge { margin-bottom: 20px; }
.notfound-hero h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 0.92;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.notfound-hero .subhead {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: oklch(0.45 0 0);
  max-width: 420px;
  margin: 0 auto 28px;
}
.notfound-hero .hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 480px) {
  .notfound-hero h1 { font-size: 40px; }
  .page-hero h1 { font-size: 32px; }
}
