/* HSF additions to the native VS4 form. */
@font-face {
  font-family: Quicksand;
  src: url("./mdhr/fonts/quicksand-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --hsf-headline: Georgia, "Times New Roman", serif;
  --hsf-black: #111;
  --hsf-blue: #2763e8;
  --hsf-white: #fff;
  --hsf-faint: #f6f7f4;
  --hsf-border: #e1e4de;
  --hsf-quiet: #626862;
  --hsf-secondary-copy: #6b736d;
  --hsf-ink: #2f3033;
  --hsf-focus: #557956;
  --hsf-tag: #1e2821d9;
  --hsf-green: #386a32;
}

html[data-hsf-style="v1"] #form-root .shell {
  --font-family: Quicksand, ui-sans-serif, system-ui, sans-serif !important;
  --hsf-headline: var(--font-family);
  font-family: var(--font-family) !important;
}

html[data-hsf-style="v1"] #form-root .shell:not(:has(.content[data-step-key="hair_loss"]))
  :is(.layout-block:has(> .brand-header), .consistent-proof-footer),
html[data-hsf-style="v1"] #form-root .shell:has(.hsf-v1-header)
  > :is(.progress-wrap, .answer-scroll-cue) {
  display: none;
}

html[data-hsf-style="v1"] #form-root :is(.question-title-row > h1, .step-hero-title) {
  text-align: center;
  text-wrap: balance;
  font-weight: 700;
}

html[data-hsf-style="v1"] #form-root .content:has(> .hsf-v1-header) > .question-title-row {
  display: block;
}

html[data-hsf-style="v1"] #form-root .content:has(> .hsf-v1-header) {
  --form-gutter: clamp(16px, 5.1vw, 24px);
}

html[data-hsf-style="v1"] #form-root .content:has(> .hsf-v1-illustration) .question-title-row > h1 {
  max-inline-size: 25ch;
  margin-inline: auto;
  font-size: clamp(1.375rem, 6vw, 1.75rem);
  line-height: 1.26;
  letter-spacing: -.025em;
}

html[data-hsf-style="v1"] #form-root .phone-frame .layout-block:has(> .content > .hsf-v1-header) {
  align-items: flex-start;
}

#form-root .hsf-v1-header {
  display: grid;
  gap: 14px;
  margin-block: 20px 36px;
  color: var(--accent-dark);
}

#form-root .hsf-v1-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
}

#form-root .hsf-v1-nav > p {
  grid-column: 2;
  margin: 0;
  color: inherit;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1rem, 5.3vw, 1.375rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}

#form-root .hsf-v1-nav :is(.hsf-back-button, .hsf-v1-forward-button) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

#form-root .hsf-v1-nav > .hsf-back-button {
  grid-area: 1 / 1;
  justify-items: start;
}

#form-root .hsf-v1-nav > .hsf-v1-forward-button {
  grid-area: 1 / 3;
  justify-items: end;
}

#form-root .hsf-v1-nav svg { width: 29px; height: 29px; }
#form-root .hsf-v1-nav button:disabled { color: #a4afa2; cursor: default; }
#form-root .hsf-v1-nav button:enabled:is(:active, :focus-visible) {
  outline: none;
  background: var(--accent-soft);
}

#form-root .hsf-v1-progress {
  display: flex;
  align-items: center;
  gap: 15px;
}

#form-root .hsf-v1-progress > strong {
  min-inline-size: 3ch;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

#form-root .hsf-v1-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1;
  gap: 5px;
}

#form-root .hsf-v1-segments > span {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
}

#form-root .hsf-v1-segments i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

#form-root .content > .hsf-v1-illustration {
  display: block;
  width: 100%;
  height: clamp(145px, 49vw, 190px);
  object-fit: contain;
  margin: 0 auto 28px;
}

#form-root .content:is([data-step-key="hair_loss_started"], [data-step-key="family_history"]) > .hsf-v1-illustration {
  height: clamp(122px, 38vw, 155px);
}

html, body { overflow-x: clip; }
html { -webkit-tap-highlight-color: transparent; scrollbar-gutter: stable; }
[hidden] { display: none !important; }
/* Hide the server-rendered landing page during a draft restart while the next step mounts. */
body:has(#quicksubmit-configuration:target) #form-root:not([data-hsf-restart-ready]) {
  animation: hsf-restart-recovery 1ms step-end 1.5s both;
}
@keyframes hsf-restart-recovery { from { opacity: 0; } to { opacity: 1; } }

#form-root .demo-mode-indicator { display: none; }
#form-root .shell {
  --form-gutter: clamp(.75rem, 3vw, 1.5rem);
  --form-option-icon-color: #649344;
}

#form-root .brand-header,
#form-root .brand-header .brand-block { justify-content: center; }

#form-root .shell:not(:has(.content[data-step-key="hair_loss"])) .phone-frame {
  min-block-size: 0;
  flex: 1 0 auto;
}
#form-root .phone-frame .layout-block:has(> .content[data-step-key]:not([data-step-key="hair_loss"])) {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  padding-block-start: 0;
}

#form-root .content[data-step-key="hair_loss"] {
  --hsf-landing-byline-size: 44px;
  --hsf-landing-byline-gap: 16px;
  --hsf-landing-caption-gap: 24px;
  container-type: inline-size;
}
#form-root [data-step-key="hair_loss"] .step-hero-title {
  color: var(--hsf-black);
  font-family: var(--hsf-headline);
  font-size: min(7.15cqi, 42px);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.1;
  margin-block-end: var(--hsf-landing-byline-gap);
  margin-inline: auto;
  text-align: center;
  white-space: normal;
  text-wrap: wrap;
}
#form-root [data-step-key="hair_loss"] .step-hero-title em { color: var(--hsf-green); font-style: normal; }
#form-root [data-step-key="hair_loss"] .question-title-row { justify-content: center; }
#form-root [data-step-key="hair_loss"] .question-title-row h1,
#form-root .hsf-repeat-gate h2 { text-align: center; }
#form-root .question-title-row h1,
#form-root .hsf-repeat-gate h2 {
  min-inline-size: 0;
  font-weight: 550;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
