/* bibs marketing site — brand tokens from logos/bibs-brand-standard.json */

:root {
  --canvas: #F6F5F0;
  --surface: #FFFFFF;
  --ink: #23281C;
  --muted: #565B4B;          /* AA-safe muted (documented precedent over #7A7F6E) */
  --ink-on-dark: #F2F1EA;
  --green: #9DCC2E;          /* pitch-green body */
  --green-stripe: #8ABB22;
  --green-ink: #1B4A1E;      /* pitch-green outline */
  --bibs-card: #D3E88F;      /* tint(body, 55% toward white) per teamsheet standard */
  --radius: 14px;
  --font-head: "Anton", sans-serif;
  --font-body: "Noto Sans", sans-serif;
  --font-wordmark: "Poppins", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  font-size: 24px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-small { padding: 8px 18px; font-size: 15px; }
.btn-big { padding: 14px 28px; font-size: 17px; }

.btn-solid { background: var(--green); color: var(--green-ink); border-color: var(--green-ink); box-shadow: 0 2px 0 var(--green-ink); }
.btn-ghost { background: transparent; color: var(--ink-on-dark); border-color: var(--ink-on-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); padding: 10px 22px; font-size: 15px; }
.btn-ink { background: var(--green-ink); color: var(--ink-on-dark); box-shadow: 0 2px 0 rgba(0,0,0,0.25); }

/* ---------- Header ---------- */

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid rgba(35, 40, 28, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:hover { color: var(--green-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--green-ink);
  color: var(--ink-on-dark);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: var(--green-ink) url("/assets/hero.jpg") center / cover no-repeat;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 46, 22, 0.94) 0%, rgba(20, 46, 22, 0.82) 45%, rgba(20, 46, 22, 0.45) 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(44px, 6.5vw, 76px); color: #FFFFFF; }
.hero h1 .accent { color: var(--green); }
.lede { font-size: 19px; margin: 20px 0 28px; max-width: 34em; color: var(--ink-on-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.micro { margin-top: 16px; font-size: 14px; color: rgba(242, 241, 234, 0.75); }

/* ---------- Teamsheet (per bibs-teamsheet-standard.json) ---------- */

.hero-sheet { display: flex; justify-content: center; }

.teamsheet {
  width: min(340px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  padding: 4.7%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(2deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background-color: var(--green);
  background-image:
    radial-gradient(circle, rgba(27, 74, 30, 0.10) 1.6px, transparent 1.7px),
    radial-gradient(circle, rgba(27, 74, 30, 0.10) 1.6px, transparent 1.7px),
    linear-gradient(90deg,
      transparent 0 34%, var(--green-stripe) 34% 46%,
      transparent 46% 54%, var(--green-stripe) 54% 66%,
      transparent 66% 100%);
  background-size: 14px 14px, 14px 14px, 100% 100%;
  background-position: 0 0, 7px 7px, 0 0;
}

.ts-header { display: flex; align-items: center; justify-content: space-between; }
.ts-lockup { display: flex; align-items: center; gap: 7px; }
.ts-lockup-text { display: flex; flex-direction: column; line-height: 1.1; }
.ts-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--green-ink);
}
.ts-tagline {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(27, 74, 30, 0.7);
}
.ts-pill {
  background: var(--green-ink);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}

.ts-masthead {
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 0.98;
  color: var(--green-ink);
  margin-top: 2px;
}
.ts-meta {
  border-top: 2px solid var(--green-ink);
  padding-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-ink);
}

.ts-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.ts-card { border-radius: var(--radius); padding: 10px 12px; }
.ts-card-bibs { background: var(--bibs-card); }
.ts-card-nonbibs { background: #FFFFFF; }
.ts-card h3 { font-size: 15px; color: var(--green-ink); margin-bottom: 5px; }
.ts-card ul { list-style: none; }
.ts-card li { font-size: 12px; font-weight: 500; color: var(--green-ink); padding: 2px 0; }

.ts-footer {
  background: var(--green-ink);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ts-score { display: flex; flex-direction: column; line-height: 1.2; }
.ts-score-label { font-size: 7px; font-weight: 700; letter-spacing: 1.2px; color: rgba(242, 241, 234, 0.6); }
.ts-score-value { font-family: var(--font-head); font-size: 17px; color: var(--green); }
.ts-prediction { font-family: var(--font-head); font-size: 14px; color: var(--ink-on-dark); text-align: right; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-heading {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 36px;
  color: var(--ink);
}

.problem { background: var(--canvas); }
.how { background: var(--surface); }
.why { background: var(--canvas); }
.compare { background: var(--surface); }
.story { background: var(--canvas); }
.faq { background: var(--surface); }

.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.pain-card, .feature-card {
  background: var(--surface);
  border: 1px solid rgba(35, 40, 28, 0.10);
  border-radius: var(--radius);
  padding: 24px;
}
.why .feature-card { box-shadow: 0 1px 3px rgba(35, 40, 28, 0.06); }
.pain-card { background: var(--canvas); border: 1px solid rgba(35, 40, 28, 0.12); }
.problem .pain-card { background: var(--surface); }
.pain-card h3, .feature-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--green-ink); }
.pain-card p, .feature-card p { font-size: 15px; color: var(--ink); }

.problem-kicker {
  margin-top: 32px;
  font-size: 19px;
  font-weight: 700;
  max-width: 42em;
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.steps li {
  background: var(--canvas);
  border-radius: var(--radius);
  padding: 20px 18px;
  border: 1px solid rgba(35, 40, 28, 0.10);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--green-ink);
  color: var(--green-ink);
  font-family: var(--font-head);
  font-size: 17px;
  margin-bottom: 12px;
}
.steps h3 { font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.steps p { font-size: 14px; color: var(--muted); }

.section-cta { margin-top: 36px; text-align: center; }

/* Comparison table */
.table-scroll { overflow-x: auto; position: relative; }
.swipe-hint { display: none; font-size: 13px; font-weight: 700; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 760px) {
  .swipe-hint { display: block; }
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(35, 40, 28, 0.10);
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--ink);
}
.compare-table thead th.col-bibs { font-family: var(--font-wordmark); font-weight: 700; text-transform: lowercase; font-size: 19px; }
.compare-table tbody th { font-weight: 700; font-size: 14px; color: var(--muted); }
.compare-table td.col-bibs, .compare-table th.col-bibs {
  background: var(--bibs-card);
  color: var(--green-ink);
  font-weight: 500;
}
.compare-table tbody tr:last-child td.col-bibs { border-radius: 0 0 var(--radius) var(--radius); }
.compare-table thead th.col-bibs { border-radius: var(--radius) var(--radius) 0 0; }

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.story-grid p { margin-bottom: 16px; max-width: 36em; }
.story-grid .btn { margin-top: 8px; }
.photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--green-ink) url("/assets/story.jpg") center / cover no-repeat;
  box-shadow: 0 16px 40px rgba(35, 40, 28, 0.25);
}

/* FAQ */
.faq details {
  background: var(--canvas);
  border: 1px solid rgba(35, 40, 28, 0.12);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style-position: outside;
}
.faq details p { margin-top: 10px; font-size: 15px; color: var(--ink); }

/* Final CTA — pitch-green fabric band */
.final-cta {
  text-align: center;
  padding: 80px 0;
  color: var(--green-ink);
  background-color: var(--green);
  background-image:
    radial-gradient(circle, rgba(27, 74, 30, 0.10) 1.8px, transparent 1.9px),
    radial-gradient(circle, rgba(27, 74, 30, 0.10) 1.8px, transparent 1.9px),
    linear-gradient(90deg,
      transparent 0 34%, var(--green-stripe) 34% 46%,
      transparent 46% 54%, var(--green-stripe) 54% 66%,
      transparent 66% 100%);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  background-position: 0 0, 9px 9px, 0 0;
}
.final-cta h2 { font-size: clamp(38px, 5vw, 60px); }
.final-cta p { font-size: 18px; font-weight: 500; margin: 14px 0 28px; }

/* ---------- Sub-pages ---------- */

.page-hero {
  background: var(--canvas);
  padding: 64px 0 0;
}
.page-hero .eyebrow { color: var(--green-ink); }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); color: var(--ink); }
.page-hero .page-lede { font-size: 19px; color: var(--ink); max-width: 38em; margin-top: 16px; }

