/* Root landing page only — does not alter other workbook hubs */

:root {
  --lp-ink: #12261c;
  --lp-forest: #1a4a32;
  --lp-leaf: #2a8f5c;
  --lp-moss: #4f7a63;
  --lp-sand: #e8efe9;
  --lp-paper: #f3f7f4;
  --lp-clay: #c45c26;
  --lp-gold: #c9a227;
  --lp-white: #ffffff;
  --lp-max: 70rem;
  --lp-radius: 0.75rem;
  --lp-font-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --lp-font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  .lp-hero__visual,
  .lp-wave,
  .lp-reveal {
    animation: none !important;
  }
}

body.lp {
  margin: 0;
  color: var(--lp-ink);
  font-family: var(--lp-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(120% 80% at 100% -10%, #d7ebe0 0%, transparent 55%),
    radial-gradient(90% 70% at -10% 20%, #f0e6d4 0%, transparent 50%),
    linear-gradient(180deg, #eef5f0 0%, var(--lp-paper) 35%, #e7f0ea 100%);
}

.lp a:focus-visible {
  outline: 3px solid var(--lp-gold);
  outline-offset: 3px;
}

/* Landing uses the shared sticky navbar; keep it above the hero waves */
.lp .wb-nav {
  position: sticky;
  top: 0;
  z-index: 20;
}

.lp-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lp-forest);
  color: var(--lp-white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.lp-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Hero ——— */
.lp-hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 2rem 1.25rem 4rem;
}

.lp-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.lp-wave svg {
  position: absolute;
  width: 120%;
  height: auto;
  left: -10%;
  top: -8%;
  animation: lp-drift 18s ease-in-out infinite alternate;
}

.lp-wave__secondary {
  top: 12%;
  opacity: 0.55;
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

@keyframes lp-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-2.5%, 1.5%, 0);
  }
}

.lp-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--lp-max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.lp-brand {
  margin: 0 0 1rem;
  color: var(--lp-forest);
  font-family: var(--lp-font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lp-hero h1 {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  color: var(--lp-ink);
  font-family: var(--lp-font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lp-hero__lede {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--lp-moss);
  font-size: 1.08rem;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--lp-radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lp-btn:hover {
  transform: translateY(-1px);
}

.lp-btn--primary {
  background: var(--lp-forest);
  color: var(--lp-white);
}

.lp-btn--primary:hover {
  background: var(--lp-leaf);
}

.lp-btn--ghost {
  background: transparent;
  color: var(--lp-forest);
  border: 1.5px solid var(--lp-moss);
}

.lp-btn--ghost:hover {
  background: var(--lp-forest);
  color: var(--lp-white);
  border-color: var(--lp-forest);
}

.lp-open {
  margin: 1.25rem 0 0;
  color: var(--lp-moss);
  font-size: 0.95rem;
}

.lp-open strong {
  color: var(--lp-forest);
  font-weight: 700;
}

.lp-hero__visual {
  justify-self: center;
  width: min(100%, 28rem);
  animation: lp-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lp-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-hero__copy {
  animation: lp-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ——— Path strip ——— */
.lp-path {
  width: min(var(--lp-max), calc(100% - 2rem));
  margin: -1.5rem auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--lp-white) 88%, transparent);
  border: 1px solid #c5d4cb;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.lp-path a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  color: var(--lp-forest);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.lp-path a:hover {
  background: var(--lp-forest);
  color: var(--lp-white);
}

.lp-path span {
  display: block;
  margin-top: 0.2rem;
  color: var(--lp-moss);
  font-weight: 500;
  font-size: 0.78rem;
}

.lp-path a:hover span {
  color: #dceadd;
}

/* ——— Feature sections ——— */
.lp-main {
  width: min(var(--lp-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.lp-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: center;
}

.lp-section--flip .lp-section__media {
  order: 2;
}

.lp-section--flip .lp-section__body {
  order: 1;
}

.lp-kicker {
  margin: 0 0 0.45rem;
  color: var(--lp-leaf);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-section h2 {
  margin: 0 0 0.65rem;
  color: var(--lp-ink);
  font-family: var(--lp-font-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lp-section p {
  margin: 0 0 1rem;
  color: var(--lp-moss);
  max-width: 36rem;
}

.lp-bullets {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.lp-bullets li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--lp-ink);
  font-size: 0.98rem;
}

.lp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--lp-leaf);
}

.lp-section__media {
  justify-self: center;
  width: min(100%, 24rem);
}

.lp-section__media img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-reveal {
  animation: lp-rise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

/* Fallback when animation-timeline unsupported — still animate once on load for first sections via delay */
@supports not (animation-timeline: view()) {
  .lp-reveal {
    animation: lp-rise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* ——— Footer ——— */
.lp-footer {
  border-top: 1px solid #c5d4cb;
  background: color-mix(in srgb, var(--lp-sand) 70%, var(--lp-white));
  padding: 2rem 1.25rem 2.5rem;
}

.lp-footer__inner {
  width: min(var(--lp-max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.lp-footer p {
  margin: 0;
  color: var(--lp-moss);
  font-size: 0.95rem;
}

.lp-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.lp-footer a {
  color: var(--lp-forest);
  font-weight: 700;
  text-decoration: none;
}

.lp-footer a:hover {
  color: var(--lp-clay);
  text-decoration: underline;
}

@media (max-width: 52rem) {
  .lp-hero__inner,
  .lp-section,
  .lp-section--flip {
    grid-template-columns: 1fr;
  }

  .lp-section--flip .lp-section__media,
  .lp-section--flip .lp-section__body {
    order: initial;
  }

  .lp-hero {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  .lp-hero__visual {
    order: -1;
    width: min(100%, 20rem);
  }

  .lp-path {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .lp-main {
    gap: 3.25rem;
    padding-top: 2.75rem;
  }
}

@media (max-width: 28rem) {
  .lp-path {
    grid-template-columns: 1fr;
  }

  .lp-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-btn {
    width: 100%;
  }
}
