/* Page-scrolled timelines in the two scenario colors. */
.homepage .how-section {
  --how-paper: #070707;
  --how-overlap: clamp(38px, 6vh, 86px);
  --how-heading-peek: clamp(30px, 3.1vh, 44px);
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: clip;
  min-height: 0;
  /* Preserve the fade overlap; show only a glimpse of the heading before scrolling. */
  margin-top: calc(-1 * var(--how-overlap));
  padding: calc(var(--how-overlap) + 10vh - var(--how-heading-peek)) 0 clamp(64px, 7vw, 112px);
  padding-top: calc(var(--how-overlap) + 10dvh - var(--how-heading-peek));
  border: 0;
  /* The hero owns the curved fade. Keep this overlapping area clear so it stays curved. */
  background: linear-gradient(180deg, transparent calc(var(--how-overlap) - 1px), var(--how-paper) var(--how-overlap));
  color: #eeeeee;
  color-scheme: dark;
}
@media (max-height: 800px) {
  /* Leave room for the partner strip in shorter windows. */
  .homepage .how-section { --how-overlap: 3vh; }
}
.homepage .how-container {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}
/* Straddle the fade with most of the lettering on its solid black side. */
.homepage .transition-watermark {
  position: absolute;
  z-index: 0;
  top: max(0px, calc(var(--how-overlap) - .3em));
  left: 50%;
  transform: translate3d(calc(-50% + var(--watermark-x, -100vw)), 0, 0);
  will-change: transform;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  color: rgba(255,255,255,.018);
  font: 800 clamp(44px, 12.2vw, 236px)/1 Arial, Helvetica, sans-serif;
  letter-spacing: -.055em;
}
.homepage .how-heading {
  position: sticky;
  top: var(--site-header-height);
  z-index: 2;
  text-align: center;
  padding: 12px 0 25px;
  margin-bottom: 16px;
}
.homepage .how-heading[data-stuck=true] {
  background: linear-gradient(var(--how-paper) 84%, transparent);
}
.homepage .how-section #how-title {
  margin: 0;
  font: 600 clamp(38px, 3.5vw, 54px)/1.12 Arial, Helvetica, sans-serif;
  letter-spacing: -.04em;
  color: #f0f0f0;
}
.homepage .how-intro {
  max-width: 650px;
  margin: 22px auto 0;
  color: #b7b7b7;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}
.homepage .how-flows { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(30px,6vw,90px); }
.homepage .how-flow {
  --flow-accent: #73e5b4;
  --flow-rgb: 12,201,130;
  --flow-ink: #f0f0f0;
  --flow-muted: #bcbcbc;
  --flow-marker-ink: #141414;
  --flow-marker-size: 30px;
  --flow-step-pad: 16px;
  min-width: 0;
  color: var(--flow-ink);
}
.homepage .how-flow[data-scenario=new-repair] {
  --flow-accent: #ff9197;
  --flow-rgb: 235,66,76;
}
.homepage .how-flow > h3 {
  margin: 0 0 8px;
  color: var(--flow-accent);
  font-size: clamp(22px,2.1vw,32px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.homepage .how-flow-steps { margin: 0; padding: 0; list-style: none; }
.homepage .how-flow-steps li {
  position: relative;
  display: grid;
  grid-template-columns: var(--flow-marker-size) minmax(0,1fr);
  align-items: start;
  gap: 12px;
  padding-block: var(--flow-step-pad);
}
.homepage .how-flow-steps li:last-child { padding-bottom: 0; }
.homepage .how-flow-steps li:not(:last-child)::before,
.homepage .how-flow-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--flow-step-pad) + var(--flow-marker-size) / 2);
  left: calc((var(--flow-marker-size) - 2px) / 2);
  width: 2px;
  height: 100%;
  pointer-events: none;
}
.homepage .how-flow-steps li:not(:last-child)::before { background: rgba(var(--flow-rgb),.24); }
.homepage .how-flow-steps li:not(:last-child)::after {
  background: var(--flow-accent);
  transform: scaleY(var(--step-progress, 0));
  transform-origin: top;
}
.homepage .how-flow-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: var(--flow-marker-size);
  border: 1px solid rgba(var(--flow-rgb),.5);
  border-radius: 50%;
  background: var(--how-paper);
  color: var(--flow-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.homepage .how-flow-steps li[data-reached=true] .how-flow-number {
  border-color: var(--flow-accent);
  background: var(--flow-accent);
  color: var(--flow-marker-ink);
}
.homepage .how-flow-steps h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.homepage .how-flow-steps p { margin: 0; color: var(--flow-muted); font-size: 14px; line-height: 1.5; }
.homepage .how-flow-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--flow-rgb),.38);
  border-radius: 9px;
  background: rgba(var(--flow-rgb),.07);
  color: var(--flow-ink);
  scroll-margin-top: 130px;
  font: 600 13px/1.35 Arial, Helvetica, sans-serif;
  text-align: left;
}
.homepage .how-flow a.how-flow-action:hover { border-color: var(--flow-accent); }
.homepage .how-flow a.how-flow-action:focus-visible { outline-color: var(--flow-accent); outline-offset: 3px; }
.homepage .how-flow-action:disabled { opacity: .55; cursor: default; }
.homepage .how-flow-more { margin: 5px 0 12px; }
.homepage #how-purchased-title { scroll-margin-top: 130px; }
@media (min-width:701px) {
  .homepage .how-flows { column-gap: clamp(30px,6vw,90px); row-gap: 0; }
  .homepage .how-flow {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
  }
  .homepage .how-flow-more { justify-self: start; align-self: start; }
  .homepage .how-flow-steps { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
}
html[data-theme=light] .homepage .how-flow {
  --flow-accent: #087c51;
  --flow-rgb: 8,124,81;
  --flow-ink: #17211d;
  --flow-muted: #58645d;
  --flow-marker-ink: #fff;
}
html[data-theme=light] .homepage .how-flow[data-scenario=new-repair] {
  --flow-accent: #ad3039;
  --flow-rgb: 173,48,57;
}
@media (max-width: 700px) {
  .homepage .how-flows { grid-template-columns: minmax(0,1fr); gap: 30px; }
}
.homepage .how-help { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 24px; padding: 24px 30px; border: 1px solid #404040; border-radius: 10px; background: #202020; }
.homepage .how-help h3 { margin: 0 0 7px; color: #e6e6e6; font-size: 16px; font-weight: 500; }
.homepage .how-help p { margin: 0; color: #b5b5b5; font-size: 13px; line-height: 1.5; }
.homepage .how-help>a { display: inline-flex; align-items: center; gap: 12px; flex: none; color: #b6d7bd; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.homepage .how-help>a:hover { color: #d3eeda; }
.homepage .how-help svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.homepage .how-section a:focus-visible { outline-color: #259455; }
@media(min-width:1800px) {
  .homepage .how-container { width: min(1480px,calc(100% - 180px)); }
}
@media(max-width:1000px) {
  .homepage .how-container { width: calc(100% - 48px); }
  .homepage .how-help { padding: 22px 24px; }
}
@media(max-width:700px) {
  .homepage .how-section { padding-bottom: 56px; }
  .homepage .how-container { width: calc(100% - 36px); max-width: 520px; }
  .homepage .how-heading { padding-bottom: 18px; margin-bottom: 10px; }
  .homepage .how-section #how-title { font-size: 39px; }
  .homepage .how-intro { font-size: 15px; line-height: 1.6; margin-top: 18px; }
  .homepage .how-help { flex-direction: column; align-items: flex-start; gap: 22px; padding: 24px; margin-top: 20px; }
  .homepage .how-help h3 { font-size: 16px; line-height: 1.4; }
  .homepage .how-help>a { font-size: 22px; }
}
