/* Manifest landing page. No build step; system fonts only, so the page makes no third-party requests.
   The palette, cards, labels, pills and buttons follow the dashboard's design system (CLAUDE.md, web/src/styles.css). */

:root {
  /* Ground and surfaces: the dashboard's Cockpit tokens (dark). */
  --bg: #07090a;
  --card: #111316;
  --border: #1f2226;
  --line: #17191c;
  --raise: #15181c;
  --btn-border: #2a2d31;
  /* Text. Muted #a1a1aa for body copy, #b4b4bc for small text, faint for captions; all AA on --bg and --card. */
  --text: #e4e4e7;
  --muted: #a1a1aa;   /* 7.8:1 on --bg, 7.3:1 on --card */
  --muted-sm: #b4b4bc; /* 9.7:1 on --bg */
  --faint: #8b8b94;   /* 5.9:1 on --bg, 5.5:1 on --card (the dashboard's faint) */
  /* Tones. */
  --up: #34d399;
  --down: #f87171;
  --amber: #fbbf24;
  --pro: #bef264;
  --info: #60a5fa;
  --grad: linear-gradient(90deg, #10b981, #84cc16);
  --grad-fg: #04130b;
  /* Highlighted primary card (the dashboard's tv-primary). */
  --primary-border: #065f46;
  --primary-bg: linear-gradient(135deg, #04201a, #0c0f11);
  /* Pills: the dashboard's dark tv-pill tones. */
  --pill-good-fg: #34d399; --pill-good-border: #065f46; --pill-good-bg: #022c22;
  --pill-warn-fg: #fbbf24; --pill-warn-border: #78350f; --pill-warn-bg: #1f1306;
  --pill-bad-fg: #f87171; --pill-bad-border: #7f1d1d; --pill-bad-bg: #1f0a0a;
  --pill-neutral-fg: #d4d4d8; --pill-neutral-border: #3f3f46; --pill-neutral-bg: #18181b;
  /* Spacing scale (4 px based) and shape. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;
  --radius: 12px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
a { color: inherit; }
b, strong { color: var(--text); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.faq-list { max-width: 820px; }
.num { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: a clear ring on keyboard focus only. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--up); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: var(--s4); top: -64px; z-index: 100;
  padding: 10px var(--s4); border-radius: 8px;
  background: var(--up); color: var(--grad-fg); font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s3); }

/* Buttons: the primary gradient for the one main action, outlined secondary for everything else. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease, filter .15s ease;
}
.btn-primary { background: var(--grad); color: var(--grad-fg); box-shadow: 0 6px 24px -10px rgba(52, 211, 153, .55); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary { border-color: var(--btn-border); background: var(--card); color: var(--text); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }

/* Pills: rounded, bordered, tinted, and always a word. */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 999px; border: 1px solid;
  font-size: 12px; font-weight: 600; line-height: 1.7; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums;
}
.pill-good { color: var(--pill-good-fg); border-color: var(--pill-good-border); background: var(--pill-good-bg); }
.pill-warn { color: var(--pill-warn-fg); border-color: var(--pill-warn-border); background: var(--pill-warn-bg); }
.pill-bad { color: var(--pill-bad-fg); border-color: var(--pill-bad-border); background: var(--pill-bad-bg); }
.pill-neutral { color: var(--pill-neutral-fg); border-color: var(--pill-neutral-border); background: var(--pill-neutral-bg); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 10, .85);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.site-nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: var(--s2); }
.site-nav ul { display: flex; gap: var(--s1); list-style: none; padding: 0; }
.site-nav a { display: block; padding: var(--s2) var(--s3); border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

/* Shared type. Labels: small uppercase, 0.08em, as on the dashboard's cards. */
.eyebrow, .label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--up);
}
.eyebrow-pro, .label-pro { color: var(--pro); }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: var(--s2) 0 var(--s3); }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: var(--s1) 0 6px; }
.lead { color: var(--muted); font-size: 17px; max-width: 34em; }
.faint { color: var(--faint); }

.ticks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; color: var(--muted); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--up); border-bottom: 2px solid var(--up); transform: rotate(-45deg);
}
.ticks-pro li::before { border-color: var(--pro); }

