/* =========================================================
   YFS Partners — Abler Campaign Landing
   Palette shared with YFS Pages (badge-sampled)
   ========================================================= */

:root {
  --yfs-blue: #1858B8;
  --yfs-blue-600: #1450A8;
  --yfs-blue-700: #0F3F8C;
  --yfs-navy: #0A2A63;
  --yfs-navy-900: #071E48;
  --yfs-gold: #D2B274;
  --yfs-gold-600: #C09E55;

  --ink:      #16233B;
  --ink-soft: #4A5769;
  --line:     #E4E8EF;
  --line-2:   #EEF1F6;
  --paper:    #FFFFFF;
  --paper-2:  #F6F8FC;
  --paper-3:  #EEF3FB;

  --radius:   16px;
  --radius-sm:10px;
  --radius-lg:24px;
  --shadow-sm: 0 1px 2px rgba(10,42,99,.06), 0 1px 3px rgba(10,42,99,.05);
  --shadow:    0 6px 20px rgba(10,42,99,.10);
  --shadow-lg: 0 18px 50px rgba(10,42,99,.16);
  --ring: 0 0 0 4px rgba(24,88,184,.15);

  --wrap: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --head: 'Poppins', var(--font);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: 76px 0; }
.section.band { background: var(--paper-3); border-block: 1px solid var(--line); }
.section.dark {
  background: linear-gradient(160deg, var(--yfs-navy) 0%, var(--yfs-navy-900) 100%);
  color: #fff;
}
.section.dark h2 { color: #fff; }
.section.dark .section-head p,
.section.dark .video-copy p { color: rgba(255,255,255,.78); }
.section.dark .eyebrow { color: var(--yfs-gold); }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 14px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--yfs-blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--yfs-gold); border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--yfs-blue); color: #fff; box-shadow: 0 8px 20px rgba(24,88,184,.28); }
.btn-primary:hover { background: var(--yfs-blue-700); transform: translateY(-2px); }
.btn-gold { background: var(--yfs-gold); color: #000; box-shadow: 0 8px 20px rgba(210,178,116,.35); }
.btn-gold:hover { background: var(--yfs-gold-600); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--yfs-blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--yfs-blue); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img.badge { height: 44px; width: 44px; }
.brand .x { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.brand img.abler { height: 26px; width: auto; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Keep anchored sections clear of the sticky header. */
#call, #story { scroll-margin-top: 86px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 82% -8%, rgba(210,178,116,.28), transparent 60%),
    radial-gradient(900px 520px at 8% 0%, rgba(24,88,184,.55), transparent 62%),
    linear-gradient(160deg, var(--yfs-blue) 0%, var(--yfs-blue-700) 42%, var(--yfs-navy) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-inner {
  /* padding-block only — the shorthand would wipe .wrap's padding-inline. */
  position: relative; z-index: 2; padding-block: 74px 82px;
  display: grid; grid-template-columns: 1.4fr .75fr; gap: 46px; align-items: center;
}
/* Grid tracks default to min-content; without this a nowrap button inside
   widens the column past the viewport and pushes the copy off-screen. */
.hero-inner > * { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; padding: 8px 18px;
  background: var(--yfs-gold); color: var(--yfs-navy-900);
  border-radius: 999px; margin-bottom: 22px;
  font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .04em;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); color: #fff; max-width: 14ch; margin-bottom: 20px; }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .u::after { content:""; position:absolute; left:0; right:0; bottom:.06em; height:.16em; background: var(--yfs-gold); border-radius: 4px; opacity: .9; }
.hero-sub { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 52ch; margin-bottom: 28px; }

.hero-wins { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-wins li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-family: var(--head); font-weight: 500; font-size: .92rem;
}
.hero-wins svg { width: 18px; height: 18px; flex: none; color: var(--yfs-gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.hero-note { font-size: .86rem; color: rgba(255,255,255,.72); }
.hero-media { display: flex; justify-content: center; align-items: center; }
.hero-media img {
  width: 100%; max-width: 320px; height: auto;
  filter: drop-shadow(0 30px 55px rgba(4,14,35,.45));
}

/* ---------- Social proof ---------- */
.club-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.club {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.club:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.club-logo { height: 84px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.club-logo img { max-height: 84px; width: auto; object-fit: contain; }
.club .btn, .club .soon { margin-top: auto; }
.soon {
  font-family: var(--head); font-weight: 600; font-size: .85rem;
  color: var(--yfs-blue); background: rgba(24,88,184,.10);
  border: 1.5px solid transparent; border-radius: 999px; padding: 9px 16px;
}

.world { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--line); text-align: center; }
.world-head {
  font-family: var(--head); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px;
}
.world-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 54px; }
.world-row img { height: 56px; width: auto; object-fit: contain; }

/* ---------- Features marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 6px 0; }
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 64s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
/* Shift by exactly one full set: half the track, minus half a gap. */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 9px)); }
}
.feat {
  flex: none; width: 318px; display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.feat-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(24,88,184,.10);
}
.feat-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--yfs-blue); stroke-width: 1.8; }
.section.dark .feat { border-color: transparent; box-shadow: 0 10px 26px rgba(4,14,35,.28); }
.feat h3 { font-size: 1rem; margin-bottom: 4px; }
.feat p { font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
.features-cta { display: flex; justify-content: center; margin-top: 40px; }
/* Long label — let it wrap rather than overflow the viewport. */
.features-cta .btn { white-space: normal; text-align: center; max-width: 100%; }

/* ---------- Offer cards ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.offer:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.offer .o-ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--c1, var(--yfs-blue)), var(--c2, var(--yfs-navy)));
  box-shadow: 0 8px 18px rgba(10,42,99,.18);
}
.offer .o-ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.7; }
.offer h3 { font-size: 1.16rem; margin: 0 0 9px; }
.offer p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); background: var(--yfs-navy-900);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-head { display: flex; align-items: center; gap: 16px; margin: 14px 0; }
.story-badge { flex: none; width: 66px; height: 66px; object-fit: contain; }
.video-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.video-copy p { color: var(--ink-soft); font-size: 1.04rem; margin-bottom: 20px; }
.quote {
  border-left: 3px solid var(--yfs-gold); padding: 4px 0 4px 18px;
  font-size: 1rem; color: var(--ink); font-style: italic;
}
.quote span { display: block; margin-top: 8px; font-style: normal; font-size: .86rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card > p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: .82rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--yfs-blue); }
.field input, .field select {
  width: 100%; font-family: var(--font); font-size: .98rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-2); outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.field select { cursor: pointer; }
.field input:focus, .field select:focus { border-color: var(--yfs-blue); background: #fff; box-shadow: var(--ring); }
.field input::placeholder { color: #9AA5B5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { font-size: .8rem; color: var(--ink-soft); text-align: center; margin-top: 14px; }

.form-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 14px; }
.form-copy > p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 26px; }
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--yfs-blue); margin-top: 1px; }
.checks b { color: var(--ink); font-family: var(--head); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 30px 0; }
.foot-inner { text-align: center; }
.foot-inner p { font-size: .86rem; color: var(--ink-soft); }

/* ---------- Mobile CTA bar (sits under the nav, inside the sticky header) ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* No auto-scroll — swipe the row by hand instead. */
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .hero-media img { max-width: 260px; }
  .club-grid { grid-template-columns: repeat(2, 1fr); }
  .world-row { gap: 24px 40px; }
  .world-row img { height: 46px; }
  .offer-grid { grid-template-columns: 1fr; }
  .video-grid, .form-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-grid .form-copy { order: -1; }
  .section { padding: 60px 0; }
}
@media (max-width: 620px) {
  .mobile-cta {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: var(--yfs-gold); color: #000;
    font-family: var(--head); font-weight: 600; font-size: .95rem;
    padding: 13px 16px; text-align: center;
  }
  .mobile-cta svg { width: 18px; height: 18px; flex: none; }
  .mobile-cta:active { background: var(--yfs-gold-600); }
  /* The hero CTA would just repeat the bar above it. */
  .hero-cta { display: none; }
  .club { padding: 20px 14px 18px; }
  .club-logo { height: 64px; margin-bottom: 16px; }
  .club-logo img { max-height: 64px; }
  .world-row img { height: 38px; }
  .story-badge { width: 50px; height: 50px; }
  .story-head { gap: 12px; }
  .feat { width: 276px; padding: 16px; gap: 12px; }
  .feat-ico { width: 40px; height: 40px; }
  .hero-inner { padding-block: 56px 64px; }
  .hero h1 { max-width: none; }
  .nav-cta .btn { display: none; }
  /* Header is nav + CTA bar tall here. */
  #call, #story { scroll-margin-top: 128px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}
