/* LeagueWiz landing page.
   Layout: left-aligned text column beside one example matchup board; quiet sections below. */
:root {
  --paper: #f4f6fa;
  --surface: #ffffff;
  --ink: #101b2d;
  --ink-2: #4b5a70;
  --rule: #d6dde7;
  --win: #0b7a55;
  --win-soft: #d5efe4;
  --them: #c3ccd8;
  --ball: #ea6a1e;
  --seam: #101b2d;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1626;
    --surface: #132036;
    --ink: #e8edf5;
    --ink-2: #9aa8bc;
    --rule: #24344d;
    --win: #3ccb94;
    --win-soft: #123b2e;
    --them: #33455f;
    --ball: #f27a30;
    --seam: #0d1626;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ball);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

/* Hero */
.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: 40px 72px;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    gap: 64px;
    padding-block: 56px 96px;
  }
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: var(--measure);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 0.95;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 1.1875rem;
  color: var(--ink-2);
}

.status {
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.status strong {
  color: var(--ink);
  font-weight: 600;
}

/* Example matchup board */
.board {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  margin: 0;
  padding: 20px 20px 16px;
  min-width: 0;
}

.board-head p {
  margin: 0;
}

.board-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.team {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.team span {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.team-them {
  text-align: right;
}

.score {
  text-align: center;
}

.score-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.matchup {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}

.matchup caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.matchup th,
.matchup td {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}

.matchup tbody tr:last-child th,
.matchup tbody tr:last-child td {
  border-bottom: 0;
}

.matchup thead th {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.matchup th[scope="row"] {
  width: 3.25rem;
  text-align: left;
  font-weight: 600;
}

.matchup .you,
.matchup .them {
  width: 3.5rem;
  color: var(--ink-2);
}

.matchup .you {
  text-align: right;
  padding-right: 12px;
}

.matchup .them {
  text-align: left;
  padding-left: 12px;
}

.matchup .won {
  color: var(--ink);
  font-weight: 700;
}

/* Split bar: your share of the category on the left, theirs on the right */
.split {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--them);
}

.split i {
  display: block;
  height: 100%;
  width: var(--share);
  background: var(--ink-2);
  opacity: 0.55;
}

tr.win .split i {
  background: var(--win);
  opacity: 1;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--win);
}

/* One load sequence: each category fills in turn, then the projected score appears */
@media (prefers-reduced-motion: no-preference) {
  .split i {
    transform-origin: left center;
    animation: fill 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(120ms + var(--row) * 70ms);
  }

  .score-value {
    animation: appear 360ms ease-out both;
    animation-delay: 840ms;
  }

  @keyframes fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  @keyframes appear {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }
}

/* Features */
.section {
  border-top: 1px solid var(--rule);
}

.section .wrap {
  padding-block: 64px;
}

.section h2 {
  margin: 0 0 32px;
  max-width: var(--measure);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1;
  text-wrap: balance;
}

.features {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.features li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
}

.features h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

.features p {
  margin: 0;
  color: var(--ink-2);
}

.next {
  margin: 40px 0 0;
  max-width: 44rem;
  color: var(--ink-2);
}

.next strong {
  color: var(--ink);
  font-weight: 600;
}

/* Data section */
.data .wrap {
  display: grid;
  gap: 16px 64px;
}

@media (min-width: 900px) {
  .data .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
  }

  .data h2 {
    margin-bottom: 0;
  }
}

.data-copy {
  display: grid;
  gap: 16px;
}

.data-copy p {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.site-footer .wrap {
  display: grid;
  gap: 12px;
  padding-block: 32px 40px;
}

.site-footer p {
  margin: 0;
  max-width: 48rem;
}

