/* === Funnel LP — additions appended to live LP base CSS === */
/* ============================================================ */

/* Generic two-column body — used in Problem + Not-the-2019-demo */
.columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}
.columns p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--grey-700);
}
.columns p strong { color: var(--ink); }
@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; gap: 24px; }
}

/* Trust grid override — 4 logos */
.trust-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 40px 56px;
}
@media (max-width: 700px) {
  .trust-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Funnel map opener */
.map-wrap {
  margin: 48px 0 64px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-card);
}
.map-wrap img { width: 100%; display: block; }

/* Stage rows */
.stage-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--grey-200);
}
.stage-row:first-of-type { border-top: 0; padding-top: 16px; }
.stage-row.reverse .stage-text { order: 2; }
.stage-row.reverse .stage-visual { order: 1; }
.stage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.stage-eyebrow .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.stage-eyebrow .name {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-600);
}
.stage-metric {
  margin: 0 0 12px;
  font-size: 14px !important;
  color: var(--grey-600);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.stage-hero {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.stage-story {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--grey-700);
  margin: 0 0 16px;
}
.stage-story a { color: var(--link); }
.stage-story a:hover { text-decoration: underline; }
.stage-contribute {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.stage-contribute strong { color: var(--ink); }
.stage-contribute ol {
  margin: 8px 0 0;
  padding-left: 20px;
}
.stage-contribute ol li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--grey-700);
}
.stage-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.stage-visual img { width: 100%; display: block; }
@media (max-width: 900px) {
  .stage-row,
  .stage-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .stage-row.reverse .stage-text { order: 1; }
  .stage-row.reverse .stage-visual { order: 2; }
}

/* ROI calculator */
.calc-wrap {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-card);
}
.calc-inputs { display: flex; flex-direction: column; gap: 28px; }
.calc-input { display: flex; flex-direction: column; gap: 10px; }
.calc-input .label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc-input label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--grey-700);
  text-transform: uppercase;
}
.calc-input .value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.calc-input input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--grey-200);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.calc-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform .15s;
}
.calc-input input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-input input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}
.calc-input .range-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-600);
  letter-spacing: 0.04em;
}
.calc-outputs { display: flex; flex-direction: column; gap: 16px; }
.calc-output-block {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 24px 28px;
}
.calc-output-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 8px;
}
.calc-output-value {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.calc-output-sub {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.5;
}
.calc-breakdown {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 16px 24px;
}
.calc-breakdown summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-breakdown summary::-webkit-details-marker { display: none; }
.calc-breakdown summary::after {
  content: "+";
  font-size: 20px;
  color: var(--teal);
  font-weight: 300;
  transition: transform .2s;
}
.calc-breakdown[open] summary::after { transform: rotate(45deg); }
.calc-breakdown .lines {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-breakdown .line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px dashed var(--grey-200);
  font-size: 14px;
}
.calc-breakdown .line:first-child { border-top: 0; }
.calc-breakdown .line .name { color: var(--grey-700); }
.calc-breakdown .line .amt {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}
.calc-note {
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .calc-wrap { grid-template-columns: 1fr; }
}

/* Text-only comparison block (Native SDK vs WEARFITS) */
.text-compare {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.text-compare-col {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 28px 28px 24px;
}
.text-compare-col.us {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.text-compare-col .tc-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 16px;
  font-weight: 600;
}
.text-compare-col.us .tc-label { color: var(--teal); }
.text-compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.text-compare-col li {
  padding: 10px 0 10px 22px;
  font-size: 15px;
  line-height: 1.55;
  position: relative;
  border-top: 1px solid var(--grey-200);
  color: var(--ink);
}
.text-compare-col.us li {
  color: rgba(255,255,255,0.85);
  border-top-color: rgba(255,255,255,0.1);
}
.text-compare-col li:first-child { border-top: 0; }
.text-compare-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--grey-300);
  border-bottom: 2px solid var(--grey-300);
  transform: rotate(-45deg);
}
.text-compare-col.us li::before {
  border-color: var(--teal);
}
@media (max-width: 700px) {
  .text-compare { grid-template-columns: 1fr; }
}

