/* PlentyPass v2 — production legal sports guide
   Editorial sports-desk feel. Avoids generic AI chrome. */

:root {
  --ink: #0e1116;
  --ink-2: #171b22;
  --ink-3: #222833;
  --line: #2c3340;
  --line-soft: #3a4252;
  --paper: #f3efe6;
  --paper-dim: #c8c2b4;
  --muted: #8b93a7;
  --text: #e8e4db;
  --text-soft: #b0b6c4;
  --signal: #e23d28;
  --signal-deep: #b52d1c;
  --field: #3d8b6e;
  --field-soft: rgba(61, 139, 110, 0.14);
  --amber: #d4a017;
  --link: #7eb8d4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 6px;
  --max: 1120px;
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SF Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(226, 61, 40, 0.08), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(61, 139, 110, 0.06), transparent 50%),
    var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #a8d4ea;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--signal) 0%, #7a1a12 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text strong em {
  font-style: normal;
  color: var(--signal);
}

.brand-text small {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink-3);
}

.nav .nav-cta {
  background: var(--signal);
  color: #fff;
  margin-left: 0.25rem;
}

.nav .nav-cta:hover {
  background: var(--signal-deep);
  color: #fff;
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 0.35rem 0.55rem;
  }
}

/* Hero */
.hero {
  padding: 2.4rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  align-items: end;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--field);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--field);
  box-shadow: 0 0 0 3px var(--field-soft);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--paper);
  font-weight: 800;
  max-width: 16ch;
}

.hero h1 span {
  color: var(--signal);
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.05rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--signal-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--paper-dim);
  color: var(--paper);
  background: var(--ink-2);
}

.hero-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.hero-card p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text);
}

.hero-card li strong {
  color: var(--field);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-width: 1.4rem;
}

/* Sections */
.section {
  padding: 2rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.chip.live {
  border-color: rgba(226, 61, 40, 0.45);
  color: #ff8a7a;
}

.chip.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* Sport section heads on board */
.sport-block {
  border-bottom: 1px solid var(--line);
}

.sport-block:last-child {
  border-bottom: none;
}

.sport-block-head {
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, rgba(226, 61, 40, 0.18), transparent 70%);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}

.sport-block .league-group {
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin: 0;
  background: transparent;
}

.sport-block .league-group + .league-group {
  border-top: 1px solid var(--line);
}

.board-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.toolbar-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--line-soft);
  color: var(--paper);
}

.filter-btn.is-active {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* Fixture list */
.fixture-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.league-group + .league-group {
  border-top: 1px solid var(--line);
}

.league-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #141820;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.fixture {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.fixture:last-child {
  border-bottom: none;
}

.fixture:hover {
  background: #1a202b;
  text-decoration: none;
  color: inherit;
}

.fixture-time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--amber);
}

.fixture-time.is-live {
  color: #ff7b6b;
}

.fixture-main {
  min-width: 0;
}

.fixture-teams {
  font-weight: 750;
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.fixture-sub {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.fixture-cta {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--link);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .fixture {
    grid-template-columns: 58px 1fr;
  }
  .fixture-cta {
    grid-column: 2;
  }
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--paper);
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.card a.more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.86rem;
}

/* Value banner */
.value-banner {
  margin: 0.5rem 0 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 160, 23, 0.35);
  background:
    linear-gradient(90deg, rgba(212, 160, 23, 0.1), transparent 60%),
    var(--ink-2);
}

.value-banner h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--paper);
}

.value-banner p {
  margin: 0;
  color: var(--text-soft);
  max-width: 52rem;
}

/* Where to watch table */
.wtw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.wtw-table th,
.wtw-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.wtw-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #141820;
}

.wtw-table tr:last-child td {
  border-bottom: none;
}

.wtw-table .region {
  font-weight: 800;
  color: var(--paper);
  white-space: nowrap;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  margin-right: 0.55rem;
  margin-bottom: 0.25rem;
}

.note {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Match page */
.page-hero {
  padding: 1.75rem 0 0.5rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--paper);
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  letter-spacing: -0.025em;
  color: var(--paper);
  line-height: 1.15;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.panel-head {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #141820;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--paper);
}

.panel-body {
  padding: 0.25rem 0;
}

.panel-body.pad {
  padding: 1rem 1.1rem;
}

.callout {
  border-left: 3px solid var(--signal);
  background: rgba(226, 61, 40, 0.08);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.callout strong {
  color: var(--paper);
}

/* Free legal grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.service {
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--paper);
}

.service p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  flex: 1;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--muted);
  width: fit-content;
}

.badge.free {
  border-color: rgba(61, 139, 110, 0.5);
  color: #7dccae;
}

.badge.paid {
  border-color: rgba(212, 160, 23, 0.45);
  color: #e2c36a;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--paper);
  letter-spacing: -0.02em;
}

.prose h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.55rem;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose ul {
  padding-left: 1.15rem;
}

.faq details {
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: var(--radius);
  margin-bottom: 0.55rem;
  padding: 0.75rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--paper);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.faq details p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer strong {
  color: var(--paper);
  display: block;
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
  display: inline-block;
  margin: 0.2rem 0;
}

.site-footer a:hover {
  color: var(--paper);
}

.legal-line {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 48rem;
}

/* Empty / loading */
.empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

/* League pills on home */
.sport-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin: 1rem 0 0.25rem;
  scrollbar-width: thin;
}

.sport-rail a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.sport-rail a:hover {
  border-color: var(--line-soft);
  background: var(--ink-3);
  text-decoration: none;
  color: var(--paper);
}

/* Two column content */
.split {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.side-note {
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.side-note h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--paper);
}

.side-note p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}
