/* The home page. */

.home-hero { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 56px 48px; }
.home-hero > * { flex: 1 1 440px; min-width: 0; }
.home-hero h1 { font-size: clamp(40px, 5.2vw, 60px); font-weight: 800; line-height: 1.08; }
.home-hero-lede { margin-top: 24px; max-width: 560px; font-size: 19px; color: var(--on-navy-body); }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.home-hero-note { margin-top: 22px; font-size: 15px; color: var(--on-navy-muted); }
.home-hero-note a { color: var(--on-navy); font-weight: 700; }
.home-hero-note a:hover { color: var(--accent); }

.home-hero-visual { position: relative; }
.home-hero-visual .club-preview { rotate: 1.5deg; }
.home-hero-sticker { position: absolute; top: -18px; left: -14px; }
@media (max-width: 640px) { .home-hero-sticker { left: 8px; top: -22px; } .home-hero-visual .club-preview { rotate: none; } }

/* The example club site. Its colours are the club's (the default theme's), not ours. */
.club-preview {
  --club-green: #2f7d4f; --club-sky: #2b6cb0;
  margin: 0; background: var(--surface); color: var(--text); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px rgb(4 10 22 / 0.45);
}
.club-preview-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-tint); }
.club-preview-bar > span:not(.club-preview-address) { width: 11px; height: 11px; border-radius: 50%; background: #c6d1e1; }
.club-preview-address { flex: 1; margin-left: 12px; padding: 4px 10px; border-radius: 5px; background: var(--surface); font-size: 12px; color: var(--text-muted); }
.club-preview-hero { padding: 24px 26px 28px; background: var(--club-green); color: #fff; }
.club-preview-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.club-preview-name { font-family: "Archivo Narrow", "Arial Narrow", sans-serif; font-size: 18px; letter-spacing: 0.04em; }
.club-preview-links { opacity: 0.9; }
.club-preview-kicker { margin-top: 24px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.club-preview-match { margin-top: 6px; font-family: "Archivo Narrow", "Arial Narrow", sans-serif; font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; text-transform: uppercase; }
.club-preview-button { display: inline-block; margin-top: 16px; padding: 9px 14px; border-radius: 5px; background: #fff; color: var(--club-green); font-weight: 700; font-size: 13px; }
.club-preview-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 22px 22px; }
.club-preview-tiles div { padding: 12px; border-radius: 6px; }
.club-preview-tiles p:first-child { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.club-preview-tiles p:last-child { margin-top: 4px; font-size: 14px; font-weight: 700; }
.club-preview-tiles .is-result { background: #eef6f0; } .is-result p:first-child { color: var(--club-green); }
.club-preview-tiles .is-training { background: #eef4fb; } .is-training p:first-child { color: var(--club-sky); }
.club-preview-tiles .is-news { background: var(--violet-soft); } .is-news p:first-child { color: var(--violet); }

.home-split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.home-split > * { flex: 1 1 420px; min-width: 0; }
.home-split-title { font-size: clamp(28px, 3.6vw, 38px); }
.home-split-body { font-size: 18px; color: var(--text-body); }
.home-split-title + .home-split-body { margin-top: 22px; }
.home-split-body + .text-link { margin-top: 12px; }

/* Features: a bento grid, led by fixtures on a pitch. */
.home-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-feature { display: flex; flex-direction: column; }
.home-feature h3 { margin: 18px 0 8px; }
.home-feature p { color: var(--text-muted); }
.home-feature-lead {
  grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden; padding: 36px; border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 6%, var(--chalk) 6% calc(6% + 3px), transparent 0 28%, var(--chalk) 28% calc(28% + 3px), transparent 0),
    repeating-linear-gradient(0deg, transparent 0 56px, rgb(255 255 255 / 0.035) 56px 112px),
    var(--pitch);
  color: var(--on-navy);
}
.home-feature-lead .chip-icon { --chip-bg: rgb(255 255 255 / 0.14); --chip-ink: var(--gold); }
.home-feature-lead h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); max-width: 420px; }
.home-feature-lead p { max-width: 460px; font-size: 18px; color: var(--on-navy-body); }
.home-scoreboard { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 36px; }
.home-scoreboard > * { flex: none; }
.home-scoreboard .kit { width: 44px; height: 44px; min-width: 0; padding: 0; border-radius: 50%; border: 3px solid var(--on-navy); box-shadow: none; }
.home-scoreboard .kit-home { background: repeating-linear-gradient(var(--action) 0 7px, var(--on-navy) 7px 12px); }
.home-scoreboard .kit-away { background: repeating-linear-gradient(var(--navy) 0 7px, var(--gold) 7px 12px); }
.home-scoreboard .is-ft { min-width: 0; padding: 6px 10px; font-size: 14px; letter-spacing: 0.1em; background: var(--gold); color: var(--navy); }
.home-scoreboard span {
  display: grid; place-items: center; min-width: 96px; padding: 10px 14px; border-radius: 8px;
  background: var(--night); color: var(--gold); font-family: var(--font-mono); font-weight: 700; font-size: clamp(44px, 6vw, 64px); line-height: 1;
  box-shadow: inset 0 -4px 0 rgb(255 255 255 / 0.06);
}
@media (max-width: 900px) { .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home-bento { grid-template-columns: minmax(0, 1fr); }
  .home-feature-lead { grid-column: auto; grid-row: auto; padding: 28px; }
  .home-scoreboard { gap: 6px; }
  .home-scoreboard span:not(.kit, .is-ft) { min-width: 64px; padding: 8px 10px; font-size: 40px; }
  .home-scoreboard .kit { width: 34px; height: 34px; }
}

/* How it works: scoreboard numbers joined by a dashed try line. */
.home-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; position: relative; }
@media (max-width: 1000px) { .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-steps { grid-template-columns: minmax(0, 1fr); } }
.home-steps li { counter-increment: step; position: relative; }
.home-steps li::before {
  content: "0" counter(step); display: grid; place-items: center; width: 72px; height: 64px; border-radius: 8px;
  background: var(--night); color: var(--gold); font-family: var(--font-mono); font-weight: 700; font-size: 34px;
  box-shadow: inset 0 0 0 2px var(--navy-line);
}
.home-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: 84px; right: -16px; border-top: 2px dashed var(--navy-line);
}
@media (max-width: 1000px) { .home-steps li::after { display: none; } }
.home-steps h3 { margin: 18px 0 8px; }
.home-steps p { color: var(--on-navy-muted); }
.home-steps a { color: var(--gold); font-weight: 700; }
.home-steps a:hover { color: var(--on-navy); }

.home-handled li { padding: 18px 20px; border-left: 5px solid var(--hoop, var(--action)); }
.home-handled li:nth-child(4n + 2) { --hoop: var(--gold); }
.home-handled li:nth-child(4n + 3) { --hoop: var(--pitch); }
.home-handled li:nth-child(4n + 4) { --hoop: var(--violet); }

/* The origin story, on the pitch, with a halfway line and centre circle chalked behind it. */
.home-origin-band { overflow: hidden; }
.home-origin-band::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: min(560px, 90vw); aspect-ratio: 1; translate: -50% -50%;
  border: 3px solid var(--chalk); border-radius: 50%; pointer-events: none;
}
.home-origin { position: relative; max-width: 880px; text-align: center; padding-block: 32px 8px; }
.home-origin-quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; text-wrap: balance; }
.home-origin-quote::before { content: "\201C"; display: block; margin-bottom: -12px; font-size: 96px; line-height: 1; color: var(--gold); }
.home-origin .text-link { margin-top: 18px; color: var(--on-navy); }
.home-origin .text-link:hover { color: var(--gold); }

