/* Football Executive website. Plain CSS, no build step. Colours follow the game's kit (DESIGN/system/KIT.md) and the
   FE house colours (BRAND_GUIDE.md): FE frames the page in Bottle and Paper; everything else is ink on true neutrals. */

@font-face {
  font-family: 'FE Type';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('fonts/archivo.woff2') format('woff2-variations'), url('fonts/archivo.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --page: #F0F1F3;
  --card: #FFFFFF;
  --well: #E3E5E9;
  --label: #0F1012;
  --label2: #5C5F66;
  --label3: #9A9DA3;
  --ours: #1B7A48;          /* Pitch: links and "act here" on the page (4.9:1 on the page) */
  --bottle: #173126;        /* FE's house colour */
  --bottle-deep: #0F241B;
  --paper: #F3F5EF;
  --on-bottle2: #B7C5BB;    /* caption on Bottle, 7.8:1 */
  --mow-a: #1E5A3B;
  --mow-b: #1A5034;
  --bezel: #0B0C10;
  --key-edge: #8FA196;
  --stand: #173126;         /* the top step and the shelves */
  --font: 'FE Type', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --card: #17181A;
    --well: #26272A;
    --label: #F5F5F7;
    --label2: #A1A1A6;
    --label3: #6E6E73;
    --ours: #30D158;
    --bottle: #0E1A15;      /* Night */
    --bottle-deep: #08110D;
    --mow-a: #163F2B;
    --mow-b: #123824;
    --bezel: #2A2C31;
    --key-edge: #5D6F64;
    --stand: #2B5C45;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--label);
  font: 400 17px/1.55 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ours); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .key:focus-visible { outline: 3px solid var(--ours); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: var(--card); padding: 8px 12px; }

/* Display type: the game's condensed cut (Archivo at width 62). */
.display, h1, h2, h3, .num {
  font-stretch: 62%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
h2 { font-size: clamp(40px, 7vw, 64px); margin: 0 0 12px; }
h3 { font-size: clamp(30px, 4.6vw, 40px); margin: 0 0 10px; }
.lede { font-size: 19px; color: var(--label2); max-width: 36em; margin: 0; }

/* ---------- The keys (controls look like controls) ---------- */
.key {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 18px;
  border-radius: 14px; text-decoration: none;
  background: var(--paper); color: #173126;
  box-shadow: 0 3px 0 var(--key-edge);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.key:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--key-edge); }
.key svg { flex: none; }
.key .k-small { display: block; font-size: 13px; font-weight: 600; line-height: 1.1; opacity: .8; }
.key .k-big { display: block; font-size: 22px; font-weight: 800; font-stretch: 62%; line-height: 1.05; }
.key.is-quiet { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(243, 245, 239, .35); }
.key.is-quiet:active { box-shadow: inset 0 0 0 2px rgba(243, 245, 239, .6); }
.key.on-page { background: var(--bottle); color: var(--paper); box-shadow: 0 3px 0 #0A1A12; }
@media (prefers-color-scheme: dark) { .key.on-page { background: var(--paper); color: #173126; box-shadow: 0 3px 0 var(--key-edge); } }

/* Google's own badge, unaltered; clear space round it is a quarter of its height (Google's badge guidelines). */
.badge { display: inline-block; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
.badge img { height: 56px; width: auto; }
.badge:focus-visible { outline: 3px solid var(--ours); outline-offset: 3px; }
.hero .keys, .last .keys { align-items: center; }

/* ---------- Top bar ---------- */
.top { background: var(--bottle); color: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.top a.home { display: flex; align-items: center; min-height: 44px; }
.top a.home img { height: 16px; width: auto; }
.top a.home img.fe { height: 20px; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; padding: 12px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 420px) { .top nav a.hide-sm { display: none; } }

/* ---------- Hero: FE's ground, a mown pitch under the phone ---------- */
.hero {
  position: relative;
  background:
    repeating-linear-gradient(90deg, var(--mow-a) 0 72px, var(--mow-b) 72px 144px) bottom / 100% 34% no-repeat,
    var(--bottle);
  color: var(--paper);
  overflow: hidden;
}
.hero::after { /* the touchline: one white line where the ground meets the pitch */
  content: ''; position: absolute; left: 0; right: 0; bottom: 34%; height: 3px; background: rgba(243, 245, 239, .55);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 0; }
.hero h1 { margin: 0 0 22px; }
.hero h1 img { width: min(360px, 78vw); }
.hero .pitch { font-size: clamp(38px, 8.4vw, 68px); margin: 0 0 16px; max-width: 11em; }
.hero p.sub { font-size: 19px; color: var(--on-bottle2); max-width: 32em; margin: 0 0 26px; }
.hero .keys { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero .note { font-size: 15px; color: var(--on-bottle2); margin: 0 0 8px; }
.hero .stage { display: flex; justify-content: center; align-items: flex-end; padding-bottom: 40px; }
@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 56px; }
  .hero .copy { padding-bottom: 150px; }
  .hero .stage { padding: 0 0 56px; }
}

/* ---------- The phone ---------- */
.phone {
  width: min(300px, 74vw);
  aspect-ratio: 600 / 1299;
  padding: 9px;
  border-radius: 46px;
  background: var(--bezel);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  flex: none;
}
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 37px; }
.phone img { object-fit: cover; object-position: top; background: var(--well); }
.hero .phone { width: min(320px, 76vw); }

/* ---------- What you do ---------- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 40px; }
.rows { display: grid; gap: 64px; }
.row { display: grid; grid-template-columns: 1fr; gap: 24px; justify-items: center; }
.row .text { width: 100%; max-width: 34em; }
.row .num { display: block; font-size: 72px; color: var(--label3); margin-bottom: 4px; line-height: .9; }
.row p { margin: 0 0 12px; color: var(--label2); }
.row p strong { color: var(--label); font-weight: 700; }
@media (min-width: 880px) {
  .rows { gap: 40px; }
  .row { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .row:nth-child(even) .text { order: 2; }
  .row .text { max-width: 26em; justify-self: center; }
  .row .phone { width: 280px; }
}

/* ---------- The climb: six steps, a trophy on each ---------- */
.world { background: var(--card); }
.climb { max-width: 820px; margin: 36px auto 12px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 6px; }
.step { display: flex; flex-direction: column; align-items: center; }
.step img { width: min(92px, 100%); margin-bottom: -2px; }
.step .block { width: 100%; background: var(--well); border-radius: 8px 8px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; }
.step .block span { font-size: 13px; font-weight: 700; color: var(--label2); text-align: center; line-height: 1.15; padding: 0 2px; }
.step:nth-child(1) .block { height: 44px; }
.step:nth-child(2) .block { height: 68px; }
.step:nth-child(3) .block { height: 92px; }
.step:nth-child(4) .block { height: 116px; }
.step:nth-child(5) .block { height: 140px; }
.step:nth-child(6) .block { height: 164px; background: var(--stand); }
.step:nth-child(6) .block span { color: var(--paper); }
@media (max-width: 400px) {
  .climb { gap: 3px; }
  .step .block span { font-size: 11px; }
}
.split { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
.split .text p { color: var(--label2); margin: 0 0 12px; }
.pair { display: flex; gap: 16px; justify-content: center; }
.pair .phone { width: min(260px, 44vw); border-radius: 38px; padding: 7px; }
.pair .phone picture, .pair .phone img { border-radius: 31px; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }

.cabinet { margin-top: 64px; }
.shelves { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 20px; }
@media (min-width: 760px) { .shelves { grid-template-columns: 1fr 1fr; gap: 32px; } }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 6px; padding: 0 6px; }
.shelf img { width: 100%; max-width: 112px; justify-self: center; }
.shelf-board { height: 14px; background: var(--stand); border-radius: 3px; margin: -2px 0 10px; }
.cabinet p.caption { color: var(--label); font-weight: 700; text-align: center; font-size: 15px; margin: 0; }
.cabinet p.caption.small { color: var(--label2); font-weight: 400; }

/* ---------- Played your way ---------- */
.yourway { background: var(--bottle); color: var(--paper); }
.yourway h2 { color: var(--paper); }
.yourway .lede { color: var(--on-bottle2); }
.ways { display: grid; grid-template-columns: 1fr; gap: 28px 48px; margin-top: 36px; }
.ways h3 { font-size: 32px; color: var(--paper); margin: 0 0 6px; }
.ways p { margin: 0; color: var(--on-bottle2); }
@media (min-width: 700px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ways { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { background: var(--card); border-radius: 14px; margin-bottom: 8px; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 14px 52px 14px 18px; position: relative;
  font-weight: 700; font-size: 18px; line-height: 1.3; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--label3); border-bottom: 2.5px solid var(--label3); transform: rotate(45deg);
  transition: transform 160ms ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--label2); }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .key { transition: none; } }

/* ---------- Last call and footer ---------- */
.last { text-align: center; padding: 72px 0 80px; }
.last h2 { margin-bottom: 20px; }
.last .keys { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.foot { background: var(--bottle); color: var(--on-bottle2); font-size: 15px; padding: 40px 0 48px; }
.foot img.wm { height: 14px; width: auto; margin-bottom: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 20px; }
.foot nav a { color: var(--paper); min-height: 44px; display: inline-flex; align-items: center; }
.foot p { margin: 0 0 10px; max-width: 60em; }

/* ---------- Privacy page ---------- */
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(44px, 8vw, 64px); margin: 0 0 16px; }
.doc h2 { font-size: 34px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--label2); }
.doc p strong { color: var(--label); }
.doc .key { margin-top: 8px; }
