/* Sixth Man website. Same tokens as the app (src/theme/tokens.ts): brand blue, the
   ball's orange, Geist, bezel cards, pill buttons. Light and dark follow the device. */

@font-face { font-family: Geist; src: url(/fonts/Geist_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist_500Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --primary: #1f4fd1;
  --on-primary: #ffffff;
  --ball: #e8740c;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --shell: rgba(16, 17, 20, 0.04);
  --shell-border: rgba(16, 17, 20, 0.07);
  --hairline: rgba(16, 17, 20, 0.08);
  --text: #101114;
  --text-2: #5b5f68;
  --text-3: #80848c;
  --primary-soft: #e3e9fb;
  --on-primary-soft: #1a3fa6;
  --highlight: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(16, 17, 20, 0.04), 0 18px 40px -24px rgba(16, 17, 20, 0.18);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 28px;
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0d;
    --surface: #15161a;
    --shell: rgba(255, 255, 255, 0.035);
    --shell-border: rgba(255, 255, 255, 0.07);
    --hairline: rgba(255, 255, 255, 0.08);
    --text: #f3f4f6;
    --text-2: #a4a8b0;
    --text-3: #7a7e86;
    --primary-soft: #1a2442;
    --on-primary-soft: #a9bdf7;
    --highlight: rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.skip { position: absolute; left: -999px; top: 8px; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 12px; }

/* ---------- navigation: a floating pill, not an edge-to-edge bar ---------- */
.nav-wrap { padding: 16px var(--gutter) 0; }
.nav {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--shell-border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
/* The app icon (the line 6), built by assets/icon-source/icons.py. */
.mark { width: 32px; height: 32px; border-radius: 9px; display: block; }
.mark-sm { width: 24px; height: 24px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-2);
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { background: var(--shell); color: var(--text); }

/* ---------- layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0 0; }
.section:last-child { padding-bottom: 96px; }
.eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--on-primary-soft);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.display { font-size: clamp(44px, 8vw, 84px); font-weight: 800; margin-top: 18px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 34ch; margin: 20px 0 0; }
h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.sub { color: var(--text-2); max-width: 52ch; margin: 14px 0 0; }

/* ---------- hero: words left, court right ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.note { color: var(--text-3); font-size: 14px; }

/* ---------- pill button with the icon in its own circle ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 24px; min-height: 56px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font-weight: 600; text-decoration: none;
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease);
  box-shadow: 0 14px 30px -16px var(--primary);
}
.btn-icon {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 450ms var(--ease);
}
.btn:hover .btn-icon { transform: translateX(3px) scale(1.05); }
.btn:active { transform: scale(0.98); }
.btn.is-soon { background: var(--shell); color: var(--text-2); box-shadow: none; border: 1px solid var(--shell-border); cursor: default; }
.btn.is-soon .btn-icon { background: var(--shell); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--shell-border); box-shadow: none; }
.btn.ghost .btn-icon { background: var(--shell); }

/* ---------- bezel: a machined tray around a raised plate ---------- */
.bezel {
  padding: 6px; border-radius: var(--radius);
  background: var(--shell); border: 1px solid var(--shell-border);
}
.core {
  border-radius: calc(var(--radius) - 6px);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
  padding: 28px;
}
.core.primary { background: var(--primary); color: var(--on-primary); }
.court { padding: 36px 28px; display: grid; place-items: center; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.bento > .bezel:nth-child(1) { grid-column: span 4; }
.bento > .bezel:nth-child(2) { grid-column: span 2; }
.bento > .bezel:nth-child(3) { grid-column: span 2; }
.bento > .bezel:nth-child(4) { grid-column: span 4; }
.bento .core { height: 100%; }
.tile-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--on-primary-soft); margin-bottom: 20px;
}
.core.primary .tile-icon { background: rgba(255, 255, 255, 0.16); color: var(--on-primary); }
.bento h3 { font-size: 24px; font-weight: 800; }
.bento p { margin: 10px 0 0; color: var(--text-2); }
.core.primary p { color: rgba(255, 255, 255, 0.86); }
.bento ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-2); }
.bento li { margin: 4px 0; }

/* ---------- privacy promise strip ---------- */
.promise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.promise span {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--surface); border: 1px solid var(--hairline);
}

/* ---------- support FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 32px; }
.faq details { border-radius: 22px; background: var(--surface); border: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; min-height: 56px;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--text-3); transition: transform 350ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); }
.faq .answer p { margin: 0 0 10px; }
.path { font-weight: 600; color: var(--text); }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact h3 { font-size: 26px; font-weight: 800; }
.contact p { margin: 6px 0 0; }

/* ---------- long text (privacy) ---------- */
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; margin: 18px 0 8px; }
.prose h2 { font-size: 26px; margin: 44px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin: 8px 0; }

/* ---------- join (invite link) ---------- */
.code {
  font-weight: 800; font-size: clamp(40px, 9vw, 64px); letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums; margin: 8px 0 0;
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.steps li::before {
  content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--primary-soft); color: var(--on-primary-soft);
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); margin-top: 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 40px var(--gutter) 56px; display: grid; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); }
.fine { color: var(--text-3); font-size: 13px; margin: 0; }

/* ---------- entry motion: a gentle fade-up, off for reduced motion ---------- */
.rise { animation: rise 900ms var(--ease) both; }
.rise.d1 { animation-delay: 80ms; }
.rise.d2 { animation-delay: 160ms; }
.rise.d3 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  * { transition: none !important; }
}

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .section { padding-top: 72px; }
  .bento { grid-template-columns: 1fr; }
  .bento > .bezel:nth-child(n) { grid-column: auto; }
  .core { padding: 22px; }
  .nav-links a { padding: 10px 12px; }
}
