/* ==========================================================
   WELCOME / INVITATION PAGE — page-specific styles
   Loaded after style.css
   Only contains things that aren't already covered by globals.
   ========================================================== */


/* ==========================================================
   HERO — text-only variant
   ========================================================== */
.hero-welcome .hero-inner{
  /* slightly tighter than landing hero, since no image */
  gap: 0.75rem;
  padding: var(--space-s) 0 var(--space-xs);
}

.hero-welcome .callout{
  margin-bottom: var(--space-xs);
   max-width: 80%;
}

.hero-welcome h1.site-title{
  /* allow heading to breathe a bit more on a text-only hero */
  line-height: 1.05;
  margin-bottom: var(--space-xs);
  font-size: var(--fs-h2);
}

.hero-welcome .text-program-hero{
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.hero-welcome-why{
  margin: var(--space-s) auto 0;
  max-width: 720px;
  text-align: center;
}

.hero-welcome-why .why-item{
  margin-bottom: var(--space-xs);
}

.hero-welcome-why .why-item h3{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  line-height: 1.15;
  color: var(--color-blue);
  margin: 0;
}

.hero-welcome .separator { width:50%;height:1px;margin:8px auto;background: var(--color-bridge);}
.hero-welcome .separator-short { width:30%;height:1px;margin:8px auto;background:var(--color-bridge);}

@media (max-width: 600px){
  .hero-welcome-why{
    max-width: 100%;
    padding: 0 var(--space-xs);
  }
}


/* ==========================================================
   FEATURES — purpose line under tier label
   ========================================================== */
/* Tier-purpose is now an <h3> — styled to feel like a tier subtitle,
   matching the visual weight of feature card titles in program.html */
.features-tier-purpose{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-style: normal;
  color: var(--color-softblue);
  text-align: center;
  margin: 0 0 var(--space-s) 0;
  line-height: 1.2;
  padding: 0 var(--space-xs);
}

.features-note{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-softblue);
  text-align: center;
  margin: var(--space-s) auto 0;
  max-width: 80%;
  line-height: 1.2;
}


/* ==========================================================
   APPROACH — recap pillars
   Reuses the .why-item / .why-bullet / .why-text pattern from
   the homepage (defined in style.css). This section hook is left
   for any small tweaks specific to the welcome page if needed.
   ========================================================== */

.approach .separator { width:50%;height:1px;margin:8px auto;background: var(--color-bridge);}
.approach .separator-short { width:30%;height:1px;margin:8px auto;background:var(--color-bridge);}

/* ==========================================================
   PRICING — extras for invitation page
   ========================================================== */

/* List inside pricing card description */
.pricing-list{
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.pricing-list li{
  position: relative;
  margin: 0.5rem 0;
  padding: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  color: var(--color-muted);
}

.pricing-list li::before{
  content: "";
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-bridge);
  margin: 0 auto 0.25rem auto;
}
/* Featured card pricing list — slight contrast adjustment */
.card-pricing.card--featured .pricing-list li{
  color: var(--color-blue);
}

/* Price block */
.card-pricing__price .price-main{
  font-family: var(--ff-accent);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--color-blue);
  margin: 0 0 0.15rem 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.card-pricing__price .pricing-plan{
  font-family: var(--ff-base);
  font-size: var(--fs-footer-meta);
  color: var(--color-bridge);
  margin: 0;
  line-height: 1.2;
}

/* ==========================================================
   PRICING CARD — new content hierarchy
   - narrative paragraph: body text, soft, descriptive
   - questions paragraph: visually elevated as h3-style — soft-blue,
  slightly larger — the emotional hook of each card
   ========================================================== */
.card-pricing__narrative{
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 var(--space-xs) 0;
  text-align: center;
}

.card-pricing__questions{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-blue);
  margin: 0 0 var(--space-s) 0;
  padding: var(--space-xs) var(--space-s);
  text-align: center;
}

/* On the featured card, soften slightly to sit better against background */
.card-pricing.card--featured .card-pricing__questions{
  color: var(--color-blue);
  border-left-color: var(--color-yellow-hover);
}
/* CTA inside pricing card */
.card-pricing__cta{
  margin-top: var(--space-s);
  text-align: center;
}

