/*
 * Gafferino landing page. One stylesheet, no framework.
 * Brand system v2, paper theme (docs/BRAND.md, "The website"): the page is a matchday
 * programme, cream paper from Gafferino's smile with cap navy as the ink. Orange is Gafferino's and
 * means you, here or focus, as in the app: the primary action is an ink pill, glows are neutral.
 * Pictures of the app (.night: the hero window, the feature tiles, the tab mockups) wear the
 * app's floodlit-night tokens (equal to src/ui/tokens.css, tested in tests/site-brand.test.ts),
 * and the big intro card is cap navy, where the club speaks.
 */
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  /* Gafferino himself: brand art, the same values as src/ui/tokens.css (tested). */
  --gaffer-orange: #f26e10;
  --gaffer-orange-hi: #ff8a3d;
  --gaffer-orange-lo: #d45a06;
  --gaffer-navy: #1e2a4a;
  --gaffer-navy-hi: #2b385a;
  --gaffer-cream: #fffbe7;
  /* paper: every text colour reads at 4.5:1 or more on --card */
  --bg: #fbf7ec;
  --card: #f2ecdd;
  --card-2: #ebe3d0;
  --raise: #e4dac3;
  --line: rgb(30 42 74 / 0.1);
  --line-2: rgb(30 42 74 / 0.2);
  --text: #1e2a4a;
  --muted: #5b6275;
  --faint: #646b7c;
  --info: #3a52b0;
  --win: #0e7a48;
  --draw: #646b7c;
  --loss: #c42245;
  --warn: #8c6400;
  --star: #f7ce46;
  --shadow: rgb(30 42 74 / 0.22);
  /* The primary action: the ink pill, paper text (13:1). Secondary pills are ink outlines. */
  --cta: #1e2a4a;
  --cta-hover: #2b385a;
  --cta-text: #fbf7ec;
  /* Orange roles: you, here, focus. Nothing else on the page is orange (docs/BRAND.md). */
  --you: rgb(242 110 16 / 0.14);
  --you-line: rgb(242 110 16 / 0.45);
  --you-text: #a34300; /* #f26e10 is 2.5:1 on paper */
  --you-selection: rgb(242 110 16 / 0.35);
  --focus: #d45a06; /* Gafferino's deeper orange, 3.4:1 or more on paper (#f26e10 is 2.8:1) */
  --r: 28px;
  --r-sm: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --font: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 2.6vw, 32px);
  --max: 1240px;
}

/* Pictures of the app wear the app's floodlit night: the values of src/ui/tokens.css, under
   the site's names where they differ (--card is --panel, --card-2 --panel-alt, --line --border,
   --line-2 --border-strong, --info --accent). tests/site-brand.test.ts holds them equal. */
.night,
.window,
.tile,
.mock,
.hero-card {
  color-scheme: dark;
  --bg: #0b0e16;
  --card: #131826;
  --card-2: #1b2234;
  --raise: #232b40;
  --club: #1e2a4a;
  --line: rgb(243 238 226 / 0.08);
  --line-2: rgb(243 238 226 / 0.16);
  --text: #f3eee2;
  --muted: #9aa1b2;
  --faint: #8a91a3;
  --info: #8ea8f5;
  --win: #3dd68c;
  --draw: #8a90a0;
  --loss: #ff5a7a;
  --warn: #f7ce46;
  --star: #f7ce46;
  --zone-ucl: #8ea8f5;
  --zone-uel: #a478f0;
  --cta: #f3eee2;
  --cta-hover: #ffffff;
  --cta-text: #0b0e16;
  --you: rgb(242 110 16 / 0.14);
  --you-line: rgb(242 110 16 / 0.45);
  --you-text: #ff8a3d;
  --you-selection: rgb(242 110 16 / 0.35);
  --focus: #f26e10;
  color: var(--text);
}
/* The big intro card is cap navy: the club talking. */
.hero-card {
  --card: var(--club);
  --line: rgb(243 238 226 / 0.1);
}

* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
kbd {
  font-family: var(--font);
  font-size: 0.78em;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--raise);
  color: var(--text);
}
::selection {
  background: var(--you-selection);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
}
.skip:focus {
  left: 12px;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.pill:active {
  transform: scale(0.97);
}
/* The primary action, as in the app: a pill in the ink colour with paper text, never orange. */
.pill-primary {
  background: var(--cta);
  color: var(--cta-text);
  font-weight: 600;
}
.pill-primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--cta) 12%, transparent);
}
/* Secondary actions: an ink outline. */
.pill-secondary {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.pill-secondary:hover {
  background: rgb(30 42 74 / 0.06);
}
.pill-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.os-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.os-icon:empty {
  display: none;
}
.os-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgb(251 247 236 / 0.8);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
  transition: transform 0.5s var(--ease);
}
.brand:hover img {
  transform: rotate(-12deg) scale(1.08);
}
.nav-links {
  display: flex;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgb(30 42 74 / 0.06);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.25s;
}
.nav.show-cta .nav-cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--raise);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-btn span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}
.sheet {
  position: fixed;
  inset: 72px 12px auto 12px;
  z-index: 49;
  padding: 10px;
  border-radius: 22px;
  background: rgb(251 247 236 / 0.95);
  box-shadow: 0 20px 40px -20px var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  display: grid;
  animation: drop 0.3s var(--ease);
}
.sheet[hidden] {
  display: none;
}
.sheet a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 18px;
}
.sheet a:hover {
  background: rgb(30 42 74 / 0.06);
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px var(--gutter) 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.glow {
  position: absolute;
  top: 380px;
  left: 50%;
  width: min(1100px, 100%);
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(
      closest-side at 50% 45%,
      color-mix(in srgb, var(--text) 9%, transparent),
      transparent 70%
    ),
    radial-gradient(
      closest-side at 30% 60%,
      color-mix(in srgb, var(--text) 6%, transparent),
      transparent 70%
    );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.announce {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 16px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  transition: border-color 0.25s;
}
.announce strong {
  color: var(--text);
  font-weight: 600;
}
.announce:hover {
  border-color: var(--line-2);
}
.announce .arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--raise);
  color: var(--text);
  font-size: 12px;
  transition: transform 0.3s var(--ease);
}
.announce:hover .arrow {
  transform: rotate(45deg);
}
.hero-title {
  position: relative;
  margin-top: 30px;
  font-size: clamp(56px, 9.5vw, 128px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  flex-wrap: wrap;
}
.face {
  display: inline-block;
  width: 0.98em;
  height: 0.98em;
  margin-top: -0.06em;
  animation: bob 4.2s ease-in-out infinite;
}
.face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px var(--shadow));
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-6px) rotate(4deg);
  }
}
.hero-sub {
  position: relative;
  max-width: 620px;
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  line-height: 1.55;
}
.hero-ctas {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  position: relative;
  margin-top: 18px;
  font-size: 14px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ---------- App window ---------- */
.window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-top: 72px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow:
    0 50px 100px -40px rgb(30 42 74 / 0.55),
    0 0 0 1px rgb(30 42 74 / 0.3),
    inset 0 1px 0 rgb(243 238 226 / 0.06);
  overflow: hidden;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
}
.win-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.lights {
  display: flex;
  gap: 8px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
.win-title {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.win-round {
  color: var(--faint);
  font-size: 13px;
}
.win-body {
  display: grid;
  grid-template-columns: 210px 1fr 270px;
  height: 540px;
}
.win-side {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
}
.side-club {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line);
}
.side-club b {
  display: block;
  font-weight: 600;
}
.side-club small,
.team small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.win-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.win-side li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--muted);
}
.win-side li kbd {
  width: 22px;
  text-align: center;
  padding: 0;
  font-size: 11px;
  background: transparent;
  color: var(--faint);
}
.win-side li.on {
  position: relative;
  background: var(--raise);
  color: var(--text);
}
/* Where you are: the app's 2 x 16 px marker on the active section. */
.win-side li.on::before {
  content: "";
  position: absolute;
  left: -8px;
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: var(--focus);
}
.side-bank {
  margin-top: auto;
  padding: 10px 8px 0;
  border-top: 1px solid var(--line);
}
.side-bank small {
  display: block;
  color: var(--faint);
  font-size: 12px;
}
.side-bank b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}
.badge {
  --c: #555;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.18);
}
/* A real crest replaces the initials (main.js, from clubs.js); the hairline glow keeps dark
   crests readable on the night panels, as in the app. */
