:root {
  color-scheme: light;
  --ink: #102019;
  --muted: #5c6c63;
  --line: #d7e2da;
  --paper: #f5f8f2;
  --panel: #ffffff;
  --field: #0b6f42;
  --field-dark: #063226;
  --lime: #2bc878;
  --gold: #f4cf48;
  --orange: #db6b2f;
  --good: #167345;
  --bad: #a5382c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--field);
}

.topbar {
  border-bottom: 1px solid rgba(215, 226, 218, 0.85);
  background: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.topbar-inner {
  min-height: 74px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand .icon {
  color: #fff;
  background: var(--field);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-weight: 950;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf6;
}

.nav-links a,
.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: #e8f1eb;
}

.nav-cta {
  justify-self: end;
  gap: 8px;
  color: #fff;
  background: var(--field);
  box-shadow: 0 12px 28px rgba(11, 111, 66, 0.18);
}

.nav-cta:hover {
  background: #075d38;
}

.nav-cta .icon {
  width: 26px;
  height: 26px;
}

.nav-cta .icon svg {
  width: 17px;
  height: 17px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.match-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: end;
  padding: 48px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(5, 19, 15, 0.96) 0%, rgba(5, 19, 15, 0.78) 44%, rgba(5, 19, 15, 0.18) 100%),
    url("/assets/match-night.svg") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(14, 40, 28, 0.22);
}

.match-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--field), var(--gold), var(--lime));
}

.hero-copy,
.signup {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 680px;
  padding-bottom: 28px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1 {
  font-size: 4.7rem;
  line-height: 0.98;
  margin: 0 0 22px;
  letter-spacing: 0;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.match-hero h1,
.match-hero .lede {
  color: #fff;
}

.lede {
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.58;
  max-width: 660px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-pills > span,
.match-strip div {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #f9fff9;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--field-dark);
  background: var(--gold);
}

.icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signup,
.panel,
.grid article {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(24, 41, 33, 0.12);
}

.signup,
.panel {
  padding: 24px;
}

.signup-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.signup-head .eyebrow {
  color: var(--orange);
  margin-bottom: 2px;
}

.signup-head h2 {
  margin: 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 16px;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus {
  outline: 3px solid rgba(43, 200, 120, 0.22);
  border-color: var(--field);
}

button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--field);
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: #075d38;
}

button {
  width: 100%;
}

button.danger {
  background: var(--bad);
}

.fineprint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.match-strip {
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.match-strip div {
  justify-content: center;
  min-height: 56px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(14, 40, 28, 0.08);
}

.grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid article {
  padding: 22px;
}

.feature-grid article > .icon {
  margin-bottom: 14px;
}

.grid p,
.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 5px solid var(--gold);
  background: #fff;
  color: var(--muted);
  line-height: 1.55;
  border-radius: 6px;
}

.notice strong {
  color: var(--ink);
}

.proof-section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(14, 40, 28, 0.08);
}

.proof-copy {
  max-width: 760px;
}

.proof-copy .eyebrow {
  color: var(--orange);
}

.proof-copy h2 {
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1.08;
}

.proof-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.proof-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.proof-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf6;
}

.proof-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--field-dark);
}

.proof-card-wide img {
  aspect-ratio: 16 / 10;
  object-position: left top;
}

.proof-card figcaption {
  min-height: 54px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.32;
  background: #fff;
}

.subhero {
  padding: 42px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 19, 15, 0.96) 0%, rgba(5, 19, 15, 0.78) 56%, rgba(5, 19, 15, 0.22) 100%),
    url("/assets/match-night.svg") center / cover no-repeat;
  color: #fff;
  box-shadow: 0 18px 54px rgba(14, 40, 28, 0.18);
}

.subhero h1 {
  max-width: 780px;
  font-size: 4rem;
}

.subhero .lede {
  color: rgba(255, 255, 255, 0.86);
}

.channel-grid,
.tutorial-grid,
.official-guide {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tutorial-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.channel-card,
.tutorial-card,
.official-guide {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(14, 40, 28, 0.08);
}

.official-guide {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  padding: 24px;
}

.official-copy h2 {
  font-size: 1.75rem;
  line-height: 1.12;
}

.official-copy p,
.video-card p {
  color: var(--muted);
  line-height: 1.55;
}

.official-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.official-actions .button {
  min-height: 42px;
}

.video-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf6;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--field-dark);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.channel-card .eyebrow {
  color: var(--orange);
}

.channel-top,
.channel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.channel-actions {
  margin: 22px 0 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.channel-card p,
.tutorial-card p,
.steps span {
  color: var(--muted);
  line-height: 1.55;
}

.tutorial-card .icon {
  margin-bottom: 14px;
}

.tutorial-panel {
  margin-top: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.steps div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  margin-bottom: 6px;
}

.panel {
  max-width: 700px;
  margin: 34px auto 0;
}

.panel h1 {
  font-size: 4rem;
}

.panel.wide {
  max-width: none;
}

.success {
  border-color: rgba(22, 115, 69, 0.28);
}

.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

th,
td {
  text-align: left;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions form {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 900;
  background: #e6ece8;
  color: var(--ink);
}

.badge-active {
  background: #d9f0e3;
  color: var(--good);
}

.badge-revoked {
  background: #f5dfdc;
  color: var(--bad);
}

.badge-expired {
  background: #fff0c2;
  color: #7b5700;
}

.badge-past_due {
  background: #fff0c2;
  color: #7b5700;
}

@media (max-width: 980px) {
  .match-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
    padding: 34px;
  }

  h1 {
    font-size: 3.6rem;
  }

  .tutorial-grid,
  .channel-grid,
  .official-guide,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup {
    max-width: 430px;
  }
}

@media (max-width: 760px) {
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .topbar-inner {
    width: min(100% - 24px, 1180px);
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: stretch;
    padding: 14px 0;
  }

  .match-hero,
  .grid,
  .match-strip,
  .channel-grid,
  .tutorial-grid,
  .official-guide,
  .proof-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: stretch;
  }

  .nav-links a {
    flex: 1;
    padding: 0 8px;
  }

  .nav-cta {
    width: 100%;
    justify-self: stretch;
  }

  .match-hero {
    padding: 26px;
    background-position: 58% center;
  }

  .subhero {
    padding: 28px;
  }

  .official-guide {
    padding: 18px;
  }

  .proof-section {
    padding: 18px;
  }

  .proof-copy h2 {
    font-size: 1.55rem;
  }

  h1,
  .panel h1,
  .subhero h1 {
    font-size: 2.65rem;
  }

  .lede {
    font-size: 1.02rem;
  }

  .hero-pills > span {
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .signup {
    max-width: none;
  }

  .split,
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
