/* olvoh - variant s3 body sections. Design lens: Product walkthrough.
   Uses the shared tokens from styles.css (do not edit that file). Warm cream
   aesthetic, local system fonts, --ember accent. The
   spine is "how the teardown works"; the centerpiece is a real, styled sample
   teardown artifact rendered in HTML/CSS. Static - only the shared hero
   animation and shared [data-reveal] scroll reveal move. */

/* ---- shared section scaffolding ---- */
.how, .journeys, .teardown, .surfaces, .who, .offer {
  padding-inline: max(var(--pad), calc((100% - var(--maxw)) / 2));
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section-head { max-width: 46rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  font: 600 0.78rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ember);
  margin: 0 0 0.85rem;
}
.eyebrow.light { color: #f0c3a8; }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-lead {
  margin-top: 1rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  color: var(--ink-2);
}

/* ============ 1. HOW IT WORKS - the spine ============ */
.steps {
  list-style: none;
  margin: clamp(2.2rem, 4vw, 3.2rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 1.9rem 1.6rem 1.9rem 0;
}
.step::before {
  /* the connective spine dot marching left → right */
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--ember-soft);
}
.step-no {
  display: block;
  font: 700 0.82rem/1 var(--serif);
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.step-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.step-copy {
  font-size: 0.96rem;
  color: var(--ink-2);
  max-width: 24ch;
}

/* ============ 2. GUEST JOURNEYS - who you gain, keep, and lose ============ */
.journeys .section-head { max-width: 54rem; margin-inline: auto; text-align: center; }
.journeys .section-lead { margin-inline: auto; max-width: 56ch; }

.legend-row { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin: 1.8rem 0 1.1rem; }
.lg-chip { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.8rem/1 var(--sans); color: var(--ink-2); }
.lg-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.lg-chip.gained::before { background: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }
.lg-chip.retained::before { background: var(--good); box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.14); }
.lg-chip.lost::before { background: var(--rival); box-shadow: 0 0 0 3px rgba(43, 107, 131, 0.14); }

.stage-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(0.6rem, 1.6vw, 1.4rem); }
.stage-scroll { overflow-x: auto; }
.stage-svg { min-width: 920px; width: 100%; height: auto; display: block; }
.stage-svg text { font-family: var(--sans); }

