/* ==========================================================================
   SproutForward Flow — flow.css
   All rules scoped under .sf-flow to prevent Elementor/theme conflicts.
   Class names match the HTML prototype exactly.
   ========================================================================== */

/* ── CSS CUSTOM PROPERTIES ───────────────────────────────────────────────── */
.sf-flow {
  --sprout:      #346064;
  --sprout-dk:   #2a4f52;
  --sprout-lt:   #e0eeef;
  --mint:        #8cd8c4;
  --mint-lt:     #e1f5ee;
  --lavender:    #cac8f8;
  --lavender-lt: #f0effd;
  --ice:         #d1e8ff;
  --ice-lt:      #edf5ff;
  --blue:        #2f6c94;
  --blue-lt:     #e6f1fb;
  --off-white:   #fdfdfd;
  --text:        #262525;
  --text-muted:  #6b7280;
  --border:      rgba(38,37,37,0.09);

  font-family: 'Neulis Sans', sans-serif;
  color: var(--text);
  background: transparent;
  position: relative;
}

/* ── SPARK CANVAS ────────────────────────────────────────────────────────── */
.sf-spark-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ── WRAPPER ─────────────────────────────────────────────────────────────── */
.sf-flow .sf-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── PROGRESS ROW ────────────────────────────────────────────────────────── */
.sf-flow .sf-progress-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  width: 100%;
}
.sf-flow .sf-back-col {
  display: flex;
  justify-content: flex-start;
}

/* ── PROGRESS BAR ────────────────────────────────────────────────────────── */
.sf-flow .progress {
  display: flex;
  gap: 6px;
}
.sf-flow .progress-step {
  height: 3px;
  width: 48px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.4s ease;
}
.sf-flow .progress-step.active { background: var(--mint); }
.sf-flow .progress-step.done   { background: var(--sprout); }

/* ── BACK BUTTON ─────────────────────────────────────────────────────────── */
.sf-flow .btn-back-top {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-family: 'Neulis Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
}
.sf-flow .btn-back-top:hover {
  color: var(--text);
  border-color: rgba(38,37,37,0.3);
}

/* ── SPROUT STAGE ────────────────────────────────────────────────────────── */
.sf-flow .sprout-stage {
  width: 100px;
  height: 140px;
  position: relative;
  margin-bottom: 32px;
  flex-shrink: 0;
}

.sf-flow .sprout-stage-svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
  opacity: 0;
  transform-origin: bottom center;
}
.sf-flow .sprout-stage-svg.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.sf-flow .sprout-stage-svg.entering {
  animation: sf-stageIn 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}
