/* GamePlan — palette taken from the app's own tokens:
   brand red  SpielPlanTheme.brandRed    #D20515
   live       BrandPalette.OnDarkSurface #FF7950
   gold       favoriteGold               #F5C542
   ink        tacticalInk                #171717 */
:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6b6b70;
  --subtle: #f2f2f5;
  --paper: #fbfbfc;
  --line: #e2e2e7;
  --night: #0f1012;
  --night-soft: #1c1d21;
  --red: #d20515;
  --live: #f05a28;
  --live-dark: #ff7950;
  --gold: #f5c542;
  --green: #34d399;
  --shadow: 0 20px 60px rgba(15, 16, 18, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 252, 0.92);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell,
.section-shell,
.footer-shell,
.download-shell,
.legal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img,
.hero-icon,
.download-shell img {
  border-radius: 22%;
  box-shadow: 0 10px 24px rgba(15, 16, 18, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a { text-decoration: none; }

.nav-links a:hover,
.footer-links a:hover,
.breadcrumb a:hover,
.legal-content a:hover { color: var(--red); }

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff !important;
}

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

.hero {
  position: relative;
  padding: 76px 0 84px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(52, 211, 153, 0.16) 0%, rgba(52, 211, 153, 0) 60%),
    radial-gradient(90% 80% at 8% 100%, rgba(210, 5, 21, 0.22) 0%, rgba(210, 5, 21, 0) 62%),
    var(--night);
}

.hero-shell {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-icon { width: 88px; height: 88px; margin-bottom: 26px; }

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--live-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 76px;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 480px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 21px;
}

.hero-actions,
.download-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions { margin-top: 30px; }

/* The Lock Screen shot, framed as the device it was taken on. */
.hero-device { display: flex; justify-content: center; }

