/* MVA360 website
   Pitch-line white page, navy text, MVA360 orange for actions only.
   The app's own event colours appear only on the match timeline. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --chalk: #F4F7F6;        /* page */
  --chalk-deep: #E6ECEA;   /* quiet panels, borders */
  --navy: #13202B;         /* text, dark band */
  --navy-soft: #4A5A66;    /* secondary text */
  --orange: #F15F30;       /* actions */
  --orange-ink: #C2410C;   /* orange text on light (contrast) */
  --attack: #2E8B57;
  --defend: #D97706;
  --general: #7C3AED;
  --line: #C9D3D0;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --measure: 66ch;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); max-width: 21ch; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); max-width: 26ch; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--navy-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header ------------------------------------------------------------- */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand img { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 700; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); }

/* Buttons ------------------------------------------------------------ */
.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  padding: 12px 26px 13px;
  border-radius: 6px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.button:hover { background: #D94E22; border-color: #D94E22; color: #fff; }
.button.quiet { background: transparent; color: var(--navy); border-color: var(--navy); }
.button.quiet:hover { background: var(--navy); color: #fff; }
/* Kept at 1.2rem bold or larger so white on orange meets WCAG large-text contrast. */
.site-nav .button { font-size: 1.2rem; padding: 9px 18px 10px; }
@media (max-width: 640px) {
  .site-nav .secondary { display: none; }
  .site-header .wrap, .site-nav { flex-wrap: nowrap; }
  .site-nav .button { font-size: 1.2rem; padding: 8px 14px 9px; white-space: nowrap; }
  .site-nav a:not(.button) { display: none; }
  .brand img { height: 46px; }
  .site-nav { gap: 16px; }
}

/* Hero --------------------------------------------------------------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 0; }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.hero-note { color: var(--navy-soft); font-size: 0.95rem; }

/* The match timeline: the site's one signature element. */
.match {
  margin: clamp(48px, 7vw, 84px) 0 0;
  padding: 0 0 clamp(40px, 6vw, 72px);
}
.match-rail {
  position: relative;
  height: 112px;
  margin: 0 6px;
}
.match-rail::before {          /* the touchline */
  content: "";
  position: absolute; left: 0; right: 0; top: 56px;
  height: 4px; border-radius: 2px;
  background: var(--navy);
}
.match-rail .half {            /* halfway mark */
  position: absolute; left: 50%; top: 40px; width: 2px; height: 36px;
  background: var(--navy); transform: translateX(-1px);
}
.dot {
  position: absolute; top: 49px;
  width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%;
  border: 3px solid var(--chalk);
  box-sizing: content-box;
  transform: translateY(-1px);
}
.dot.attack { background: var(--attack); }
.dot.defend { background: var(--defend); }
.dot.general { background: var(--general); }
.dot .tag {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.1;
  color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  padding: 3px 8px 4px;
}
.dot.low .tag { bottom: auto; top: 30px; }
.match-ends {
  display: flex; justify-content: space-between;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--navy-soft);
  margin: 4px 6px 0;
}
.legend { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-top: 18px; color: var(--navy-soft); font-size: 0.95rem; }
.legend span::before {
  content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 7px; vertical-align: 0;
}
.legend .l-attack::before { background: var(--attack); }
.legend .l-defend::before { background: var(--defend); }
.legend .l-general::before { background: var(--general); }

/* One orchestrated moment: dots arrive along the rail in match order. */
@media (prefers-reduced-motion: no-preference) {
  .match.animate .dot { opacity: 0; transform: translateY(-1px) scale(0.4); }
  .match.animate.play .dot {
    animation: dot-in 360ms cubic-bezier(.2,.8,.3,1.2) forwards;
    animation-delay: calc(var(--i) * 70ms);
  }
  @keyframes dot-in { to { opacity: 1; transform: translateY(-1px) scale(1); } }
}
@media (max-width: 720px) {
  .dot.minor { display: none; }
  .dot { width: 14px; height: 14px; margin-left: -7px; top: 51px; border-width: 2px; }
  .dot .tag { font-size: 0.95rem; }
  .dot.low .tag { top: 26px; }
  .match-rail .dot:not(.keep):not(.low) .tag { display: none; }
}

/* Sections ----------------------------------------------------------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 4px solid var(--navy); }
.steps li { padding: 22px 26px 8px 0; position: relative; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps .n { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--orange-ink); }
.steps h3 { margin: 10px 0 10px; }
.steps p { color: var(--navy-soft); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Screens band ------------------------------------------------------- */
.screens { background: var(--navy); color: #EAF1F4; }
.screens h2, .screens h3 { color: #fff; }
.screens .lede { color: #AFC0CB; }
.shot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.shot + .shot { margin-top: clamp(56px, 8vw, 96px); }
.shot.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.shot.flip figure { order: 2; }
.shot figure { margin: 0; }
.shot img { border-radius: 8px; border: 1px solid #2C3D4B; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); }
.shot .text { display: grid; gap: 14px; }
.shot .text p { color: #C4D2DB; }
.pair { display: grid; grid-template-columns: minmax(0, 3.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.shot.wide { grid-template-columns: 1fr; }
.shot.wide .text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); }
.shot.wide .text h3 { grid-column: 1 / -1; }
@media (max-width: 860px) { .shot.wide .text { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shot, .shot.flip { grid-template-columns: 1fr; }
  .shot.flip figure { order: 0; }
  .pair { grid-template-columns: 1fr; }
  .pair img:last-child { max-width: 260px; }
}

/* Privacy ------------------------------------------------------------ */
.local { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 16px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.05rem; }
.facts span { color: var(--navy-soft); }
@media (max-width: 820px) { .local { grid-template-columns: 1fr; } }

/* Pricing ------------------------------------------------------------ */
.pricing { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.billing { display: inline-flex; border: 2px solid var(--navy); border-radius: 8px; padding: 3px; gap: 3px; }
.billing button {
  font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--navy);
  padding: 8px 18px; border-radius: 5px; cursor: pointer;
}
.billing button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.billing-note { color: var(--navy-soft); font-size: 0.95rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; }
.plan { padding: 30px 28px 32px; display: grid; gap: 16px; align-content: start; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.coach { background: #FFF5F1; }
.plan h3 { font-size: 2rem; }
.plan .who { color: var(--navy-soft); min-height: 3.2em; }
.price { font-family: var(--display); font-weight: 700; font-size: 3.6rem; line-height: 1; }
.price small { font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--navy-soft); margin-left: 4px; }
.price-sub { color: var(--navy-soft); font-size: 0.95rem; min-height: 1.6em; }
.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.includes li { padding-left: 26px; position: relative; }
.includes li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px;
  border-left: 3px solid var(--attack); border-bottom: 3px solid var(--attack); transform: rotate(-45deg);
}
.includes li.no { color: #66737C; }
.includes li.no::before { border: 0; height: 3px; width: 12px; background: #B8C2C7; transform: none; top: 0.7em; }
.plan .button { justify-self: start; margin-top: 6px; }
.price-footnote { margin-top: 22px; color: var(--navy-soft); font-size: 0.95rem; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan .who { min-height: 0; }
}

/* FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 14px;
  font-size: 1.8rem; color: var(--orange-ink); font-family: var(--display);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--navy-soft); }

/* Closing call ------------------------------------------------------- */
.closing { padding-top: 0; }
.closing .wrap { border-top: 4px solid var(--navy); padding-top: clamp(40px, 6vw, 64px); display: flex; justify-content: space-between; gap: 28px; align-items: end; flex-wrap: wrap; }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #C4D2DB; padding: 44px 0 52px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Text pages (legal, download) -------------------------------------- */
.page { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); max-width: 20ch; }
.page .updated { color: var(--navy-soft); margin-top: 10px; }
.prose { margin-top: 36px; max-width: var(--measure); }
.prose h2 { font-size: 1.9rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.35rem; margin: 26px 0 8px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.callout { border-left: 4px solid var(--orange); background: #fff; padding: 16px 20px; margin-top: 28px; max-width: var(--measure); }
.req { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; max-width: var(--measure); }
.req li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 11ch 1fr; gap: 16px; }
.req li:last-child { border-bottom: 1px solid var(--line); }
.req strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