@keyframes sf-stageIn {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.6) translateY(12px); }
  100% { opacity: 1; transform: translateX(-50%) scale(1)   translateY(0); }
}
.sf-flow .sprout-stage-svg.swaying {
  animation: sf-sway 7s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes sf-sway {
  0%   { transform: translateX(-50%) rotate(0deg); }
  25%  { transform: translateX(-50%) rotate(0.4deg); }
  75%  { transform: translateX(-50%) rotate(-0.4deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* ── STEP HEADER (outside screen divs) ───────────────────────────────────── */
.sf-flow .step-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  color: var(--mint);
  margin-bottom: 10px;
  text-align: center;
}
.sf-flow .screen-title {
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 1.25;
}
.sf-flow .screen-title.fading {
  opacity: 0;
  transform: translateY(-6px);
}
.sf-flow .screen-sub {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.5;
}
.sf-flow .screen-sub strong { color: var(--text); font-weight: 700; }

/* ── PROSE CONTENT ───────────────────────────────────────────────────────── */
.sf-prose strong { color: var(--sf-ink); font-weight: 700; }


/* ── SCREEN SYSTEM ───────────────────────────────────────────────────────── */
.sf-flow .screen {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: transparent;
  overflow: visible;
}
.sf-flow .screen.active {
  display: flex;
  animation: sf-fadeUp 0.35s ease forwards;
}
@keyframes sf-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SHARED BUTTONS ──────────────────────────────────────────────────────── */
.sf-flow .btn-primary {
  background: var(--sprout);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Neulis Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.sf-flow .btn-primary:hover    { background: var(--sprout-dk); transform: translateY(-1px); }
.sf-flow .btn-primary:disabled { background: #ddd; color: #aaa; cursor: not-allowed; transform: none; }

.sf-flow .btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-family: 'Neulis Sans', sans-serif;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.sf-flow .btn-ghost:hover { color: var(--text); border-color: rgba(38,37,37,0.3); }

/* ── STEP 1: TIER 1 CARDS ────────────────────────────────────────────────── */
.sf-flow .cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 860px;
  width: 100%;
}
.sf-flow .tier1-card {
  border-radius: 16px;
  padding: 24px 16px 20px;
  cursor: pointer;
  text-align: center;
  border: 1.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  user-select: none;
}
.sf-flow .tier1-card:hover     { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.07); }
.sf-flow .tier1-card.selected  { box-shadow: 0 0 0 3px rgba(52,96,100,0.12); }
.sf-flow .tier1-card.sf-disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

.sf-flow .card-nurture   { background: #2f6c94; }
.sf-flow .card-stay      { background: var(--mint-lt); }
.sf-flow .card-plan      { background: var(--sprout); }
.sf-flow .card-support   { background: #cac8f8; }
.sf-flow .card-memories  { background: #d1e8ff; }

.sf-flow .card-nurture:hover   { border-color: #1e4f70; }
.sf-flow .card-stay:hover      { border-color: var(--mint); }
.sf-flow .card-plan:hover      { border-color: var(--sprout-dk); }
.sf-flow .card-support:hover   { border-color: #a09cf5; }
.sf-flow .card-memories:hover  { border-color: #a8cfea; }

.sf-flow .card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
}
.sf-flow .card-nurture  .card-icon { background: rgba(255,255,255,0.15); }
.sf-flow .card-stay     .card-icon { background: rgba(140,216,196,0.4); }
.sf-flow .card-plan     .card-icon { background: rgba(255,255,255,0.15); }
.sf-flow .card-support  .card-icon { background: rgba(202,200,248,0.5); }
.sf-flow .card-memories .card-icon { background: rgba(209,232,255,0.6); }

.sf-flow .card-name { font-size: 13px; font-weight: 500; line-height: 1.3; margin-bottom: 4px; color: var(--text); }
.sf-flow .card-desc { font-size: 11px; font-weight: 300; opacity: 0.7; line-height: 1.4; color: var(--text); }
.sf-flow .card-plan .card-name,
.sf-flow .card-plan .card-desc { color: #fff; }
.sf-flow .card-plan .card-desc { opacity: 0.75; }
.sf-flow .card-nurture .card-name,
.sf-flow .card-nurture .card-desc { color: #fff; }
.sf-flow .card-nurture .card-desc { opacity: 0.75; }

/* ── STEP 2: TIER 2 LIST ─────────────────────────────────────────────────── */
.sf-flow .tier2-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin-bottom: 24px;
}
.sf-flow .tier2-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, transform 0.15s;
}
.sf-flow .tier2-item:hover           { border-color: var(--mint); transform: translateY(-1px); }
.sf-flow .tier2-item.disabled        { opacity: 0.35; cursor: not-allowed; }
.sf-flow .tier2-item.disabled:hover  { border-color: var(--border); transform: none; }

.sf-flow .tier2-name { font-size: 14px; font-weight: 500; color: var(--text); }
.sf-flow .tier2-soon {
  font-size: 10px;
  font-family: 'Neulis Sans', sans-serif;
  color: var(--text-muted);
  background: var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── STEP 3: CRITERIA ────────────────────────────────────────────────────── */
.sf-flow .criteria-unranked {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.sf-flow .criteria-btn {
  padding: 11px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  background: #fafafa;
  color: #374151;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  font-family: 'Neulis Sans', sans-serif;
  position: relative;
}
.sf-flow .criteria-btn:hover:not(.selected) { opacity: 0.7; transform: translateY(-1px); }
.sf-flow .criteria-btn.selected { opacity: 1; cursor: default; transform: none; }

.sf-flow .criteria-btn.c-quality.selected     { background: var(--mint-lt);     color: var(--sprout);  border-color: var(--mint); }
.sf-flow .criteria-btn.c-cost.selected        { background: var(--sprout-lt);   color: var(--sprout);  border-color: var(--sprout); }
.sf-flow .criteria-btn.c-convenience.selected { background: var(--blue-lt);     color: var(--blue);    border-color: var(--blue); }
.sf-flow .criteria-btn.c-support.selected     { background: var(--lavender-lt); color: #4b45a0;        border-color: var(--lavender); }

.sf-flow .rank-badge {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sprout);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -7px; right: -7px;
}

/* ── TIER 2 CONTEXT LABEL (steps 3 & 4) ─────────────────────────────────── */
.sf-flow .sf-tier2-label {
  font-size: 11px;
  font-family: 'Neulis Sans', sans-serif;
  text-transform: capitalize;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 8px;
}

/* ── STEP 4: RECOMMENDATION ──────────────────────────────────────────────── */
.sf-flow .step4-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 600px;
  position: relative;
}

.sf-flow .rec-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  background: var(--off-white);
  width: 100%;
  box-sizing: border-box;
}
.sf-flow .rec-tag {
  display: inline-block;
  font-size: 10px;
  font-family: 'Neulis Sans', sans-serif;
  background: var(--sprout);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: capitalize;
}
.sf-flow .rec-name {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
/* Score bars */
.sf-flow .rec-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.sf-flow .bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sf-flow .bar-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 82px;
  flex-shrink: 0;
  font-family: 'Neulis Sans', sans-serif;
}
.sf-flow .bar-track {
  flex: 1;
  height: 5px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}
.sf-flow .bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 0.8s ease;
}
.sf-flow .bar-fill.b-quality     { background: var(--mint); }
.sf-flow .bar-fill.b-cost        { background: var(--sprout); }
.sf-flow .bar-fill.b-convenience { background: var(--blue); }
.sf-flow .bar-fill.b-support     { background: var(--lavender); }

.sf-flow .bar-rank {
  font-size: 11px;
  font-family: 'Neulis Sans', sans-serif;
  color: #bbb;
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

/* Primary CTA */
.sf-flow .rec-primary-cta { margin-bottom: 10px; }
.sf-flow .rec-primary-cta .btn-primary,
.sf-flow .rec-primary-cta a.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* Secondary CTAs — side by side */
.sf-flow .rec-sec-ctas {
  display: flex;
  gap: 10px;
}
.sf-flow .btn-sec-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border: 1.5px solid var(--mint);
  border-radius: 30px;
  color: var(--sprout);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Neulis Sans', sans-serif;
  text-decoration: none;
  transition: background 0.15s;
  box-sizing: border-box;
  text-align: center;
}
.sf-flow .btn-sec-cta:hover { background: var(--mint-lt); }

/* Alternatives section */
.sf-flow .alts-section { width: 100%; }
.sf-flow .alts-label {
  font-size: 10px;
  font-family: 'Neulis Sans', sans-serif;
  color: var(--text-muted);
  text-transform: capitalize;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.sf-flow .alts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sf-flow .alt-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.sf-flow .alt-card:hover { border-color: var(--mint); }
.sf-flow .alt-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.sf-flow .alt-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-flow .alt-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.sf-flow .alt-btn-learn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Neulis Sans', sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
  white-space: nowrap;
  background: transparent;
  color: var(--sprout);
  border: 1.5px solid var(--mint);
}
.sf-flow .alt-btn-learn:hover { background: var(--mint-lt); }

/* Compare — text-link style, promotes alt to primary recommendation */
.sf-flow .alt-btn-compare {
  background: transparent;
  border: none;
  color: var(--sprout);
  font-size: 11px;
  font-weight: 500;
  font-family: 'Neulis Sans', sans-serif;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  white-space: nowrap;
}
.sf-flow .alt-btn-compare:hover { color: var(--sprout-dk); }

/* Recommendation summary — excerpt + learn-more link, below bars */
.sf-flow .rec-summary { margin-bottom: 16px; }
.sf-flow .rec-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
  font-weight: 300;
}
.sf-flow .rec-learn-more-link {
  color: var(--sprout);
  text-decoration: underline;
  font-size: 13px;
  font-family: 'Neulis Sans', sans-serif;
}
.sf-flow .rec-learn-more-link:hover { color: var(--sprout-dk); }

/* Restart link */
.sf-flow .sf-restart-btn {
  margin-top: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Neulis Sans', sans-serif;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s;
}
.sf-flow .sf-restart-btn:hover { color: var(--text); }

/* ── ALT CARD TAG ────────────────────────────────────────────────────────── */
.sf-flow .alt-tag {
  display: inline-block;
  font-size: 10px;
  font-family: 'Neulis Sans', sans-serif;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.sf-flow .rec-tag.rec-tag-close {
  background: #f0f0f0;
  color: #6b7280;
}
.sf-flow .alt-tag:not(.alt-tag-close) {
  background: var(--sprout);
  color: #fff;
  text-transform: capitalize;
}
.sf-flow .alt-tag-close {
  background: #f0f0f0;
  color: #6b7280;
}

/* ── GLOBAL SHARE ROW ────────────────────────────────────────────────────── */
.sf-flow .sf-top-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 28px 0 0;
  box-sizing: border-box;
}

/* ── SHARE ICON BUTTON ───────────────────────────────────────────────────── */
.sf-flow .sf-share-icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: var(--ice-lt);
  color: var(--sprout);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sf-flow .sf-share-icon-btn:hover { background: var(--ice); }

/* Global share button sits inside sf-top-row — not absolutely positioned */
.sf-flow .sf-global-share-btn { position: static; }

/* Mobile share button — hidden on desktop, shown via mobile media query */
.sf-flow .sf-mob-share-btn { display: none; }

/* Right column of progress row — aligns share button to the right on mobile */
.sf-flow .sf-share-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ── SHARE MODAL ─────────────────────────────────────────────────────────── */
.sf-flow .sf-share-modal {
  position: fixed;
  inset: 0;
  background: rgba(38,37,37,0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-flow .sf-share-modal-inner {
  background: var(--off-white);
  border-radius: 16px;
  padding: 32px 28px 28px;
  max-width: 340px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.sf-flow .sf-share-modal-title {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Neulis Sans', sans-serif;
  color: var(--text);
  margin-bottom: 10px;
}
.sf-flow .sf-share-modal-sub {
  font-size: 13px;
  font-family: 'Neulis Sans', sans-serif;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.sf-flow .sf-share-email-wrap { margin-bottom: 12px; }
.sf-flow .sf-share-email {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 14px;
  font-family: 'Neulis Sans', sans-serif;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.sf-flow .sf-share-email:focus { border-color: var(--sprout); }
.sf-flow .sf-share-primary-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Neulis Sans', sans-serif;
  background: var(--sprout);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s;
}
.sf-flow .sf-share-primary-btn:hover { background: var(--sprout-dk); }
.sf-flow .sf-share-skip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Neulis Sans', sans-serif;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
  transition: color 0.15s;
  display: block;
  width: 100%;
  text-align: center;
}
.sf-flow .sf-share-skip:hover { color: var(--text); }
.sf-flow .sf-share-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-flow .sf-share-opt {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Neulis Sans', sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  box-sizing: border-box;
  transition: background 0.15s, border-color 0.15s;
}
.sf-flow .sf-share-opt:hover { background: var(--mint-lt); border-color: var(--mint); }
.sf-flow .sf-share-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  font-family: 'Neulis Sans', sans-serif;
  transition: color 0.15s;
}
.sf-flow .sf-share-close:hover { color: var(--text); }

/* ── STEP 4 LEFT COLUMN WRAPPER ──────────────────────────────────────────── */
/* display:contents makes the wrapper invisible to the flex parent on steps 1–3;
   its children (sprout, label, title, sub) lay out exactly as before. */
.sf-flow .sf-step4-left { display: contents; }

/* ── STEP 4: TWO-COLUMN LAYOUT (desktop only) ────────────────────────────── */
@media (min-width: 601px) {
  .sf-flow.sf-step4-active .sf-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas:
      "header   header"
      "left     right"
      "progress progress";
    column-gap: 48px;
    align-items: start;
    max-width: 1100px;
  }

  .sf-flow.sf-step4-active .sf-top-row    { grid-area: header; padding-top: 16px; }
  .sf-flow.sf-step4-active .sf-progress-row { grid-area: progress; }

  .sf-flow.sf-step4-active .sf-step4-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-area: left;
    position: sticky;
    top: 40px;
    padding-top: 16px;
  }

  .sf-flow.sf-step4-active #sf-screen-4 {
    grid-area: right;
    align-self: start;
  }

  /* On step 4 the rec content should fill the right column */
  .sf-flow.sf-step4-active .step4-wrap { max-width: 100%; }
}

/* ── MOBILE: ≤ 600px ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .sf-flow .sf-wrapper       { padding: 0; }
  .sf-flow .sf-top-row       { padding-top: 16px; }
  .sf-flow .sf-progress-row  { margin-top: 16px; }
  .sf-flow .progress-step    { width: 32px; }
  .sf-flow .sprout-stage     { width: 60px; height: 75px; margin-bottom: 10px; overflow: hidden; }
  .sf-flow .sprout-stage-svg { height: 100%; width: auto; }
  .sf-flow .screen-title     { font-size: 22px; }
  .sf-flow .screen-sub       { font-size: 12px; margin-bottom: 14px; }

  .sf-flow .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 100%;
  }
  .sf-flow .tier1-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }
  .sf-flow .tier1-card { padding: 12px 10px 10px; border-radius: 14px; }
  .sf-flow .card-icon  { width: 28px; height: 28px; font-size: 14px; margin-bottom: 6px; }
  .sf-flow .card-name  { font-size: 11px; }
  .sf-flow .card-desc  { font-size: 10px; }

  .sf-flow .tier2-list { max-width: 100%; }
  .sf-flow .tier2-item { padding: 9px 12px; }
  .sf-flow .tier2-name { font-size: 14px; }

  .sf-flow .criteria-unranked {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    justify-items: stretch;
  }
  .sf-flow .criteria-btn { padding: 9px 14px; font-size: 14px; justify-content: center; }

  .sf-flow .step4-wrap   { max-width: 100%; }
  .sf-flow .rec-card     { padding: 18px; }
  .sf-flow .rec-name     { font-size: 18px; }
  .sf-flow .rec-sec-ctas { flex-direction: column; }
  .sf-flow .btn-sec-cta  { flex: none; width: 100%; }

  /* Step 4 mobile — hide step label and subtitle (progress row stays visible at bottom) */
  .sf-flow.sf-step4-active #sf-step-label   { display: none; }
  .sf-flow.sf-step4-active .screen-sub      { display: none; }

  /* FIX 6 — Alt cards: horizontal scroll on mobile */
  .sf-flow .alts-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }
  .sf-flow .alt-card {
    flex-shrink: 0;
    width: 80vw;
    scroll-snap-align: start;
  }

  /* Step 4 mobile: hide progress row and left column */
  .sf-flow.sf-step4-active .sf-progress-row { display: none; }
  .sf-flow.sf-step4-active .sf-step4-left   { display: none; }
  .sf-flow.sf-step4-active #sf-screen-4     { align-items: stretch; }

  /* Step 4 mobile: card top row — badge + share icon */
  .sf-flow .sf-mob-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sf-flow .sf-mob-card-top .sf-share-icon-btn {
    position: static;
  }

  /* Step 4 mobile: unified horizontal-scroll card row */
  .sf-flow .sf-mob-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 16px 12px;
    scroll-padding-left: 16px;
  }
  .sf-flow .sf-mob-scroll::-webkit-scrollbar { display: none; }
  .sf-flow .sf-mob-card {
    flex-shrink: 0;
    width: 78vw;
    scroll-snap-align: start;
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
  }
  .sf-flow .sf-mob-card-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
  }
  .sf-flow .sf-mob-card-go {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
  }
  .sf-flow .sf-mob-sec {
    flex-direction: row;
    padding: 0 16px 8px;
    gap: 8px;
  }
  .sf-flow .sf-mob-sec .btn-sec-cta { width: auto; flex: 1; }

  /* Step 4 mobile: selected tier 2 label at top */
  .sf-flow .sf-mob-tier2-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--sprout);
    text-align: center;
    padding: 12px 16px 4px;
  }

  /* Step 4 mobile: back button at bottom */
  .sf-flow .sf-mob-back-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 16px 20px;
  }

  /* Hide the top-row share button on mobile — replaced by sf-mob-share-btn */
  .sf-flow .sf-top-row .sf-global-share-btn { display: none; }

  /* Mobile share button — inline in progress row, right of dots, steps 1–3 */
  .sf-flow .sf-mob-share-btn {
    display: flex;
    position: static;
    width: 32px;
    height: 32px;
  }

  /* Step 4 mobile — no share button */
  .sf-flow.sf-step4-active .sf-mob-share-btn { display: none; }

}

