/* aib-home.css: the homepage only ("SystemHome", zigzag-lite).
 * Loads after aib-system.css and aib-page.css. Kept in its own file so the
 * homepage can be reverted on its own. Everything is aib-home- prefixed.
 */

/* ---------- Hero ---------- */
.aib-home-hero {
  position: relative;
  overflow: hidden;
  padding: var(--aib-space-7) 0 var(--aib-space-6);
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(58, 166, 218, 0.18), transparent 65%),
    linear-gradient(180deg, var(--aib-navy) 0%, var(--aib-navy-deep) 100%);
  border-bottom: 1px solid var(--aib-line-soft);
}
.aib-home-eyebrow {
  margin: 0 0 var(--aib-space-3);
  color: var(--aib-teal-soft);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.aib-home-headline {
  max-width: 20ch;
  margin: 0 auto var(--aib-space-4);
  color: var(--aib-white);
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.aib-home-headline .aib-highlight { color: var(--aib-gold); }
.aib-home-sub {
  max-width: 54ch;
  margin: 0 auto var(--aib-space-5);
  color: var(--aib-read);
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.6;
}
.aib-home-hero .aib-actions { justify-content: center; }

/* Panoramic dotted trail with waypoints, a gold Day 30 flag and Buck. */
.aib-home-trail {
  position: relative;
  max-width: 1080px;
  margin: var(--aib-space-6) auto 0;
  padding: 0 var(--aib-space-4);
}
.aib-home-trail svg { display: block; width: 100%; height: auto; }
.aib-home-buck {
  position: absolute;
  left: 2%;
  bottom: 6%;
  width: clamp(64px, 9vw, 110px);
  height: auto;
}
.aib-home-trail .trail-path { stroke-dasharray: 2 14; animation: aib-trail-in 600ms var(--aib-ease) both; }
.aib-home-trail .waypoint { animation: aib-rise 520ms var(--aib-ease) both; }
.aib-home-trail .waypoint:nth-of-type(2) { animation-delay: 80ms; }
.aib-home-trail .waypoint:nth-of-type(3) { animation-delay: 160ms; }
.aib-home-trail .waypoint:nth-of-type(4) { animation-delay: 240ms; }
@keyframes aib-trail-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.aib-home-section { padding: var(--aib-space-7) 0; }
.aib-home-section + .aib-home-section { border-top: 1px solid var(--aib-line-soft); }
.aib-home-kicker {
  margin: 0 0 var(--aib-space-2);
  color: var(--aib-teal-soft);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.aib-home-h2 { margin: 0 0 var(--aib-space-3); color: var(--aib-white); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.aib-home-lead { max-width: 60ch; margin: 0 0 var(--aib-space-5); color: var(--aib-read); }
.aib-home-section a:not(.aib-btn) { color: var(--aib-teal-soft); text-decoration: underline; text-decoration-color: rgba(127, 220, 214, 0.45); text-underline-offset: 0.2em; }
.aib-home-section a:not(.aib-btn):hover,
.aib-home-section a:not(.aib-btn):focus-visible { color: var(--aib-white); text-decoration-color: currentColor; }

/* Five compact week stops, zigzag-lite */
.aib-home-stops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--aib-space-4);
  margin: var(--aib-space-5) 0 var(--aib-space-4);
  padding: 0 0 var(--aib-space-5);   /* room for the half-step offset on even stops */
  list-style: none;
}
@media (max-width: 980px) { .aib-home-stops { padding-bottom: 0; } }
.aib-home-stop {
  position: relative;
  padding: var(--aib-space-5) var(--aib-space-4);
  background: var(--aib-panel);
  border: 1px solid var(--aib-line);
  border-radius: var(--aib-radius-md);
}
.aib-home-stop:nth-child(even) { transform: translateY(var(--aib-space-5)); }
.aib-home-stop-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: var(--aib-space-3);
  border-radius: 50%;
  background: var(--aib-teal);
  color: var(--aib-navy);
  font-weight: 900;
}
.aib-home-stop:last-child { border-color: rgba(245, 185, 58, 0.5); }
.aib-home-stop:last-child .aib-home-stop-num { background: var(--aib-gold); }
.aib-home-stop-label { margin: 0 0 var(--aib-space-1); color: var(--aib-teal-soft); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.aib-home-stop-title { margin: 0 0 var(--aib-space-2); color: var(--aib-white); font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.aib-home-stop-sub { margin: 0; color: var(--aib-muted); font-size: 0.92rem; line-height: 1.5; }
.aib-home-more { margin: var(--aib-space-6) 0 0; }

/* Course band with launch-price ticket */
.aib-home-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--aib-space-6);
  align-items: center;
  padding: var(--aib-space-6);
  background: linear-gradient(135deg, var(--aib-panel) 0%, var(--aib-panel-lift) 100%);
  border: 1px solid var(--aib-line);
  border-radius: var(--aib-radius-lg);
}
.aib-home-ticket {
  padding: var(--aib-space-5);
  text-align: center;
  background: var(--aib-navy-deep);
  border: 2px dashed rgba(245, 185, 58, 0.6);
  border-radius: var(--aib-radius-md);
}
.aib-home-price { margin: 0; color: var(--aib-gold); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.aib-home-price-note { margin: var(--aib-space-2) 0 var(--aib-space-4); color: var(--aib-read); font-size: 0.95rem; }
.aib-home-ticket .aib-actions { justify-content: center; }

/* Library strip and free guides */
.aib-home-library,
.aib-home-guides {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--aib-space-4);
  margin: var(--aib-space-5) 0;
  padding: 0;
  list-style: none;
}
.aib-home-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aib-home-library .aib-card,
.aib-home-guides .aib-card { height: 100%; box-sizing: border-box; }
.aib-home-moreguides { columns: 2; column-gap: var(--aib-space-6); margin: var(--aib-space-4) 0 0; padding-left: 1.2em; color: var(--aib-read); }
.aib-home-moreguides li { margin: 0 0 var(--aib-space-2); break-inside: avoid; }

/* Closing call to action */
.aib-home-closing { text-align: center; }
.aib-home-closing .aib-actions { justify-content: center; }

/* Contact (keeps the existing Netlify form markup) */
.aib-home-contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--aib-space-5); }
.aib-home-contact form { display: grid; gap: var(--aib-space-4); }
.aib-home-contact label { display: grid; gap: var(--aib-space-2); color: var(--aib-read); font-weight: 600; }
.aib-home-contact input[type="email"],
.aib-home-contact textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--aib-line);
  border-radius: var(--aib-radius-sm);
  background: var(--aib-navy-deep);
  color: var(--aib-white);
  font: 400 1rem/1.4 var(--aib-font);
}
.aib-home-contact button {
  justify-self: start;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--aib-teal);
  border-radius: var(--aib-radius-pill);
  background: var(--aib-teal);
  color: var(--aib-navy);
  font: 800 0.95rem/1.2 var(--aib-font);
  cursor: pointer;
}
.aib-home-contact button:hover { background: var(--aib-teal-soft); border-color: var(--aib-teal-soft); }
.aib-home-contact .aib-card a { word-break: break-word; }
.aib-home-social { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--aib-space-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .aib-home-stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aib-home-stop:nth-child(even) { transform: none; }
  .aib-home-band,
  .aib-home-contact { grid-template-columns: 1fr; }
  .aib-home-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aib-home-guides { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .aib-home-stops,
  .aib-home-library { grid-template-columns: 1fr; }
  .aib-home-moreguides { columns: 1; }
  .aib-home-band { padding: var(--aib-space-5) var(--aib-space-4); }
  .aib-home-buck { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .aib-home-trail .trail-path,
  .aib-home-trail .waypoint,
  .aib-home-contact button,
  .aib-home-section a { animation: none; transition: none; }
}
