@font-face { font-family: Barlow; font-weight: 300; font-display: swap; src: url(fonts/barlow-latin-300-normal.woff2) format('woff2') }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format('woff2') }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format('woff2') }
@font-face { font-family: 'Saira Condensed'; font-weight: 700; font-display: swap; src: url(fonts/saira-condensed-latin-700-normal.woff2) format('woff2') }
@font-face { font-family: 'Saira Condensed'; font-weight: 800; font-display: swap; src: url(fonts/saira-condensed-latin-800-normal.woff2) format('woff2') }

:root {
  --bg: #121118; --panel: #1a1922; --panel2: #22202c; --line: #2f2c3b;
  --fg: #ecebf2; --muted: #9d99ad; --faint: #6d697d; --body: #c9c6d6;
  --mint: #36d3a0; --mint-d: #1f9a74; --mint-l: #8ef0cb;
  --coral: #ee5d6c; --peri: #8fb3ff; --gold: #e2b74a;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; background: var(--bg) }
body { margin: 0; color: var(--fg); font: 300 18px/1.5 Barlow, system-ui, sans-serif; -webkit-font-smoothing: antialiased }
a { color: var(--mint-l) }
.display { font-family: 'Saira Condensed', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: .92; margin: 0 }
.mono { font-family: Consolas, ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; font-size: 13px }

/* tone: show one of each pair */
[data-tone="light"] .t-meet, [data-tone="meet"] .t-light { display: none !important }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px); background: linear-gradient(#121118ee, #12111800) }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 17px; margin-right: auto }
.brand b { font-weight: 300; color: var(--muted) }
.tone { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #1a1922cc }
.tone button { font: 600 12px Barlow, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer }
.tone button[aria-pressed="true"] { background: var(--mint); color: var(--bg) }
.nav-link { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 15px }
.nav-link:hover { color: var(--mint-l) }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--bg) }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s }
.gl-ready #gl { opacity: 1 }
.no-gl .hero { background: radial-gradient(60% 50% at 50% 35%, #1f9a7433, transparent), var(--bg) }
.shove { position: absolute; left: 25%; right: 25%; top: var(--mark-top, 8%); height: calc(var(--bar-bottom, 54%) - var(--mark-top, 8%)); background: none; border: 0; cursor: pointer; z-index: 1 }
.shove:focus-visible { outline: 1px dashed var(--mint); outline-offset: -8px }
.hero-copy { position: absolute; left: 0; right: 0; top: calc(var(--bar-bottom, 54%) + 26px); text-align: center; padding: 0 20px; z-index: 2; pointer-events: none }
.hero-copy a, .hero-copy button { pointer-events: auto }
/* the readout sits under the bar in its own pill; "Almost." shows under it in coral, in a
   slot that's always there so nothing jumps when it appears */
.readout { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px }
.pct { font-size: 14px; color: var(--fg); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #1a1922e6 }
.pct #pctn { color: var(--mint-l); font-weight: 700; display: inline-block; min-width: 3.6ch; text-align: right }
.almost { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--coral); color: var(--bg); font-weight: 700; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s }
.almost.show { opacity: 1; transform: none }
.almost.up { background: var(--mint) }
.hero h1 { font-size: clamp(64px, 11vw, 168px) }
[data-tone="meet"] .hero h1 { font-size: clamp(48px, 8.5vw, 132px) }
.tag { font-size: clamp(20px, 2.4vw, 34px); color: var(--muted); margin: 10px 0 0 }
.lede { max-width: 620px; margin: 18px auto 0; color: var(--body); font-size: clamp(16px, 1.4vw, 19px) }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px }
.btn { display: inline-block; font: 600 16px Barlow, sans-serif; padding: 12px 22px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); cursor: pointer }
.btn.primary { background: var(--mint); color: var(--bg); border-color: var(--mint) }
.btn.primary:hover { background: var(--mint-l) }
.btn.ghost { color: var(--fg); background: #1a1922aa }
.btn.ghost:hover { border-color: var(--mint-d) }
.btn:disabled { opacity: .6; cursor: default }
.hint { color: var(--faint); margin-top: 22px; font-size: 11px }
.no-gl .hint, .no-gl .shove { display: none }

/* ---------- sections ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) }
section { padding: clamp(80px, 12vh, 140px) 0 }
.head { max-width: 900px; margin-bottom: 48px }
.kicker { color: var(--mint); margin-bottom: 14px }
.head h2 { font-size: clamp(44px, 6vw, 92px) }
.sub { color: var(--body); margin: 18px 0 0 }
.sub.mono { color: var(--faint) }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.features .head { grid-column: 1 / -1 }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column;
  transition: border-color .2s, opacity .6s, translate .6s }
.feat:hover { border-color: #36d3a055 }
.feat .num { color: var(--mint) }
.feat h3 { font-size: clamp(30px, 2.8vw, 42px); margin-top: 12px }
.feat p { color: var(--body); margin: 14px 0 22px; font-size: 17px }

/* the mocks: drawn small versions of the app's screens, not screenshots */
.mock { margin-top: auto; height: 132px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); position: relative; overflow: hidden; padding: 14px 16px }
.mock .mono { font-size: 10px; color: var(--faint) }
.good, .bad, .info { font: 600 12px/1 Barlow, sans-serif; padding: 6px 9px; border-radius: 6px; white-space: nowrap }
.good { color: var(--mint-l); background: #36d3a01a }
.bad { color: #ff8f99; background: #ee5d6c1a }
.info { color: #c2d4ff; background: #8fb3ff1a }

.mock-live { display: flex; flex-direction: column; justify-content: center; gap: 12px }
.verdict { border-left: 3px solid var(--mint); padding-left: 12px }
.verdict b { display: block; font: 800 30px/1 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: .02em; margin-top: 4px }
.why { display: flex; flex-wrap: wrap; gap: 6px }

.mock-review { display: flex; flex-direction: column; justify-content: space-between }
.mock-review .row { display: flex; gap: 12px; align-items: baseline; font-weight: 500; font-size: 15px }
.mock-review .loss { color: var(--coral); font-weight: 600 }
.mock-review em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px }
.fights { display: flex; align-items: center; gap: 0; position: relative; padding: 10px 0 }
.fights::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line) }
.fights i { position: relative; flex: 1; display: flex; justify-content: center }
.fights i::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--panel2); border: 2px solid }
.fights i.w::before { border-color: var(--mint); background: #36d3a033 }
.fights i.l::before { border-color: var(--coral); background: #ee5d6c33 }
.fights i.f::after { content: ''; position: absolute; top: -9px; width: 5px; height: 5px; border-radius: 50%; background: var(--fg) }
.legend { display: flex; gap: 14px }
.legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px }
.legend .w::before { background: var(--mint) } .legend .l::before { background: var(--coral) } .legend .f::before { background: var(--fg); width: 5px; height: 5px }

.mock-chart { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: stretch }
.tiles { display: grid; gap: 8px; align-content: center }
.tiles div { display: grid }
.tiles b { font: 800 26px/1 'Saira Condensed', sans-serif; margin-top: 3px }
.tiles small { font: 600 11px Barlow; color: var(--mint-l); margin-left: 6px; vertical-align: 4px }
.mock-chart svg { width: 100%; height: 100%; overflow: visible }
.mock-chart .gridl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4 }
.mock-chart .area { fill: url(#chart-fill) }
.mock-chart polyline { fill: none; stroke: var(--mint); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round }

.mock-guides { display: flex; flex-direction: column; justify-content: center; gap: 10px }
.callout { border-left: 3px solid var(--peri); padding-left: 12px; font-size: 15px; font-weight: 500; line-height: 1.3 }
.callout .mono { display: block; color: var(--peri); margin-bottom: 4px }
.pills { display: flex; flex-wrap: wrap; gap: 6px }

.mock-aim i { position: absolute; left: 50%; top: 46%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 14px var(--coral); animation: strafe 2.4s ease-in-out infinite alternate }
.mock-aim::before, .mock-aim::after { content: ''; position: absolute; background: var(--mint-l); left: 50%; top: 46% }
.mock-aim::before { width: 18px; height: 2px; margin: -1px 0 0 -9px }
.mock-aim::after { width: 2px; height: 18px; margin: -9px 0 0 -1px }
.mock-aim .read, .mock-aim .avg { position: absolute; bottom: 12px }
.mock-aim .read { left: 16px; color: var(--muted) } .mock-aim .read b { color: var(--mint-l); font-size: 14px; margin-right: 4px }
.mock-aim .avg { right: 16px }
@keyframes strafe { from { transform: translateX(-90px) } to { transform: translateX(90px) } }

.mock-party { display: flex; flex-direction: column; justify-content: center; gap: 14px }
.code { display: flex; gap: 5px }
.code span { width: 28px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--fg) !important; font-size: 16px !important; letter-spacing: 0 }
.seats { display: flex; align-items: center; gap: 6px }
.seats svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #2c2a36 }
.seats .t { fill: var(--peri) } .seats .d { fill: var(--coral) } .seats .s { fill: var(--mint) }
.seats b { margin-left: auto; font: 600 12px Barlow; color: var(--mint-l); border: 1px solid #36d3a066; padding: 5px 10px; border-radius: 999px }

/* the fine print: four short facts */
.rules { padding-top: 0 }
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.rule { border-top: 2px solid var(--line); padding-top: 18px; position: relative }
.rule::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 2px; background: var(--mint) }
.rule h4 { margin: 0; font: 800 24px/1.05 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: .02em }
.rule p { margin: 10px 0 0; color: var(--body); font-size: 16px }

/* the waitlist is a name tag in both tones; the meeting tone says it out loud */
.join { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center }
.join .head { margin: 0 }
.tagcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transform: rotate(-1.2deg) }
.tag-top { background: var(--coral); color: var(--bg); text-align: center; padding: 16px 0 12px; border-radius: 17px 17px 0 0 }
.tag-top b { display: block; font: 800 44px/1 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em }
.tag-top span { font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .12em }
.tag-body { padding: 22px; display: grid; gap: 14px }
.tag-body label, .field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500 }
.tag-body input, .pick-btn { font: 500 17px Barlow, sans-serif; color: var(--fg); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100% }
.tag-body input:focus, .pick-btn:focus-visible, .pick-btn[aria-expanded="true"] { outline: none; border-color: var(--mint) }

