/* /guide/style.css — only what the guide page needs. Uses join tokens (--join-*). */

/* Hero: mint background and spacing */
.guide-page .guide-hero {
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  background: var(--join-mint, #cfe6d7);
  color: var(--join-ink);
  text-align: left;
}

.guide-page .guide-hero .container {
  padding-left: clamp(3rem, 9vw, 6rem);
  padding-right: clamp(3rem, 9vw, 6rem);
}

.guide-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Two columns: copy left, image right (desktop) */
.guide-hero__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 767px) {
  .guide-hero__columns {
    gap: 0.75rem;
  }
}

.guide-hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.guide-hero__image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--join-radius-sm, 12px);
}

@media (min-width: 768px) {
  .guide-hero__columns {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

/* Form in its own row below text and image, centred */
.guide-hero__form-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.guide-hero__form-row .guide-form-wrap {
  margin-top: 0;
  width: 100%;
}

/* Desktop: form same width as one column (matches image column above) */
@media (min-width: 768px) {
  .guide-hero__form-row .guide-form-wrap {
    max-width: calc((100% - 2.5rem) / 2);
  }
}

.guide-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 2rem 0;
  color: var(--primary-color);
  text-align: center;
}

.guide-hero__subhead {
  margin: 0 0 1.25rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--join-ink);
}

.guide-hero__body {
  margin: 0 0 1.5rem 0;
}

.guide-hero__body p {
  margin: 0 0 0.65rem 0;
  color: var(--join-muted, rgba(23, 48, 26, 0.72));
  font-size: 1.05rem;
  line-height: 1.5;
}

.guide-hero__strapline {
  margin: 0 0 1.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 0.02em;
}

/* "The hidden cost" — indented bullet list */
.guide-list {
  list-style: disc;
  padding-left: 2rem;
  margin: 0.5rem 0 1rem 0;
}

.guide-list li {
  margin: 0.25rem 0;
  color: var(--join-muted);
  font-size: 1.05rem;
}

/* Form block (reuses join .downsell__form look) */
.guide-form-wrap {
  margin-top: 0.5rem;
}

.guide-form-inner {
  border-radius: var(--join-radius-lg);
  overflow: hidden;
  display: block; /* Ensure container is visible */
  min-height: 1px; /* Ensure container has height even if empty initially */
}

.guide-page .guide-form.downsell__form {
  padding: 0.75rem 0.75rem 1rem;
  margin: 0;
  display: block; /* Ensure form wrapper is visible */
  min-height: 1px; /* Ensure wrapper has height */
}

/* Ensure Klaviyo form container is visible and has proper display */
.guide-page .guide-form.downsell__form .klaviyo-form-RL2xER {
  display: block !important;
  min-height: 1px; /* Ensure container has height even if empty initially */
  padding-top: 0 !important;
  margin-top: -0.5rem !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.guide-page .guide-form.downsell__form .klaviyo-form-RL2xER form,
.guide-page .guide-form.downsell__form .klaviyo-form-RL2xER > div {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove gap below button so "Unsubscribe anytime." sits closer */
.guide-page .guide-form.downsell__form button[type="submit"],
.guide-page .guide-form.downsell__form input[type="submit"] {
  margin-bottom: 0 !important;
}

.guide-page .guide-form.downsell__form {
  padding-top: 0 !important;
}

/* Desktop only: tighter form box — narrower width and less side padding */
@media (min-width: 1024px) {
  .guide-page .guide-form-wrap .guide-form-inner {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .guide-page .guide-form.downsell__form {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .guide-page .guide-form.downsell__form .klaviyo-form-RL2xER,
  .guide-page .guide-form.downsell__form form {
    max-width: 100%;
  }
}

.guide-form__microcopy {
  margin: 0.75rem 0 0 0;
  font-size: 0.9rem;
  color: var(--join-muted);
  text-align: center;
}

/* Microcopy inside the green box: halfway between button and bottom */
.guide-page .guide-form.downsell__form {
  display: flex;
  flex-direction: column;
}

.guide-page .guide-form.downsell__form .guide-form__microcopy--inside {
  margin: -0.25rem 0 0.75rem 0 !important;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  order: 10;
}

.guide-page .guide-form.downsell__form {
  padding-bottom: 0.75rem !important;
}

.guide-form-success {
  padding: 1.5rem 1.25rem;
  background: var(--join-mint-2, #bfe0cc);
  border-radius: var(--join-radius-lg);
  text-align: center;
}

.guide-form-success__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.guide-form-success[hidden] {
  display: none !important;
}

.guide-form-fallback {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}

.guide-form-fallback a {
  color: #8BD973;
  text-decoration: underline;
}

.guide-page .guide-form--show-fallback .klaviyo-form-RL2xER {
  display: none !important;
}

.guide-page .guide-form--show-fallback .downsell__form-fallback,
.guide-page .guide-form--show-fallback .guide-form-fallback {
  display: block !important;
}

/* Sections: spacing and prose */
.guide-page .guide-section {
  padding: clamp(1.5rem, 4vw, 2.25rem) 0;
}

.guide-page .guide-section .container {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.guide-prose {
  margin: 0 0 1rem 0;
}

.guide-prose p {
  margin: 0 0 0.6rem 0;
  color: var(--join-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.guide-prose--intro {
  margin-bottom: 1.25rem;
  font-weight: 500;
  color: var(--join-ink);
}

.guide-join-link {
  margin: 1.25rem 0 0 0 !important;
}

.guide-join-link a {
  font-size: 0.95rem;
  color: var(--primary-color);
  text-decoration: underline;
}

.guide-join-link a:hover {
  text-decoration: none;
}

.guide-section--cta {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.guide-cta-scroll {
  margin: 1.5rem 0 0 0;
}

.guide-form__footer-line {
  margin: 1rem 0 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--join-muted);
  text-align: center;
}

@media (max-width: 767px) {
  .guide-hero__title,
  .guide-hero__subhead,
  .guide-page .guide-section .section-title {
    text-align: center;
  }
}