.strand { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.strand.d1 { animation-delay: 0.1s; } .strand.d2 { animation-delay: 0.25s; } .strand.d3 { animation-delay: 0.4s; }
.strand.d4 { animation-delay: 0.55s; } .strand.d5 { animation-delay: 0.7s; } .strand.d6 { animation-delay: 0.85s; }
.strand.d7 { animation-delay: 1.1s; } .strand.d8 { animation-delay: 1.3s; }

.stage-note { margin-top: 0.9rem; text-align: center; font-size: 0.78rem; color: var(--muted); }

/* ============ 3. SAMPLE TEARDOWN ARTIFACT - dark briefing band ============ */
.teardown { background: var(--dark); color: var(--paper); }
.teardown .section-head { margin-inline: auto; text-align: center; }
.teardown .section-title { color: var(--paper); }
.teardown .eyebrow { color: #f4b48f; }
.teardown .section-lead { margin-inline: auto; color: color-mix(in srgb, var(--paper) 78%, transparent); }

.artifact {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 940px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.artifact-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: color-mix(in srgb, var(--ink) 92%, #000 8%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.artifact-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.artifact-file {
  margin-left: 0.7rem;
  font: 500 0.8rem/1 var(--sans);
  color: rgba(247, 243, 234, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artifact-tag {
  margin-left: auto;
  flex: 0 0 auto;
  font: 700 0.62rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f4b48f;
  background: rgba(194, 72, 28, 0.24);
  border: 1px solid rgba(244, 180, 143, 0.4);
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
}

.artifact-body { padding: clamp(1.4rem, 3vw, 2.4rem); }

/* artifact header */
.art-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.3rem;
  border-bottom: 2px solid var(--ink);
}
.art-kicker {
  font: 600 0.72rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.art-h1 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); letter-spacing: -0.02em; }
.art-meta { text-align: right; }
.art-meta-k {
  display: block;
  font: 600 0.66rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.art-meta-v {
  display: block;
  margin-top: 0.2rem;
  font: 600 0.92rem/1.2 var(--serif);
  color: var(--ink);
}

/* ranked worst stores */
.rank { margin-top: 1.6rem; }
.rank-label {
  font: 600 0.68rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.rank-row {
  display: grid;
  grid-template-columns: 1.7rem 5.6rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.rank-row.is-focus {
  border-color: rgba(194, 72, 28, 0.45);
  background: var(--ember-soft);
  box-shadow: inset 3px 0 0 var(--ember);
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 8px;
  font: 700 0.85rem/1 var(--serif);
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.rank-row.is-focus .rank-badge { background: var(--ember); color: #fff; border-color: transparent; }
.rank-store { font: 600 0.92rem/1 var(--sans); color: var(--ink); }
.rank-bar {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  overflow: hidden;
}
.rank-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember-deep), var(--ember));
}
.rank-row:not(.is-focus) .rank-fill { background: color-mix(in srgb, var(--rival) 70%, var(--ink) 8%); opacity: 0.72; }
.rank-score {
  font: 600 0.78rem/1 var(--sans);
  color: var(--muted);
  white-space: nowrap;
}
.rank-row.is-focus .rank-score { color: var(--ember); }

/* deep dive */
.dive { margin-top: 1.8rem; }
.dive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dive-title { font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.dive-corner { font: 500 0.82rem/1.3 var(--sans); color: var(--muted); }

.dive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.card-k {
  font: 700 0.64rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.card-fix { background: var(--panel); border-color: var(--line-2); }
.card-fix-line {
  font: 600 1.02rem/1.35 var(--serif);
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.card-note { font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }

.quote {
  margin: 0 0 0.6rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--ember);
  font: 500 0.94rem/1.5 var(--sans);
  color: var(--ink);
  font-style: italic;
}

/* rival face-off inside the artifact */
.rival-face {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.rival-col { display: flex; flex-direction: column; gap: 0.35rem; }
.rival-col:last-child { text-align: right; }
.rival-name {
  font: 600 0.74rem/1.2 var(--sans);
  color: var(--ink-2);
}
.rival-name.you { color: var(--ember); }
.rival-name.them { color: var(--rival); }
.rival-word {
  font: 600 0.86rem/1.2 var(--serif);
  color: var(--ink);
  padding: 0.28rem 0.5rem;
  border-radius: 7px;
  background: var(--ember-soft);
  align-self: flex-start;
}
.rival-word.them {
  background: rgba(43, 107, 131, 0.12);
  align-self: flex-end;
}
.rival-vs {
  font: 700 0.7rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dive-foot {
  margin-top: 1.1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 95%, #000 5%);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.foot-k {
  font: 700 0.64rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #f4b48f;
  flex: 0 0 auto;
}
.foot-v { font: 500 0.9rem/1.4 var(--sans); color: rgba(247, 243, 234, 0.9); }

.artifact-caption {
  margin: 1.2rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============ 3. WHAT THE REPORT SURFACES - claim grid ============ */
.grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile {
  background: var(--panel);
  padding: 1.7rem 1.6rem 1.8rem;
}
.tile-title {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}
.tile-title::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ember);
  margin-bottom: 0.9rem;
}
.tile-copy { font-size: 0.94rem; color: var(--ink-2); }

/* ============ 5. WHO IT'S FOR ============ */
.who-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.who-lead {
  margin-top: 1rem;
  max-width: 40ch;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  color: var(--ink-2);
}
.who-list {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.who-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 1rem;
  color: var(--ink);
}
.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--ember-soft);
}
.who-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.who-side-k {
  font: 700 0.68rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember);
  margin-bottom: 0.7rem;
}
.who-side-v { font-size: 1rem; color: var(--ink-2); line-height: 1.5; }

/* ============ 6. OFFER / CTA ============ */
.offer { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.offer-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  background: var(--dark);
  color: var(--paper);
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.6rem, 4vw, 3.2rem);
  box-shadow: var(--shadow);
  background-image:
    radial-gradient(120% 140% at 50% -20%, rgba(194, 72, 28, 0.22), transparent 60%);
}
.offer-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--paper);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.offer-copy {
  max-width: 46ch;
  margin: 0 auto 1.8rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}
.offer-sign {
  margin-top: 1.3rem;
  font: 500 0.9rem/1 var(--sans);
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .step { border-right: 0; padding: 1.6rem 1.4rem 1.6rem 0; }
  .step:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1.4rem; }
  .step { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .dive-grid { grid-template-columns: 1fr; }
  .who-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(odd) { border-right: 0; padding-right: 0; }
  .grid { grid-template-columns: 1fr; }
  .art-head { flex-direction: column; align-items: flex-start; }
  .art-meta { text-align: left; }
  .rank-row {
    grid-template-columns: 1.5rem 1fr auto;
    grid-template-areas: "badge store score" "badge bar bar";
    row-gap: 0.5rem;
  }
  .rank-badge { grid-area: badge; }
  .rank-store { grid-area: store; }
  .rank-score { grid-area: score; }
  .rank-bar { grid-area: bar; }
  .rival-face { grid-template-columns: 1fr; text-align: left; gap: 0.5rem; }
  .rival-col:last-child { text-align: left; }
  .rival-word.them { align-self: flex-start; }
  .rival-vs { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .rank-fill { transition: none; }
  .strand { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}