#form-root .content-step .question-title-row h1 { font-weight: 600; }
#form-root .option-grid[data-step-key="previous_solutions"] .check-dot {
  display: grid;
  place-items: center;
  border-color: inherit;
  border-radius: 5px;
}
#form-root .option-grid[data-step-key="previous_solutions"] [aria-pressed="true"] .check-dot {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}
#form-root .option-grid[data-step-key="previous_solutions"] [aria-pressed="true"] .check-dot::after {
  content: "";
  width: 7px;
  height: 12px;
  border: solid var(--hsf-white);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
  translate: 0 -1px;
}
#form-root [data-step-key="trying_duration"] .option-icon:has(+ .hsf-duration-icon) { display: none; }
#form-root .content:is([data-step-key="feel_attractive"], [data-step-key="social_confidence"], [data-step-key="hide_hair"]) > .step-hero-image {
  aspect-ratio: 2.3;
  object-fit: cover;
  margin-block-end: 16px;
}
#form-root .content:is([data-step-key="feel_attractive"], [data-step-key="social_confidence"]) > .step-hero-image {
  inline-size: 100%;
  margin-inline: 0;
  border-radius: 12px;
}

#form-root .question-title-row:has(> .hsf-back-button) {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
}
#form-root .question-title-row:has(> .hsf-question-category) {
  --hsf-category-ink: #a2a2a2;
  align-items: center;
  gap: 8px 2px;
}
#form-root .question-title-row:has(> .hsf-question-category) > h1 {
  grid-column: 1 / -1;
  text-align: start;
}
.hsf-question-category {
  margin: 0;
  color: var(--hsf-category-ink);
  font: 400 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hsf-question-category::after { content: " /" / ""; }
.hsf-back-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block: -8px -4px;
  margin-inline-start: -16px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--hsf-ink);
  cursor: pointer;
  touch-action: manipulation;
}
.hsf-back-button svg { width: 20px; height: 20px; }
.hsf-back-button:active { color: var(--accent-dark); }
.hsf-back-button:focus-visible { outline: none; border-color: var(--hsf-focus); }
#form-root .question-title-row:has(> .hsf-question-category) > .hsf-back-button {
  margin-block: -12px;
  margin-inline-start: -12px;
  color: var(--hsf-category-ink);
}
#form-root .question-title-row:has(> .hsf-question-category) > .hsf-back-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

#form-root .hsf-step-extra { min-width: 0; }

#form-root .hsf-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-block-size: var(--hsf-landing-byline-size);
  margin: 0 0 var(--hsf-landing-byline-gap);
  position: relative;
}

.hsf-doe { display: flex; align-items: center; gap: 12px; text-align: left; }
.hsf-doe img { border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hsf-byline .hsf-doe img { width: 42px; height: 42px; }
.hsf-doe strong, .hsf-inspiration strong { font-size: 15px; font-weight: 600; }
.hsf-doe small, .hsf-inspiration small { display: block; color: var(--hsf-quiet); font-size: 12px; }
.hsf-verified { display: inline-block; width: 15px; height: 15px; margin-left: 2px; color: var(--hsf-blue); vertical-align: -.13em; }
.hsf-verified-tick { fill: none; stroke: var(--hsf-white); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.hsf-header-actions { display: flex; }
.hsf-header-actions button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hsf-ink);
  cursor: pointer;
  touch-action: manipulation;
}
.hsf-header-actions [data-hsf-share] { --hsf-action-offset: 4px; }
.hsf-header-actions [data-hsf-save] { --hsf-action-offset: -4px; }
.hsf-header-actions button::before,
.hsf-header-actions button svg { grid-area: 1 / 1; translate: var(--hsf-action-offset, 0) 0; }
.hsf-header-actions button::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
}
.hsf-header-actions button svg, .hsf-repeat-gate .option-btn svg, .hsf-profile-fact-icon, .hsf-timeline svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hsf-header-actions button svg { width: 20px; height: 20px; }
.hsf-header-actions [aria-pressed="true"] svg { fill: currentColor; }
.hsf-header-actions button:active::before { background: var(--accent-soft); }
.hsf-header-actions button:focus-visible { outline: none; }
.hsf-header-actions button:focus-visible::before { border-color: var(--hsf-focus); }
@media (hover: hover) and (pointer: fine) {
  .hsf-header-actions button:hover:not(:active)::before { background: var(--hsf-faint); }
}
.hsf-action-status {
  position: absolute;
  top: 100%;
  margin: 0;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--hsf-white);
  color: var(--hsf-quiet);
  font-size: 11px;
}
.hsf-action-status:empty { display: none; }

#form-root [data-step-key="hair_loss"] > .step-hero-image,
#form-root [data-step-key="similar_result"] > .step-hero-image {
  aspect-ratio: 1120 / 584;
}
#form-root [data-step-key="hair_loss"] > .step-hero-image { margin-block-end: 0; }
#form-root [data-step-key="hair_loss"]:not(:has(> .hsf-byline)) > .step-hero-title {
  margin-block-end: calc(var(--hsf-landing-byline-size) + 2 * var(--hsf-landing-byline-gap));
}
#form-root [data-step-key="hair_loss"]:not(:has(> .hsf-hero-caption-anchor)) > .step-hero-image {
  margin-block-end: var(--hsf-landing-caption-gap);
}
#form-root .hsf-hero-caption-anchor {
  position: relative;
  height: 0;
  margin-block-end: var(--hsf-landing-caption-gap);
}
#form-root .hsf-hero-caption {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px 0 12px 0;
  background: var(--hsf-black);
  color: var(--hsf-white);
  font-size: 11px;
  line-height: 1.35;
}
.hsf-hero-caption svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
#form-root .hsf-landing-extra { margin-top: 28px; width: 100%; }
.hsf-press { text-align: center; margin-bottom: 28px; }
.hsf-section-title {
  margin: 0 0 12px;
  color: var(--hsf-secondary-copy);
  font-family: inherit;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
.hsf-press .hsf-section-title { margin-bottom: 8px; }
.hsf-press img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 850 / 72;
  object-fit: cover;
  margin-inline: auto;
}