.badge.crest {
  position: relative;
  background: none;
  box-shadow: none;
}
.badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 0.6px rgb(255 255 255 / 0.55)) drop-shadow(0 1px 3px rgb(0 0 0 / 0.4));
}
.badge.lg {
  width: 46px;
  height: 46px;
  font-size: 13px;
}
.badge.sm {
  width: 22px;
  height: 22px;
  font-size: 8px;
  margin-right: 10px;
  vertical-align: middle;
}
.win-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 14px;
  gap: 12px;
}
.score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.team b {
  font-size: 17px;
  font-weight: 600;
}
/* The You tag, as on the app's scoreboard: the only orange text in the picture. */
.tag.you {
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--you);
  border: 1px solid var(--you-line);
  color: var(--you-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: 2px;
}
.team.right {
  justify-content: flex-end;
  text-align: right;
}
.team small {
  min-height: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-mid {
  text-align: center;
}
.score-num {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.score-num i {
  font-style: normal;
  color: var(--faint);
}
.score-num span {
  display: inline-block;
  min-width: 0.6em;
}
.score-num span.bump {
  animation: bump 0.7s var(--ease);
}
/* A goal for you flashes win green, as in the app; theirs only bumps. */
.score-num span.bump.ours {
  animation-name: bump, flash-win;
}
@keyframes bump {
  30% {
    transform: scale(1.35);
  }
}
@keyframes flash-win {
  0%,
  100% {
    color: var(--text);
  }
  30% {
    color: var(--win);
  }
}
/* The clock: chalk, with the app's live dot. */
.minute {
  margin-top: 4px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.minute::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--loss);
  vertical-align: 2px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
/* Your side is chalk, theirs muted, as in the app: orange marks you, never data. */
.momentum {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
  overflow: hidden;
}
.momentum i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: var(--text);
  transition: width 1.2s var(--ease);
}
.feed-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.feed li {
  display: grid;
  grid-template-columns: 44px 26px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  animation: feedIn 0.5s var(--ease);
}
.feed li .m {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.feed li .badge {
  width: 22px;
  height: 22px;
  font-size: 8px;
}
/* A goal for you flashes win green; theirs is plain chalk on a raised row. */
.feed li.goal {
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.feed li.goal.ours {
  background: color-mix(in srgb, var(--win) 14%, transparent);
  box-shadow: inset 2px 0 0 var(--win);
}
.feed li.goal.ours b {
  color: var(--win);
}
.feed li.card-y .t::after,
.feed li.card-r .t::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 12px;
  margin-left: 8px;
  border-radius: 2px;
  background: var(--warn);
  vertical-align: -1px;
}
.feed li.card-r .t::after {
  background: var(--loss);
}
.feed li.info {
  color: var(--muted);
  font-weight: 600;
  background: rgb(243 238 226 / 0.03);
}
.feed li.sub .t {
  color: var(--info);
}
@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.win-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--raise);
  font-size: 13px;
  color: var(--muted);
}
/* Play, the app's primary action: the chalk pill with ink text, as in the app. */
.chip.on {
  background: var(--cta);
  color: var(--cta-text);
  font-weight: 600;
}
.chip.on kbd {
  background: color-mix(in srgb, var(--cta-text) 12%, transparent);
  color: color-mix(in srgb, var(--cta-text) 70%, transparent);
  border-color: color-mix(in srgb, var(--cta-text) 30%, transparent);
}
.chip.ghost {
  background: transparent;
  border: 1px solid var(--line-2);
}
.seg {
  display: inline-flex;
  height: 32px;
  padding: 3px;
  border-radius: 999px;
  background: var(--raise);
  font-size: 13px;
}
.seg span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
}
.seg span.on {
  background: #343e58;
  color: var(--text);
}
.win-stats {
  border-left: 1px solid var(--line);
  padding: 16px;
  background: var(--bg);
  overflow: hidden;
}
.win-stats h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 10px;
}
.win-stats h4.mt {
  margin-top: 18px;
}
.stat {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  row-gap: 5px;
  margin-bottom: 11px;
  font-variant-numeric: tabular-nums;
}
.stat span:last-of-type {
  text-align: right;
}
.stat em {
  font-style: normal;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.stat b {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
  overflow: hidden;
  display: block;
}
.stat b i {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--text);
  transition: width 0.9s var(--ease);
}
.xi {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.xi li {
  display: grid;
  grid-template-columns: 30px 1fr 54px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--card-2);
  font-size: 13px;
}
.xi li span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
}
.xi li i {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--win) var(--e), var(--raise) var(--e));
}

