/* Rally Partner landing page: brand colours as in the apps (packages/ui-tokens). Phone first. */
:root {
  --brand: #003a30;
  --brand-dark: #002720;
  --lime: #d4f25a;
  --lime-light: #f4fcd6;
  --ink: #121a17;
  --muted: #5f6b66;
  --canvas: #e3f1ec; /* the brand's light green tint (palette.green100) */
  --line: #bfd8cf;
  --radius: 999px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--brand) url("/assets/hero-tall.webp?v=2") center / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}
@media (orientation: landscape) {
  .hero { background-image: url("/assets/hero-wide.webp?v=2"); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 39, 32, 0.55) 0%, rgba(0, 39, 32, 0.15) 35%, rgba(0, 39, 32, 0.85) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.brand img { width: 28px; height: auto; }
.nav-links { display: flex; gap: 20px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: 0.9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) { .nav-links { display: none; } }

.hero-content {
  margin-top: auto;
  padding: 0 var(--gutter) max(40px, env(safe-area-inset-bottom));
  max-width: 720px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow-dark { color: var(--brand); }
.hero h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); font-weight: 800; }
.lead { font-size: clamp(1.05rem, 3.6vw, 1.3rem); margin: 16px 0 28px; max-width: 34em; color: rgba(255, 255, 255, 0.92); }
.fine { margin: 18px 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }

@media (orientation: landscape) {
  /* Wide, bright photo: darken the left, where the text sits. */
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 39, 32, 0.7) 0%, rgba(0, 39, 32, 0.25) 55%, rgba(0, 39, 32, 0) 80%),
      linear-gradient(180deg, rgba(0, 39, 32, 0.5) 0%, rgba(0, 39, 32, 0.1) 35%, rgba(0, 39, 32, 0.75) 100%);
  }
}
/* On wide screens, line the hero up with the 1120px column of the sections below. */
@media (min-width: 1160px) {
  .nav, .hero-content { padding-left: calc((100vw - 1120px) / 2); padding-right: calc((100vw - 1120px) / 2); }
  .hero-content { max-width: none; }
  .hero-content > * { max-width: 640px; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.button-primary { background: var(--lime); color: var(--brand); }
.button-primary:hover { background: #e0f77f; }
.button-outline { border: 2px solid rgba(255, 255, 255, 0.85); color: #fff; }
.button-outline:hover { background: rgba(255, 255, 255, 0.12); }
.button-dark { background: var(--brand); color: #fff; }
.button-dark:hover { background: var(--brand-dark); }
/* The side the visitor used last (see main.js). */
.button.is-last { box-shadow: 0 0 0 4px rgba(212, 242, 90, 0.45); }
@media (max-width: 480px) {
  .actions .button { flex: 1 1 100%; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 72px var(--gutter); max-width: 1120px; margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 800; max-width: 22em; }

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; }
.step img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.step-number {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--brand);
  font-weight: 800;
}
.step h3 { font-size: 1.25rem; margin: 18px 0 6px; }
.step p { margin: 0; color: var(--muted); }

.section-clubs {
  max-width: none;
  background: var(--brand);
  color: #fff;
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .section-clubs {
    grid-template-columns: 1fr 1fr;
    padding-left: max(var(--gutter), calc((100vw - 1120px) / 2));
    padding-right: max(var(--gutter), calc((100vw - 1120px) / 2));
  }
}
.ticks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; font-size: 1.05rem; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23003a30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.clubs-image { border-radius: 24px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }


/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom));
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.brand-dark { color: var(--brand); }
.brand-dark img { width: 22px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer nav a { font-weight: 500; color: var(--ink); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer p { margin: 0; }