/* the rank picker: the list opens under the button, inside the tilted tag */
.pick { position: relative }
.pick-btn { text-align: left; cursor: pointer; display: flex; align-items: center }
.pick-btn::after { content: ''; margin-left: auto; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s }
.pick-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg) }
.pick-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  box-shadow: 0 18px 40px #00000080; transform-origin: top; animation: drop .14s ease-out }
.pick-list:focus { outline: none }
@keyframes drop { from { opacity: 0; transform: translateY(-4px) scaleY(.96) } }
.pick-list li { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--fg); font-size: 16px }
.pick-list li small { margin-left: auto; color: var(--faint); font-size: 13px; font-weight: 300; text-align: right }
.pick-list li.active { background: #36d3a01f }
.pick-list li[aria-selected="true"] { color: var(--mint-l) }
[data-tone="meet"] .tag-body input[name="handle"] { font: 800 26px 'Saira Condensed', sans-serif; letter-spacing: .03em; border-style: dashed; background: none }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0 }
.status { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--muted) }
.status.good { color: var(--mint-l) }
.status.bad { color: var(--coral) }
.tagcard.done input, .tagcard.done .pick, .tagcard.done button { opacity: .5; pointer-events: none }

.foot { border-top: 1px solid var(--line); padding: 40px 20px 60px; text-align: center; color: var(--muted); display: grid; gap: 10px; font-size: 15px }
.foot .mono { color: var(--faint); font-size: 12px }
.foot .fine { color: var(--faint); font-size: 12px }

/* the preview tag, on the pages.dev preview only (site.js) */
.preview { position: fixed; left: 16px; bottom: 16px; z-index: 20; font-size: 11px; color: var(--bg);
  background: var(--peri); padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 20px #00000066 }

/* reveals */
.js-reveal .feat, .js-reveal .head, .js-reveal .tagcard, .js-reveal .rule { opacity: 0; translate: 0 24px; transition: opacity .6s, translate .6s }
.feat.in, .head.in, .tagcard.in, .rule.in { opacity: 1 !important; translate: 0 0 !important }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr }
  .rule-grid { grid-template-columns: 1fr 1fr }
  .join { grid-template-columns: 1fr }
  .tagcard { transform: none; max-width: 460px }
}
@media (max-width: 640px) {
  .features, .rule-grid { grid-template-columns: 1fr }
  .brand span { display: none }
  .shove { left: 10%; right: 10% }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .mock-aim i { animation: none }
  .js-reveal .feat, .js-reveal .head, .js-reveal .tagcard, .js-reveal .rule { opacity: 1; translate: none; transition: none }
}