/* ==========================================================================
   Affiliate Block Styles — sf-af-* (rendered on affiliate CPT post pages)
   Not scoped to .sf-flow — these appear outside the quiz/recommend widget.
   ========================================================================== */

/* ── Affiliate section layout and backgrounds ────────────────────────────── */

/* Base inner container — wide, centered */
.sf-af-inner {
  max-width: 1440px !important;
  margin: 0 auto;
  padding: 64px 40px;
  box-sizing: border-box;
  width: 100%;
}

/* Alternating white / cream — PHP injects sf-bg--white / sf-bg--cream on every block */
.sf-block.sf-bg--white { background: #ffffff; }
.sf-block.sf-bg--cream { background: #f5f3f0; }

/* Dark teal — only the sf-af-feels--dark section */
.sf-af-feels--dark {
  background: #2d5255 !important;
}
.sf-af-feels--dark .sf-af-feels-heading,
.sf-af-feels--dark .sf-af-feels-quote,
.sf-af-feels--dark .sf-af-feels-body,
.sf-af-feels--dark .sf-af-feels-body * {
  color: #fff;
}
.sf-af-feels--dark .sf-af-feels-body { color: rgba(255, 255, 255, .85); }
.sf-af-feels--dark .sf-af-checklist-item {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
  color: #fff;
}
.sf-af-feels--dark .sf-af-checklist-item::before {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

/* Non-dark feels_callout — reset any Elementor overrides */
.sf-af-feels:not(.sf-af-feels--dark) .sf-af-feels-heading,
.sf-af-feels:not(.sf-af-feels--dark) .sf-af-feels-quote,
.sf-af-feels:not(.sf-af-feels--dark) .sf-af-feels-body {
  color: #262525;
}

/* Feels callout: two-column flex — heading left, body right */
.sf-af-feels .sf-af-inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.sf-af-feels .sf-af-feels-heading,
.sf-af-feels .sf-af-feels-quote {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.sf-af-feels .sf-af-feels-body {
  flex: 1;
  min-width: 0;
}

/* Feels callout: heading (eyebrow promoted to H2 for light sections) */
.sf-af-feels-heading {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #262525;
}
/* In dark section: tiny label style targets the <p> eyebrow (only present when a quote also exists).
   The h2.sf-af-feels-heading renders only when there is NO quote, so it always acts as the main title. */
.sf-af-feels--dark .sf-af-feels-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin: 0 0 28px;
}

/* Override every Elementor max-width inside affiliate blocks, but not sf-af-inner itself */
[class*="sf-af-"]:not(.sf-af-inner),
.sf-af-inner * {
  max-width: 100% !important;
}

/* Fit check — left (positive) column gets ice-blue tint */
.sf-af-fit--pos {
  background: #D1E8FF !important;
  border-radius: 12px;
}
.sf-af-fit--neg {
  background: #ffffff;
  border-radius: 12px;
}
/* Ensure readable text on the blue bg */
.sf-af-fit--pos .sf-af-fit-heading,
.sf-af-fit--pos .sf-af-fit-quote,
.sf-af-fit--pos .sf-af-fit-closing,
.sf-af-fit--pos .sf-af-fit-list li {
  color: #1a2f3c;
}
.sf-af-fit--pos .sf-af-fit-icon,
.sf-af-fit--pos .sf-af-fit-mark {
  filter: brightness(0.6);
}

@media (max-width: 768px) {
  .sf-af-inner { padding: 44px 20px; }
  .sf-af-feels .sf-af-inner { flex-direction: column; gap: 28px; }
}

/* ── Article / guide block spacing ──────────────────────────────────────── */
.sf-article-body > .sf-block + .sf-block { margin-top: 24px !important; }
.sf-num-body p { margin: 0 !important; }
.sf-icon-title { margin: 0 !important; }

/* ── Neulis Sans globally on affiliate pages ─────────────────────────────── */
.sf-affiliate-body,
.sf-af-inner,
.sf-af-inner *,
.sf-af-breadcrumb,
.sf-af-hero-desc,
.sf-af-hero-cta {
  font-family: 'Neulis Sans', sans-serif !important;
}

/* ── Breadcrumb [affiliate_breadcrumb] ───────────────────────────────────── */
.sf-af-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  color: #4d6a80;
  margin-bottom: 22px;
}
.sf-af-breadcrumb a {
  color: #4d6a80;
  text-decoration: none;
}
.sf-af-breadcrumb a:hover { text-decoration: underline; }
.sf-af-breadcrumb-current {
  color: #4d6a80;
}

/* ── Verdict value — the big score number ────────────────────────────────── */
.sf-af-verdict-value {
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -.035em;
  color: #346064;
  line-height: .9;
}

/* ── Description [affiliate_description] ────────────────────────────────── */
.sf-af-hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
}

/* ── CTA buttons [affiliate_cta] and final_cta block ────────────────────── */
.sf-af-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.sf-af-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.sf-af-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}
.sf-af-btn--primary {
  background: #346064 !important;
  color: #fff !important;
  border: 2px solid #346064 !important;
}
.sf-af-btn--secondary {
  background: transparent !important;
  color: #346064 !important;
  border: 2px solid #346064 !important;
}
.sf-af-btn--secondary:hover {
  background: #346064 !important;
  color: #fff !important;
}