.big-steps { display: flex; flex-direction: column; gap: 20px; }
.big-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid rgba(35, 40, 28, 0.10);
  border-radius: var(--radius);
  padding: 28px;
}
.big-step .step-num { width: 44px; height: 44px; font-size: 22px; }
.big-step h3 { font-size: 24px; margin-bottom: 10px; color: var(--ink); }
.big-step p { max-width: 46em; }
.big-step ul { margin: 12px 0 0 1.2em; }
.big-step li { margin-bottom: 6px; font-size: 15px; }
.step-note {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 4px solid var(--green);
  background: var(--canvas);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 500;
}

.prose { max-width: 46em; }
.prose p { margin-bottom: 16px; }
.prose h3 { font-size: 22px; color: var(--green-ink); margin: 28px 0 10px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.bib-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.bib-row figure { text-align: center; }
.bib-row figcaption { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; }

@media (max-width: 760px) {
  .big-step { grid-template-columns: 1fr; gap: 12px; }
  .two-col { grid-template-columns: 1fr; }
  .page-hero { padding-top: 48px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--ink-on-dark);
  padding: 40px 0;
}
.footer-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .wordmark { color: var(--ink-on-dark); display: block; line-height: 1; }
.footer-tagline { font-size: 12px; color: rgba(242, 241, 234, 0.7); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.footer-nav a { color: var(--ink-on-dark); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { width: 100%; font-size: 13px; color: rgba(242, 241, 234, 0.6); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(20, 46, 22, 0.92) 0%, rgba(20, 46, 22, 0.85) 100%); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .card-grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(40px, 11vw, 52px); }
  .section { padding: 56px 0; }
}
