/* ═══════════════════════════════════════════════════════════════
   landing.css  —  Block-based landing page styles
   Loaded only on type = "landing" pages via the head-extra block.
   All classes are namespaced with  lp-  to avoid collision.
   ═══════════════════════════════════════════════════════════════ */


/* ── Shared button additions ──────────────────────────────────── */

/* Larger CTA variant used throughout landing pages */
.lp-btn--lg {
  padding: 0.82rem 1.8rem;
  font-size: 1.05rem;
}

/* Full-width button (used inside :free block) */
.lp-btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Ghost / outline variant — secondary CTA */
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(0,0,0,0.04);
}


/* ── Shared polished image card ───────────────────────────────── */
.lp-img-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(44,30,20,0.07),
    0 10px 32px rgba(44,30,20,0.11);
  background: var(--color-border);
  line-height: 0;        /* removes ghost space below inline images */
}

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

/* Hero image card: taller aspect ratio, slight warm tint fallback */
.lp-img-card--hero {
  border-radius: 20px;
}


/* ══════════════════════════════════════════════════════════════════
   1 · HERO
   ══════════════════════════════════════════════════════════════════ */

.lp-hero {
  background: #ffffff;
  padding: 3rem 0 3.75rem;
}

.lp-hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.lp-hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.13;
  margin: 0;
  max-width: 14ch;
}

.lp-hero__divider {
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: #2d4f35;
  margin: 1.1rem 0;
}

.lp-hero__lead {
  color: var(--color-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 1.6rem;
  max-width: 46ch;
}

.lp-hero__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

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


/* ══════════════════════════════════════════════════════════════════
   2 · REASSURANCE STRIP
   ══════════════════════════════════════════════════════════════════ */

.lp-reassurance {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.6rem 0;
}

.lp-reassurance__inner {
  display: flex;
}

.lp-reassurance__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  padding: 0 1.75rem;
  border-right: 1px solid var(--color-border);
}

.lp-reassurance__item:first-child { padding-left: 0; }
.lp-reassurance__item:last-child  { border-right: none; padding-right: 0; }

.lp-reassurance__icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  margin-top: 0.1rem;
}

.lp-reassurance__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lp-reassurance__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.lp-reassurance__text {
  margin: 0.18rem 0 0;
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════════
   3 · REGULAR ALTERNATING SECTIONS
   ══════════════════════════════════════════════════════════════════ */

.lp-section {
  background: #ffffff;
  padding: 5rem 0;
}

/* Thin separator between adjacent white sections */
.lp-section + .lp-section {
  border-top: 1px solid var(--color-border);
}

.lp-section__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

/* ── Flip: image becomes left column ── */
.lp-section--flip .lp-section__media {
  order: -1;
}

/* ── Heading ── */
.lp-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.18;
  margin: 0 0 0.9rem;
  color: var(--color-text);
}

/* ── Prose ── */
.lp-section__body {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.lp-section__body p {
  margin: 0 0 0.85rem;
}

.lp-section__body p:last-child {
  margin-bottom: 0;
}

.lp-section__body ul,
.lp-section__body ol {
  padding-left: 0;
  list-style: none;
  margin: 0.6rem 0 0.9rem;
}

.lp-section__body li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
}

/* Filled checkmark bullet */
.lp-section__body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #2d4f35;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.lp-section__body ol li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: #2d4f35;
}

.lp-section__body strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Arrow-link: a paragraph whose only child is a link acts as a section footer CTA */
.lp-section__body p:last-of-type > a:only-child {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: #2d4f35;
  text-decoration: none;
  margin-top: 0.25rem;
}

.lp-section__body p:last-of-type > a:only-child::after {
  content: '→';
  transition: transform 0.15s ease;
}

.lp-section__body p:last-of-type > a:only-child:hover::after {
  transform: translateX(3px);
}

.lp-section__body p:last-of-type > a:only-child:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Image */
.lp-section__image {
  width: 100%;
  height: auto;
  display: block;
}

/* Text-only (no image): narrow the column */
.lp-section--text-only .lp-section__container {
  grid-template-columns: 1fr;
  max-width: 680px;
}


/* ══════════════════════════════════════════════════════════════════
   4 · MID-PAGE CTA STRIP
   Injected automatically before the 3rd regular content section.
   ══════════════════════════════════════════════════════════════════ */

.lp-mid-cta {
  background: #eef5f0;
  border-top: 1px solid #c4d8c9;
  border-bottom: 1px solid #c4d8c9;
  padding: 2.5rem 0;
}

.lp-mid-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.lp-mid-cta__prompt {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--color-text);
  line-height: 1.3;
}

.lp-mid-cta__note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}


/* ══════════════════════════════════════════════════════════════════
   5 · FULL-WIDTH STORY BLOCK  [:fw]
   Big atmospheric photo with left-aligned text overlay.
   ══════════════════════════════════════════════════════════════════ */

.lp-fullwidth {
  background-color: #2b2218;       /* warm-dark fallback if no image */
  background-size: cover;
  background-position: center;
  position: relative;
}

.lp-fullwidth__overlay {
  background: linear-gradient(
    110deg,
    rgba(15,10,6,0.76) 38%,
    rgba(15,10,6,0.30) 100%
  );
  padding: 6rem 0;
}

.lp-fullwidth__container {
  max-width: 600px;
}

.lp-fullwidth__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.14;
  margin: 0 0 1rem;
  color: #ffffff;
}

.lp-fullwidth__body {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  line-height: 1.72;
}