/* Prices as match tickets: a perforated stub, with notches cut from the sides. */
/* The masks clip box shadows, so the grid casts one for the tickets. */
.home-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; max-width: 820px; margin-inline: auto; filter: drop-shadow(0 12px 24px rgb(27 45 69 / 0.12)); }
.ticket {
  --notch: 14px;
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface);
  mask: radial-gradient(circle at 0 calc(100% - 64px), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% calc(100% - 64px), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
}
.ticket .hoops, .ticket .pride-stripe { height: 9px; }
.ticket-body { padding: 28px 32px 24px; }
.ticket-stub { display: flex; align-items: center; min-height: 64px; margin-top: auto; padding: 12px 32px; border-top: 2px dashed var(--line); color: var(--text-muted); font-size: 15px; }
.home-price-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--action); }
.ticket-igr .home-price-label { color: var(--violet); }
.home-price { margin: 12px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 1.05; }
.home-price span { font-size: 18px; font-weight: 600; }
.home-prices-more { margin-top: 28px; text-align: center; }

/* The call to action: club red, with diagonal kit stripes, its top edge cut at an angle over
   the section before it. */
.cta-band {
  position: relative; margin-top: calc(-1 * var(--cut)); padding-block: calc(64px + var(--cut)) 72px;
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(-55deg, transparent 0 46px, rgb(255 255 255 / 0.06) 46px 92px), var(--action);
}
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 640px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; }
.cta-band .btn { background: var(--navy); }
.cta-band .btn:hover { background: var(--night); }

.home-news-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.home-news-head h2 { font-size: clamp(28px, 3.4vw, 34px); }
.home-news { padding-bottom: calc(72px + var(--cut)); }