.hsf-inspiration { margin-bottom: 40px; }
.hsf-inspiration .hsf-section-title { margin-bottom: 24px; }
.hsf-repeat-gate h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.hsf-inspiration-clip {
  --hsf-fade-width: clamp(20px, 5vw, 48px);
  width: calc(100% + var(--form-gutter) * 2);
  margin-inline: calc(var(--form-gutter) * -1);
  overflow: clip;
  mask-image: linear-gradient(to right, transparent, var(--hsf-black) var(--hsf-fade-width), var(--hsf-black) calc(100% - var(--hsf-fade-width)), transparent);
}
.hsf-inspiration-track { width: max-content; display: flex; animation: hsf-marquee 32s linear infinite; }
.hsf-inspiration-set { display: flex; gap: 12px; padding-right: 12px; }
.hsf-inspiration figure { margin: 0; width: clamp(138px, 36vw, 244px); text-align: left; }
.hsf-inspiration figure img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.hsf-inspiration figcaption { padding-top: 12px; line-height: 1.35; }
.hsf-inspiration figcaption strong { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.hsf-inspiration .hsf-verified { flex: 0 0 auto; margin: 0; }
.hsf-inspiration figcaption p {
  margin: 12px 0 0;
  color: var(--hsf-secondary-copy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
@keyframes hsf-marquee { to { transform: translateX(-50%); } }

#form-root:has(.content[data-step-key="hair_loss"]) :is(.consistent-proof-footer, [aria-label="Form progress"], button[aria-label="Scroll down to the answers"]) { display: none; }
#form-root .progress-wrap[data-hsf-scaled-progress] .progress-bar {
  width: 100% !important;
  transform: scaleX(var(--hsf-progress-fill));
  transform-origin: left center;
  will-change: transform;
  transition: transform .24s cubic-bezier(.2, 0, .38, .9);
}
#form-root .progress-wrap[aria-label="Form progress"] .progress-bar::after {
  background-image: linear-gradient(145deg, transparent 39%, #fff3 44%, #fff9 50%, #fff3 56%, transparent 61%);
  background-position: 0 0;
  background-size: 100% 100%;
  animation: 2.8s cubic-bezier(.45, 0, .55, 1) infinite vs4-progress-sweep;
}
.progress-wrap[aria-label="Form progress"] .progress-bar[data-complete="true"]::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  #form-root .progress-wrap[data-hsf-scaled-progress] .progress-bar { transition: none; }
  #form-root .progress-wrap[aria-label="Form progress"] .progress-bar::after { animation: none; display: none; }
}
.hsf-review-slot { margin: 24px 0 32px; }
#form-root .shell .vertex-founder-social-proof {
  grid-template-columns: max-content minmax(0, max-content);
  justify-content: center;
  gap: clamp(8px, 3vw, 22px);
  max-width: 460px;
}
#form-root .shell .vertex-founder-social-proof .vertex-founder-portrait {
  width: clamp(31px, 9vw, 48px);
  height: clamp(31px, 9vw, 48px);
}
#form-root .shell .vertex-founder-stars { gap: clamp(2px, .55vw, 4px); }
#form-root .shell .vertex-founder-stars .vertex-founder-star {
  width: clamp(16px, 3.6vw, 23px);
  height: clamp(16px, 3.6vw, 23px);
}
#form-root .shell .vertex-founder-rating p {
  font-family: inherit;
  font-size: clamp(10px, 2.75vw, 13px);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: normal;
}
.hsf-repeat-gate .option-btn svg { width: 20px; height: 20px; color: var(--form-option-icon-color); }

#form-root .phone-frame .content[data-step-key] .primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 56px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--color-accent-600);
  color: var(--color-text-white);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}
#form-root .phone-frame .content[data-step-key] .primary-btn > svg {
  flex: none;
  inline-size: 22px;
  block-size: 22px;
}
#form-root .phone-frame .content[data-step-key] .primary-btn:enabled:is(:hover, :active) {
  background: color-mix(in srgb, var(--color-accent-600) 90%, var(--color-text-primary));
}

#form-root .option-grid:not([data-step-key="age"], [data-step-key="hair_loss_pattern"]) { gap: 8px; }
#form-root .option-grid:not([data-step-key="age"], [data-step-key="hair_loss_pattern"]) > .option-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  min-height: 56px;
  height: auto;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
  touch-action: manipulation;
}

#form-root .option-grid[data-step-key] > .option-btn,
#form-root .hsf-repeat-gate .option-btn {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}
#form-root .option-grid[data-step-key="previous_solutions"] > .option-btn {
  padding-inline-end: 50px;
}

#form-root :is(.option-btn, .primary-btn):focus-visible {
  outline: none;
  border-color: var(--color-border-focus-ring);
  box-shadow: 0 0 0 1px var(--color-border-focus-ring);
}

html:not([data-hsf-version="5"]) #form-root .content:not([data-step-key="hair_loss"], [data-hsf-single-choice]) .option-btn:not(.selected):hover:not(:active) {
  border-color: var(--color-border-button-default);
  background: var(--color-background-primary-default);
  box-shadow: none;
}

#form-root .content[data-hsf-single-choice] .option-grid > .option-btn,
html[data-hsf-version="5"] #form-root .content .option-grid > .option-btn {
  --hsf-option-border: var(--color-border-button-default);
  --hsf-option-surface: var(--color-background-primary-default);
  --hsf-answer-highlight: color-mix(in srgb, var(--accent) 70%, var(--hsf-green));
  --hsf-answer-highlight-surface: color-mix(in srgb, var(--hsf-option-surface) 80%, var(--accent));
  border-color: var(--hsf-option-border);
  background-color: var(--hsf-option-surface);
  box-shadow: none;
  transition: none;
}

#form-root .content[data-hsf-single-choice] .option-grid > .option-btn.selected {
  --hsf-option-surface: var(--accent-soft);
}

#form-root .content[data-hsf-single-choice] .option-grid > .option-btn:focus-visible:not(.hsf-answer-confirmed),
html[data-hsf-version="5"] #form-root .content .option-grid > .option-btn:focus-visible:not(.hsf-answer-confirmed) {
  border-color: var(--color-border-focus-ring);
}