/* ── Checklist cards (replaces <ul> inside feels_callout body) ───────────── */
.sf-af-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.sf-af-checklist-item {
  background: #f9fafb;
  border: 1px solid rgba(38, 37, 37, .09);
  border-radius: 10px;
  padding: 16px 18px 16px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #262525;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sf-af-checklist-item::before {
  content: '✓';
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #346064;
  background: #e0eeef;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Hide verdict/summary icons ──────────────────────────────────────────── */
.sf-af-summary-icon,
.sf-af-verdict-icon { display: none !important; }

/* ── Feels callout: eyebrow + heading share left flex column ─────────────── */
.sf-af-feels .sf-af-feels-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Fit check: reference colors ─────────────────────────────────────────── */
.sf-af-fit--pos {
  background: #e0eeef !important;
  border-radius: 12px;
}
.sf-af-fit--pos .sf-af-fit-heading,
.sf-af-fit--pos .sf-af-fit-quote,
.sf-af-fit--pos .sf-af-fit-closing,
.sf-af-fit--pos .sf-af-fit-list li {
  color: #1a3336;
}
.sf-af-fit--pos .sf-af-fit-icon,
.sf-af-fit--pos .sf-af-fit-mark {
  filter: none;
  color: #346064;
}

/* ==========================================================================
   Compare Options Block Styles — sf-co-* (rendered on sf_compare_options posts)
   ========================================================================== */

/* ── Bottom Line block ───────────────────────────────────────────────────── */
.sf-co-bl-sec {
  background: #ffffff !important;
}
.sf-co-inner {
  max-width: 1440px !important;
  margin: 0 auto;
  padding: 64px 0;
  box-sizing: border-box;
  width: 100%;
}
.sf-co-bl {
  background: #ffffff;
  border: 1px solid rgba(38, 37, 37, .09);
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(38, 37, 37, .07);
  padding: 48px 56px;
  max-width: 760px !important;
  margin: 0 auto;
  text-align: left;
}
.sf-co-bl-heading {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: #262525;
  margin: 0 0 16px;
  line-height: 1.25;
}
.sf-co-bl-body,
.sf-co-bl-body p {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 12px;
}
.sf-co-fin {
  font-size: 15px;
  font-weight: 600;
  color: #346064;
  margin: 20px 0 0;
  border-top: 1px solid rgba(38, 37, 37, .08);
  padding-top: 20px;
}

@media (max-width: 768px) {
  .sf-co-inner { padding: 44px 0; }
  .sf-co-bl { padding: 32px 24px; }
}