/* ---------- Sections ---------- */
.section {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 130px var(--gutter) 0;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head.left {
  text-align: left;
  margin-left: 0;
  margin-bottom: 28px;
}
.section-head h2,
.faq h2,
.final h2 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.035em;
}
.section-head p {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

/* Big intro card */
.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 460px;
  padding: 0 0 0 clamp(28px, 5vw, 64px);
}
.hero-card-copy {
  max-width: 520px;
  padding: 56px 0;
}
.hero-card h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  letter-spacing: -0.03em;
}
.hero-card p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}
.link {
  display: inline-flex;
  gap: 8px;
  margin-top: 28px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.link span {
  transition: transform 0.3s var(--ease);
}
.link:hover {
  border-color: var(--text);
}
.link:hover span {
  transform: translateX(4px);
}
.hero-card-art {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-card-art::before {
  content: "";
  position: absolute;
  inset: 20% 5% -20%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--text) 16%, transparent),
    transparent
  );
  filter: blur(20px);
}
.hero-card-art img {
  position: relative;
  width: min(480px, 100%);
  margin-bottom: -90px;
  transform: rotate(-8deg) translateY(calc(var(--parallax, 0) * 1px));
  transition: transform 0.1s linear;
  filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.45));
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tile {
  padding: 34px 34px 0;
  min-height: 430px;
  display: flex;
  flex-direction: column;
}
.tile h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.tile > p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 440px;
}
.tile > :last-child {
  margin-top: auto;
}

/* Mini match */
.mini-match {
  margin: 30px -34px 0;
  padding: 18px 26px 30px;
  background: linear-gradient(180deg, transparent, rgb(243 238 226 / 0.02));
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.mm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.mm-row .min {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  width: 26px;
}
/* Your goal flashes win green, as in the app. */
.mm-row.goal {
  color: var(--text);
  background: color-mix(in srgb, var(--win) 14%, transparent);
  border-color: color-mix(in srgb, var(--win) 40%, transparent);
}
.mm-row.goal b {
  color: var(--win);
}
.xg-pip {
  margin-left: auto;
  width: 64px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--text) 31%, var(--raise) 31%);
}

/* Pitch */
.pitch-wrap {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.formations {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.formations button,
.chips button {
  border: 1px solid var(--line-2);
  background: transparent;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.formations button:hover,
.chips button:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 35%, transparent);
}
/* Selected is the ink colour (navy on paper, chalk in the app); orange is only for you. */
.formations button[aria-selected="true"],
.chips button[aria-selected="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.pitch {
  position: relative;
  height: 260px;
  margin: 0 -34px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) 50% 50% / 1px 100% no-repeat,
    radial-gradient(circle at 50% 50%, transparent 52px, var(--line) 53px, transparent 54px),
    repeating-linear-gradient(90deg, #143322 0 10%, #173a27 10% 20%);
  overflow: hidden;
}
.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14%;
  height: 46%;
  transform: translateY(-50%);
  border: 1px solid var(--line-2);
}
.pitch::before {
  left: -1px;
}
.pitch::after {
  right: -1px;
}
.pl {
  --x: 50%;
  --y: 50%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--text);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--text) 25%, transparent),
    0 6px 14px rgb(0 0 0 / 0.5);
  transition:
    left 0.7s var(--ease),
    top 0.7s var(--ease);
  z-index: 1;
}
.pl:first-child {
  background: var(--star);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--star) 25%, transparent),
    0 6px 14px rgb(0 0 0 / 0.5);
}

/* Threads */
.thread {
  margin: 28px -34px 0;
  padding: 0 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.msg.me {
  align-self: flex-end;
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
  border-bottom-right-radius: 6px;
}
.msg.them {
  border-bottom-left-radius: 6px;
  color: var(--muted);
}
.msg.them b {
  color: var(--text);
}
.msg.ok {
  color: var(--text);
  border-color: color-mix(in srgb, var(--win) 35%, transparent);
  background: color-mix(in srgb, var(--win) 10%, transparent);
}
.tick {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--win);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
}
.thread.compact {
  margin: 0;
  padding: 0;
}

/* Prospect */
.prospect {
  margin: 28px 0 34px;
  padding: 20px;
  border-radius: 20px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.prospect-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prospect-top b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}
