/*
 * seo.css — the single stylesheet for every generated landing page.
 *
 * Copied verbatim into public/tournament-software/ by build.mjs, so it ships
 * unhashed and is linked as an absolute path. Deliberately self-contained: the
 * generated pages live two directories deep and are not Vite rollup inputs, so
 * they cannot resolve trakscore-shared.css the way the landing page does.
 *
 * Contrast: --dim is 4.74:1 on --bg and --text is far above; both clear WCAG AA
 * for body text. Do NOT dim text with a wrapper opacity — use a dimmer token
 * that still passes, per the project accessibility rules.
 */

:root {
  --red:      #FF3C3C;
  --red-cta:  #E02A2A; /* filled-button bg — white text >= 4.5:1 */
  --red-dark: #AA0000;
  --green:    #00FFB2;
  --bg:       #06060E;
  --surface:  #0A0A18;
  --raised:   #101024;
  --border:   #18183A;
  --text:     #E0E0F8;
  --dim:      #7878A0; /* 4.74:1 on --bg — the floor for body text */
  --faint:    #22223A; /* hairlines and dividers only — never text */

  --font-heading: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow Condensed', sans-serif;
  --font-prose:   'Barlow', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--red); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red-cta); color: #fff; padding: 12px 20px;
  font-family: var(--font-heading); letter-spacing: 1px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 56px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(6, 6, 14, 0.94);
  backdrop-filter: blur(8px); z-index: 50;
}
.nav-logo {
  font-family: var(--font-heading); font-size: 22px; letter-spacing: 5px;
  color: var(--red); text-decoration: none;
}
.nav-logo span { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right a {
  font-family: var(--font-heading); font-size: 15px; letter-spacing: 1.4px;
  color: var(--dim); text-decoration: none;
}
.nav-right a:hover { color: var(--text); }
.btn-nav {
  background: var(--red-cta); color: #fff !important; padding: 9px 18px;
  border-radius: 3px;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
.section-eyebrow {
  font-family: var(--font-heading); font-size: 13px; letter-spacing: 3px;
  color: var(--red); margin-bottom: 12px;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: 1px; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; }
h1 .accent { color: var(--red); display: block; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; margin-bottom: 18px; }
h3 { font-size: 21px; margin-bottom: 8px; }
p  { font-family: var(--font-prose); font-size: 16px; line-height: 1.65; color: var(--dim); }
p + p { margin-top: 14px; }
p strong { color: var(--text); font-weight: 500; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 460px; background: radial-gradient(ellipse, rgba(255,60,60,0.13), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.breadcrumb { font-family: var(--font-heading); font-size: 13px; letter-spacing: 1.6px; color: var(--dim); margin-bottom: 20px; }
.breadcrumb a { color: var(--dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--faint); margin: 0 8px; }
.breadcrumb .here { color: var(--text); }
.hero-sub { font-size: 18px; max-width: 660px; margin-top: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-primary, .btn-ghost {
  font-family: var(--font-heading); font-size: 16px; letter-spacing: 1.6px;
  padding: 14px 28px; border-radius: 3px; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--red-cta); color: #fff; }
.btn-primary:hover { background: var(--red); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--red); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px;
  padding-top: 24px; border-top: 1px solid var(--faint);
}
.hero-meta div { min-width: 150px; }
.hero-meta dt { font-family: var(--font-heading); font-size: 12px; letter-spacing: 2px; color: var(--dim); }
.hero-meta dd { font-family: var(--font-body); font-size: 17px; color: var(--text); margin-top: 4px; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 24px;
}
.card h3 { color: var(--text); }
.card p { font-size: 15px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill {
  font-family: var(--font-heading); font-size: 14px; letter-spacing: 1.4px;
  border: 1px solid var(--border); border-radius: 3px; padding: 8px 14px;
  color: var(--text); text-decoration: none; background: var(--surface);
}
a.pill:hover { border-color: var(--red); }

/* ── Prose block ──────────────────────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 0; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-num { font-family: var(--font-heading); font-size: 30px; color: var(--red); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 26px; }
.pricing-card.featured { border-color: var(--red); }
.pricing-tier { font-family: var(--font-heading); font-size: 15px; letter-spacing: 2.4px; color: var(--red); }
.pricing-price { font-family: var(--font-heading); font-size: 46px; line-height: 1; margin: 10px 0 4px; }
.pricing-period { font-family: var(--font-prose); font-size: 13px; color: var(--dim); }
.pricing-card ul { list-style: none; margin: 18px 0 0; }
.pricing-card li {
  font-family: var(--font-prose); font-size: 14px; color: var(--dim);
  padding: 6px 0 6px 20px; position: relative;
}
.pricing-card li::before { content: '+'; position: absolute; left: 0; color: var(--green); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq-item { border-top: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { font-family: var(--font-heading); font-size: 20px; color: var(--text); margin-bottom: 8px; }

/* ── Related links ────────────────────────────────────────────────────────── */
.related { background: var(--surface); border-top: 1px solid var(--border); }
.related h2 { font-size: 24px; }
.related-group + .related-group { margin-top: 30px; }
.related-group h3 { font-size: 16px; letter-spacing: 2px; color: var(--dim); }

/* ── Hub index table ──────────────────────────────────────────────────────── */
.matrix { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.matrix-col h3 { color: var(--red); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.matrix-col ul { list-style: none; margin-top: 10px; }
.matrix-col li { padding: 4px 0; }
.matrix-col a { font-family: var(--font-prose); font-size: 15px; color: var(--text); text-decoration: none; }
.matrix-col a:hover { color: var(--red); text-decoration: underline; }

/* ── CTA band + footer ────────────────────────────────────────────────────── */
.cta-band { border-top: 1px solid var(--border); text-align: center; }
.cta-band p { margin: 0 auto 24px; max-width: 560px; }
footer {
  border-top: 1px solid var(--border); padding: 30px 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
footer a { font-family: var(--font-heading); font-size: 14px; letter-spacing: 1.4px; color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-family: var(--font-heading); font-size: 12px; letter-spacing: 1.4px; color: var(--dim); }

@media (max-width: 680px) {
  section { padding: 48px 0; }
  .nav-right a:not(.btn-nav) { display: none; }
  .hero-meta { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
