/* ===========================================================================
   Landing page (templates/index.html only)
   Colors are taken from the crest logo: shield navy, outline orange, white.
   Everything is prefixed lp- so nothing here can affect other pages.
   =========================================================================== */
.page-home {
  --lp-navy:      #011c44;   /* logo shield */
  --lp-navy-deep: #00112b;
  --lp-navy-2:    #0c2a5a;   /* raised surfaces on navy */
  --lp-line:      rgba(255,255,255,.14);
  --lp-orange:    #fe6202;   /* logo outline */
  --lp-orange-hi: #ff7a26;
  --lp-white:     #ffffff;
  --lp-mist:      #eef2f7;   /* the one light section */
  --lp-ink:       #0d1b33;   /* text on light */
  --lp-dim:       #b7c3d6;   /* secondary text on navy */
  --lp-wide: 118%;           /* Archivo width for display type */
  background: var(--lp-navy);
}
.page-home main { background: var(--lp-navy); color: var(--lp-white); }
.page-home .site-footer { background: var(--lp-navy-deep); border-top-color: var(--lp-line); margin-top: 0; }
.page-home .footer-bottom { border-top-color: var(--lp-line); }
.page-home .btn-login { background: var(--lp-navy); color: #fff; }
.page-home .btn-login:hover { background: var(--lp-orange); color: #fff; }

.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-title, .lp-h2, .lp-course-name, .lp-plan h3, .lp-aud h3, .lp-steps h3 {
  font-family: var(--display); font-stretch: var(--lp-wide);
}

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .8rem 1.5rem; border-radius: 8px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  border: 2px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
}
.lp-btn:focus-visible, .lp-course:focus-visible, .lp-aud a:focus-visible, .lp-note a:focus-visible {
  outline: 3px solid var(--lp-orange-hi); outline-offset: 3px;
}
.lp-btn-primary { background: var(--lp-orange); color: #fff; }
.lp-btn-primary:hover { background: var(--lp-orange-hi); }
.lp-btn-quiet { border-color: rgba(255,255,255,.4); color: #fff; }
.lp-btn-quiet:hover { border-color: #fff; }
.lp-btn-line { border-color: rgba(255,255,255,.35); color: #fff; }
.lp-btn-line:hover { border-color: #fff; }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; overflow: hidden;
  padding: clamp(1.6rem, 4vh, 3rem) 0 clamp(1.4rem, 3.5vh, 2.4rem);
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(254,98,2,.10), transparent 60%),
    var(--lp-navy);
}
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 27vw, 380px); gap: 2.5rem; align-items: center; }
.lp-title {
  font-weight: 850; font-size: clamp(2.2rem, 4.3vw, 3.75rem); line-height: 1.04;
  letter-spacing: -.01em; max-width: 20ch; margin: 0; text-wrap: balance;
}
.lp-lede { color: var(--lp-dim); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; max-width: 34em; margin: .9rem 0 1.4rem; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* The play diagram, after the playbook page in the logo */
.lp-play { margin: 0; justify-self: end; width: 100%; }
.lp-play-svg { width: 100%; height: auto; display: block; overflow: visible; }
.lp-field line { stroke: rgba(255,255,255,.10); stroke-width: 1.5; }
.lp-hash line { stroke: rgba(255,255,255,.22); }
.lp-x path { stroke: rgba(255,255,255,.85); stroke-width: 3; stroke-linecap: round; fill: none; }
.lp-o circle { fill: none; stroke: var(--lp-orange); stroke-width: 3; }
.lp-routes path { fill: none; stroke: var(--lp-orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 0; }
.lp-heads path { fill: none; stroke: var(--lp-orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-goal circle { fill: var(--lp-orange); }
.lp-goal text { fill: #fff; font-family: var(--display); font-weight: 900; font-size: 20px; }

/* One load moment: the routes draw themselves, then the arrowheads land. */
@media (prefers-reduced-motion: no-preference) {
  .lp-routes path { stroke-dashoffset: 600; animation: lp-draw 1.4s cubic-bezier(.6,.1,.3,1) .25s forwards; }
  .lp-routes path:nth-child(2) { animation-delay: .45s; }
  .lp-routes path:nth-child(3) { animation-delay: .65s; }
  .lp-heads, .lp-goal { opacity: 0; animation: lp-in .3s ease 1.6s forwards; }
}
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-in { to { opacity: 1; } }

/* ---------- The four courses ---------- */
.lp-courses { list-style: none; margin: clamp(1.2rem, 3vh, 2rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.lp-courses li { display: flex; }
.lp-course {
  flex: 1; display: flex; flex-direction: column; gap: .3rem;
  padding: .95rem 1.1rem .9rem; border-radius: 10px;
  background: var(--lp-navy-2); border: 1px solid var(--lp-line);
  border-top: 4px solid var(--lp-course-accent, #fff);
  color: #fff; transition: border-color .15s ease, background-color .15s ease;
}
.lp-course:hover { background: #10336b; border-color: rgba(255,255,255,.3); border-top-color: var(--lp-course-accent, #fff); }
.lp-course-free     { --lp-course-accent: #ffffff; }
.lp-course-athletes { --lp-course-accent: #5fa8ff; }
.lp-course-students { --lp-course-accent: #ffb37a; }
.lp-course-pro      { --lp-course-accent: var(--lp-orange); background: linear-gradient(160deg, rgba(254,98,2,.22), var(--lp-navy-2) 55%); }
.lp-course-for { color: var(--lp-course-accent); font-size: .85rem; font-weight: 600; }
.lp-course-name { font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.lp-course-desc { color: var(--lp-dim); font-size: .9rem; line-height: 1.45; }
.lp-course-foot { margin-top: auto; padding-top: .5rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-top: 1px solid var(--lp-line); }
.lp-course-price { font-family: var(--display); font-stretch: var(--lp-wide); font-weight: 850; font-size: 1.35rem; }
.lp-course-price s, .lp-plan-price s { font-size: .7em; font-weight: 600; opacity: .55; margin-right: .2em; }
.lp-course-meta { color: var(--lp-dim); font-size: .85rem; white-space: nowrap; }

/* ---------- Light section: who it's for ---------- */
.lp-audience { background: var(--lp-mist); color: var(--lp-ink); padding: clamp(3rem, 7vw, 5rem) 0; }
.lp-h2 { font-weight: 850; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -.005em; margin: 0; }
.lp-audience-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 2.4rem; }
.lp-audience-head .lp-h2 { max-width: 16ch; }
.lp-audience-intro { margin: 0; color: #3a4a63; font-size: 1.05rem; line-height: 1.6; max-width: 34em; }
.lp-audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.lp-aud { border-top: 3px solid var(--lp-navy); padding-top: 1.1rem; }
.lp-aud h3 { font-weight: 800; font-size: 1.3rem; margin: 0 0 .6rem; color: var(--lp-navy); }
.lp-aud p { margin: 0 0 1rem; color: #3a4a63; line-height: 1.6; }
.lp-aud a { color: #c44a00; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lp-aud a:hover { color: var(--lp-navy); }

/* ---------- How it works (a real sequence, so it's numbered) ---------- */
.lp-how { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.lp-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: lp-step; }
.lp-steps li { counter-increment: lp-step; padding: 0 1.4rem 0 0; position: relative; }
.lp-steps li::before {
  content: counter(lp-step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 2px solid var(--lp-orange); color: #fff; font-family: var(--display); font-weight: 800; margin-bottom: 1rem;
  background: var(--lp-navy); position: relative; z-index: 1;
}
.lp-steps li::after { content: ""; position: absolute; top: 1.2rem; left: 2.4rem; right: 0; height: 2px; background: rgba(254,98,2,.35); }
.lp-steps li:last-child::after { display: none; }
.lp-steps h3 { font-weight: 800; font-size: 1.1rem; margin: 0 0 .4rem; }
.lp-steps p { margin: 0; color: var(--lp-dim); line-height: 1.55; font-size: .95rem; }

/* ---------- What's included ---------- */
.lp-pricing { padding: clamp(3rem, 7vw, 4.5rem) 0; background: var(--lp-navy-deep); scroll-margin-top: 70px; }
.lp-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.lp-plan { display: flex; flex-direction: column; padding: 1.5rem 1.35rem; border-radius: 10px; background: var(--lp-navy); border: 1px solid var(--lp-line); }
.lp-plan-pro { border-color: rgba(254,98,2,.6); }
.lp-plan h3 { font-weight: 800; font-size: 1.12rem; line-height: 1.2; margin: 0; min-height: 2.4em; }
.lp-plan-price { font-family: var(--display); font-stretch: var(--lp-wide); font-weight: 850; font-size: 2.2rem; margin: .5rem 0 1rem; }
.lp-plan ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.lp-plan li { position: relative; padding-left: 1.2rem; color: var(--lp-dim); font-size: .93rem; line-height: 1.45; }
.lp-plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--lp-orange); }
.lp-plan .lp-btn { margin-top: auto; width: 100%; }
.lp-note { color: var(--lp-dim); font-size: .9rem; line-height: 1.6; margin: 1.6rem 0 0; max-width: 70em; }
.lp-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Closing ---------- */
.lp-close { padding: clamp(3rem, 7vw, 4.5rem) 0; border-top: 1px solid var(--lp-line); }
.lp-close-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 2rem; align-items: center; }
.lp-close p { margin: 0; color: var(--lp-dim); grid-column: 1; }
.lp-close .lp-btn { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-plan h3 { min-height: 0; }
}
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-play { display: none; }
  .lp-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-audience-head { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .lp-audience-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 0; }
  .lp-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .lp-hero { padding-top: 1.4rem; }
  .lp-lede { margin: .8rem 0 1.1rem; font-size: 1rem; }
  .lp-actions { gap: .5rem; }
  .lp-actions .lp-btn { flex: 1 1 0; padding: .7rem .6rem; font-size: .92rem; min-height: 2.9rem; }
  .lp-courses { gap: .55rem; margin-top: 1.2rem; }
  .lp-course { padding: .8rem .8rem .75rem; gap: .25rem; }
  .lp-course-desc { display: none; }
  .lp-course-for { font-size: .78rem; }
  .lp-course-name { font-size: .98rem; }
  .lp-course-price { font-size: 1.15rem; }
  .lp-course-meta { font-size: .78rem; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); }
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .lp-steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1rem; padding: 0; }
  .lp-steps li::before { grid-row: 1 / span 2; margin: 0; }
  .lp-steps li::after { display: none; }
  .lp-close-inner { grid-template-columns: minmax(0, 1fr); }
  .lp-close .lp-btn { grid-column: 1; grid-row: auto; margin-top: .8rem; }
}
.page-home .news-form .btn-lime { background: var(--lp-orange); color: #fff; }
.page-home .news-form .btn-lime:hover { background: var(--lp-orange-hi); }
.page-home .footer-legal a:hover, .page-home .footer-col a:hover { color: var(--lp-orange-hi); }

/* ---------- Season tracker card (scroll-triggered) ---------- */
.lp-season-sec { padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem); }
.lp-season-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.lp-season-copy p { color: var(--lp-dim); font-size: 1.05rem; line-height: 1.6; max-width: 32em; margin: 1rem 0 1.3rem; }
.lp-season-link { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--lp-orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lp-season-link:hover { color: var(--lp-orange-hi); }
.lp-season-link:focus-visible { outline: 3px solid var(--lp-orange-hi); outline-offset: 3px; }

.lp-season { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.lp-season .pb-panel {
  max-width: none; background: linear-gradient(165deg, #0f2d5c, #071a3a);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 24px 50px rgba(0,8,24,.55), 0 0 0 1px rgba(254,98,2,.12), 0 0 70px rgba(254,98,2,.10);
}
.lp-season .pb-live { color: var(--lp-dim); }
.lp-season .pb-live i { background: var(--lp-orange); animation-name: lpPulse; }
.lp-season .pb-brand { color: #ffb37a; }
.lp-season .pb-bal-label, .lp-season .pb-stat-cap { color: var(--lp-dim); }
.lp-season .pb-bal-figure em { color: var(--lp-orange); }
.lp-season .pb-bal-figure i { background: linear-gradient(180deg, #ff9a52, #5f86c4); box-shadow: 0 0 8px rgba(254,98,2,.25); }
.lp-season .pb-bal-trend { color: #ffb37a; }
.lp-season .pb-tip { fill: var(--lp-orange); filter: drop-shadow(0 0 5px rgba(254,98,2,.8)); }
.lp-season .pb-stat { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.lp-season .pb-stat-ico { color: var(--lp-orange); }
.lp-season .pb-float-deal { background: #0c2a5a; border-color: rgba(255,255,255,.16); border-left-color: var(--lp-orange); color: var(--lp-dim); }
.lp-season .pb-float-deal b { color: #ffb37a; }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(254,98,2,.55); } 70%,100% { box-shadow: 0 0 0 7px rgba(254,98,2,0); } }

/* Hold every animation until the card scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .lp-season .pb-panel { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .lp-season.is-on .pb-panel { opacity: 1; transform: none; }
  .lp-season .pb-bal-figure i, .lp-season .pb-trend, .lp-season .pb-area, .lp-season .pb-tip,
  .lp-season .pb-float, .lp-season .pb-live i { animation-play-state: paused; }
  .lp-season.is-on .pb-bal-figure i, .lp-season.is-on .pb-trend, .lp-season.is-on .pb-area, .lp-season.is-on .pb-tip,
  .lp-season.is-on .pb-float, .lp-season.is-on .pb-live i { animation-play-state: running; }
}

@media (max-width: 900px) {
  .lp-season-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-season { max-width: 380px; }
}
@media (max-width: 560px) {
  .lp-season { max-width: 330px; }
  .lp-season .pb-float-deal { top: -24px; }
}