.cta-button--join{
  /* uses .cta-button base styling — but swap colours:
     bridge base (calm, contemplative) → yellow on hover (energising on action) */
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  padding: 12px 20px;
  background: var(--color-bridge);
  color: var(--color-white);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.cta-button--join:hover{
  background: var(--color-yellow-hover);
  color: var(--color-lila);
  transform: translateY(-2px);
}

@media (max-width: 480px){
  .cta-button--join{
    width: 100%;
    max-width: 100%;
    font-size: 0.9rem;
    padding: 10px 14px;
  }
}

/* Pricing footnote */
.pricing-footnote{
  font-family: var(--ff-base);
  font-size: var(--fs-footer-meta);
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--space-m);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
}

.highlight-green {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      transparent 55%,
      rgba(111, 189, 141, 0.6) 55%,
      rgba(98, 206, 206, 0.2) 90%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      transparent 15%,
      rgba(255, 184, 0, 0.0) 15%,
      rgba(130, 187, 182, 0.6) 40%,
      rgba(131, 192, 129, 0.8) 70%,
      rgba(164, 230, 178, 0.6) 80%,
      rgba(164, 230, 178, 0.3) 85%
    );
}

/* ==========================================================
   HOW TO BOOK — closing line
   ========================================================== */
.how-to-join-closing{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-softblue);
  text-align: center;
  margin: var(--space-m) auto 0;
  max-width: 80%;
  line-height: 1.3;
}

@media (max-width: 600px){
  .how-to-join-closing{
    max-width: 95%;
  }
}


/* ==========================================================
   FIT CHECK SECTION
   ========================================================== */


.fit-check .cta-container{
  margin-top: var(--space-s);
}


/* ==========================================================
   FAQ — page-specific tweaks for welcome FAQ
   ========================================================== */
.welcome-faq .faq-answer p{
  margin-bottom: 0.5rem;
}

.welcome-faq .faq-answer a{
  color: var(--color-vividblue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.welcome-faq .faq-answer a:hover{
  color: var(--color-yellow-hover);
}

.faq-tc-link{
  cursor: pointer;
}


/* ==========================================================
   CLOSING SECTION
   ========================================================== */
.welcome-closing{
  width: 60%;
  max-width: var(--container-max);
  margin: var(--space-l) auto var(--space-l);
  text-align: center;
  padding: var(--space-m) var(--space-s);
}

.welcome-closing-text{
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--color-softblue);
  line-height: 1.3;
  margin: 0 0 var(--space-s) 0;
}

.welcome-closing-sign{
  font-family: var(--ff-accent);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-lila);
  letter-spacing: 0.05em;
  margin: 0;
}

@media (max-width: 768px){
  .welcome-closing{
    width: 80%;
  }
}

@media (max-width: 480px){
  .welcome-closing{
    width: 90%;
  }
}


/* ==========================================================
   T&C MODAL — text variant of .modal
   ========================================================== */
.modal--text{
  /* extends .modal from style.css; .modal already handles display + backdrop */
  align-items: center;
  justify-content: center;
}

.modal--text.open{
  display: flex;
}

.modal-dialog{
  position: relative;
  background: var(--color-white);
  border-radius: 8px;
  width: min(640px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    2px 2px 8px rgba(124,149,134,0.3),
    -2px 2px 5px rgba(124,149,134,0.3),
    2px -2px 5px rgba(124,149,134,0.3),
    8px 0px 20px rgba(124,149,134,0.6);
  overflow: hidden;
}

.modal-close{
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--color-lila);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  z-index: 2;
  transition: color 0.2s ease;
}

.modal-close:hover{
  color: var(--color-yellow-hover);
}

.modal-close:focus-visible{
  outline: 2px solid var(--color-yellow-hover);
  outline-offset: 2px;
}

.modal-header{
  flex-shrink: 0;
  padding: var(--space-m) var(--space-m) var(--space-s);
  border-bottom: 1px solid rgba(124,149,134,0.3);
  text-align: center;
}

