/* =========================================================
   Karuna.fit — Membership landing page
   Builds on css/style.css design tokens. Higher-energy,
   conversion-focused layout. Same warm palette.
   ========================================================= */

.membership-page { padding-bottom: 84px; } /* room for sticky bar */

.header-spots {
  font-size: 0.86rem; color: var(--ink-soft);
}
.header-spots strong { color: var(--terra); }

/* ---------- hero ---------- */
.m-hero {
  background:
    radial-gradient(circle at 85% 15%, var(--sage), transparent 45%),
    radial-gradient(circle at 10% 90%, var(--terra-tint), transparent 40%),
    var(--bone);
  padding: 72px 0 64px;
}
.m-hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 56px; align-items: center;
}
.m-hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.m-hero-lede {
  font-size: 1.18rem; color: var(--ink-soft);
  max-width: 36em; margin-top: 22px;
}
.m-hero-lede strong { color: var(--ink); }

/* hero visual */
.m-hero-visual { position: relative; }
.m-hero-photo {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 28px 28px 140px 28px;
  border: 1px solid var(--line); background: var(--sage); overflow: hidden;
  display: grid; place-items: center; text-align: center; color: var(--pine);
}
.m-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-float {
  position: absolute; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 12px 18px;
  display: flex; flex-direction: column;
}
.m-float-result { top: 12%; left: -10%; }
.m-float-rating { bottom: 12%; right: -8%; }
.m-float-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--terra); line-height: 1.1; }
.m-float-stars { color: var(--gold); letter-spacing: 1px; font-size: 1rem; }
.m-float-label { font-size: 0.78rem; color: var(--ink-soft); }

.m-price-block {
  display: inline-flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 30px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 32px; box-shadow: var(--shadow);
}
.m-price { display: flex; align-items: baseline; gap: 6px; }
.m-price-amount { font-family: var(--font-display); font-weight: 900; font-size: 3rem; color: var(--terra); line-height: 1; }
.m-price-period { font-weight: 600; color: var(--ink-soft); }
.m-price-side { text-align: left; display: flex; flex-direction: column; gap: 2px; padding-left: 24px; border-left: 1px solid var(--line); }
.m-price-value { font-size: 0.92rem; color: var(--ink-soft); }
.m-price-value s { color: var(--ink-soft); }
.m-price-save { font-weight: 700; color: var(--pine); font-size: 0.95rem; }

.m-hero-cta { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.m-guarantee-mini { font-size: 0.9rem; color: var(--ink-soft); }

.m-trust-row {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line);
  text-align: center;
}
.m-trust-row span { font-size: 0.95rem; color: var(--ink-soft); }
.m-trust-row strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); display: block; }

.m-section { padding: 84px 0; }

/* ---------- pain grid ---------- */
.m-pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin-inline: auto; }
.m-pain-card {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius-sm); padding: 20px 24px;
  font-size: 1.02rem; font-weight: 500;
}

/* ---------- value stack ---------- */
.m-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px; margin: 0 auto; }
.m-stack-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
}
.m-stack-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--sage); display: grid; place-items: center; font-size: 1.5rem;
}
.m-stack-body { flex: 1; }
.m-stack-body h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; }
.m-stack-body p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 3px; }
.m-stack-worth {
  flex-shrink: 0; font-size: 0.82rem; font-weight: 700; color: var(--pine);
  background: var(--sage); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

.m-stack-total {
  display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
  max-width: 760px; margin: 28px auto 0;
  background: var(--pine); color: var(--cream);
  border-radius: var(--radius); padding: 28px 32px;
}
.m-stack-total-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.m-stack-total-old { font-family: var(--font-display); font-size: 1.8rem; text-decoration: line-through; opacity: 0.7; }
.m-stack-total-old span, .m-stack-total-now span { font-size: 0.9rem; -webkit-text-decoration: none; text-decoration: none; }
.m-stack-total-now { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: #fff; }
.m-stack-total-arrow { font-size: 1.6rem; opacity: 0.6; }
.m-stack-total .btn { margin-left: 8px; }

/* ---------- results ---------- */
.m-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m-result { display: flex; flex-direction: column; gap: 14px; }
.m-result-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--terra-tint); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--terra-deep);
}
.m-result-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--terra); color: #fff; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; font-size: 1rem;
}
.m-result figcaption { font-size: 0.96rem; color: var(--ink-soft); }
.m-result figcaption strong { color: var(--ink); }

