/* ---------------- design tokens ---------------- */
:root {
  --green-900: #0e261c;
  --green-800: #17372a;
  --green-700: #1e4635;
  --green-600: #2a6049;
  --green-500: #33745a;
  --green-tint: #d5e3d9;
  --green-tint-soft: #e7eee8;
  --cream: #f3ead6;
  --cream-light: #fbf6e8;
  --cream-deep: #e7dec4;
  --white: #ffffff;
  --gold: #c8a673;
  --gold-soft: #e9d5aa;
  --ink: #0f1f1a;
  --ink-soft: #3a4942;
  --muted: #7a857d;
  --red: #b5422f;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 2px 10px rgba(14,38,28,0.06);

  --wrap: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--cream-light);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
em, .em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--gold); }
h1, h2, h3 { margin: 0; }
img { max-width: 100%; display: block; }

/* ---------------- password gate ---------------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--green-900); }
.gate-card {
  background: var(--white); border-radius: var(--radius-xl); padding: 40px; max-width: 420px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.gate .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.gate .logo-text { font-weight: 600; color: var(--ink); }
.logo-circle {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green-800);
  color: var(--cream); font-family: 'Fraunces', serif; font-style: italic; font-weight: 600;
  display: grid; place-items: center; font-size: 18px;
}
.logo-circle.sm { width: 28px; height: 28px; font-size: 14px; }
.gate form { display: flex; flex-direction: column; gap: 10px; }
.gate input {
  width: 100%; padding: 14px 16px; border: 1px solid #e3ddd0; border-radius: var(--radius-md);
  background: var(--cream-light); font-size: 16px; font-family: inherit;
}
.gate input:focus { outline: 2px solid var(--green-500); border-color: transparent; }
.gate button {
  padding: 14px; border: 0; border-radius: var(--radius-md);
  background: var(--green-800); color: var(--cream); font-weight: 600; font-size: 15px;
  cursor: pointer; font-family: inherit;
}
.gate button:hover { background: var(--green-700); }
.gate-error { color: var(--red); font-size: 14px; margin: 6px 0 0 2px; }

/* ---------------- shell ---------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 10; background: var(--cream-light);
  border-bottom: 1px solid #e3ddd0;
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.header-meta { color: var(--muted); font-size: 13px; }

/* ---------------- hero ---------------- */
.hero { background: var(--green-900); color: var(--cream); padding: 60px 0 56px; }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-tint); font-weight: 600; margin-bottom: 20px; }
.display {
  font-family: 'Inter', sans-serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.display em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--gold-soft); letter-spacing: -0.01em; }
.hero-sub { color: #cfd9d1; max-width: 640px; font-size: 16px; margin: 0 0 40px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.hstat {
  background: var(--green-800); border-radius: var(--radius-lg); padding: 22px 20px;
  border: 1px solid rgba(255,255,255,0.06);
}
.hstat-num { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.hstat-label { color: var(--green-tint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- sections ---------------- */
.section { padding: 70px 0; background: var(--cream-light); }
.section.cream { background: var(--cream); }
.section.dark { background: var(--green-900); color: var(--cream); }

.section-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-600); font-weight: 700; margin-bottom: 14px; }
.section-label.light { color: var(--green-tint); }
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 14px; color: var(--ink);
}
.section-title.light { color: var(--cream); }
.section-title em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--green-500); }
.section-title.light em { color: var(--gold-soft); }
.section-sub { color: var(--muted); max-width: 640px; margin: -4px 0 36px; font-size: 15px; }
.section.dark .section-sub { color: #aab7ac; }

/* ---------------- coach list ---------------- */
.coach-list { display: flex; flex-direction: column; gap: 12px; }
.coach-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 18px 20px;
  display: grid; grid-template-columns: 54px 1.4fr 3.2fr; align-items: center; gap: 18px;
  box-shadow: var(--shadow-card);
}
.coach-card .stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: center;
}
.coach-icon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: var(--green-tint); display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: 22px; color: var(--green-800);
}
.coach-name { font-weight: 600; font-size: 17px; color: var(--ink); }
.coach-sub { color: var(--muted); font-size: 12px; margin-top: 3px; letter-spacing: 0.05em; }

