/* ============================================
   Missoula High Performance — marketing site
   ============================================ */

:root {
  --ink: #111;
  --ink-2: #333;
  --muted: #555;
  --faint: #888;
  --line: #e5e5e5;
  --bg: #fff;
  --bg-2: #fafafa;
  --bg-dark: #111;
  --accent: #f9a825;
  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 56px);
  --radius: 6px;
  --font: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--pad-x);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 14px;
}
.nav-brand img { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.nav-cta:hover { background: #000; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { padding: 10px 18px; }
  .nav-brand span { font-size: 12px; }
}

/* ============ HERO ============ */
.hero {
  padding: clamp(48px, 8vw, 110px) var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  font-weight: 900;
  margin: 0 0 22px;
  max-width: 14ch;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 0 28px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 80ms ease, background 120ms ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm {
  padding: 9px 14px;
  font-size: 12px;
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.section-alt { background: var(--bg-2); }
.section-head {
  max-width: var(--maxw);
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 900;
  margin: 0 0 14px;
  max-width: 22ch;
}
.section-head .lede {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}
.subsection-head {
  max-width: var(--maxw);
  margin: 64px auto 24px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.6px;
  font-weight: 800;
}

/* ============ TIER CARDS ============ */
.tier-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .tier-grid { grid-template-columns: 1fr; }
}

.tier-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.section-alt .tier-card { background: #fff; }

.tier-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 4px;
}
.tier-meta {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin: 0 0 16px;
}

.pack-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.pack-row:last-of-type { border-bottom: 1px solid var(--line); }
.pack-name {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: 2px;
}
.pack-price {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
}
.pack-price small {
  font-size: 11px;
  color: var(--faint);
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 1px;
}
.pack-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.tier-foot {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  margin: 14px 0 14px;
  line-height: 1.5;
}
.tier-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============ BANDS (virtual / hybrid) ============ */
.band {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 36px;
  background: #fff;
}
.band-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.band-left { flex: 1; min-width: 0; }
.band-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.band-eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--faint);
  margin: 0 0 6px;
}
.band-dark .band-eyebrow { color: #aaa; }
.band h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  font-weight: 800;
}
.band p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  max-width: 60ch;
}
.band-dark p { color: #ccc; }
.big-price {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1.4px;
}
.big-price small {
  font-size: 13px;
  color: var(--faint);
  font-weight: 700;
}
.band-dark .big-price small { color: #aaa; }

@media (max-width: 760px) {
  .band {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .band-right { width: 100%; justify-content: space-between; }
}

/* ============ STEPS ============ */
.steps {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps-cta {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) {
  .steps, .steps-cta { grid-template-columns: 1fr; }
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.section-dark .step {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 14px;
}
.section-dark .step-num { background: #fff; color: var(--ink); }
.step-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.step-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.section-dark .step-body { color: #bbb; }
.steps-cta .btn { margin-top: 6px; }
.steps-cta .btn + .btn { margin-top: 8px; }

/* ============ TEAM TABLE ============ */
.table-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.team-table th {
  background: var(--bg-2);
  text-align: left;
  padding: 12px 14px;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.team-table th:nth-child(n+4),
.team-table td:nth-child(n+4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.team-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.team-table tbody tr:last-child td { border-bottom: 0; }
.team-table .tier-row td {
  background: var(--bg-2);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.2px;
  padding: 10px 14px;
  text-align: left;
}

/* ============ 3-COL PANELS ============ */
.three-col {
  max-width: var(--maxw);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .three-col { grid-template-columns: 1fr; } }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.panel-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--faint);
  margin-bottom: 12px;
}
.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}
.panel-list li {
  padding: 4px 0;
  color: var(--ink-2);
}
.panel-list li::before {
  content: "—";
  margin-right: 8px;
  color: var(--faint);
}
.panel .line {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 13px;
}
.panel .line:last-of-type { border-bottom: 0; }
.panel .line .v { font-weight: 800; }
.panel-foot {
  font-size: 11px;
  color: var(--faint);
  font-style: italic;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ============ CTA STRIP ============ */
.cta-strip {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding: 24px 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cta-strip p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.cta-strip .btn-primary { background: #fff; color: var(--ink); }
.cta-strip .btn-primary:hover { background: #f0f0f0; }

/* ============ SECTION DARK (contact) ============ */
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head .lede,
.section-dark .eyebrow { color: #aaa; }

.contact-info {
  max-width: var(--maxw);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-top: 36px;
  border-top: 1px solid #333;
}
@media (max-width: 760px) { .contact-info { grid-template-columns: 1fr; } }
.ci-label {
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 800;
  color: #888;
  margin-bottom: 6px;
}
.ci-value { font-size: 17px; font-weight: 700; }
.ci-value a { text-decoration: underline; }

/* ============ COACH SECTION ============ */
.section-coach { background: var(--bg-2); }
.coach-card {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
}
.coach-header h3 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0 0 4px;
}
.postnoms {
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--faint);
  margin: 0 0 16px;
}
.coach-current {
  background: var(--bg-2);
  border-left: 3px solid var(--ink);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.coach-current .prev {
  color: var(--faint);
  font-style: italic;
  margin-top: 2px;
}
.coach-bio {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 18px;
}
.coach-certs {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-2);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 0;
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.footer {
  background: #fff;
  padding: 48px var(--pad-x) 24px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-downloads {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.footer-dl-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--faint);
  margin-bottom: 2px;
}
.footer-downloads a { color: var(--ink-2); }
.footer-downloads a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img { width: 44px; height: 44px; }
.footer-name {
  font-weight: 800;
  letter-spacing: -0.2px;
  font-size: 15px;
}
.footer-tag {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-contact,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.footer-contact a,
.footer-legal a { color: var(--ink-2); cursor: pointer; }
.footer-contact a:hover,
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 20px;
  font-size: 11px;
  color: var(--faint);
  text-align: center;
}

/* ============ misc ============ */
::selection { background: var(--ink); color: #fff; }

/* Unconfigured-link visual hint (dev-only). Remove when launching. */
.is-placeholder {
  position: relative;
}
.is-placeholder::after {
  content: "TODO";
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
}