.lp-fullwidth__body p {
  margin: 0 0 0.8rem;
}

.lp-fullwidth__body p:last-child {
  margin-bottom: 0;
}

.lp-fullwidth__body a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-fullwidth__body strong {
  color: #fff;
}


/* ══════════════════════════════════════════════════════════════════
   6 · FREE-START BLOCK  [:free]
   Centred, warm-toned, with a decorative avatar row.
   ══════════════════════════════════════════════════════════════════ */

.lp-free-start {
  background: var(--color-bg);
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.lp-free-start__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.lp-free-start__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.18;
  margin: 0 0 0.6rem;
  color: var(--color-text);
}

.lp-free-start__body {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.lp-free-start__body p {
  margin: 0 0 0.75rem;
}

.lp-free-start__body ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem auto;
  display: inline-block;
  text-align: left;
}

.lp-free-start__body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
}

.lp-free-start__body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2d4f35;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── Avatar row ── */
.lp-free-start__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;              /* overlap is handled by .lp-avatar negative margins */
  flex-wrap: nowrap;
  margin-top: 0.25rem;
}

.lp-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2.5px solid var(--color-bg);
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: -0.45rem;
  position: relative;
}

.lp-avatar:first-child {
  margin-left: 0;
}

/* Colourful per-slot palette */
.lp-avatar--1  { background: #b3d4bc; }
.lp-avatar--2  { background: #d4c0a0; }
.lp-avatar--3  { background: #a3b8d4; }
.lp-avatar--4  { background: #d4a8b8; }
.lp-avatar--5  { background: #b8d4a3; }
.lp-avatar--6  { background: #d4c8a0; }
.lp-avatar--7  { background: #a0bfd4; }
.lp-avatar--8  { background: #d4a8a8; }

/* Tiny silhouette icon drawn purely in CSS */
.lp-avatar:not(.lp-avatar--more)::before {
  content: '';
  display: block;
  width: 45%;
  height: 45%;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  position: absolute;
  top: 18%;
}

.lp-avatar:not(.lp-avatar--more)::after {
  content: '';
  display: block;
  width: 68%;
  height: 40%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgba(255,255,255,0.45);
  position: absolute;
  bottom: 0;
}

.lp-avatar--more {
  background: var(--color-border);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── CTA area ── */
.lp-free-start__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 300px;
}

.lp-free-start__note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-muted);
}


/* ══════════════════════════════════════════════════════════════════
   7 · FINAL CTA BLOCK  [:cta]
   Full-bleed atmospheric photo, centred, white-on-dark, white button.
   ══════════════════════════════════════════════════════════════════ */

.lp-final-cta {
  background-color: #18110c;    /* warm-dark fallback */
  background-size: cover;
  background-position: center top;
  position: relative;
}

.lp-final-cta__overlay {
  background: linear-gradient(
    to bottom,
    rgba(8,5,3,0.50) 0%,
    rgba(8,5,3,0.72) 60%,
    rgba(8,5,3,0.82) 100%
  );
  padding: 7rem 0;
}

.lp-final-cta__container {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.lp-final-cta__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.13;
  color: #ffffff;
  margin: 0 0 1rem;
}

.lp-final-cta__body {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.68;
  margin-bottom: 2.2rem;
}

.lp-final-cta__body p {
  margin: 0 0 0.7rem;
}

.lp-final-cta__btn {
  background: #ffffff;
  color: #2d4f35;
  border-color: #ffffff;
  padding: 0.9rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
}

.lp-final-cta__btn:hover,
.lp-final-cta__btn:focus-visible {
  background: #f0f9f2;
  border-color: #f0f9f2;
  color: #2d4f35;
}

.lp-final-cta__note {
  margin: 1.1rem 0 0;
  color: rgba(255,255,255,0.48);
  font-size: 0.87rem;
}


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {

  /* Hero: stack vertically */
  .lp-hero__container {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .lp-hero__heading {
    max-width: none;
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  /* Regular sections: stack vertically, image always below text */
  .lp-section__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Reset flip order — text stays above image on all small screens */
  .lp-section--flip .lp-section__media {
    order: unset;
  }

  /* Reassurance: 2-column grid */
  .lp-reassurance__inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .lp-reassurance__item {
    flex: 0 0 50%;
    padding: 1rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .lp-reassurance__item:nth-child(odd)  { border-right: 1px solid var(--color-border); }
  .lp-reassurance__item:nth-child(odd):last-child { border-right: none; }
  .lp-reassurance__item:nth-last-child(-n+2) { border-bottom: none; }
  .lp-reassurance__item:first-child  { padding-left: 1.25rem; }
  .lp-reassurance__item:last-child   { padding-right: 1.25rem; }

  .lp-section--text-only .lp-section__container {
    max-width: none;
  }
}

@media (max-width: 560px) {

  .lp-hero        { padding: 2rem 0 2.75rem; }
  .lp-section     { padding: 3.25rem 0; }
  .lp-free-start  { padding: 3.5rem 0; }

  .lp-fullwidth__overlay  { padding: 4rem 0; }
  .lp-final-cta__overlay  { padding: 5rem 0; }

  .lp-section__container  { gap: 1.5rem; }

  /* Reassurance: single column */
  .lp-reassurance__item {
    flex: 0 0 100%;
    border-right: none !important;
  }
  .lp-reassurance__item:last-child { border-bottom: none; }

  /* Avatars: allow wrap when very narrow */
  .lp-free-start__avatars {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }

  .lp-avatar {
    margin-left: 0;
  }
}