.modal-header h2{
  margin: 0 0 0.25rem 0;
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--color-vividblue);
  line-height: 1.15;
}

.modal-subtitle{
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  color: var(--color-softblue);
  margin: 0;
}

.modal-body{
  flex: 1;
  overflow-y: auto;
  padding: var(--space-s) var(--space-m);
  text-align: left;
  -webkit-overflow-scrolling: touch;
}

.modal-body:focus{
  outline: none;
}

.modal-body p{
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--color-text);
  margin: 0 0 0.7rem 0;
}

.modal-body h3{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-vividblue);
  margin: var(--space-s) 0 0.4rem 0;
  line-height: 1.15;
}

.modal-body ol{
  padding-left: 1.4rem;
  margin: 0 0 0.7rem 0;
}

.modal-body ol li{
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.modal-body .modal-meta{
  font-size: var(--fs-footer-meta);
  color: var(--color-muted);
  margin-top: var(--space-s);
  text-align: center;
}

/* Custom scrollbar for the modal body */
.modal-body::-webkit-scrollbar{
  width: 8px;
}
.modal-body::-webkit-scrollbar-track{
  background: rgba(124,149,134,0.1);
}
.modal-body::-webkit-scrollbar-thumb{
  background: rgba(124,149,134,0.5);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover{
  background: rgba(124,149,134,0.7);
}

.modal-footer{
  flex-shrink: 0;
  padding: var(--space-s) var(--space-m);
  border-top: 1px solid rgba(124,149,134,0.3);
  background: rgba(174,236,222,0.25);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: stretch;
}

.tc-checkbox{
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  user-select: none;
}

.tc-checkbox input[type="checkbox"]{
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  cursor: pointer;
  accent-color: var(--color-yellow-hover);
}

.tc-checkbox-label{
  flex: 1;
}

.cta-button--continue{
  /* uses .cta-button base from style.css — same swap as JOIN buttons:
     bridge base → yellow on hover */
  border: none;
  cursor: pointer;
  width: 100%;
  white-space: normal;
  background: var(--color-bridge);
  color: var(--color-white);
  transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.cta-button--continue:not(:disabled):hover{
  background: var(--color-yellow-hover);
  color: var(--color-lila);
  transform: translateY(-2px);
}

.cta-button--continue:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--color-muted);
  color: var(--color-white);
  transform: none;
}

.cta-button--continue:disabled:hover{
  transform: none;
  background: var(--color-muted);
}

/* Modal mobile adjustments */
@media (max-width: 600px){
  .modal-dialog{
    width: 95vw;
    max-height: 92vh;
    border-radius: 6px;
  }

  .modal-header{
    padding: var(--space-s);
  }

  .modal-body{
    padding: var(--space-s);
  }

  .modal-footer{
    padding: var(--space-s);
  }

  .modal-close{
    top: 8px;
    right: 10px;
    font-size: 30px;
  }
}

/* Lock body scroll when modal is open (handled by JS toggle of class) */
body.tc-modal-open{
  overflow: hidden;
}


/* ==========================================================
   VISUALLY HIDDEN — for SEO/a11y H2s that don't render visually
   ========================================================== */
.visually-hidden{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================
   HERO — subhead block (replaces the old broken nested h2)
   ========================================================== */
.hero-subhead{
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--color-blue);
  line-height: 1.2;
  text-align: center;
  margin: var(--space-m) auto var(--space-xs);
  max-width: 90%;
}

.hero-subhead-lead{
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  color: var(--color-softblue);
  text-align: center;
  margin: 0 auto var(--space-xs);
  max-width: 80%;
  line-height: 1.4;
}

@media (max-width: 600px){
  .hero-subhead{ max-width: 100%; padding: 0 var(--space-xs); }
  .hero-subhead-lead{ max-width: 95%; }
}


/* ==========================================================
   ARC CARDS — now compact, visually echoing the pricing card style
   (label cards, no body description — descriptions live in pricing)
   ========================================================== */
.arc-card{
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0.9)
  );
  border-radius: 10px;
  padding: var(--space-m);
  text-align: center;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.arc-card:hover{
  transform: translateY(-3px);
  box-shadow:
    0px -3px 4px rgba(124,149,134,0.25),
    0px -1px 1px rgba(124,149,134,0.35),
    6px 0px 8px rgba(124,149,134,0.6);
}

