/* SportHorse palette (brand guidelines, October 2026). Nothing outside the palette. */
:root {
  --midnight: #1c2938;
  --field-green: #1c7b50;
  --sage: #89a595;
  --sand: #d1c5b4;
  --arena-sand: #e5e3de;

  --display: "Acumin Pro ExtraCondensed", "acumin-pro-extra-condensed", "Archivo", "Arial Narrow", sans-serif;
  --body: "Outfit", system-ui, sans-serif;

  /* Fluid scale: phone value at 390px, computer value at 1440px. */
  --gutter: clamp(20px, 3.4vw, 48px);
  --fs-mega: clamp(68px, 22px + 12.2vw, 220px);
  --fs-pillar: clamp(56px, 34px + 5.6vw, 120px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { background: var(--midnight); -webkit-text-size-adjust: 100%; }
body {
  background: var(--midnight);
  color: var(--arena-sand);
  font-family: var(--body);
  font-size: clamp(16px, 15px + 0.25vw, 18px);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
::selection { background: var(--field-green); color: #fff; }

h1, h2 {
  font-family: var(--display);
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 0.86;
  text-transform: uppercase;
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.honeypot { left: -9999px; position: absolute; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: max(env(safe-area-inset-top), 0px) var(--gutter) 0;
  position: relative;
}
.hero-photo {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 30%;
  position: absolute;
  width: 100%;
  z-index: -2;
  animation: settle 1.8s var(--ease-out) both;
}
/* Midnight gradient: darker at the top for the bar and at the bottom for the copy. */
.hero::after {
  background:
    linear-gradient(180deg, rgb(28 41 56 / 0.55) 0%, rgb(28 41 56 / 0) 26%),
    linear-gradient(0deg, rgb(28 41 56 / 0.92) 0%, rgb(28 41 56 / 0.35) 45%, rgb(28 41 56 / 0) 70%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.bar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-block: 28px;
}
.wordmark { color: #fff; height: auto; width: clamp(140px, 120px + 4vw, 190px); }
.bar .eyebrow { color: var(--sand); }

.hero-body {
  align-items: end;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  padding-bottom: clamp(32px, 5vw, 72px);
}
.hero h1 { color: #fff; font-size: var(--fs-mega); }

.hero-card { border-top: 1px solid rgb(229 227 222 / 0.35); padding-top: 24px; }
.hero-card > p { color: var(--arena-sand); font-size: clamp(17px, 16px + 0.3vw, 20px); margin-bottom: 28px; }

.signup label { color: var(--sage); display: block; margin-bottom: 12px; }
.signup-names { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.signup-row { display: flex; }
.signup input:not(.honeypot) {
  background: rgb(229 227 222 / 0.1);
  border: 1px solid rgb(229 227 222 / 0.45);
  border-radius: 0;
  color: #fff;
  flex: 1;
  min-height: 54px;
  min-width: 0;
  padding: 0 16px;
}
.signup-row input:not(.honeypot) { border-right: 0; }
.signup input::placeholder { color: rgb(229 227 222 / 0.6); }
.signup input:focus-visible { outline-offset: 0; }
.signup button {
  background: var(--field-green);
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  min-height: 54px;
  padding: 0 24px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.signup button:disabled { cursor: wait; opacity: 0.7; }
.signup-note { color: var(--sand); font-size: 15px; margin-top: 12px; min-height: 1.55em; }

@media (hover: hover) {
  .signup button:hover { background: #fff; color: var(--midnight); }
  .footer a:hover { color: #fff; }
}

/* ---------- Green band ---------- */

.band {
  background: var(--field-green);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pillar { padding: clamp(40px, 5vw, 72px) var(--gutter); }
.pillar + .pillar { border-left: 1px solid rgb(255 255 255 / 0.22); }
.pillar h2 { font-size: var(--fs-pillar); margin-bottom: 18px; }
.pillar p { color: rgb(255 255 255 / 0.86); max-width: 30ch; }

/* ---------- Footer ---------- */

.footer {
  align-items: end;
  color: var(--sand);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  justify-content: space-between;
  padding: clamp(48px, 6vw, 80px) var(--gutter) max(env(safe-area-inset-bottom), 36px);
}
.lockup { height: auto; width: 240px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-left: auto; }
.footer a { font-weight: 400; text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 5px; transition: color 0.2s ease; }
.fine { color: var(--sage); font-size: 14px; width: 100%; }

/* ---------- Motion ---------- */

.rise { animation: rise 1s var(--ease-out) both; }
.hero-card.rise { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes settle { from { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .rise, .hero-photo { animation: none; }
}

/* ---------- Phone and tablet ---------- */

@media (max-width: 899px) {
  .bar { padding-block: 20px; }
  .bar .eyebrow { display: none; }
  .hero-body { gap: 28px; grid-template-columns: minmax(0, 1fr); padding-top: 34svh; }
  .hero::after {
    background:
      linear-gradient(180deg, rgb(28 41 56 / 0.5) 0%, rgb(28 41 56 / 0) 22%),
      linear-gradient(0deg, rgb(28 41 56 / 0.95) 0%, rgb(28 41 56 / 0.6) 50%, rgb(28 41 56 / 0) 75%);
  }
  .rise { animation-duration: 0.7s; }

  .band { grid-template-columns: 1fr; }
  .pillar { align-items: baseline; display: grid; gap: 20px; grid-template-columns: 1fr 1.4fr; padding-block: 32px; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.22); }
  .pillar h2 { margin-bottom: 0; }

  .footer { align-items: start; flex-direction: column; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 420px) {
  .signup-row { flex-direction: column; gap: 10px; }
  .signup-row input:not(.honeypot) { border-right: 1px solid rgb(229 227 222 / 0.45); }
  .pillar { grid-template-columns: 1fr; gap: 10px; }
}
