@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700;1,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1421;
  --panel: #101f31;
  --card: #15263b;
  --ink: #faf1e2;
  --muted: #b8c4d0;
  --line: #34465c;
  --accent: #ff8a80;
  --button: #a91f26;
  --button-hover: #8e1820;
  --body: 'Inter', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f1e6;
  --panel: #ece3d4;
  --card: #fff9ee;
  --ink: #10283f;
  --muted: #455465;
  --line: #a8a29a;
  --accent: #951b21;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--body); }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: .93; }
h2 { font-size: clamp(3.25rem, 7vw, 5.75rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 2rem; font-weight: 700; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--bg); z-index: 2; transform: translateY(-180%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 800 1.4rem/.95 var(--display); text-decoration: none; white-space: nowrap; }
.brand small { display: block; margin-top: .23rem; color: var(--accent); font: 700 .63rem/1 var(--body); letter-spacing: .28em; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
nav a, #theme { font-size: .82rem; font-weight: 600; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
#theme { min-height: 44px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: .25rem; padding: .5rem .8rem; cursor: pointer; white-space: nowrap; }
.hero { position: relative; isolation: isolate; background: #081424; color: #faf1e2; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#081424a8 0%,#08142438 37%,#081424bd 66%,#081424cc 100%), linear-gradient(0deg,#081424 0%,transparent 36%), url('assets/stadium.jpg') right center / cover; }
.hero-inner { padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 9vw, 7.5rem); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.15rem; font: 700 .72rem/1.4 var(--body); letter-spacing: .16em; }
.eyebrow span { width: 1.6rem; height: 2px; background: var(--accent); }
.hero .eyebrow span { background: #ff8a80; }
h1 { text-transform: uppercase; font-size: clamp(4rem, 10vw, 9rem); font-weight: 800; letter-spacing: -.025em; }
h1 em { font-weight: 800; color: #ff9e93; }
.lede { max-width: 31rem; margin: 1.5rem 0 1.9rem; color: #e1dfe1; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding: .85rem 1.15rem; min-height: 48px; border-radius: .23rem; font-size: .875rem; font-weight: 700; text-decoration: none; }
.primary { background: var(--button); color: #fff9ef; }
.primary:hover { background: var(--button-hover); }
.outline { border: 1px solid var(--line); }
.outline:hover { border-color: var(--accent); }
.hero-foot { border-block: 1px solid #506078; background: #0a1729d9; }
.hero-foot .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-foot span { padding: .8rem .25rem; text-align: center; font: 700 1rem var(--display); letter-spacing: .08em; }
.hero-foot span:nth-child(even) { color: #c7cfd9; }
.hero-foot span + span { border-left: 1px solid #506078; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.intro { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 1.25rem 3rem; }
.intro p, .features p, .join p, .note, footer p { color: var(--muted); }
.intro p { max-width: 29rem; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.features article { border-top: 2px solid var(--line); padding-top: 1.2rem; }
.features p, .join p { margin-top: .7rem; font-size: .94rem; }
.plans { background: var(--panel); border-block: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.plan { display: grid; align-content: start; padding: clamp(1.25rem, 4vw, 2.3rem); background: var(--card); border: 1px solid var(--line); border-radius: .35rem; }
.plan.monthly { border-top: 4px solid var(--accent); }
.plan .price { margin: 1rem 0 .35rem; color: var(--muted); }
.price strong { font: 800 4.25rem/.95 var(--display); color: var(--ink); }
.plan .button { margin-top: 1.5rem; }
.note { margin-top: 1rem; font-size: .84rem; }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
.join .eyebrow { color: var(--ink); }
.join ol { display: grid; gap: .95rem; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.join li { display: flex; gap: 1rem; counter-increment: steps; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.join li::before { content: counter(steps, decimal-leading-zero); color: var(--accent); font: 700 1.65rem var(--display); }
footer { padding-block: 2rem 3rem; border-top: 1px solid var(--line); background: var(--panel); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
footer p { max-width: 52rem; font-size: .8rem; margin-top: .4rem; }
footer a:not(.brand) { text-underline-offset: .2em; }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 2rem); }
  .top-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    gap: .45rem .5rem;
    padding-top: .65rem;
  }
  .top .brand { font-size: 1.22rem; gap: .4rem; }
  .top .brand img { width: 36px; height: 36px; }
  #theme { padding-inline: .55rem; }
  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: .5rem;
    border-top: 1px solid var(--line);
  }
  nav a { padding-inline: .2rem; }
  .hero::before {
    background: linear-gradient(90deg, #081424f5, #081424a0 60%, #0814244d),
      linear-gradient(0deg, #081424, transparent 65%),
      url('assets/stadium-mobile.jpg') 70% center / cover;
  }
  .hero-inner { padding-block: 4rem 3rem; }
  h1 { font-size: clamp(3.4rem, 11vw, 5rem); }
  .hero-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-foot span:nth-child(3) { border-left: 0; }
  .hero-foot span:nth-child(n+3) { border-top: 1px solid #506078; }
  .hero-foot span { padding: .55rem .2rem; }
  .intro, .join, .plan-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
  .footer-top > a { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: enter .55s ease-out both; }
  .hero-photo { animation-delay: .08s; }
  .hero-actions { animation-delay: .15s; }
  .button span { transition: transform .2s ease; }
  .button:focus-visible span { transform: translateX(3px); }

  @supports (animation-timeline: view()) {
    .features article, .plan, .join li {
      animation: enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan { transition: border-color .2s ease, box-shadow .2s ease; }
  .plan:hover { border-color: var(--accent); box-shadow: 0 8px 25px #0002; }
  .button:hover span { transform: translateX(3px); }
}

@keyframes enter {
  from { opacity: .7; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.instagram { border-top: 1px solid var(--line); }
.instagram-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-bottom: 1.5rem;
}
.instagram-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: .2em;
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.photo-frame {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--card);
}
.photo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

@media (max-width: 540px) {
  .instagram-grid { grid-template-columns: 1fr; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  grid-template-areas: "photo copy" "photo actions";
  align-items: center;
  gap: 0 clamp(1.5rem, 4vw, 4rem);
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-copy h1 { font-size: clamp(3.5rem, 7.2vw, 7.6rem); }
.hero-actions { grid-area: actions; align-self: start; }
.hero-photo {
  grid-area: photo;
  width: min(100%, 26rem);
  justify-self: start;
  border-color: #506078;
  box-shadow: 0 14px 40px #0006;
}
/* Fit every portrait inside a common frame without trimming its edges. */
.instagram-grid .photo-frame { aspect-ratio: 3 / 4; }
.instagram-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 690px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "photo" "actions";
    gap: 1.15rem;
    padding-top: 2.35rem;
  }
  .hero-copy h1 { font-size: clamp(3.4rem, 11vw, 5rem); }
  .hero-photo { width: min(100%, 19rem); justify-self: start; }
  .hero-actions .lede { margin-top: 0; }
}

.footer-credit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.footer-credit-row p { margin: 0; }
.footer-builder {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 1.25rem;
  font-size: .875rem;
}
.footer-builder img { width: 78px; height: auto; flex-shrink: 0; }

@media (max-width: 640px) {
  .footer-credit-row { flex-direction: column; align-items: stretch; gap: .75rem; }
  .footer-builder {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding-inline-start: 0;
    padding-top: .75rem;
  }
}
