.hero {
  display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(24px, 4.5vw, 76px); align-items: center;
  padding-block: clamp(32px, 4vw, 66px) clamp(38px, 5.4vw, 80px);
}
.pitch h1 { font-size: clamp(3.65rem, 6.6vw, 6.6rem); line-height: .98; letter-spacing: -.073em; }
.pitch h1 span { display: block; }
.pitch .lead { max-width: 36ch; }
.pitch .primary { min-height: 54px; padding-inline: 23px; gap: 25px; }
.pitch .primary span { font-size: 1.2em; }
.guest-note { margin-top: 10px; color: var(--subtle); font-size: .9rem; }
.demo {
  min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  display: grid; grid-template: 'stage' auto 'picker' auto / minmax(0,1fr);
}
.stage {
  grid-area: stage; container-type: inline-size;
  background-color: #eef1fa;
  background-image: linear-gradient(90deg, transparent 18%, #eef1fa 48%),
    linear-gradient(#ced4e380 1px, transparent 1px), linear-gradient(90deg, #ced4e380 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px; background-position: center;
}
.pair { position: relative; display: none; min-height: 240px; height: clamp(240px, 55cqw, 420px); }
.pair[data-example="duck"], .demo:has([value="hero"]:checked) [data-example="hero"],
.demo:has([value="phone"]:checked) [data-example="phone"] { display: block; }
.demo:has(input:checked:not([value="duck"])) [data-example="duck"] { display: none; }
.pair img { display: block; object-fit: contain; }
.source {
  position: absolute; left: 5%; top: 14%; width: 24%; z-index: 1; transform: rotate(-5deg);
  background: white; border: 1px solid #b9becc; padding: 6px 6px 7px; border-radius: 5px;
  box-shadow: 2px 4px 0 #27345a12; text-align: center;
}
.source img { width: 100%; height: auto; }
.pair figcaption { color: #3e4860; font-size: .875rem; line-height: 1.3; }
.render {
  position: absolute; inset: 0 1% 0 25%; display: grid; grid-template-rows: minmax(0,1fr) auto;
  justify-items: center; padding: 10px 4% 13px;
}
.render img { width: 100%; height: 100%; min-height: 0; mix-blend-mode: multiply; }
.render figcaption { background: #eef1fa; padding-inline: 6px; }
.picker {
  grid-area: picker; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px; margin: 0; padding: 9px; min-width: 0; border: 0; border-top: 1px solid var(--line);
}
.picker label { position: relative; cursor: pointer; }
.picker label span {
  display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 4px 13px;
  border: 1px solid transparent; border-radius: 7px; font-size: .94rem;
}
.picker label:hover span { background: var(--wash); }
.picker input:checked + span { background: var(--pale); border-color: #a7b3ed; color: var(--blue); font-weight: 600; }
.picker input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.picker img { width: 27px; height: 27px; object-fit: contain; }
.section-heading, .set-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.guide, .sets-info { border-top: 1px solid var(--line); padding-top: clamp(28px,3.5vw,54px); }
.steps {
  list-style: decimal-leading-zero; list-style-position: inside; padding: 0; margin: clamp(18px,2vw,32px) 0 0;
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px,2vw,32px);
}
.steps li { position: relative; border-top: 1px solid var(--line); padding: 16px 0 0; }
.steps li::marker { font-size: .94rem; font-weight: 600; color: var(--blue); }
.step-art { height: clamp(96px, 8.3vw, 132px); margin: -20px 0 12px 32px; pointer-events: none; }
.step-art img { width: 100%; height: 100%; object-fit: contain; }
.steps p, .paths p { margin-top: 8px; color: var(--subtle); max-width: 54ch; }
.sets-info { margin-top: clamp(40px,5.5vw,86px); }
.paths { display: grid; grid-template-columns: 1fr 1.14fr; gap: 16px; margin-top: 26px; }
.paths section { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px,2.3vw,36px); border-radius: 14px; }
.single-path { background: var(--pale); }
.set-path { background: var(--wash); }
.paths h3 { font-size: clamp(1.4rem,2vw,2rem); }
.set-heading { justify-content: flex-start; align-items: center; }
.closed { padding: 3px 9px; border: 1px solid #a8aebc; border-radius: 4px; font-size: .875rem; }
.paths details { margin: 8px 0 0; }
.paths summary { width: fit-content; min-height: 44px; padding-block: 10px; cursor: pointer; }
.paths .text-link { margin-top: auto; padding-top: 12px; }
#stats-settings { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--subtle); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 26px 34px; }
  .pitch h1 { font-size: clamp(2.9rem,8.4vw,4.45rem); }
  .pitch h1 span { display: inline; white-space: nowrap; }
  .pitch .lead { max-width: 49ch; margin-top: 12px; }
  .pitch .actions-row { margin-top: 16px; }
  .demo { width: 100%; }
  .pair { min-height: 160px; height: clamp(160px,52cqw,320px); }
  .paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .picker { justify-content: space-evenly; padding: 5px 2px; gap: 0; }
  .picker label span { padding-inline: 7px; gap: 4px; font-size: .875rem; }
  .picker img { width: 22px; height: 22px; }
  .source { top: 12%; left: 4%; width: 28%; }
  .render { left: 27%; padding: 5px 1% 8px; }
  .steps, .paths { grid-template-columns: 1fr; }
  .steps li { padding: 16px 0 0; }
  .steps h3 { display: inline; margin-left: 4px; }
  .step-art { float: right; width: 25%; height: 80px; margin: 0 0 6px 12px; }
  .paths { margin-top: 18px; }
}
@media (max-width: 365px) {
  .picker label span { padding-inline: 4px; }
}
@media (max-height: 450px) and (min-width: 501px) and (max-width: 800px) {
  .hero { padding-top: 12px; }
  .pitch h1 { font-size: 2.6rem; }
}
@media (forced-colors: active) {
  .picker input:checked + span { border: 2px solid Highlight; }
  .render img { mix-blend-mode: normal; }
}
