/* Apex Match Day marketing site. Palette and type follow apexsoccer.app. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/Inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/Inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/Inter-700.woff2') format('woff2'); }

:root {
  --bg: #000000;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --line: #2a2a2a;
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --ink-3: #64748b;
  --gold: #ffc226;
  --gold-2: #e09b00;
  --green: #10b981;
  --amber: #fb923c;
  --red: #ef4444;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--gold); }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--ink-3); }
.lead { font-size: 1.2rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(17,17,17,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--gold), #e5e7eb, var(--gold-2)) 1; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--gold); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 30px; height: 30px; }
.brand small { color: var(--ink-3); font-weight: 500; font-size: .85rem; }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-color: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 6vw, 4rem); background: linear-gradient(135deg, #000 0%, #0c0c0e 55%, #111 100%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
.hero .eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); display: block; }
.hero .lead { color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 1px solid transparent; transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1200; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.03); }
.price { color: var(--ink-3); font-size: .95rem; }
.price b { color: var(--ink); font-weight: 600; }
.lion { position: absolute; right: -2%; top: 50%; width: min(50vw, 440px); transform: translateY(-50%); opacity: .12; pointer-events: none; filter: saturate(.6); }
.brand img { width: 34px; height: 34px; }

/* Phone mock of the match screen */
.phone { width: min(100%, 340px); margin-inline: auto; background: #0a0a0a; border: 1px solid var(--line); border-radius: 34px; padding: 14px; box-shadow: 0 30px 80px rgba(255,194,38,.08), 0 2px 0 rgba(255,255,255,.04) inset; position: relative; z-index: 1; }
.screen { background: #000; border-radius: 24px; overflow: hidden; border: 1px solid #222; font-size: 12px; }
.clockbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.clockbar .period { color: var(--ink-3); font-weight: 600; letter-spacing: .08em; font-size: 10px; text-transform: uppercase; }
.clockbar .clock { color: var(--ink); font-weight: 700; font-size: 26px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.clockbar .ctl { display: flex; gap: 6px; }
.clockbar .ctl span { padding: 4px 8px; border-radius: 999px; background: #161616; color: var(--ink-2); font-weight: 600; font-size: 10px; border: 1px solid #2a2a2a; }
.clockbar .ctl span.on { background: rgba(255,194,38,.15); color: var(--gold); border-color: rgba(255,194,38,.4); }
.pitch { margin: 4px 12px 10px; aspect-ratio: 3 / 3.6; border-radius: 10px; background: linear-gradient(180deg, #0f3b2a, #0c3324); position: relative; border: 1px solid rgba(255,255,255,.14); overflow: hidden; }
.pitch::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(255,255,255,.16); }
.pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .box { position: absolute; left: 25%; right: 25%; height: 16%; border: 1px solid rgba(255,255,255,.16); }
.pitch .box.top { top: -1px; border-top: 0; } .pitch .box.bot { bottom: -1px; border-bottom: 0; }
.chip { position: absolute; transform: translate(-50%, -50%); width: 50px; text-align: center; }
.chip b { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 2px; border-radius: 50%; background: #e5e7eb; color: #111; font-weight: 700; font-size: 12px; border: 2px solid rgba(255,255,255,.7); }
.chip.gk b { background: var(--green); color: #fff; }
.chip.out b { background: var(--red); color: #fff; box-shadow: 0 0 0 3px rgba(239,68,68,.35); }
.chip small { display: block; color: #e6fff9; font-weight: 600; font-size: 9px; line-height: 1.1; }
.chip em { font-style: normal; color: rgba(230,255,249,.75); font-size: 9px; font-variant-numeric: tabular-nums; }
.bench { padding: 0 12px 12px; }
.bench h4 { margin: 0 0 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.bench ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.bench li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #101010; border: 1px solid #1f1f1f; color: var(--ink-2); }
.bench li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1f2937; color: var(--ink); font-size: 10px; }
.bench li .sit { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bench li.next { border-color: rgba(255,194,38,.55); background: rgba(255,194,38,.08); color: var(--ink); }
.bench li.next b { background: var(--gold); color: #1a1200; }
.bench li.next .sit { color: var(--gold); font-weight: 600; }
.confirm { margin: 10px 12px 14px; padding: 11px; border-radius: 12px; text-align: center; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1200; font-weight: 700; font-size: 12px; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
.feature { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .9rem; background: rgba(255,194,38,.12); color: var(--gold); }
.feature p { margin: 0; color: var(--ink-2); }
.steps { counter-reset: step; display: grid; gap: 1.2rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-left: 3.4rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1200; font-weight: 700; }
.steps h3 { margin-bottom: .2rem; }
.promise { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
.promise div { display: flex; gap: .7rem; align-items: flex-start; }
.promise svg { flex: none; margin-top: .25rem; color: var(--green); }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .7rem 0 0; }

/* Prose pages */
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.prose .updated { color: var(--ink-3); font-size: .95rem; }
.note { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--ink-3); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .promise { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 759px) {
  .nav a:not(:last-child) { display: none; }
  .lion { display: none; }
}
