*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0E1116;
  --band: #12161D;
  --card: #171B23;
  --card-2: #1E232D;
  --line: #2C3340;
  --line-soft: #1F242E;
  --text: #E8EBF0;
  --muted: #B4BCC9;
  --faint: #8A93A3;
  --accent: #F5B13D;
  --accent-hover: #FFC867;
  --ok: #A8E08A;
  --err: #FF9C8A;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.01em; }
h1 { margin: 0 0 20px; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
h3 { margin: 0 0 8px; font-size: 18px; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.band { background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.muted { color: var(--faint); font-size: 13px; }
.muted-body { color: var(--muted); max-width: 640px; }
.intro { margin-bottom: 36px; }
.eyebrow { margin-bottom: 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.header { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.logo { display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px; }
.logo:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); font-size: 15px; min-height: 44px; }
.btn-primary { border: 0; background: var(--accent); color: #0E1116; min-height: 52px; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary[disabled] { opacity: 0.6; cursor: wait; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.lede { margin-bottom: 30px; font-size: 19px; color: var(--muted); max-width: 560px; }

/* Forms */
.signup { max-width: 560px; }
.fields { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
input[type="email"], input[type="text"] {
  min-height: 52px; width: 100%; padding: 0 16px; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
input::placeholder { color: var(--faint); }
input:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--err); }
.fineprint { margin-top: 12px; font-size: 14px; color: var(--faint); }
.form-error { margin-top: 10px; font-size: 14px; color: var(--err); }
.success { max-width: 560px; padding: 20px 22px; background: var(--card); border: 1px solid #3A4A2E; border-radius: 12px; text-align: left; }
.success-title { font-weight: 600; color: var(--ok); margin-bottom: 4px; }
.success-body { font-size: 15px; color: var(--muted); }

/* Example review */
.review { flex: 1 1 420px; min-width: 0; padding: 24px; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.notes, .ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.notes li { display: flex; gap: 14px; padding: 14px; background: var(--card-2); border-radius: 10px; }
.ts { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--accent); min-width: 52px; flex-shrink: 0; }
.note-title { font-weight: 600; font-size: 15px; }
.note-body { margin-top: 2px; font-size: 14px; color: var(--muted); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step { padding: 28px; }
.step p { color: var(--muted); font-size: 16px; }
.step .num { margin-bottom: 12px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 28px; color: var(--accent); }
.tile { padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.tile h3 { font-size: 17px; }
.tile p { font-size: 15px; color: var(--muted); }

/* Habits */
.habits { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 40px; }
.habits-copy { flex: 1 1 420px; min-width: 0; }
.habits-copy .eyebrow { margin-bottom: 10px; }
.ladder { flex: 1 1 320px; min-width: 0; gap: 10px; }
.ladder li { display: flex; gap: 14px; align-items: baseline; padding: 14px 16px; background: var(--card-2); border-radius: 10px; font-size: 15px; color: var(--muted); }
.ladder .ts { min-width: 76px; }

/* CTA */
.section#join { padding-top: 0; padding-bottom: 96px; }
.cta { padding: 56px 32px; text-align: center; }
.cta .muted-body { margin: 0 auto 28px; }
.signup-inline { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 780px; margin: 0 auto; }
.signup-inline input { flex: 1 1 220px; width: auto; background: var(--bg); }
.signup-inline .form-error { flex-basis: 100%; }
.cta .success { margin: 0 auto; }

/* Footer */
.footer { padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--faint); display: flex; flex-direction: column; gap: 10px; }
.legal { max-width: 760px; }

/* Simple pages */
.page { max-width: 720px; padding-top: 40px; padding-bottom: 80px; }
.page h1 { font-size: clamp(32px, 4.4vw, 44px); }
.page h2 { font-size: 22px; margin-top: 32px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }

@media (max-width: 560px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 32px; gap: 40px; }
  .habits { padding: 24px; }
  .cta { padding: 40px 20px; }
  .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Champion search list */
.combo { position: relative; flex: 1 1 220px; text-align: left; }
.combo input { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238A93A3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; padding: 6px; background: var(--card-2); border: 1px solid #3A4250; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.45); }
.combo-opt { padding: 10px 12px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.combo-opt:hover, .combo-opt.is-active { background: var(--line); }
.combo-empty { padding: 10px 12px; font-size: 14px; color: var(--faint); }
.signup-inline .combo input { width: 100%; }
.field .combo { flex: none; }

/* Learned from the best */
.best { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-bottom: 0; }
.best-copy { flex: 1 1 420px; min-width: 0; }
.best-copy .eyebrow { margin-bottom: 10px; }
.best-list { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.best-list .tile { padding: 18px 20px; }

