/* FootyMate product site — footymate.kanyantamubanga.com */

@font-face {
  font-family: "IBM Plex Sans Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("/assets/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pitch: #0e1913;
  --pitch-deep: #0a120d;
  --raised: #16241c;
  --surface: #1c2e24;
  --surface-2: #24382c;
  --line: #2c4335;
  --line-soft: #223528;

  --brand: #2d7451;
  --brand-lift: #3e9c6c;
  --blue: #5ab0ff;
  /* Darkened from the app's #0A84FF so white button text clears 4.5:1. */
  --blue-solid: #0a6fd8;
  --blue-solid-hover: #0f5cb4;
  --amber: #ffb340;

  --text: #edf2ee;
  --muted: #a9b8ae;
  --faint: #7d8d83;

  --font: "IBM Plex Sans Var", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;

  --shell: 74rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --radius-sm: 10px;

  --step--1: clamp(0.85rem, 0.83rem + 0.08vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.14vw, 1.09rem);
  --step-1: clamp(1.13rem, 1.05rem + 0.36vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.24rem + 0.66vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.42rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.72rem + 2.5vw, 3.9rem);
}

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

html {
  background: var(--pitch);
  scroll-behavior: smooth;
  /* Clears the sticky header when jumping to an in-page anchor. */
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pitch);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.62;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 0.22em;
  text-decoration-thickness: from-font;
}

a:hover {
  color: #8ac9ff;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.035em;
  line-height: 1.03;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--amber);
  color: #14211a;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- header ---------- */

.masthead {
  /* Sticky only where it costs little height. On phones the wrapped nav
     would eat a sixth of the viewport, so it scrolls away instead. */
  position: static;
  top: 0;
  z-index: 10;
  background: rgb(10 18 13 / 88%);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 0.7rem;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brandmark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.masthead nav {
  margin-inline-start: auto;
}

.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  padding: 0;
  list-style: none;
}

.masthead nav a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--muted);
  font-size: var(--step--1);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--text);
}

.masthead nav a.pill {
  padding-block: 0.45rem;
  color: #fff;
}

/* ---------- buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue-solid);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.pill:hover {
  background: var(--blue-solid-hover);
  border-color: var(--blue);
  color: #fff;
}

.pill--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.pill--quiet:hover {
  background: var(--surface);
  border-color: var(--brand-lift);
  color: var(--text);
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  width: 168px;
  height: 56px;
  border-radius: 9px;
  background: #fff;
  padding: 0;
}

/* The Google Play badge artwork is wider than Apple's at the same height. */
.store-badge--play img {
  width: 188px;
  background: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
}

/* ---------- generic section rhythm ---------- */

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--brand-lift);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lede {
  max-width: 40ch;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.prose {
  max-width: 60ch;
  color: var(--muted);
}

.prose + .prose {
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: 0.22em;
}

.tag--premium {
  border-color: #5a4520;
  background: #2a2113;
  color: var(--amber);
}

.tag--free {
  border-color: #2b5540;
  background: #17281f;
  color: #78d3a4;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(
      120% 80% at 12% 0%,
      rgb(45 116 81 / 42%) 0%,
      rgb(45 116 81 / 0%) 60%
    ),
    linear-gradient(180deg, #12241a 0%, var(--pitch) 78%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 1.4rem;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgb(0 0 0 / 45%);
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  max-width: 46ch;
  margin-top: 1.35rem;
}

.hero .actions {
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.1rem;
  color: var(--faint);
  font-size: var(--step--1);
  max-width: 44ch;
}

.hero-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  max-width: 34rem;
}

.hero-phones .screen:nth-child(2) {
  margin-top: 2.5rem;
}

/* One phone only on the narrowest screens — two would be unreadably small. */
@media (max-width: 26em) {
  .hero-phones {
    grid-template-columns: minmax(0, 1fr);
    max-width: 15rem;
  }

  .hero-phones .screen:nth-child(2) {
    display: none;
  }
}

/* ---------- screen shots ---------- */

.screen {
  /* figure carries a 40px UA margin that pushed every phone out of alignment
     with the text column it belongs to. */
  margin: 0;
  flex: 0 0 auto;
  width: 100%;
  max-width: 268px;
}

.screen img {
  /* A border rather than a wrapper element: the inner corner radius falls out
     of border-radius minus border-width, which is exactly the bezel we want. */
  display: block;
  width: 100%;
  border: 7px solid #2c4136;
  border-radius: 30px;
  box-shadow:
    0 22px 52px rgb(0 0 0 / 50%),
    inset 0 0 0 1px rgb(255 255 255 / 10%);
}

.screen--center {
  margin-inline: auto;
  margin-top: 2.25rem;
}

.league-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.35rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: var(--step--1);
}

.league-list li {
  padding-block: 0.15rem;
}

.screen figcaption {
  margin-top: -0.75rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* Match-detail trio. Three tabs of one screen, so they share a scale and sit
   on the same baseline inside the text column rather than bleeding full width. */
.screen-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2.25rem;
  align-items: start;
}