.prospect-top small {
  color: var(--muted);
  font-size: 13px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--raise);
  color: var(--text);
  font-weight: 700;
  font-family: var(--display);
}
.stars {
  margin-left: auto;
  color: var(--star);
  letter-spacing: 2px;
  font-size: 16px;
}
.stars i {
  font-style: normal;
  color: var(--raise);
}
.growth {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.growth-row {
  display: grid;
  grid-template-columns: 84px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.growth-row b {
  height: 8px;
  border-radius: 8px;
  background: var(--raise);
  overflow: hidden;
}
.growth-row b i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: var(--text);
  transition: width 1.4s var(--ease) 0.2s;
}
.growth-row b i.pot {
  background: repeating-linear-gradient(
    -45deg,
    var(--text) 0 6px,
    color-mix(in srgb, var(--text) 45%, transparent) 6px 12px
  );
}
.growth-row b i.val {
  background: var(--win);
}
.in .growth-row b i {
  width: var(--w);
}
.growth-row em {
  font-style: normal;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Chips + tabs */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chips button {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.tabs-card {
  min-height: 420px;
}
.tab {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  animation: fade 0.5s var(--ease);
}
.tab[hidden] {
  display: none;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.tab-copy h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.025em;
}
.tab-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}
.mock {
  padding: 18px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgb(30 42 74 / 0.5);
}
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.mini-table th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 4px 8px 10px;
}
.mini-table td {
  padding: 9px 8px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
/* Your club's row, as in the app: the --you tint, bold. */
.mini-table tr.you td {
  background: var(--you);
  font-weight: 600;
}
/* Champions League and Europa League places: the app's 2 px zone edge on the position. */
.mini-table td.z1 {
  box-shadow: inset 2px 0 0 var(--zone-ucl);
}
.mini-table td.z2 {
  box-shadow: inset 2px 0 0 var(--zone-uel);
}
.f {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-radius: 50%;
}
.f.w {
  background: var(--win);
}
.f.d {
  background: var(--draw);
}
.f.l {
  background: var(--loss);
}
.meter {
  display: inline-block;
  width: 64px;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--win) var(--m), var(--raise) var(--m));
  vertical-align: middle;
}
.star {
  color: var(--star);
}
.muted {
  color: var(--muted);
}
.warn {
  color: var(--warn);
}
.loss {
  color: var(--loss);
}
.accent {
  color: var(--info);
}
.win {
  color: var(--win);
}
.ledger {
  display: grid;
  gap: 12px;
  padding: 6px 4px;
}
.led {
  display: grid;
  grid-template-columns: 110px 1fr 74px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.led b {
  height: 10px;
  border-radius: 10px;
  background: var(--raise);
  overflow: hidden;
}
.led b i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 10px;
  background: var(--win);
}
.led.out b i {
  background: var(--loss);
}
.led em {
  font-style: normal;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
/* Charts are chalk, as in the app; never orange. */
.spark {
  color: var(--text);
  width: 100%;
  height: 80px;
  margin-top: 16px;
}
.review {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.grade {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: conic-gradient(var(--text) 0 82%, var(--raise) 82%);
  position: relative;
}
.grade::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg);
}
.grade span,
.grade small {
  position: relative;
}
.grade span {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin-top: 26px;
}
.grade small {
  font-size: 11px;
  color: var(--muted);
  margin-top: -30px;
}
.review ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.review li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--card-2);
  font-size: 14px;
}
.review li span {
  color: var(--muted);
}
.review li b {
  grid-row: span 2;
  align-self: center;
  font-weight: 600;
  font-size: 16px;
}
.review li em {
  font-style: normal;
  font-size: 12px;
}

/* Numbers */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
}
.num {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.num + .num {
  border-left: 1px solid var(--line);
}
.num b {
  font-family: var(--display);
  font-size: clamp(44px, 4.8vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.num b i {
  font-style: normal;
  color: var(--faint);
  font-size: 0.6em;
  margin: 0 2px;
}
.num span {
  margin-top: 8px;
  font-size: 16px;
}
.num small {
  color: var(--faint);
  font-size: 14px;
}

/* Downloads */
.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dl {
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease);
}
.dl::before {
  content: "";
  position: absolute;
  inset: auto 0 -40% 0;
  height: 80%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--text) 6%, transparent),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.dl:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}