.coach-stat { display: flex; flex-direction: column; }
.coach-stat-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.coach-stat-val { font-weight: 700; font-size: 16px; color: var(--ink); }

.momentum { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.momentum.up { color: #2f8055; }
.momentum.down { color: var(--red); }
.momentum.flat { color: #7a857d; }
.momentum-arrow { font-size: 16px; }

@media (max-width: 920px) {
  .coach-card {
    grid-template-columns: 54px 1fr;
    row-gap: 14px;
    column-gap: 14px;
  }
  .coach-icon { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .coach-card .name-block { grid-column: 2; grid-row: 1; }
  .coach-card .stats-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    padding-top: 6px;
  }
}
@media (max-width: 500px) {
  .coach-card { padding: 16px; }
  .coach-stat-label { font-size: 10px; }
  .coach-stat-val { font-size: 15px; }
}

/* ---------------- top posts grid ---------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.post-card {
  background: var(--green-800); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--cream);
  border: 1px solid rgba(255,255,255,0.06);
}
.post-card:hover { transform: translateY(-2px); transition: transform .15s; }
.post-img { aspect-ratio: 1 / 1; background: #1a2a22 center/cover no-repeat; }
.post-meta { padding: 14px 16px; }
.post-coach { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; font-weight: 600; }
.post-stats { font-weight: 700; margin-bottom: 4px; }
.post-cap { font-size: 12px; color: #aab7ac; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink); padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.post-wrap { position: relative; }

/* ---------------- trends ---------------- */
.trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.trend-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card); }
.trend-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.trend-name { font-weight: 600; font-size: 16px; }
.trend-now { font-weight: 700; font-size: 20px; }
.trend-now small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.trend-svg { width: 100%; height: 80px; overflow: visible; }
.trend-axis { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; margin-top: 8px; }

/* ---------------- freebies ---------------- */
.freebie-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.freebie-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
}
.freebie-coach { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); font-weight: 700; }
.freebie-title { font-weight: 600; font-size: 18px; }
.freebie-url { font-size: 13px; color: var(--muted); word-break: break-all; }
.freebie-status { display: inline-flex; align-items: center; gap: 6px; background: var(--green-tint); color: var(--green-800); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; width: fit-content; }
.freebie-status.pending { background: var(--gold-soft); color: #5a4420; }
.freebie-signups { font-weight: 700; font-size: 22px; margin-top: 4px; }
.freebie-signups small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------------- Christmas countdown ---------------- */
.countdown-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.countdown-card {
  background: var(--green-800); color: var(--cream); border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.countdown-coach { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.countdown-event { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: 22px; }
.countdown-days { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 4px 0; }
.countdown-days small { font-size: 14px; letter-spacing: 0.06em; color: var(--green-tint); text-transform: uppercase; display: block; margin-top: 2px; font-weight: 600; }
.countdown-date { font-size: 13px; color: var(--green-tint); }

/* ---------------- initiatives ---------------- */
.init-list { display: flex; flex-direction: column; gap: 10px; }
.init-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 18px 22px; display: grid;
  grid-template-columns: 180px 1fr; align-items: start; gap: 18px; box-shadow: var(--shadow-card);
}
.init-coach { font-weight: 600; color: var(--green-800); font-size: 16px; }
.init-body { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

@media (max-width: 720px) {
  .init-card { grid-template-columns: 1fr; }
}

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--green-900); color: #aab7ac; padding: 28px 0; font-size: 13px;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------------- helpers ---------------- */
.badge-up { color: #2f8055; }
.badge-down { color: var(--red); }
.badge-flat { color: var(--muted); }