.arc-card__header{
  border-bottom: 1px solid rgba(124,149,134,0.4);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-xxs);
}

.arc-card__module{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-blue);
  margin: 0 0 0.15rem 0;
  line-height: 1.1;
}

.arc-card__purpose{
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  color: var(--color-softblue);
  margin: 0 0 var(--space-xs) 0;
  line-height: 1.2;
}

.arc-card__title{
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--color-vividblue);
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.arc-emoji{
  font-family: var(--emoji-icon-font);
  font-size: 0.85em;
  margin-right: 0.25rem;
  color: var(--emoji-icon-color);
  vertical-align: baseline;
}

.arc-card__tagline{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-lila);
  margin: 0;
  line-height: 1.2;
}

/* "Your Why / Your How / Your What" line — sits below header, h3 weight */
.arc-card__why{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-softblue);
  margin: 0;
  line-height: 1.2;
  padding: 0 var(--space-xs);
}





/* ==========================================================
   FAQ — embedded fit-check CTA at end of FAQ
   ========================================================== */
.faq-fit-check{
  margin-top: var(--space-m);
  text-align: center;
  padding: var(--space-s) var(--space-s);
  background: none;
  border-radius:2px;
}

.faq-fit-check h3{
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--color-softblue);
  margin: 0 0 var(--space-xs) 0;
  line-height: 1.2;
}

.faq-fit-check p{
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  margin: 0 auto var(--space-s);
  max-width: 90%;
}

.faq-fit-check .cta-container{
  margin-top: var(--space-xs);
}

@media (max-width: 600px){
  .faq-fit-check p{ max-width: 95%; }
}


/* ==========================================================
   HERO-WELCOME — arc card grid (READY / STEADY / GO labels)
   ========================================================== */
.grid-arc{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
  margin-top: var(--space-s);
}

@media (max-width: 768px){
  .grid-arc{
    grid-template-columns: 1fr;
  }
}

.card-arc{
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0.9)
  );
  border-radius: 10px;
  padding: var(--space-s);
  text-align: center;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-arc:hover{
  transform: translateY(-3px);
  box-shadow:
    0px -3px 4px rgba(124,149,134,0.25),
    0px -1px 1px rgba(124,149,134,0.35),
    6px 0px 8px rgba(124,149,134,0.6);
}

.card-arc--featured{
  border: 1.5px solid rgba(124,149,134,0.5);
}

.card-arc__title{
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-xxs);
}

.card-arc__title h3{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-blue);
  margin: 0 0 0.25rem 0;
  line-height: 1.15;
}

.card-arc__badge{
  display: inline-block;
  font-family: var(--ff-accent);
  font-size: var(--fs-footer-meta);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-bridge);
  margin-top: 0.25rem;
}

.card-arc__desc{
  flex: 1;
}

.card-arc__questions{
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-blue);
  margin: 0;
  padding: var(--space-xxs) var(--space-xs);
  text-align: center;
  border-top: 2px solid var(--color-bridge);
}

.card-arc--featured .card-arc__questions{
  color: var(--color-blue);
}


/* ==========================================================
   SEPARATOR-SHORT — welcome page visibility fix
   The hero-welcome section doesn't inherit .features or .pricing
   scoping, so the separator-short needs a rule that applies here.
   ========================================================== */
.hero-welcome .separator-short{
  width: 30%;
  height: 1px;
  margin: 8px auto;
  background: var(--color-bridge);
}


/* ==========================================================
   WELCOME PAGE — decreased transparency for containers & cards
   More opaque backgrounds so text reads clearly against the
   slideshow. Only applies to this page.
   ========================================================== */
body .intro.hero-welcome{
  background-color: rgba(174,236,222,0.9);
}

body .intro.features,
body .intro.pricing,
body .intro.faq,
body .intro.approach{
  background-color: rgba(174,236,222,0.92);
}


body .card-arc,
body .features .card,
body .pricing .card-pricing{
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.95)
  );
}