/* Hero */
.hero {
  position: relative; text-align: center; padding: 72px 0 var(--s9); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 22%, rgba(16, 185, 129, .2), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(132, 204, 22, .06), transparent 70%);
}
.hero-logo {
  width: 128px; height: 128px; margin: 0 auto var(--s2);
  filter: drop-shadow(0 0 28px rgba(52, 211, 153, .42));
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(52, 211, 153, .35)); }
  50% { filter: drop-shadow(0 0 38px rgba(52, 211, 153, .58)); }
}
.hero h1 { font-size: clamp(44px, 8vw, 72px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.tagline { margin-top: 10px; font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); list-style: none; padding: 0; margin: 22px 0 28px; }
.chips .pill { font-size: 13px; padding: 2px 12px; }
.chip-state { opacity: .8; font-size: 12px; letter-spacing: .04em; }
.chip-live .dot { box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }

.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.hero-note { margin-top: var(--s3); font-size: 14px; color: var(--muted-sm); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 620px; margin: 40px auto 0; text-align: left; }
.tile {
  display: grid; gap: 2px; padding: var(--s4) 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color .15s ease, transform .15s ease;
}
.tile:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.tile strong { font-size: 16px; }
.tile .faint { font-size: 14px; }

/* Bands */
.band { padding: var(--s9) 0; border-top: 1px solid var(--line); }

.row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.row-flip { grid-template-columns: 1.1fr 1fr; }
.row-flip .row-text { order: 2; }
.row-flip .row-preview { order: 1; }
.row-preview { min-width: 0; }

figcaption { margin-top: var(--s3); font-size: 13px; color: var(--faint); }

/* Signals previews: Discord Components V2 cards (an accent bar, a headline, short lines, subtext). */
.previews { display: grid; gap: var(--s3); }
.previews figcaption { margin-top: 0; }
.msg {
  display: grid; gap: 2px; padding: var(--s3) var(--s4); border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--up);
  font-size: 14.5px; line-height: 1.5; color: var(--muted-sm); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8);
}
.msg-warn { border-left-color: var(--amber); }
.msg-neutral { border-left-color: #63636e; }
.msg-h { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.msg-sub { font-size: 12.5px; color: var(--faint); }
.msg hr { width: 100%; height: 1px; margin: 6px 0; border: 0; background: var(--border); }
.msg-btn {
  justify-self: start; margin-top: 6px; padding: 3px 12px; border-radius: 6px;
  background: var(--raise); border: 1px solid var(--btn-border); color: var(--text); font-size: 13px; font-weight: 600;
}

/* Pro preview: the My Parlays table (small uppercase headers, grade pills, tabular figures). */
.dash {
  border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -30px rgba(52, 211, 153, .25);
}
.dash-tabs { display: flex; gap: 18px; padding: var(--s3) 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--faint); overflow: hidden; }
.dash-tabs .is-active { color: var(--up); font-weight: 700; box-shadow: inset 0 -2px 0 var(--up); padding-bottom: 2px; }
.dash table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dash th {
  padding: var(--s2) 14px; text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.dash td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.dash tbody tr:first-child td { border-top: 0; }
.dash .r { text-align: right; }
.dash .sub { display: block; font-size: 12px; color: var(--faint); }
.dash .live { display: inline-flex; align-items: center; gap: 6px; color: #fecaca; font-size: 13px; }
.dash .live .dot { background: var(--down); }

/* Card grids */
.cards { list-style: none; padding: 0; display: grid; gap: var(--s4); margin-top: 28px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.card p { color: var(--muted); }
.step-n { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--up); font-variant-numeric: tabular-nums; }

/* Plans: side by side; Pro is the highlighted card. */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.plan {
  display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
}
.plan-pro { border-color: var(--primary-border); background: var(--primary-bg); box-shadow: 0 24px 60px -34px rgba(132, 204, 22, .35); }
.plan-head { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.plan-name { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--up); }
.plan-name-pro { color: var(--pro); }
.plan-price { margin-top: var(--s2); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-price .price { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.plan-blurb { margin-top: 2px; font-weight: 600; }
.plan .ticks { margin-bottom: var(--s5); }
.plan-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s2); }
.plans-free {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5);
  margin-top: 20px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--btn-border);
}
.plans-free p { color: var(--muted); }
.plans-free .plan-actions { margin-top: 0; }

/* FAQ */
.faq { margin-top: 20px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; padding: 18px 40px 18px 0; cursor: pointer;
  font-weight: 700; font-size: 17px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: var(--s2); top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--up); }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); }

/* Footer */
.site-footer { padding: var(--s6) 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-sm); }
.site-footer strong { color: var(--text); }
.nowrap { white-space: nowrap; }

/* Responsive: 1280+ side by side, stacked at 900 and below, phone at 640 and below. */
@media (max-width: 900px) {
  .row, .row-flip { grid-template-columns: 1fr; gap: var(--s6); }
  .row-flip .row-text, .row-flip .row-preview { order: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .band { padding: var(--s8) 0; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 640px) {
  .hero { padding: var(--s7) 0 var(--s8); }
  .hero-logo { width: 104px; height: 104px; }
  .tiles, .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px 20px; }
  .dash td, .dash th { padding-inline: 10px; }
  .dash .col-x { display: none; }
  .dash-tabs { gap: 14px; padding: var(--s3); }
  .msg { font-size: 14px; }
  .plans-free { padding: var(--s4); }
}
@media (max-width: 400px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .brand span { display: none; } /* room for Log in and Join the Discord; the link keeps its aria-label */
  .btn-sm { padding: 8px 12px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn-primary:hover, .tile:hover { transform: none; }
}