.hsf-step-illustration {
  display: grid;
  place-items: start center;
  block-size: 160px;
  overflow: clip;
  margin-block-end: -32px;
  color: color-mix(in srgb, var(--color-accent-600) 45%, var(--color-background-primary-default));
  mask-image: linear-gradient(to right, transparent, var(--hsf-black) 24px, var(--hsf-black) calc(100% - 24px), transparent),
    linear-gradient(to bottom, var(--hsf-black), color-mix(in srgb, var(--hsf-black) 65%, transparent) 40px, color-mix(in srgb, var(--hsf-black) 12%, transparent) 96px, transparent 144px);
  mask-composite: intersect;
  pointer-events: none;
}
.hsf-step-illustration svg { width: 192px; height: 192px; transform-origin: 50% 130%; }
.hsf-step-illustration:has(+ .question-title-row > .hsf-question-category) {
  block-size: 204px;
  margin-block-end: 0;
  mask-image: linear-gradient(to bottom, var(--hsf-black), color-mix(in srgb, var(--hsf-black) 65%, transparent) 60px, color-mix(in srgb, var(--hsf-black) 12%, transparent) 132px, transparent 194px);
}
.hsf-step-illustration:has(+ .question-title-row > .hsf-question-category) svg {
  width: 307.2px;
  height: 307.2px;
  /* Compensate for the larger viewport to make the rendered stroke 10% thinner. */
  stroke-width: .5625;
}
.hsf-step-illustration + .question-title-row { position: relative; }
.hsf-contact-focus-bridge {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .content:not([data-step-key="contact_name"]) > .hsf-step-illustration svg,
  [data-hsf-contact-enter] > .hsf-step-illustration svg {
    animation: 260ms cubic-bezier(.2, .8, .2, 1) both vs4-contact-disc-enter;
  }
  #form-root [data-step-key="contact_name"][data-hsf-contact-enter] .field-stack { animation: 180ms cubic-bezier(.05, .7, .1, 1) both vs4-first-field-appear; }
}
#form-root .shell[data-hsf-keyboard="open"]::after {
  content: "";
  display: block;
  flex: none;
  block-size: var(--hsf-keyboard-space);
  pointer-events: none;
}
#form-root .shell[data-hsf-keyboard="open"] > .progress-wrap { inset-block-end: var(--hsf-keyboard-bottom); }
#form-root :is([data-step-key="contact_name"], [data-step-key="contact_phone"]) .field input:focus {
  border-color: var(--hsf-focus);
  outline: none;
}

html:not([data-hsf-version="5"]) #form-root [data-step-key="hair_loss"] .option-grid > .option-btn:first-child {
  --hsf-option-surface: var(--accent-soft);
}

.hsf-footer { padding: 24px 0 max(16px, env(safe-area-inset-bottom)); color: var(--hsf-quiet); font-size: 11px; line-height: 1.6; text-align: center; }
.hsf-footer p { margin: 0 auto 8px; max-width: 52ch; }

#form-root [data-step-key="traditional_solutions"] h1 {
  font-size: clamp(15px, 4.1vw, 23px);
  text-align: start;
  white-space: normal;
}
.hsf-education-preview {
  margin: 12px auto 0;
  width: min(100%, 550px);
  background:
    radial-gradient(ellipse 30% 45% at 28% 55%, #e49a90c7, transparent 100%),
    radial-gradient(ellipse 30% 45% at 72% 55%, #9cc58fc7, transparent 100%);
}
.hsf-education-preview img { display: block; width: min(calc(100% - 48px), 440px); height: auto; margin-inline: auto; }

#form-root [data-step-key="traditional_solutions"] .empty-state {
  max-width: 66ch;
  border: 0;
  padding-inline: 0;
  background: transparent;
  color: var(--hsf-ink);
  text-align: left;
  text-wrap: pretty;
}
#form-root [data-step-key="traditional_solutions"] .empty-state p { margin: 0; }
#form-root [data-step-key="traditional_solutions"] .empty-state p + p { margin-block-start: 1.25em; }
#form-root [data-step-key="traditional_solutions"] .empty-state strong { font-weight: 700; }

#form-root .option-grid:is([data-step-key="age"], [data-step-key="hair_loss_pattern"]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#form-root .option-grid:is([data-step-key="age"], [data-step-key="hair_loss_pattern"]) > .option-btn:nth-child(-n+4) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: clip;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  gap: 0;
}
#form-root .option-grid:is([data-step-key="age"], [data-step-key="hair_loss_pattern"]) .option-btn:nth-child(-n+4)::before {
  content: "";
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: var(--hsf-option-photo-ratio, 1);
  background: var(--hsf-faint) var(--hsf-option-photo, none) center / cover no-repeat;
}
@supports (background-image: image-set(url("test.webp") 1x)) {
  #form-root .option-grid:is([data-step-key="age"], [data-step-key="hair_loss_pattern"]) .option-btn:nth-child(-n+4)::before {
    background-image: var(--hsf-option-photo-set);
  }
}
[data-step-key="age"] .option-btn:nth-child(1) {
  --hsf-option-photo: url("./mdhr/hsf/age-18-29-light-w420.webp");
  --hsf-option-photo-set: image-set(url("./mdhr/hsf/age-18-29-light-w240.webp") 1x, url("./mdhr/hsf/age-18-29-light-w420.webp") 2x, url("./mdhr/hsf/age-18-29-light-w600.webp") 3x);
}
[data-step-key="age"] .option-btn:nth-child(2) {
  --hsf-option-photo: url("./mdhr/hsf/age-30-39-light-w420.webp");
  --hsf-option-photo-set: image-set(url("./mdhr/hsf/age-30-39-light-w240.webp") 1x, url("./mdhr/hsf/age-30-39-light-w420.webp") 2x, url("./mdhr/hsf/age-30-39-light-w600.webp") 3x);
}
[data-step-key="age"] .option-btn:nth-child(3) {
  --hsf-option-photo: url("./mdhr/hsf/age-40-49-light-w420.webp");
  --hsf-option-photo-set: image-set(url("./mdhr/hsf/age-40-49-light-w240.webp") 1x, url("./mdhr/hsf/age-40-49-light-w420.webp") 2x, url("./mdhr/hsf/age-40-49-light-w600.webp") 3x);
}
[data-step-key="age"] .option-btn:nth-child(4) {
  --hsf-option-photo: url("./mdhr/hsf/age-50-plus-light-w420.webp");
  --hsf-option-photo-set: image-set(url("./mdhr/hsf/age-50-plus-light-w240.webp") 1x, url("./mdhr/hsf/age-50-plus-light-w420.webp") 2x, url("./mdhr/hsf/age-50-plus-light-w600.webp") 3x);
}
[data-step-key="hair_loss_pattern"] .option-btn { --hsf-option-photo-ratio: 520 / 509; }
[data-step-key="hair_loss_pattern"] .option-btn:nth-child(1) {
  --hsf-option-photo: url("./mdhr/hsf/pattern-receding-overhead-light-w420.webp");
  --hsf-option-photo-set: image-set(url("./mdhr/hsf/pattern-receding-overhead-light-w240.webp") 1x, url("./mdhr/hsf/pattern-receding-overhead-light-w420.webp") 2x, url("./mdhr/hsf/pattern-receding-overhead-light-w600.webp") 3x);
}
[data-step-key="hair_loss_pattern"] .option-btn:nth-child(2) {
  --hsf-option-photo: url("./mdhr/hsf/pattern-thinning-overhead-light-w420.webp");
  --hsf-option-photo-set: image-set(url("./mdhr/hsf/pattern-thinning-overhead-light-w240.webp") 1x, url("./mdhr/hsf/pattern-thinning-overhead-light-w420.webp") 2x, url("./mdhr/hsf/pattern-thinning-overhead-light-w600.webp") 3x);
}
[data-step-key="hair_loss_pattern"] .option-btn:nth-child(3) {
  --hsf-option-photo: url("./mdhr/hsf/pattern-significant-overhead-light-w420.webp");
  --hsf-option-photo-set: image-set(url("./mdhr/hsf/pattern-significant-overhead-light-w240.webp") 1x, url("./mdhr/hsf/pattern-significant-overhead-light-w420.webp") 2x, url("./mdhr/hsf/pattern-significant-overhead-light-w600.webp") 3x);
}
[data-step-key="hair_loss_pattern"] .option-btn:nth-child(4) {
  --hsf-option-photo: url("./mdhr/hsf/pattern-patchy-overhead-light-w420.webp");
  --hsf-option-photo-set: image-set(url("./mdhr/hsf/pattern-patchy-overhead-light-w240.webp") 1x, url("./mdhr/hsf/pattern-patchy-overhead-light-w420.webp") 2x, url("./mdhr/hsf/pattern-patchy-overhead-light-w600.webp") 3x);
}
[data-step-key="hair_loss_pattern"] .option-btn:nth-child(-n+4) svg { display: none; }
#form-root .option-grid:is([data-step-key="age"], [data-step-key="hair_loss_pattern"]) .option-btn:nth-child(-n+4) span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 40px 8px 12px;
  font-size: .875rem;
}
.option-grid:is([data-step-key="age"], [data-step-key="hair_loss_pattern"]) .option-btn:nth-child(-n+4) span::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 9px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-dark) 75%, var(--accent));
  transform: translateY(-50%);
}
.option-grid:is([data-step-key="age"], [data-step-key="hair_loss_pattern"]) .option-btn:nth-child(-n+4) span::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 18px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--hsf-white);
  border-top: 1.5px solid var(--hsf-white);
  transform: translateY(-50%) rotate(45deg);
}