/* ---------- guarantee ---------- */
.m-guarantee {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  max-width: 820px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 40px;
}
.m-guarantee-badge {
  width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0;
  background: var(--sage); color: var(--pine);
  display: grid; place-items: center; text-align: center;
  border: 3px dashed var(--pine);
}
.m-guarantee-badge span { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.m-guarantee-badge small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.m-guarantee h2 { font-size: 1.8rem; }
.m-guarantee p { color: var(--ink-soft); margin-top: 10px; max-width: 44em; }

/* ---------- final cta ---------- */
.m-final-cta { background: var(--pine); color: var(--cream); text-align: center; padding: 88px 0; }
.m-final-cta h2 { color: #fff; }
.m-final-cta > .container > p { margin-top: 16px; opacity: 0.9; font-size: 1.1rem; }
.m-final-cta .btn { margin-top: 28px; }
.m-final-sub { margin-top: 16px !important; font-size: 0.88rem; opacity: 0.7; }
.m-back-link {
  display: inline-block; margin-top: 28px; color: var(--cream);
  opacity: 0.8; text-decoration: underline; text-underline-offset: 3px; font-size: 0.95rem;
}
.m-back-link:hover { opacity: 1; }

/* ---------- sticky bar ---------- */
.m-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(33, 49, 42, 0.1);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.m-sticky.is-visible { transform: translateY(0); }
.m-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.m-sticky-copy { display: flex; flex-direction: column; line-height: 1.3; }
.m-sticky-copy strong { font-size: 1rem; }
.m-sticky-copy span { font-size: 0.88rem; color: var(--ink-soft); }
.m-sticky-copy s { color: var(--ink-soft); }

/* ---------- join modal ---------- */
.m-join-modal { max-width: 520px; }
.m-join-pane { display: none; }
.m-join-pane.is-active { display: block; }
.m-join-pane .booking-head h2 { padding-right: 40px; }

/* ---------- highlight ---------- */
.hl { color: var(--terra); }

/* ---------- alone vs coached ---------- */
.m-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 0 auto; align-items: start; }
.m-compare-col {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px;
}
.m-compare-col h3 { font-size: 1.3rem; margin-bottom: 16px; }
.m-compare-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.m-compare-col li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.m-compare-alone li::before { content: "✕"; position: absolute; left: 0; color: #B0481F; font-weight: 700; }
.m-compare-with {
  position: relative; background: var(--pine); color: var(--cream);
  border-color: var(--pine);
}
.m-compare-with h3 { color: #fff; }
.m-compare-with li { color: rgba(243, 236, 223, 0.92); }
.m-compare-with li::before { content: "✓"; position: absolute; left: 0; color: #7FCB8E; font-weight: 700; }
.m-compare-with em { color: #fff; font-style: italic; font-weight: 600; }
.m-compare-with .btn { margin-top: 20px; }
.m-compare-tag {
  position: absolute; top: -13px; left: 32px;
  background: var(--terra); color: #fff; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}

/* ---------- timeline ---------- */
.m-timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: tl;
}
.m-timeline-step {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; position: relative;
}
.m-timeline-step::before {
  counter-increment: tl; content: counter(tl);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--terra); color: #fff; font-family: var(--font-display); font-weight: 700;
  display: grid; place-items: center; margin-bottom: 16px;
}
.m-timeline-when {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--pine); background: var(--sage);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.m-timeline-step h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; }
.m-timeline-step p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }

/* ---------- is this for you ---------- */
.m-foryou-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 0 auto; }
.m-foryou-col { border-radius: var(--radius); padding: 30px 32px; border: 1px solid var(--line); }
.m-foryou-col h3 { font-size: 1.2rem; margin-bottom: 16px; }
.m-foryou-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.m-foryou-col li { color: var(--ink-soft); line-height: 1.5; }
.m-foryou-col em { color: var(--ink); font-style: italic; font-weight: 600; }
.m-foryou-yes { background: var(--sage); border-color: #C6D6C4; }
.m-foryou-yes h3 { color: var(--pine); }
.m-foryou-no { background: var(--paper); }
.m-foryou-no h3 { color: var(--ink-soft); }

/* ---------- testimonials row ---------- */
.m-testimonials { margin-top: 36px; }

/* ---------- bonuses ---------- */
.m-bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m-bonus-card {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--terra);
  border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 8px;
}
.m-bonus-tag { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terra); }
.m-bonus-card h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; }
.m-bonus-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.m-bonus-worth { font-weight: 700; color: var(--pine); font-size: 0.9rem; margin-top: 4px; }