/* Stats grid for numbers strip (4-col, on dark bg) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.stats-grid .stat {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stats-grid .stat .figure {
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 8px;
}
.stats-grid .stat h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--white);
}
.stats-grid .stat p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Hero: button-outline on black hero — make outline readable on dark */
.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--teal);
  color: var(--teal);
}
.final-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.final-cta .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--teal);
  color: var(--teal);
}

/* Section head alignment helpers (live LP defines .section-head only as centered) */
.section-head h2 {
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
}

/* === Funnel-LP: leak list in the GMV-leak section === */
.leak-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  border-top: 1px solid var(--grey-200);
}
.leak-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-200);
  font-size: 16px;
  color: var(--ink);
}
.leak-list li strong {
  display: inline-block;
  min-width: 140px;
  color: var(--teal);
  font-weight: 600;
}

/* === Funnel-LP: hero image with real WEARFITS logo overlay === */
.hero-image-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.hero-image-logo {
  position: absolute;
  top: clamp(8px, 2%, 18px);
  left: clamp(8px, 2%, 18px);
  width: clamp(70px, 9%, 120px);
  height: auto;
  /* Logo SVG uses white fill — invert to black for the off-white hero background */
  filter: brightness(0);
  pointer-events: none;
  z-index: 2;
}

/* === Funnel-LP: tighten the GMV-leak (problem) columns === */
.block .columns {
  max-width: 1180px;
  margin: 0 auto;
  gap: clamp(24px, 5vw, 56px);
}
.block .columns > div {
  max-width: 540px;
}

/* === Funnel-LP: native funnel map (replaces JPG) === */
.funnel-map {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) auto clamp(40px, 6vw, 80px);
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 18px);
  max-width: 1280px;
  flex-wrap: wrap;
}
.funnel-map .fm-node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.funnel-map .fm-chip {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: #008C7A;
  background: rgba(87, 223, 206, 0.10);
  border: 1px solid rgba(87, 223, 206, 0.35);
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.funnel-map .fm-tile {
  width: clamp(72px, 9vw, 104px);
  height: clamp(72px, 9vw, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(87, 223, 206, 0.10);
  border: 1px solid rgba(87, 223, 206, 0.30);
  border-radius: 18px;
  color: var(--teal);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 20px rgba(14, 14, 14, 0.04);
  backdrop-filter: blur(4px);
}
.funnel-map .fm-tile svg {
  width: 44%;
  height: 44%;
  display: block;
}
.funnel-map .fm-name {
  font-family: var(--font);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}
.funnel-map .fm-metric {
  font-family: var(--font);
  font-size: clamp(12px, 1vw, 14px);
  color: var(--grey-600);
  margin: 0;
}
.funnel-map .fm-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(46px, 5vw, 64px); /* aligns arrow with tile center */
  color: var(--teal);
  opacity: 0.8;
}
.funnel-map .fm-arrow svg {
  width: clamp(18px, 1.8vw, 28px);
  height: clamp(18px, 1.8vw, 28px);
}

/* Mobile collapse — switch to vertical stack */
@media (max-width: 880px) {
  .funnel-map {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .funnel-map .fm-node {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
  }
  .funnel-map .fm-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }
}

/* === Funnel-LP: tighten the gaps between sections === */
section.block { padding: clamp(40px, 5vw, 72px) 0; }

/* Tighten the hero bottom padding too */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); }

/* Less air above the funnel map */
.funnel-map {
  margin: clamp(16px, 2vw, 28px) auto clamp(20px, 3vw, 36px);
}

/* Section headers — tighter bottom margin */
.section-head { margin-bottom: clamp(20px, 3vw, 36px); }

/* === Funnel-LP: inline link styling for the GMV-leak forward reference === */
.inline-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.inline-link:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}