.dl:hover::before,
.dl.mine::before {
  opacity: 1;
}
/* Your computer is "yours": the --you-line edge and the You tag below. */
.dl.mine {
  border-color: var(--you-line);
}
.dl-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--raise);
  border: 1px solid var(--line-2);
}
.dl h3 {
  margin-top: 22px;
  font-size: 30px;
  letter-spacing: -0.025em;
}
.dl p {
  margin-top: 6px;
  color: var(--muted);
}
.dl .pill {
  margin-top: 28px;
  position: relative;
}
.dl-file {
  margin-top: 12px;
  color: var(--faint);
  font-size: 13px;
}
/* The other Windows installer (x64 or ARM64), a quiet link under the file line. */
.dl-alt {
  margin-top: 6px;
  font-size: 13px;
}
.dl-alt a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* "Your computer": the You tag (.tag.you), pinned to the card's corner. */
.dl .tag.you {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  font-size: 12px;
  padding: 3px 10px;
  line-height: 18px;
}
.dl-note {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}
/* No public release yet (main.js): Gafferino says so, and the pills grey out. */
.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  text-align: center;
}
.soon[hidden],
.soon-follow[hidden] {
  display: none;
}
.soon img {
  width: 96px;
  height: 96px;
  animation: bob 4.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px var(--shadow));
}
.soon-line {
  font-size: 20px;
  font-weight: 500;
}
.soon-follow {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pill[aria-disabled="true"] {
  background: var(--card-2);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.dl-note b {
  color: var(--muted);
  font-weight: 500;
}
.dl-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--plus), var(--plus)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--plus), var(--plus)) center / 1.5px 14px no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary {
  --plus: var(--muted);
}
.faq summary:hover {
  --plus: var(--text);
}
.faq details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
  animation: fade 0.4s var(--ease);
}

/* Final */
.final {
  position: relative;
  padding: 170px var(--gutter) 150px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 50%;
  width: 700px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--text) 7%, transparent),
    transparent
  );
  filter: blur(20px);
  pointer-events: none;
}
.final-art img {
  width: 180px;
  height: 180px;
  animation: bob 4.2s ease-in-out infinite;
  filter: drop-shadow(0 20px 36px var(--shadow));
}
.final h2 {
  position: relative;
  margin-top: 30px;
}
.final p {
  position: relative;
  margin-top: 14px;
  color: var(--muted);
  font-size: 19px;
}

/* Footer */
.footer {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 14px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}
.footer p {
  flex: 1;
  min-width: 240px;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer nav a:hover {
  color: var(--text);
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .win-body {
    grid-template-columns: 1fr 250px;
  }
  .win-side {
    display: none;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .hero-card,
  .tab,
  .faq {
    grid-template-columns: 1fr;
  }
  .hero-card {
    padding: 0 28px;
  }
  .hero-card-copy {
    padding: 44px 0 0;
  }
  .hero-card-art {
    height: 280px;
    margin-top: 24px;
    overflow: hidden;
  }
  .hero-card-art img {
    width: 280px;
    margin-bottom: -80px;
    transform: rotate(-8deg);
  }
  .bento,
  .downloads {
    grid-template-columns: 1fr;
  }
  .numbers {
    grid-template-columns: repeat(2, 1fr);
  }
  .num:nth-child(3) {
    border-left: 0;
  }
  .num:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .tab {
    gap: 28px;
  }
  .section {
    padding-top: 100px;
  }
}
@media (max-width: 720px) {
  .win-body {
    grid-template-columns: 1fr;
    height: 470px;
  }
  .win-stats,
  .win-round {
    display: none;
  }
  .win-title {
    text-align: right;
  }
  .score {
    padding: 12px;
    gap: 8px;
  }
  .team,
  .team.right {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .team.right {
    flex-direction: column-reverse;
  }
  .team b {
    font-size: 13px;
  }
  .team small {
    display: none;
  }
  .badge.lg {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }
  .score-num {
    font-size: 34px;
  }
  .win-main {
    padding: 14px 12px 12px;
  }
  .feed li {
    grid-template-columns: 30px 22px 1fr;
    gap: 6px;
    padding: 6px 6px;
    font-size: 13px;
  }
  .win-actions .seg,
  .win-actions .ghost {
    display: none;
  }
  .hero {
    padding-top: 120px;
  }
  .announce > span:not(.arrow) {
    display: none;
  }
  .hero-ctas .pill {
    width: 100%;
  }
  .hero-ctas {
    width: 100%;
    max-width: 360px;
  }
  .tile {
    padding: 26px 22px 0;
    min-height: 0;
  }
  .mini-match,
  .thread {
    margin-left: -22px;
    margin-right: -22px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .pitch {
    margin: 0 -22px;
  }
  .mock {
    padding: 12px;
    overflow-x: auto;
  }
  .mini-table {
    font-size: 13px;
  }
  .review {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .review ul {
    width: 100%;
  }
  .num {
    padding: 28px 20px;
  }
  .dl {
    padding: 40px 22px 32px;
  }
  .faq summary {
    font-size: 17px;
  }
  .faq details p {
    padding-right: 0;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 420px) {
  .numbers {
    grid-template-columns: 1fr;
  }
  .num + .num {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .led {
    grid-template-columns: 84px 1fr 64px;
  }
}

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