@font-face {
  font-family: Inter;
  src: url("/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0d2240;
  --blue: #1a6cf6;
  --blue-text: #155bd0;
  --lime: #a1bc31;
  --orange: #f5a623;
  --tint: #f4f7fc;
  --muted: #445571;
  --line: #dce4ef;
  font: 16px/1.55 Inter, Arial, sans-serif;
  color: var(--navy);
  background: white;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.375rem); }
input, select, button { font: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 80px); text-align: center; }
.tint { background: var(--tint); }
.gradient { background: linear-gradient(90deg, var(--blue), var(--navy)); color: white; }
.icon { display: block; width: 32px; height: 32px; color: var(--blue); fill: currentColor; flex: none; }

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 16px 32px;
  background: var(--lime);
  color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1;
}
.home section[id] { scroll-margin-top: 110px; }
.brand { justify-self: start; border-radius: 999px; overflow: hidden; background: white; }
.brand img, .footer-brand img { object-fit: cover; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 32px; }
.site-header a { font-size: .875rem; font-weight: 600; text-decoration: none; }
.site-header a:hover, .site-footer a:hover { text-decoration: underline; }
.header-join { justify-self: end; }
.site-header .header-market { padding: 7px 12px; border: 1px solid #c7d77c; border-radius: 8px; background: #f0f5d9; white-space: nowrap; }
.site-header .header-market:hover { background: #e7efbc; text-decoration: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 26px 22px;
  text-align: center;
  background: linear-gradient(120deg, #155bd0, var(--navy) 78%);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: -50% -30% -65% 24%;
  content: "";
  transform: rotate(-18deg);
  background: linear-gradient(145deg, #a9d8ff, #1a6cf6 45%, #b5d44c 78%, #f5a623);
  mask-image: repeating-radial-gradient(ellipse at 63% 54%, transparent 0 15px, #000 16px 17px, transparent 18px 23px);
  opacity: .24;
}
.tag {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid #ffffff4d;
  border-radius: 999px;
  background: #ffffff1a;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero h1 { margin-block: 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.hero-subtitle { margin-bottom: 26px; font-size: clamp(1.1rem, 2vw, 1.25rem); }
.hero-description { max-width: 700px; margin-inline: auto; line-height: 1.7; color: #ecf2ff; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 34px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.actions .button { text-transform: uppercase; }
.gradient .button:not(.outline) { box-shadow: 0 7px 20px #f5a6234a; }
.button:hover { background: #ffb940; }
.button.outline { border-color: #ffffffb3; background: transparent; color: white; }
.button.outline:hover { background: #ffffff1a; }
.locations {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  list-style: none;
  margin-top: 28px;
  padding: 14px 5px;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  background: #ffffff16;
  font-size: .875rem;
  font-weight: 600;
}
.locations li { padding-inline: 23px; }
.locations li + li { border-left: 1px solid #ffffff45; }
.hero-status { margin-top: 12px; font-size: .875rem; color: #ecf2ff; }
.hero .actions { margin-top: 14px; gap: 8px; }
.hero .button { min-height: 40px; padding: 6px 18px; font-size: .8rem; }

.highlights { padding-block: 14px 0; }
.highlight-stage { display: grid; border-radius: 10px; background: var(--navy); }
.highlight-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.6s ease-in-out, visibility 0s linear 1.6s;
}
.highlight-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .highlight-slide { transition: none; }
}
.highlights [hidden] { display: none; }
.highlight-slide:hover { outline: 2px solid var(--blue-text); outline-offset: 2px; }
.race-slide { justify-content: center; background: #051d40; }
.race-art { display: block; width: 100%; height: 100%; object-fit: fill; }
.race-slide > span { display: none; }
.market-highlight { padding-inline: clamp(12px, 5vw, 48px); background: linear-gradient(115deg, #0d2240, #155bd0); }
.market-highlight img { width: clamp(42px, 8vw, 68px); height: auto; flex: none; border-radius: 8px; background: white; }
.market-highlight span { display: grid; flex: 1; gap: 3px; }
.market-highlight span strong { font-size: clamp(1rem, 3vw, 1.55rem); }
.market-highlight small { font-size: .78rem; }
.market-highlight > strong { color: #d3ed70; font-size: .84rem; }
.highlight-controls { display: flex; justify-content: center; gap: 6px; padding-block: 8px; }
.highlight-controls button { min-width: 32px; min-height: 32px; border: 1px solid #a6b5ca; border-radius: 8px; color: var(--navy); background: white; cursor: pointer; font-size: .75rem; }
.highlight-controls button[aria-current="true"] { color: white; background: var(--navy); }

@media (max-width: 850px) {
  .race-slide { justify-content: space-between; gap: 5px 12px; padding: 8px 12px; flex-wrap: wrap; background: linear-gradient(120deg, #051d40, #0c4383); }
  .race-slide .race-art { display: none; }
  .race-slide > span { display: grid; line-height: 1.2; }
  .race-title { text-transform: uppercase; font-weight: 800; }
  .race-title small { font-size: .61rem; }
  .race-title strong { font-size: clamp(.84rem, 3.5vw, 1.25rem); }
  .race-title em { color: #d5ff00; }
  .race-details, .race-action { font-size: .68rem; }
  .race-action { color: #d5ff00; }
  .race-action small { font-size: .61rem; }
}
@media (max-width: 480px) {
  .race-title { flex-basis: 100%; }
  .race-action small { display: none; }
}

.eyebrow { margin-bottom: 12px; color: var(--blue-text); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.description { max-width: 790px; margin: 24px auto 0; color: var(--muted); line-height: 1.7; }
.grid { display: grid; gap: 20px; margin-top: 38px; padding: 0; list-style: none; }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 16px; text-align: left; }
.card h3 { margin-top: 14px; font-size: 1.125rem; overflow-wrap: anywhere; }
.card p { margin-top: 12px; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.movement .card, .audience .card { padding: 32px; min-height: 246px; box-shadow: 0 5px 24px #0d22400a; }
.movement .card h3 { font-size: clamp(.95rem, 1.7vw, 1.375rem); }
.movement .icon, .audience .icon { width: 40px; height: 40px; }
.sequence { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.sequence > li { position: relative; }
.sequence > li:not(:last-child)::after, .expansion .card:not(:last-child)::after {
  content: "→" / "";
  position: absolute;
  width: 18px;
  height: 18px;
  right: -24px;
  top: calc(50% - 9px);
  color: var(--blue-text);
  font: 700 18px/1 Arial, sans-serif;
  text-align: center;
}
.sequence .card { min-height: 225px; padding: 24px; }
.step-number { display: inline-grid; place-items: center; min-width: 50px; height: 50px; border-radius: 50%; background: #e8f0ff; color: var(--blue-text); font-size: 1.125rem; font-weight: 700; }
.feature-status { margin-top: 10px; color: var(--muted); }
.features .card { padding: 24px; min-height: 185px; background: var(--tint); }
.gop { background: linear-gradient(90deg, #122d57, var(--navy)); color: white; text-align: left; }
.gop .eyebrow, .gop .icon { color: var(--orange); }
.gop h2 + p { margin-top: 18px; }
.checklist { display: grid; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist .icon { width: 20px; height: 20px; }
.gop .description { margin-inline: 0; color: #ecf2ff; }

.expansion { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.expansion .card { position: relative; padding: 30px 22px; text-align: center; color: white; background: var(--navy); border: 0; border-radius: 20px; }
.expansion .card:not(:last-child)::after { right: -29px; }
.expansion .card:nth-child(2) { background: #155bd0; }
.expansion .card:nth-child(3) { background: var(--blue); }
.expansion .card .icon { color: white; margin-inline: auto; }
.expansion .card p { color: white; }
.expansion-caption { margin-top: 24px; color: var(--muted); font-weight: 600; }
.association .description, .closing .description { color: #ecf2ff; }
.flow > li { display: grid; place-items: center; gap: 8px; padding: 16px 8px; border-radius: 12px; background: white; color: var(--navy); font-size: .75rem; font-weight: 700; }
.flow .icon { width: 24px; height: 24px; }
.flow > li:not(:last-child)::after { color: white; }
.section h2 + p:not([class]) { margin-top: 12px; }
.stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.stats .card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; text-align: center; }
.stat-value { color: var(--blue-text); font-size: 2.25rem; font-weight: 700; line-height: 1; }
.stats small { color: var(--muted); }
.closing { padding-block: clamp(58px, 8vw, 100px); }
.closing h2 { max-width: 840px; margin-inline: auto; font-size: clamp(2rem, 4.5vw, 2.875rem); }
.closing-subtitle { margin-top: 26px; font-size: 1.125rem; }

.signup { text-align: left; }
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 80px); }
.signup-inner > div > p:last-child { max-width: 46ch; margin-top: 18px; color: var(--muted); }
form { background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 38px); }
#lista:target form { border-color: var(--blue-text); box-shadow: 0 0 0 4px #1a6cf61a; }
label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
input:not([type="checkbox"]), select { width: 100%; padding: 10px 12px; min-height: 46px; border: 1px solid #a6b5ca; border-radius: 8px; color: var(--navy); margin-bottom: 18px; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 3px 0 16px; font-weight: 400; }
.consent input { width: 1rem; height: 1rem; margin: .25em 0 0; flex-shrink: 0; accent-color: var(--blue); }
.muted, .privacy { color: var(--muted); font-weight: 400; }
.privacy { font-size: .85rem; overflow-wrap: anywhere; }
form .button { width: 100%; margin-top: 6px; }

.site-footer { padding: 48px 32px; background: var(--lime); color: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1200px; margin-inline: auto; }
.footer-grid h2 { margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { display: block; width: fit-content; margin-bottom: 8px; text-decoration: none; }
.footer-brand img { border-radius: 999px; margin-bottom: 16px; }
.footer-brand p { max-width: 43ch; }
.copyright { max-width: 1200px; margin: 32px auto 0; padding-top: 22px; border-top: 1px solid #0d224040; font-size: .85rem; text-align: center; }

.internal { padding-block: 56px; }
.internal h1 { margin-bottom: 16px; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.internal p { margin-bottom: 16px; }
.table-wrap { overflow: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; background: white; text-align: left; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: var(--tint); }
.pages { display: flex; gap: 20px; margin-top: 20px; }

.member-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: white;
  color: var(--navy);
  box-shadow: 0 24px 80px #0d22404d;
}
.member-dialog::backdrop { background: #0d2240a6; }
body:has(.member-dialog[open]) { overflow: hidden; }
.member-dialog-header { position: relative; padding: 24px 56px 24px 28px; }
.member-dialog-header h2 { font-size: 1.8rem; }
.member-dialog-brand { margin-bottom: 6px; color: #edf5ff; font-size: .85rem; font-weight: 700; }
.member-dialog-close {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ffffff24;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}
.member-dialog-form { padding: 24px 28px; border: 0; border-radius: 0; }
.member-view { max-width: 800px; }
.member-view h2 { font-size: 1.45rem; }
.member-view ul { padding-inline-start: 24px; }
.member-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 24px; }
dl.member-fields { gap: 16px 24px; margin-block: 24px; }
.member-fields dt { font-weight: 700; }
.member-fields dd { margin: 0; overflow-wrap: anywhere; }
.member-view .member-links, .member-dialog .member-links { margin: 16px 0 0; }
.member-photo { margin-bottom: 16px; border-radius: 50%; object-fit: cover; }
.member-logout { max-width: 200px; padding: 0; border: 0; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.home) { scroll-behavior: smooth; }

  .hero h1, .hero .actions, .internal h1, .member-dialog[open] {
    animation: soft-entrance 380ms ease-out backwards;
  }

  .button {
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .button:active { transform: scale(.98); }

  .signup form {
    transition: border-color 260ms ease, box-shadow 260ms ease;
  }

  @media (hover: hover) {
    .button:hover:not(:active) { transform: translateY(-2px); }
  }

  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 45%) {
    .home .grid > .card {
      animation: soft-entrance linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@keyframes soft-entrance {
  from { opacity: .75; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .four, .sequence, .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sequence > li::after { display: none; }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; gap: 8px 18px; padding: 10px 24px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; padding-bottom: 4px; }
  .brand img { width: 84px; height: 50px; }
  .hero { padding-block: 20px 16px; }
  .hero h1 { margin-block: 0 8px; }
  .hero-subtitle { margin-bottom: 20px; }
  .four, .sequence, .stats, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expansion, .signup-inner { grid-template-columns: 1fr; }
  .expansion { gap: 16px; }
  .expansion .card::after { display: none; }
  .movement .card, .audience .card, .sequence .card { min-height: auto; padding: 20px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .actions .button { width: 100%; padding-inline: 14px; }
  .locations { gap: 8px 12px; padding-inline: 12px; }
  .locations li { padding: 0; }
  .locations li + li { border-left: 0; }
  .four, .sequence, .footer-grid { grid-template-columns: 1fr; }
}
