@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..900&display=swap');

:root {
  --mist: #F3F5F6;      /* page */
  --white: #FFFFFF;     /* surfaces */
  --ink: #0F1B26;       /* text, footer */
  --slate: #5D6D7A;     /* secondary text */
  --line: #DDE3E7;      /* hairlines */
  --lane: #2445F5;      /* accent, Blue Chip */
  --lane-soft: #E9EDFE;
  --gold: #F2B705;      /* stars */
  --ok: #18794E; --ok-soft: #E4F4EC;
  --bad: #C42B1C; --bad-soft: #FCEBE9;
  --r: 10px;
  --wide: 125;          /* font-stretch for display type */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 Archivo, system-ui, sans-serif; color: var(--ink); background: var(--mist); font-variant-numeric: tabular-nums; }
a { color: var(--lane); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lane); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-stretch: 125%; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .45em; }
h1 { font-size: clamp(34px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.4em; }
h3 { font-size: 19px; letter-spacing: -0.005em; }
p { max-width: 70ch; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--slate); }
.small { font-size: 13.5px; }
.kicker { color: var(--slate); font-size: 15px; margin-bottom: 6px; }

/* header */
header.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 30px; flex: none; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
nav a:hover { color: var(--ink); background: var(--mist); }
nav a.on { color: var(--ink); }
nav a.cta { background: var(--ink); color: #fff; font-weight: 600; margin-left: 8px; }
nav a.cta:hover { background: var(--lane); }
@media (max-width: 760px) { nav a:not(.cta) { display: none; } .logo span { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; font: 600 15px Archivo, sans-serif; text-decoration: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn.gold, .btn.primary { background: var(--lane); border-color: var(--lane); color: #fff; }
.btn.gold:hover, .btn.primary:hover { background: #1733D6; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #22323F; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn + .btn { margin-left: 8px; }

/* page sections */
section { padding: 56px 0; }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { margin-top: 0; }

/* home hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero p.lead { font-size: 19px; color: var(--slate); margin: 0 0 28px; max-width: 46ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* race board: the rankings, laid out like a results board */
.board { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.board-head strong { font-stretch: 125%; font-weight: 800; font-size: 17px; }
.lanes { list-style: none; margin: 0; padding: 0; }
.lane { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 20px; position: relative; }
.lane + .lane::before { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px;
  background: radial-gradient(circle, var(--lane) 1.2px, transparent 1.6px) 0 0 / 12px 2px repeat-x; opacity: .45; } /* lane buoys */
.lane .pos { font-stretch: 125%; font-weight: 800; font-size: 26px; color: var(--ink); }
.lane .who a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16.5px; }
.lane .who a:hover { color: var(--lane); }
.lane .who div { color: var(--slate); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane .t { font-stretch: 112%; font-weight: 700; font-size: 20px; text-align: right; }
.lane .t small { display: block; font-size: 12px; font-weight: 500; color: var(--slate); font-stretch: 100%; }
.board-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--mist); font-size: 14px; }

/* segmented controls */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; align-items: center; }
.seg { display: inline-flex; background: var(--mist); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.tabs button, .seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 7px; font: 500 14px Archivo, sans-serif; color: var(--slate); cursor: pointer; }
.tabs button:hover, .seg button:hover { color: var(--ink); }
.tabs button.on, .seg button.on { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
.tabs select { width: auto; height: 38px; padding: 0 10px; font-size: 14px; }
.tabs > .btn { height: 40px; }

/* tables */
.tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
table.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
table.rank th { text-align: left; font-weight: 500; font-size: 13px; color: var(--slate); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rank td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.rank tr:first-child td { border-top: 0; }
table.rank tr.bc td:first-child { box-shadow: inset 3px 0 0 var(--lane); }
table.rank td.n { font-stretch: 125%; font-weight: 800; font-size: 17px; width: 56px; }
table.rank a { font-weight: 600; text-decoration: none; color: var(--ink); }
table.rank a:hover { color: var(--lane); }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; font-size: 15px; }
.stars .off { color: #DCE2E6; }
/* Blue Chip: five solid blue circles */
.bluechip { display: inline-flex; gap: 4px; vertical-align: -1px; }
.bluechip i { width: 11px; height: 11px; border-radius: 50%; background: var(--lane); display: block; }
.chip { display: inline-block; background: var(--lane-soft); color: var(--lane); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; vertical-align: 1px; white-space: nowrap; }
.chip.claimed { background: var(--ok-soft); color: var(--ok); }
.chip.gray { background: var(--mist); color: var(--slate); }
.ver { color: var(--ok); font-size: 13px; font-weight: 700; }
.banner { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--lane); padding: 11px 14px; border-radius: 8px; font-size: 14.5px; margin: 14px 0; }

/* forms */
form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
input, select, textarea { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: 400 15px Archivo, sans-serif; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lane); outline-offset: -1px; border-color: transparent; }
textarea { height: auto; min-height: 120px; padding: 10px 12px; }
input[type=file] { height: auto; padding: 9px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.msg { padding: 12px 14px; border-radius: 8px; margin-top: 14px; display: none; font-size: 14.5px; }
.msg.ok { display: block; background: var(--ok-soft); color: var(--ok); }
.msg.err { display: block; background: var(--bad-soft); color: var(--bad); }
.search { display: flex; gap: 10px; max-width: 560px; }

/* profile */
.profile-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 28px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.stat { padding: 18px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat small { display: block; color: var(--slate); font-size: 13px; }
.stat b { display: block; font-stretch: 125%; font-weight: 800; font-size: 28px; line-height: 1.2; margin: 2px 0; }
.photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.claimbox { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--lane); border-radius: var(--r); padding: 18px 20px; margin: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.price { font-stretch: 125%; font-size: 48px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 15px; color: var(--slate); font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { padding: 7px 0 7px 28px; position: relative; }
ul.ticks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--lane); border-bottom: 2px solid var(--lane); transform: rotate(-45deg); }
dialog { border: 0; border-radius: 14px; padding: 28px; max-width: 560px; width: 92%; }
dialog::backdrop { background: rgba(15, 27, 38, .55); }
code.k { background: var(--mist); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

/* feature columns on home */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.cols p { color: var(--slate); margin: 0; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; gap: 28px; } }

footer { background: var(--ink); color: #9DACB8; padding: 40px 0; font-size: 14px; margin-top: 48px; }
footer a { color: #E3E9EE; }
footer p { max-width: 90ch; }

@media (max-width: 560px) { .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .tabs button, .seg button { white-space: nowrap; } .hero { padding-top: 40px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