#form-root .option-grid[data-step-key="hair_length"] .option-btn::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: var(--form-option-icon-color);
  mask: var(--hsf-length-icon) center / contain no-repeat;
}
[data-step-key="hair_length"] .option-btn:nth-child(1) { --hsf-length-icon: url("./mdhr/hsf/hair-length-buzzed.svg.webp"); }
[data-step-key="hair_length"] .option-btn:nth-child(2) { --hsf-length-icon: url("./mdhr/hsf/hair-length-short.svg.webp"); }
[data-step-key="hair_length"] .option-btn:nth-child(3) { --hsf-length-icon: url("./mdhr/hsf/hair-length-medium.svg.webp"); }
[data-step-key="hair_length"] .option-btn:nth-child(4) { --hsf-length-icon: url("./mdhr/hsf/hair-length-long.svg.webp"); }
#form-root :is([data-step-key="hair_profile"], [data-step-key="education_system"], [data-step-key="proof_wall"], [data-step-key="fitting_timeline"]) .empty-state:empty { display: none; }
.hsf-profile-summary {
  margin-block-end: 12px;
}
.hsf-profile-stage {
  --hsf-reveal: 100%;
  --hsf-result-mix: 0;
  --hsf-track-inset: 10%;
  --hsf-divider-position: calc(var(--hsf-track-inset) + var(--hsf-reveal) * .8);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background-color: #f8f8f3;
}
.hsf-profile-stage::before,
.hsf-profile-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.hsf-profile-stage::before {
  opacity: calc(1 - var(--hsf-result-mix));
  background: radial-gradient(ellipse at 50% 64%, #eca39f, transparent 80%);
}
.hsf-profile-stage::after {
  opacity: var(--hsf-result-mix);
  background: radial-gradient(ellipse at 50% 64%, #a4d08e, transparent 80%);
}
.hsf-profile-stage:has(input:focus-visible) { background-color: #e2ebe1; }
.hsf-profile-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  flex-wrap: wrap;
  padding: 12px 12px 8px;
}
.hsf-profile-card-heading h2 { margin: 0; color: #233129; font-size: 15px; font-weight: 650; line-height: 1.25; }
.hsf-profile-card-heading > span {
  flex: none;
  color: var(--hsf-quiet);
  font-size: 11px;
}
.hsf-profile-media {
  position: relative;
  height: clamp(224px, 61vw, 336px);
  touch-action: pan-y;
}
.hsf-profile-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hsf-profile-before {
  clip-path: inset(0 calc(100% - var(--hsf-divider-position)) 0 0);
}
.hsf-profile-after { clip-path: inset(0 0 0 var(--hsf-divider-position)); }
.hsf-profile-layer img {
  position: absolute;
  inset: 0 8%;
  display: block;
  width: 84%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.hsf-profile-divider {
  --hsf-divider-ink: var(--hsf-white);
  position: absolute;
  inset-block: 0;
  left: var(--hsf-divider-position);
  width: 1px;
  translate: -50% 0;
  background: linear-gradient(transparent, var(--hsf-divider-ink) 25% 45%, transparent 45% 55%, var(--hsf-divider-ink) 55% 75%, transparent);
}
.hsf-profile-handle {
  position: absolute;
  top: 50%;
  left: var(--hsf-divider-position);
  translate: -50% -50%;
  pointer-events: none;
}
.hsf-profile-handle svg { display: block; width: 24px; height: 24px; stroke: var(--hsf-white); }
.hsf-profile-media input {
  position: absolute;
  inset: 0 var(--hsf-track-inset);
  width: calc(100% - var(--hsf-track-inset) * 2);
  height: 100%;
  margin: 0;
  appearance: none;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.hsf-profile-media input::-webkit-slider-thumb { appearance: none; width: 1px; height: 36px; }
.hsf-profile-media input::-moz-range-thumb { width: 1px; height: 36px; border: 0; }
.hsf-profile-detail { padding-block-start: 16px; }
.hsf-profile-severity-heading { font-size: 12px; font-weight: 600; }
.hsf-coverage-meter {
  position: relative;
  margin-block: 8px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, #78a5d8, #a4acd6 35%, #ce8da5 68%, #bf4d5b);
}
.hsf-coverage-position {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hsf-coverage-position b {
  position: absolute;
  left: var(--hsf-level);
  top: 50%;
  width: 16px;
  height: 16px;
  translate: -50% -50%;
  border: 3px solid var(--hsf-white);
  border-radius: 50%;
  background: var(--accent-dark);
  box-shadow: 0 0 0 1px var(--accent-dark);
}
.hsf-coverage-position[data-severity="high"] { --hsf-level: 62.5%; }
.hsf-coverage-position[data-severity="severe"] { --hsf-level: 87.5%; }
.hsf-meter-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--hsf-quiet);
  font-size: 11px;
  text-align: center;
}
.hsf-meter-labels [data-current] { color: #923246; font-weight: 700; }
.hsf-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr) auto;
  gap: 8px;
  margin: 0;
}
.hsf-profile-fact {
  display: grid;
  grid-template-rows: auto 1fr;
  min-block-size: clamp(90px, 23vw, 132px);
  padding: 12px;
  border: 1px solid var(--hsf-border);
  border-radius: 12px;
  background: var(--hsf-faint);
}
@media (max-width: 344px) {
  .hsf-profile-fact { padding-inline: 7px; }
}
.hsf-profile-grid dt {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.hsf-profile-fact dt {
  color: #4d5a50;
  font-size: clamp(11px, 3.15vw, 15px);
  text-align: center;
}
.hsf-profile-grid dd {
  margin: 6px 0 0;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.hsf-profile-fact dd {
  display: grid;
  grid-template-columns: 24px minmax(0, max-content);
  align-items: center;
  align-self: center;
  justify-content: center;
  column-gap: 8px;
  color: #233129;
  font-size: clamp(15px, 4.6vw, 22px);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-align: start;
}
.hsf-profile-fact-value small {
  display: block;
  margin-block-start: 2px;
  color: var(--hsf-quiet);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}
.hsf-profile-fit svg {
  flex: none;
  inline-size: 18px;
  block-size: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hsf-profile-fact-icon {
  display: block;
  inline-size: 24px;
  block-size: 24px;
  color: var(--hsf-quiet);
}
.hsf-profile-fit {
  grid-column: 1 / -1;
  margin-block-start: 4px;
  padding: 16px;
  border: 1px solid var(--hsf-border);
  border-radius: 12px;
  background: var(--hsf-faint);
  color: #233129;
}
.hsf-profile-fit dt {
  color: #4d5a50;
  text-align: center;
}
.hsf-profile-fit dd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-block-start: 8px;
  font-size: 18px;
  text-align: center;
}
.hsf-profile-fit-icon {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 24px;
  block-size: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.hsf-profile-fit-icon.is-eligible {
  background: var(--hsf-green);
  color: var(--hsf-white);
}
#form-root .shell:has(> .hsf-cta-scroll-cue) > .answer-scroll-cue:not(.hsf-cta-scroll-cue),
#form-root .hsf-cta-scroll-cue[hidden] { display: none; }
#form-root [data-step-key="education_system"] .question-title-row h1 {
  max-inline-size: 12em;
  margin-inline: auto;
  color: var(--hsf-black);
  font: 400 clamp(28px, 8vw, 42px)/1.06 var(--hsf-headline);
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: balance;
}
.hsf-education-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hsf-education-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hsf-education-copy {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  row-gap: 6px;
  padding: clamp(10px, 3.4vw, 20px);
  border: 1px solid #e3e6e8;
  border-radius: 12px;
  background: var(--hsf-white);
}
.hsf-education-step {
  color: var(--hsf-green);
  font: 500 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
}
.hsf-education-copy h2 {
  margin: 0;
  font-size: clamp(15px, 4.2vw, 21px);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hsf-education-copy p {
  margin: 0;
  color: var(--hsf-quiet);
  font-size: clamp(12px, 3.45vw, 15px);
  line-height: 1.35;
  text-wrap: pretty;
}
.hsf-education-photo {
  grid-area: 1 / 2;
  align-self: stretch;
  position: relative;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 126px;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 12px;
  background: #edf0f2;
  overflow: clip;
}
.hsf-education-photo img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.hsf-education-row:first-child img { object-position: 58% center; }
.hsf-education-row:nth-child(even) .hsf-education-copy { grid-column: 2; }
.hsf-education-row:nth-child(even) .hsf-education-photo { grid-column: 1; }
.hsf-comparison { position: relative; margin: 0; border-radius: 12px; overflow: clip; }
.hsf-responsive-image { display: contents; }
.hsf-comparison img { display: block; width: 100%; height: auto; }
.hsf-case-label { position: absolute; bottom: 8px; color: var(--hsf-white); background: var(--hsf-tag); border-radius: 4px; padding: 4px 8px; font-size: 11px; }
.hsf-case-before { left: 8px; }
.hsf-case-after { left: calc(50% + 8px); }
#form-root .content > .step-hero-image:has(+ .hsf-result-detail) { margin-block-end: 8px; }
.hsf-result-detail { margin: 0 0 16px; color: var(--hsf-quiet); font-size: 13px; line-height: 1.45; }
#form-root .content[data-step-key="proof_wall"] .question-title-row {
  margin-block: 2px 20px;
  text-align: center;
}
#form-root .content[data-step-key="proof_wall"] { padding-block-end: 18px; }
#form-root .content[data-step-key="hair_profile"] .primary-btn {
  margin-block-start: 12px;
}
#form-root .content[data-step-key="proof_wall"] .question-title-row h1 {
  margin-inline: auto;
  padding-inline: calc(var(--form-gutter) * .75);
  color: #233129;
  font-size: clamp(17px, 4.65vw, 28px);
  font-weight: 500;
  line-height: 1.27;
}
.hsf-proof-count { display: inline-grid; font-variant-numeric: tabular-nums; }
.hsf-proof-count > span { grid-area: 1 / 1; }
.hsf-proof-count-tick { display: none; }
.hsf-proof-count[data-counting] .hsf-proof-count-value { opacity: 0; }
.hsf-proof-count[data-counting] .hsf-proof-count-tick { display: block; }
.hsf-proof-headline-ending {
  display: block;
  margin-block-start: 5px;
  color: var(--accent-dark);
  font-weight: 650;
  text-transform: uppercase;
}
.hsf-proof-wall { margin-block-end: 6px; }
.hsf-proof-rating {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(10px, 4vw, 30px);
  max-inline-size: 390px;
  margin: 0 auto 19px;
  color: #233129;
  text-align: center;
}
.hsf-proof-stat {
  display: grid;
  justify-items: center;
  gap: 3px;
}
.hsf-proof-stat strong { font-size: 22px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.hsf-proof-rating-denominator { margin-inline-start: 2px; font-size: 13px; }
.hsf-proof-stat small { color: var(--hsf-quiet); font-size: 10px; font-weight: 550; line-height: 1.2; }
.hsf-proof-favourite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-inline: 7px;
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 650;
  line-height: 1.16;
}
.hsf-proof-favourite svg { width: 22px; height: 34px; color: var(--hsf-green); }
.hsf-proof-favourite svg:last-child { scale: -1 1; }
.hsf-proof-rows {
  --hsf-proof-gap: 8px;
  --hsf-proof-duration: 128s;
  --hsf-proof-card-height: clamp(94px, min(27vw, calc((100svh - 376px) / 4)), 138px);
  --hsf-proof-photo-width: calc(var(--hsf-proof-card-height) * 1120 / 583);
  --hsf-proof-review-width: max(clamp(165px, 47vw, 300px), calc(var(--hsf-proof-photo-width) - 2 * var(--hsf-proof-gap)));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hsf-proof-gap);
  margin-inline: calc(var(--form-gutter) * -1);
}
.hsf-proof-row {
  overflow: clip;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.hsf-proof-track {
  display: flex;
  width: max-content;
  margin-inline-start: min(0px, var(--hsf-proof-offset));
  animation: hsf-marquee var(--hsf-proof-duration) linear infinite;
}
.hsf-proof-row:nth-child(even) .hsf-proof-track { animation-direction: reverse; }
.hsf-proof-sequence { display: flex; gap: var(--hsf-proof-gap); padding-inline-end: var(--hsf-proof-gap); }
/* Opening anchors: Matt, the centered comparison, George, then Sam. */
.hsf-proof-row:nth-child(1) {
  --hsf-proof-offset: calc(22.4% - var(--hsf-proof-review-width) - var(--hsf-proof-photo-width) - 2 * var(--hsf-proof-gap));
}
.hsf-proof-row:nth-child(2) {
  --hsf-proof-offset: calc(49.6% - var(--hsf-proof-photo-width) / 2 - var(--hsf-proof-review-width) - var(--hsf-proof-gap));
}
.hsf-proof-row:nth-child(3) {
  --hsf-proof-offset: calc(20.2% - 2 * var(--hsf-proof-review-width) - var(--hsf-proof-photo-width) - 3 * var(--hsf-proof-gap));
}
.hsf-proof-row:nth-child(4) {
  --hsf-proof-offset: calc(25.7% - var(--hsf-proof-photo-width) - var(--hsf-proof-gap));
}
.hsf-proof-photo { flex: none; width: var(--hsf-proof-photo-width); height: var(--hsf-proof-card-height); background: var(--hsf-faint); }
.hsf-proof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.hsf-proof-photo:has(img[src$="hsl-comparison-05.webp"]) {
  background: var(--hsf-faint) url('./mdhr/hsf/hsl-comparison-05-w420.webp') center 18% / cover no-repeat;
  background-image: image-set(url("./mdhr/hsf/hsl-comparison-05-w240.avif") 1x type("image/avif"), url("./mdhr/hsf/hsl-comparison-05-w420.avif") 2x type("image/avif"), url("./mdhr/hsf/hsl-comparison-05-w640.avif") 3x type("image/avif"), url("./mdhr/hsf/hsl-comparison-05-w240.webp") 1x type("image/webp"), url("./mdhr/hsf/hsl-comparison-05-w420.webp") 2x type("image/webp"), url("./mdhr/hsf/hsl-comparison-05-w640.webp") 3x type("image/webp"));
}
.hsf-proof-photo img[src$="hsl-comparison-05.webp"] {
  /* Give the swept waves and full beard extra height without widening the card. */
  width: 90%;
  margin-inline: auto;
  object-position: center 18%;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.hsf-proof-photo .hsf-case-label { bottom: 6px; padding: 3px 6px; font-size: 9px; font-weight: 600; border-radius: 5px; }
.hsf-proof-photo .hsf-case-after { background: #20471fe8; }
.hsf-proof-photo:has(img[src$="hsl-comparison-05.webp"]) .hsf-case-after { left: calc(50% + 3px); }
.hsf-proof-review {
  display: flex;
  flex-direction: column;
  flex: none;
  gap: 6px;
  width: var(--hsf-proof-review-width);
  height: var(--hsf-proof-card-height);
  margin: 0;
  padding: 8px 9px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--hsf-white), #f3f6ef);
}
.hsf-proof-review-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}
.hsf-proof-review-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7eee2;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 650;
}
img.hsf-proof-review-avatar { object-fit: cover; }
.hsf-proof-review-name { color: #414941; font-size: 11px; font-weight: 650; line-height: 1.15; }
.hsf-proof-review-stars { color: #d68c09; font-size: 10px; line-height: 1; letter-spacing: .06em; white-space: nowrap; }
.hsf-proof-review blockquote {
  flex: 1;
  min-block-size: 0;
  overflow: hidden;
  margin: 0;
  color: #565e58;
  font-size: 11px;
  line-height: 1.4;
  text-wrap: pretty;
}
.hsf-proof-review blockquote[data-overflow] { mask-image: linear-gradient(to bottom, #000 calc(100% - 15px), transparent); }

#form-root .shell:has(.content[data-step-key="fitting_timeline"]) :is(.consistent-proof-footer, .progress-wrap, button[aria-label="Scroll down to the answers"]) { display: none; }
#form-root .phone-frame .layout-block:has(> .content.content-step[data-step-key="proof_wall"]) { align-items: flex-start; }
#form-root .phone-frame .layout-block:has(> .content.content-step[data-step-key="fitting_timeline"]) {
  align-items: flex-start;
  padding-block-start: 14px;
}
#form-root .content[data-step-key="fitting_timeline"] { padding-block-end: 24px; }
.hsf-timeline-byline { display: flex; justify-content: center; margin: 0 0 14px; }
.hsf-timeline-byline .hsf-doe img { width: 42px; height: 42px; }
#form-root [data-step-key="fitting_timeline"] .question-title-row h1 {
  color: var(--hsf-ink);
  font-size: clamp(25px, 7.1vw, 40px);
  line-height: 1.18;
  text-align: center;
}
#form-root [data-step-key="fitting_timeline"] .question-title-row h1 em { color: var(--accent-dark); font-style: normal; }
.hsf-timeline-date-reveal {
  display: inline-block;
  font-size: min(.96em, 6.7vw);
  line-height: 1.18;
  white-space: nowrap;
}
.hsf-timeline-closing-quote { color: var(--hsf-ink); }
.hsf-timeline-date-slot { display: inline-grid; text-align: center; }
.hsf-timeline-date-slot > span { grid-area: 1 / 1; }
.hsf-timeline-date-slot:is([data-field="day"], [data-field="year"]) { font-variant-numeric: tabular-nums; }
.hsf-timeline-date-blank {
  align-self: end;
  block-size: 1px;
  margin: 0 .06em .12em;
  border-radius: 1px;
  background: #bcc2bd;
  visibility: hidden;
}
.hsf-timeline-date-window {
  block-size: 1.18em;
  overflow: hidden;
  visibility: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 .1em, #000 calc(100% - .1em), transparent);
}
.hsf-timeline-date-reel, .hsf-timeline-date-reel > span { display: block; }
.hsf-timeline-date-reveal[data-rolling] .hsf-timeline-date-value { opacity: 0; }
.hsf-timeline-date-reveal[data-rolling] :is(.hsf-timeline-date-blank, .hsf-timeline-date-window) { visibility: visible; }
.hsf-timeline-details { padding-inline: clamp(8px, 2.5vw, 16px); }
.hsf-timeline-details h2 { margin: 4px 0 8px; font-size: 16px; font-weight: 600; line-height: 1.25; text-align: center; }
.hsf-timeline {
  --hsf-timeline-size: 34px;
  --hsf-timeline-rail: 4px;
  display: grid;
  grid-auto-rows: minmax(56px, 1fr);
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.hsf-timeline li {
  --hsf-timeline-step-color: #e4e5e4;
  display: grid;
  grid-template-columns: var(--hsf-timeline-size) minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}
.hsf-timeline li:first-child { --hsf-timeline-step-color: var(--accent-dark); }
.hsf-timeline-marker { position: relative; display: grid; place-items: center; align-self: stretch; }
.hsf-timeline-connector {
  position: absolute;
  inset-block-start: calc(50% + var(--hsf-timeline-size) / 2 - 1px);
  inset-inline-start: calc((100% - var(--hsf-timeline-rail)) / 2);
  block-size: calc(100% - var(--hsf-timeline-size) + 2px);
  width: var(--hsf-timeline-rail);
  background: var(--hsf-timeline-step-color);
  transform-origin: top;
}
.hsf-timeline li[data-complete] .hsf-timeline-connector {
  z-index: 1;
  overflow: hidden;
}
.hsf-timeline li[data-complete] .hsf-timeline-connector::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  block-size: 46%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent-dark) 30%, var(--hsf-white)) 50%, transparent);
  animation: hsf-timeline-pulse 2s cubic-bezier(.31, .05, .57, 1) infinite;
}
@keyframes hsf-timeline-pulse {
  0% { transform: translateY(-100%); opacity: 0; }
  15% { opacity: 1; }
  65%, 100% { transform: translateY(230%); opacity: 1; }
}
.hsf-timeline-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--hsf-timeline-size);
  height: var(--hsf-timeline-size);
  border-radius: 50%;
  background: var(--hsf-timeline-step-color);
  color: #626862;
}
.hsf-timeline li:first-child .hsf-timeline-icon { color: var(--hsf-white); }
.hsf-timeline-copy { line-height: 1.4; }
.hsf-timeline li strong { font-size: 14px; font-weight: 600; }
.hsf-timeline-date { margin-inline-start: 3px; color: var(--hsf-quiet); font-size: 11px; text-transform: uppercase; white-space: nowrap; }
.hsf-timeline [aria-current="step"] .hsf-timeline-date::after {
  --hsf-next-step-color: #d93649;
  content: "";
  display: inline-block;
  inline-size: .55em;
  block-size: .55em;
  margin-inline-start: .65em;
  vertical-align: .12em;
  border-radius: 50%;
  background: var(--hsf-next-step-color);
}
@media (prefers-reduced-motion: no-preference) {
  .hsf-timeline [aria-current="step"] .hsf-timeline-date::after {
    animation: hsf-next-step-pulse 1.8s cubic-bezier(.16, .64, .32, 1) infinite;
  }
}
@keyframes hsf-next-step-pulse {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hsf-next-step-color) 48%, transparent); }
  70%, to { box-shadow: 0 0 0 .48em transparent; }
}
.hsf-timeline-icon svg { width: 20px; height: 20px; }
.hsf-timeline li[data-complete] .hsf-timeline-icon svg { width: 22px; height: 22px; stroke-width: 3.4; }
.hsf-timeline-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; }
#form-root .phone-frame .content[data-step-key="fitting_timeline"] .hsf-whatsapp {
  position: relative;
  margin: 0;
  overflow: hidden;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hsf-whatsapp:not([inert])::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -42%;
    width: 42%;
    background: linear-gradient(110deg, transparent, #ffffff47, transparent);
    pointer-events: none;
    animation: 2.8s cubic-bezier(.4, 0, .2, 1) infinite progress-shine;
  }
}
.hsf-whatsapp-note { margin: 8px 0 0; color: var(--hsf-quiet); font-size: 13px; line-height: 1.4; text-align: center; }
.hsf-whatsapp-status { margin: 9px 0 0; font-size: 11px; text-align: center; color: var(--hsf-quiet); }

@media (max-width: 640px) {
  #form-root [data-mobile-images="edge-to-edge"] .hsf-hero-caption-anchor {
    width: calc(100% + var(--form-gutter) * 2);
    margin-inline: calc(var(--form-gutter) * -1);
  }
  #form-root [data-mobile-images="edge-to-edge"] .hsf-hero-caption { border-radius: 4px 0 0 0; }
}
@media (max-width: 480px) {
  #form-root .hsf-byline { gap: 20px; }
  .hsf-doe { gap: 8px; }
  .hsf-doe strong { font-size: 14px; }
  .hsf-repeat-gate h2 { font-size: 18px; }
  .hsf-inspiration figcaption strong { font-size: 13px; }
  #form-root .option-grid:is([data-step-key="age"], [data-step-key="hair_loss_pattern"]) .option-btn:nth-child(-n+4) span { padding-inline-start: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hsf-inspiration-track { animation-duration: 95s; }
  .hsf-proof-track { animation-duration: calc(var(--hsf-proof-duration) * 2); }
  .hsf-timeline li[data-complete] .hsf-timeline-connector::after { animation: none; opacity: 0; }
}