.screen-trio .screen {
  width: 100%;
  max-width: none;
}

.screen-trio .screen img {
  border-radius: 18px;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 88%,
    rgb(0 0 0 / 0%) 100%
  );
  mask-image: linear-gradient(180deg, #000 0%, #000 88%, rgb(0 0 0 / 0%) 100%);
}

.screen-trio figcaption {
  margin-top: 0.9rem;
}

.screen-trio figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* Below the point where three columns would shrink the phones past legibility,
   the trio becomes a swipeable row that keeps the same scale. */
@media (max-width: 47.99em) {
  .screen-trio {
    display: flex;
    gap: 1.25rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }

  .screen-trio .screen {
    flex: 0 0 auto;
    width: min(58vw, 240px);
    scroll-snap-align: start;
  }
}

/* ---------- section layouts ---------- */

.band {
  background: var(--pitch-deep);
  border-block: 1px solid var(--line-soft);
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.split-head h2 {
  max-width: 20ch;
}

.pull {
  max-width: 22ch;
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--brand-lift);
  color: var(--text);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.u-mt {
  margin-top: 1.1rem;
}

.u-mt-lg {
  margin-top: 1.75rem;
}

.u-measure {
  max-width: 20ch;
}

.footnote {
  max-width: 62ch;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: var(--step--1);
  line-height: 1.6;
}

.points {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
  max-width: 56ch;
}

.points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-lift);
}

.points strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- premise band ---------- */

.premise {
  background: var(--pitch-deep);
  border-block: 1px solid var(--line-soft);
}

.premise-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

/* The statement column carries only an eyebrow and one line; centring it against
   the two paragraphs beside it removes the empty band under the statement. */
@media (min-width: 56em) {
  .premise-grid > div:first-child {
    align-self: center;
  }
}

.premise-statement {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--raised);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* ---------- comparison table ---------- */

.table-wrap {
  margin-top: 2.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--step--1);
}

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

thead th {
  background: var(--raised);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

tbody th {
  color: var(--text);
  font-weight: 500;
}

tbody td {
  color: var(--muted);
}

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

.yes {
  color: #78d3a4;
  font-weight: 600;
}

.no {
  color: var(--faint);
}

/* ---------- availability ---------- */

.platforms {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.platform {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--raised);
}

.platform h3 {
  margin-bottom: 0.5rem;
}

.platform p {
  color: var(--muted);
  font-size: var(--step--1);
}

.platform .actions {
  margin-top: 1.25rem;
}

.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 1.1rem 0 0;
  font-size: var(--step--1);
}

.spec dt {
  color: var(--faint);
}

.spec dd {
  margin: 0;
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line-soft);
  max-width: 62rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line-soft);
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  color: var(--text);
  font-size: var(--step-0);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--brand-lift);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list summary:hover {
  color: #fff;
}

.faq-answer {
  max-width: 66ch;
  padding-bottom: 1.35rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.65;
}

.faq-answer p + p {
  margin-top: 0.75rem;
}

.faq-group + .faq-group {
  margin-top: 2.75rem;
}

.faq-group h2 {
  font-size: var(--step-2);
}

/* ---------- page header (inner pages) ---------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 4.75rem) clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, #12241a 0%, var(--pitch) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.page-head .lede {
  margin-top: 1.2rem;
  max-width: 52ch;
}

.crumbs {
  margin-bottom: 1.4rem;
  color: var(--faint);
  font-size: var(--step--1);
}

.crumbs a {
  color: var(--faint);
}

.crumbs a:hover {
  color: var(--text);
}

/* ---------- support ---------- */

.support-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.support-block {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--raised);
}

.support-block h3 {
  margin-bottom: 0.6rem;
}

.support-block p,
.support-block li {
  color: var(--muted);
  font-size: var(--step--1);
}

.support-block ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

/* ---------- final cta ---------- */

.closing {
  background:
    radial-gradient(
      100% 100% at 50% 0%,
      rgb(45 116 81 / 34%) 0%,
      rgb(45 116 81 / 0%) 70%
    ),
    var(--pitch-deep);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.closing h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.closing .lede {
  max-width: 46ch;
  margin: 1.1rem auto 0;
}

.closing .actions {
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(2.75rem, 6vw, 4rem);
  background: var(--pitch-deep);
  border-top: 1px solid var(--line-soft);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.footer-grid nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.disclaimer {
  max-width: 68ch;
  color: var(--faint);
  line-height: 1.6;
}

.byline {
  color: var(--muted);
}

.byline a {
  color: var(--text);
}

/* ---------- responsive ---------- */

@media (min-width: 48em) {
  .masthead {
    position: sticky;
  }
}

@media (min-width: 40em) {
  .card-grid,
  .platforms,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .premise-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-grid > * {
    animation: rise 620ms cubic-bezier(0.2, 0, 0, 1) both;
  }

  .hero-grid > *:nth-child(2) {
    animation-delay: 90ms;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