.hero-device img {
  width: min(100%, 300px);
  height: auto;
  border-radius: 40px;
  border: 6px solid #16171a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.55);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(210, 5, 21, 0.32);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ---------- generic sections ---------- */

.intro-section,
.live-section,
.showcase-section,
.download-section,
.legal-main { padding: 88px 0; }

.section-heading { max-width: 650px; margin-bottom: 34px; }

.section-shell > h2,
.section-heading h2,
.download-shell h2,
.legal-heading h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-heading p,
.legal-heading p,
.download-shell p,
.footer-shell p { color: var(--muted); }

/* ---------- features ---------- */

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

.feature-item {
  min-height: 208px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.feature-mark {
  width: 42px;
  height: 6px;
  display: block;
  margin-bottom: 26px;
  border-radius: 8px;
}

.feature-mark-live { background: var(--live); }
.feature-mark-tap { background: var(--red); }
.feature-mark-plan { background: var(--gold); }
.feature-mark-lineup { background: var(--green); }
.feature-mark-table { background: var(--ink); }
.feature-mark-widget { background: #3e83da; }

.feature-item h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.feature-item p { margin: 0; color: var(--muted); }

/* ---------- live-match section (mirrors the in-app onboarding) ---------- */

.live-section {
  background: var(--night);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-section .section-heading h2 { color: #fff; }
.live-section .section-heading p { color: rgba(255, 255, 255, 0.66); }

.live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.live-item { display: flex; flex-direction: column; gap: 14px; }

.live-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 26px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 62%),
    var(--night-soft);
}

.live-item h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.live-item p { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 15px; }

/* shared building blocks of the recreations */

.team-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* Source-recorded club colours, same values the app's TeamColorPalette uses. */
.team-bvb { background: #ffd900; color: #000; }
.team-koe { background: #e20613; color: #fff; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--live-dark);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--live-dark);
}

/* lock screen activity */

.activity-card {
  width: 100%;
  max-width: 320px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.activity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-app {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.activity-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 27px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.goal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #e20613;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* dynamic island */

.island {
  width: 100%;
  max-width: 300px;
  padding: 14px 18px 16px;
  border-radius: 34px;
  background: #000;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.island-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.island-centre { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.island-score {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.island-event {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* notification banner */

.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(244, 244, 246, 0.94);
  color: #171717;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.banner img { width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto; }
.banner-body { min-width: 0; }
.banner-title { font-size: 13px; font-weight: 800; }
.banner-text { font-size: 15px; }
.banner-time { margin-left: auto; color: #6b6b70; font-size: 11px; }

/* ---------- screenshots ---------- */

.showcase-section {
  background: var(--subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.screenshot-tile {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(15, 16, 18, 0.08);
}

.screenshot-tile img {
  width: 100%;
  height: auto;
  background: #e8e8ec;
}

.screenshot-tile figcaption {
  min-height: 96px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.screenshot-tile figcaption span {
  display: block;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screenshot-tile figcaption strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.28;
}

/* ---------- download ---------- */

.download-section { background: var(--night); color: #fff; }
.download-shell { justify-content: space-between; }
.download-shell h2 { font-size: 34px; }
.download-shell .button-primary { margin-left: auto; }

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

.site-footer { padding: 44px 0; background: #fff; }

.footer-shell { display: flex; justify-content: space-between; gap: 32px; }
.footer-shell p { max-width: 440px; margin: 8px 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

.footer-links a { text-decoration: none; }

.footer-note {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- legal pages ---------- */

.legal-main { background: linear-gradient(180deg, #f2f2f5 0%, #fbfbfc 260px); }
.legal-shell { max-width: 880px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a { text-decoration: none; }

.legal-heading { margin-bottom: 42px; }
.legal-heading h1 { font-size: 52px; }
.legal-heading p { max-width: 620px; margin: 14px 0 0; font-size: 19px; }

.legal-content {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 16, 18, 0.08);
}

.legal-content section + section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; }

.legal-content h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--red);
}

.legal-content h3:first-of-type { margin-top: 20px; }

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #2b2b30;
}

.legal-content li { margin-bottom: 6px; }
.legal-content li::marker { color: var(--muted); }
.legal-content p { margin: 0 0 14px; color: #2b2b30; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--red); font-weight: 800; }

.legal-note {
  margin-top: 38px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 16, 18, 0.08);
}

.contact-card img {
  flex: 0 0 auto;
  border-radius: 22%;
  box-shadow: 0 10px 24px rgba(15, 16, 18, 0.18);
}

.contact-card h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.contact-card p { margin: 0 0 12px; color: var(--muted); }

.contact-email {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 56px 0 64px; }
  .hero-shell { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .hero h1 { font-size: 56px; }
  .hero-copy { font-size: 19px; }
  .hero-device img { width: min(100%, 260px); border-radius: 34px; }

  .feature-grid,
  .live-grid,
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .live-grid > .live-item:last-child { grid-column: 1 / -1; }
  .live-grid > .live-item:last-child .live-stage { min-height: 160px; }

  .footer-shell,
  .download-shell { align-items: flex-start; flex-direction: column; }

  .download-shell .button-primary { margin-left: 0; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .nav-shell,
  .section-shell,
  .footer-shell,
  .footer-note,
  .download-shell,
  .legal-shell { width: min(100% - 28px, 1120px); }

  .hero { padding: 44px 0 56px; }
  .hero-shell { width: min(100% - 28px, 1120px); }
  .hero-icon { width: 72px; height: 72px; margin-bottom: 20px; }
  .hero h1 { font-size: 44px; }
  .hero-copy { font-size: 17px; }
  .hero-device img { width: min(100%, 240px); border-radius: 30px; border-width: 5px; }

  .button { width: 100%; }

  .intro-section,
  .live-section,
  .showcase-section,
  .download-section,
  .legal-main { padding: 56px 0; }

  .section-shell > h2,
  .section-heading h2,
  .download-shell h2 { font-size: 32px; }

  .feature-grid,
  .live-grid,
  .screenshot-grid { grid-template-columns: 1fr; }

  .live-grid > .live-item:last-child { grid-column: auto; }

  .screenshot-grid { justify-items: center; }
  .screenshot-tile { width: min(100%, 360px); }

  .legal-heading h1 { font-size: 40px; }
  .legal-heading p { font-size: 17px; }
  .legal-content { padding: 24px; }

  .contact-card { align-items: flex-start; flex-direction: column; padding: 24px; }
  .contact-email { width: 100%; }
}
