/* Public homepage, in the shared tokens (tokens.css), with the italic display
   headlines of the sign-in page. Scoped to body.public. */

body.public {
  /* Height of the sticky top bar, so in-page links stop below it. */
  --home-nav-h: 70px;
  /* The ticker band pulls up over the hero by this much, so the hero ends on
     the band's centre line and the tilt never shows a gap at either end. */
  --home-ticker-overlap: 48px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  overflow-x: hidden;
}

.public h1, .public h2, .public h3 { margin: 0; }

/* Navigation */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 6vw;
  background: rgb(12 22 49 / 88%);
  backdrop-filter: blur(12px);
  color: #fff;
}

.home-nav .brand, .home-footer .brand { color: #fff; font-size: 24px; }
.home-nav .hq, .home-footer .hq { color: var(--yellow); }
/* The yellow mark, as everywhere on navy; the square stands out at 15:1. */
.home-nav .brandmark, .home-footer .brandmark { width: 33px; height: 35px; }
.home-nav > nav { display: flex; flex-direction: row; align-items: center; gap: 26px; margin-left: auto; font-size: 13px; font-weight: 600; }
.home-nav > nav a, .home-link { padding: 0; color: #b9c6e8; transition: color .15s; }
.home-link { display: inline-flex; align-items: center; }
.home-link svg { display: none; }
.home-nav > nav a:hover, .home-link:hover { color: #fff; }
.home-nav-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; }

/* Buttons */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.home-btn:hover { transform: translateY(-2px); }
.home-btn.yellow { background: var(--yellow); color: var(--navy-deep); box-shadow: 0 10px 30px rgb(255 241 59 / 25%); }
.home-btn.yellow:hover { box-shadow: 0 14px 36px rgb(255 241 59 / 40%); }
.home-btn.ghost { border-color: rgb(255 255 255 / 35%); color: #fff; }
.home-btn.ghost:hover { border-color: #fff; background: rgb(255 255 255 / 6%); }
.home-btn.small { padding: 10px 16px; font-size: 12px; box-shadow: none; }

/* Hero */
.home-hero {
  position: relative;
  display: grid;
  /* minmax(0, ...) so one long word (German compounds) can never stretch a
     column past the screen; the headline wraps inside it instead. */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 70px 6vw calc(90px + var(--home-ticker-overlap));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgb(54 87 212 / 55%), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue-deep) 100%);
  color: #fff;
}

.home-hero-eleven {
  position: absolute;
  left: -2vw;
  bottom: -12vw;
  font-family: var(--display);
  font-style: italic;
  font-size: 46vw;
  line-height: 1;
  letter-spacing: -3vw;
  color: rgb(255 255 255 / 4%);
  pointer-events: none;
  user-select: none;
}

.home-hero-copy { position: relative; z-index: 2; }

.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgb(255 241 59 / 35%);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.home-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgb(255 241 59 / 70%);
  animation: home-pulse 1.8s infinite;
}

.home-hero h1 {
  margin: 28px 0 26px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(54px, 8.4vw, 132px);
  line-height: .9;
  letter-spacing: -1px;
  /* Long words break at their soft hyphens (&shy; in the locale string);
     breaking anywhere is only the last resort for a word that still won't fit. */
  hyphens: manual;
  overflow-wrap: break-word;
}

.home-hero h1 span, .home-section-head h2 span, .home-matchday h2 span, .home-final h2 span { color: var(--yellow); }
.home-hero-copy > p { max-width: 520px; color: #b9c6e8; font-size: 18px; line-height: 1.6; }
.home-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 22px; }
.home-hero-copy small { color: #7f8fbd; font-size: 12px; letter-spacing: .4px; }

/* Hero visual: a pitch with a 4-2-3-1 and two floating cards */
.home-hero-visual { position: relative; z-index: 2; height: 600px; }

/* The pitch keeps a real pitch's proportions (68 x 105 m) and leans back a
   little, so the far half reads smaller. It sits low and the two cards sit
   out at the corners, so no player hides behind a card. */
.home-pitch {
  position: absolute;
  top: 14%;
  left: 48%;
  height: 84%;
  aspect-ratio: 704 / 1102;
  border-radius: 14px;
  background:
    repeating-linear-gradient(180deg, rgb(255 255 255 / 3.5%) 0 8.33%, transparent 8.33% 16.66%),
    linear-gradient(180deg, rgb(54 87 212 / 40%), rgb(34 62 158 / 25%));
  color: rgb(255 255 255 / 38%);
  transform: translateX(-50%) perspective(1000px) rotateX(20deg) rotateZ(-3deg);
  box-shadow: 0 40px 80px rgb(0 0 0 / 35%);
}

.home-pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-pitch-lines * { vector-effect: non-scaling-stroke; }

.home-player {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgb(0 0 0 / 30%), 0 0 0 5px rgb(255 241 59 / 15%);
  animation: home-bob 4s ease-in-out var(--delay, 0s) infinite;
}

.home-player.keeper { background: #fff; }

.home-card {
  position: absolute;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px rgb(5 10 30 / 45%);
}

.home-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.home-card-head span { display: inline-flex; align-items: center; gap: 6px; }

.home-card.match { top: -6%; right: -6%; width: 300px; scale: .9; transform-origin: top right; animation: home-float 6s ease-in-out infinite; }
.home-live { color: #d33c3c; }
.home-live .home-live-dot { background: #d33c3c; box-shadow: 0 0 0 0 rgb(211 60 60 / 60%); }
.home-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 14px; text-align: center; }
.home-score small { display: block; color: var(--muted); font-size: 9px; letter-spacing: 1.2px; }
.home-score strong { font-size: 14px; }
.home-score b { font-family: var(--display); font-style: italic; font-size: 40px; font-weight: 400; color: var(--blue); }
.home-score i { color: var(--line); }
.home-card ul { margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.home-card li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.home-card li b { color: var(--blue); font-size: 11px; }
.home-card li em { color: var(--muted); font-style: normal; font-size: 11px; }
.home-event { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: #eef2fd; color: var(--blue); }
.home-event.card::after { content: ""; width: 9px; height: 13px; border-radius: 2px; background: #f5c400; }

.home-card.docs { bottom: -5%; left: -6%; width: 280px; scale: .9; transform-origin: bottom left; animation: home-float 6s ease-in-out -3s infinite; }
.home-card.docs strong { display: block; margin: 12px 0 10px; font-family: var(--display); font-style: italic; font-size: 38px; font-weight: 400; }
.home-card.docs strong small { font-family: Arial, sans-serif; font-style: normal; font-size: 13px; color: var(--muted); margin-left: 4px; }
.home-progress { height: 8px; border-radius: 99px; background: #eef2fd; overflow: hidden; }
.home-progress span { display: block; width: 82%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #6f8cff); }
.home-card.docs p { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: #b05c21; font-size: 11px; font-weight: 700; }

/* Ticker */
/* Crop only sideways: the tilt lifts each end of the band past the wrapper,
   and cropping vertically cut the navy borders short on wide screens. */
.home-ticker-wrap { overflow-x: clip; overflow-y: visible; margin-top: calc(-1 * var(--home-ticker-overlap)); padding: 14px 0; position: relative; z-index: 5; }
.home-ticker { overflow: hidden; background: var(--yellow); color: var(--navy-deep); border-block: 3px solid var(--navy-deep); transform: rotate(-1.2deg) scaleX(1.04); }
.home-ticker-track { display: flex; width: max-content; gap: 26px; padding: 16px 0; font-family: var(--display); font-style: italic; font-size: 26px; letter-spacing: .5px; white-space: nowrap; animation: home-ticker 28s linear infinite; }
.home-ticker i { font-style: normal; font-size: 14px; align-self: center; color: var(--blue); }

/* Sections */
.home-section { padding: 120px 6vw 40px; }
.home-section-head { max-width: 760px; margin-bottom: 54px; }
.public .eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 2.2px; margin-bottom: 18px; }

.home-section-head h2, .home-matchday h2, .home-final h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: .95;
  letter-spacing: -.5px;
  color: var(--navy-deep);
}

.home-section .home-section-head h2 span { color: var(--blue); }

.home-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.home-feature {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.home-feature::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.home-feature:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgb(23 36 64 / 10%); border-color: transparent; }
.home-feature:hover::after { transform: scaleX(1); }
.home-feature-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.home-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 13px; background: var(--navy-deep); color: var(--yellow); }
.home-feature-number { font-family: var(--display); font-style: italic; font-size: 34px; color: #dfe5f5; }
.home-feature h3 { font-size: 19px; letter-spacing: -.3px; margin-bottom: 10px; }
.home-feature p { color: var(--muted); line-height: 1.65; font-size: 14px; }

/* Matchday */
.home-matchday {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 80px 6vw 0;
  padding: 70px 5vw;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-left: 8px solid var(--yellow);
  color: #fff;
}

.home-matchday .eyebrow { color: var(--yellow); }
.home-matchday h2 { color: #fff; }
.home-matchday-copy > p { margin: 24px 0; color: #d3dcf7; line-height: 1.7; font-size: 16px; max-width: 470px; }
.home-matchday ul { margin: 0; padding: 0; list-style: none; }
.home-matchday li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-weight: 600; font-size: 14px; }
.home-matchday li svg { flex-shrink: 0; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--yellow); color: var(--navy-deep); }

.home-sheet { padding: 26px; border-radius: 18px; background: var(--navy-deep); box-shadow: 0 30px 60px rgb(5 10 30 / 35%); transform: rotate(1.5deg); }
.home-sheet-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid rgb(255 255 255 / 12%); font-size: 12px; }
.home-sheet-head span { color: var(--yellow); font-weight: 800; letter-spacing: 1.6px; font-size: 10px; }
/* The lineup as a team shape on a half-lit pitch: halfway line, centre circle
   and penalty box drawn with gradients, forwards on top, keeper at the bottom. */
.home-sheet-pitch {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  margin: 20px 0; padding: 22px 10px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, transparent 46px, rgb(255 255 255 / 14%) 47px 48px, transparent 49px),
    linear-gradient(transparent calc(50% - 1px), rgb(255 255 255 / 14%) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(180deg, rgb(255 255 255 / 4%) 0 12.5%, transparent 12.5% 25%),
    linear-gradient(180deg, rgb(54 87 212 / 35%), rgb(34 62 158 / 20%));
}
.home-sheet-pitch::after { content: ""; position: absolute; bottom: -1px; left: 26%; width: 48%; height: 15%; border: 1px solid rgb(255 255 255 / 14%); border-bottom: 0; pointer-events: none; }
.home-sheet-line { position: relative; z-index: 1; display: flex; justify-content: space-evenly; }
.home-sheet-line span { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.home-sheet-line b { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--navy-deep); font-family: var(--display); font-style: italic; font-weight: 400; font-size: 20px; box-shadow: 0 6px 14px rgb(5 10 30 / 35%); }
.home-sheet-line .keeper b { background: #fff; }
.home-sheet-line small { color: #c9d4f5; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.home-sheet-bench { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #8ea0d4; }
.home-sheet-bench small { font-size: 10px; letter-spacing: 1.4px; margin-right: 6px; }
.home-sheet-bench span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 20%); color: #fff; font-size: 12px; font-weight: 700; }

/* Steps */
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.home-steps li { position: relative; padding: 34px 30px; border-top: 4px solid var(--navy-deep); background: #fff; border-radius: 0 0 16px 16px; }
.home-steps b { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 96px; line-height: .9; color: var(--blue); margin-bottom: 16px; }
.home-steps h3 { font-size: 20px; margin-bottom: 8px; }
.home-steps p { color: var(--muted); line-height: 1.65; font-size: 14px; }

/* Trust */
.home-trust { margin-top: 120px; padding: 110px 6vw; background: var(--navy-deep); color: #fff; }
.home-trust .eyebrow { color: var(--yellow); }
.home-trust .home-section-head h2 { color: #fff; }
.home-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-trust-grid > div { padding: 28px 24px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 16px; background: rgb(255 255 255 / 3%); }
.home-trust-grid svg { color: var(--yellow); }
.home-trust-grid h3 { margin: 18px 0 8px; font-size: 17px; }
.home-trust-grid p { color: #9eacd6; line-height: 1.6; font-size: 14px; }

/* Final call to action */
.home-final { position: relative; overflow: hidden; padding: 130px 6vw; text-align: center; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.home-final h2 { color: #fff; font-size: clamp(48px, 7vw, 110px); }
.home-final p { max-width: 520px; margin: 26px auto 0; color: #d3dcf7; font-size: 17px; line-height: 1.6; }
.home-final .home-ctas { justify-content: center; }
.home-hero-eleven.small { left: auto; right: -4vw; bottom: -14vw; font-size: 40vw; color: rgb(255 255 255 / 6%); }

/* Footer */
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 34px 6vw; background: var(--navy-deep); color: #7f8fbd; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }
.home-footer span { display: inline-flex; align-items: center; gap: 6px; }

/* In-page links (#funcionalidades, ...) land with the heading clear of the sticky bar. */
.public section[id] { scroll-margin-top: var(--home-nav-h); }

/* Motion */
@keyframes home-pulse { 70% { box-shadow: 0 0 0 9px rgb(255 241 59 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(255 241 59 / 0%); } }
@keyframes home-bob { 50% { transform: translateY(-5px); } }
@keyframes home-float { 50% { transform: translateY(-12px); } }
@keyframes home-ticker { to { transform: translateX(-50%); } }

/* Partners */
.home-partners { padding-bottom: 120px; }
.home-partner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 28px; max-width: 760px; padding: 34px 30px; border-top: 4px solid var(--yellow); background: var(--navy-deep); color: #fff; border-radius: 0 0 16px 16px; }
.home-partner-badge { grid-column: 1 / -1; justify-self: start; padding: 6px 12px; border-radius: 99px; background: var(--yellow); color: var(--navy-deep); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.home-partner h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 54px; line-height: 1; color: var(--yellow); }
.home-partner p { color: #c7cfe2; line-height: 1.65; font-size: 15px; }
/* With a crest: the crest fills the left column, centred against the badge,
   name and text stacked on the right. */
.home-partner.with-crest { grid-template-columns: auto 1fr; column-gap: 32px; }
.home-partner-crest { grid-column: 1; grid-row: 1 / span 3; align-self: center; width: 120px; height: 120px; object-fit: contain; }
.home-partner.with-crest .home-partner-badge, .home-partner.with-crest h3, .home-partner.with-crest p { grid-column: 2; }

@media (prefers-reduced-motion: reduce) {
  .public *, .public *::before, .public *::after { animation: none !important; transition: none !important; }
}

/* Smaller screens */
@media (max-width: 1100px) {
  .home-nav > nav { display: none; }
  .home-nav-actions { margin-left: auto; }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 60px; }
  .home-hero-visual { height: 540px; max-width: 620px; width: 100%; margin: 0 auto; }
  .home-features { grid-template-columns: repeat(2, 1fr); }
  .home-matchday { grid-template-columns: 1fr; }
  .home-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  /* The top bar is one row, but the invitation button may wrap to two lines. */
  body.public { --home-nav-h: 88px; }
  .home-nav { padding: 12px 16px; gap: 12px; }
  .home-nav .brand { font-size: 20px; }
  .home-nav-actions { gap: 10px; }
  .home-btn.small { padding: 9px 12px; text-align: center; }
  .home-hero { padding: 44px 16px calc(70px + var(--home-ticker-overlap)); }
  .home-pill { font-size: 9px; letter-spacing: 1px; padding: 7px 12px; }
  .home-hero-copy > p { font-size: 16px; }
  .home-hero-visual { height: 540px; }
  .home-pitch { top: 5%; height: 93%; }
  .home-card.match { top: -2%; right: -6px; width: 240px; padding: 14px 16px; scale: .7; }
  .home-card.docs { bottom: 0; left: -6px; width: 200px; padding: 14px 16px; scale: .72; }
  .home-score b { font-size: 32px; }
  .home-player { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 11px; }
  .home-ticker-track { font-size: 20px; }
  .home-section { padding: 80px 16px 20px; }
  .home-partners { padding-bottom: 80px; }
  .home-partner { grid-template-columns: 1fr; padding: 26px 20px; }
  .home-partner h3 { font-size: 42px; }
  .home-partner-crest { grid-row: auto; width: 88px; height: 88px; justify-self: center; order: -1; }
  .home-partner.with-crest { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .home-partner.with-crest .home-partner-badge { justify-self: center; }
  .home-partner.with-crest .home-partner-badge, .home-partner.with-crest h3, .home-partner.with-crest p { grid-column: auto; }
  .home-features, .home-steps, .home-trust-grid { grid-template-columns: 1fr; }
  .home-matchday { margin: 60px 16px 0; padding: 44px 22px; border-left-width: 6px; }
  .home-sheet-line b { width: 34px; height: 34px; font-size: 16px; }
  .home-trust { margin-top: 80px; padding: 80px 16px; }
  .home-final { padding: 90px 16px; }
  .home-footer { padding: 28px 16px; justify-content: center; text-align: center; }
}

/* Small phones: "sign in" shrinks to a person icon, so the top bar fits the
   full brand, the invitation button and sign-in in every language down to
   320px. The link keeps its label for screen readers (aria-label). The
   language menu lives in the footer, so it never competes for this space. */
@media (max-width: 520px) {
  .home-nav .home-link { flex: none; justify-content: center; width: 40px; height: 40px; }
  .home-nav .home-link svg { display: block; }
  .home-nav .home-link-text { display: none; }
  .home-nav { gap: 8px; }
  /* Hero and final buttons share each row, and a label that is too long for
     the row (German) puts its button on a row of its own, full width. */
  .home-ctas .home-btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}


/* The smallest phones: a slightly smaller mark and tighter button keep the
   whole "ONZE HQ" wordmark and the invitation button on one row in every
   language, down to 320px. */
@media (max-width: 400px) {
  .home-nav .brand { gap: 8px; }
  .home-nav .brandmark { width: 28px; height: 30px; }
  .home-nav .home-btn.small { padding: 8px 10px; }
}