/* ---------- hero plans link ---------- */
.m-hero-plans {
  display: inline-block; margin-top: 16px; color: var(--terra-deep);
  font-weight: 600; font-size: 0.96rem; text-decoration: underline; text-underline-offset: 3px;
}
.m-hero-plans:hover { color: var(--terra); }

/* ---------- pricing plans ---------- */
.m-plans {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 820px; margin: 0 auto; align-items: stretch;
}
.m-plan {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column;
}
.m-plan-best {
  position: relative; border: 2px solid var(--terra);
  box-shadow: var(--shadow-lg);
}
.m-plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--terra); color: #fff; white-space: nowrap;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.m-plan-name { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.m-plan-price { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; color: var(--ink); line-height: 1; margin-top: 10px; }
.m-plan-best .m-plan-price { color: var(--terra); }
.m-plan-price span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.m-plan-permo { font-weight: 700; color: var(--pine); margin-top: 6px; }
.m-plan-tag { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; }
.m-plan-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.m-plan-list li { padding-left: 26px; position: relative; font-size: 0.96rem; }
.m-plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--terra); font-weight: 700; }
.m-plan .btn { width: 100%; }
.m-plans-note { text-align: center; margin-top: 22px; color: var(--ink-soft); }
.m-plans-note a { color: var(--terra-deep); font-weight: 600; }

/* ---------- modal plan selector ---------- */
.m-plan-select { display: grid; gap: 10px; margin-bottom: 22px; }
.m-plan-opt {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color 0.15s, background 0.15s;
}
.m-plan-opt:hover { border-color: var(--terra); }
.m-plan-opt input { accent-color: var(--terra); width: 18px; height: 18px; flex-shrink: 0; }
.m-plan-opt:has(input:checked) { border-color: var(--terra); background: var(--terra-tint); }
.m-plan-opt-body { display: flex; flex-direction: column; }
.m-plan-opt-title { font-weight: 700; }
.m-plan-opt-body small { color: var(--ink-soft); font-size: 0.84rem; }
.m-plan-opt-badge {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--pine); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 4px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .m-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .m-hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .m-float-result { left: 0; }
  .m-float-rating { right: 0; }
  .m-stack { grid-template-columns: 1fr; max-width: 640px; }
  .m-timeline { grid-template-columns: 1fr 1fr; }
  .m-bonus-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .m-price-block { flex-direction: column; gap: 14px; align-items: flex-start; }
  .m-price-side { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; }
  .m-pain-grid { grid-template-columns: 1fr; }
  .m-compare { grid-template-columns: 1fr; }
  .m-foryou-grid { grid-template-columns: 1fr; }
  .m-timeline { grid-template-columns: 1fr; }
  .m-plans { grid-template-columns: 1fr; max-width: 420px; }
  .m-stack-item { flex-wrap: wrap; }
  .m-stack-worth { order: 3; }
  .m-stack-total { flex-direction: column; gap: 14px; text-align: center; }
  .m-stack-total-arrow { transform: rotate(90deg); }
  .m-results-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .m-guarantee { flex-direction: column; text-align: center; padding: 28px 22px; }
  .header-spots { display: none; }
}
