/* Reuse the site's blue backdrop, silhouette cards, white surfaces and buttons. */
.how-page { width: 100%; min-width: 0; padding-bottom: 24px; }
.how-hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 200px; padding: 30px 22px 26px; text-align: center; }
.how-hero-copy { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin-inline: auto; }
.how-kicker { margin: 0 0 10px; color: #476780; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.how-hero h1 { margin: 0; color: #152033; font-size: clamp(30px, 3.5vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.how-intro { margin: 12px auto 0; color: #355267; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.5; text-wrap: balance; }
.how-content { position: relative; width: min(1280px, 88%); margin: 0 auto; display: grid; gap: 18px; }
.how-get-started { min-width: 0; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.how-step { --surface-radius: 22px; min-width: 0; padding: clamp(18px, 1.7vw, 26px); display: flex; flex-direction: column; gap: 18px; }
.how-step-copy { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.how-step-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #bceafa; color: #0876c2; font-size: 25px; font-weight: 800; }
.how-step h2 { color: #152033; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -.025em; font-weight: 750; }
.how-step p { margin: 6px 0 0; color: #586a7a; font-size: 14px; line-height: 1.45; }
.how-step-visual { margin-top: auto; display: grid; gap: 18px; align-items: center; min-width: 0; min-height: 172px; }
.how-upload-preview, .how-result-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.how-portrait { display: block; width: 100%; min-width: 0; height: 166px; object-fit: cover; object-position: center 35%; border: 1px solid rgba(31, 79, 122, .12); border-radius: 10px; background: #e5e8e9; }
.how-upload-example { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 12px 6px; border: 1px dashed #b4d8ee; border-radius: 10px; background: #edf6fc; color: #152033; text-align: center; font-size: 13px; }
.how-upload-example svg { width: 36px; height: 36px; margin-bottom: 5px; padding: 5px; border-radius: 9px; background: #d7efff; color: #168fe1; }
.how-upload-example small { color: #586a7a; font-size: 11px; }
.how-compare-preview { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.how-compare-preview figure { min-width: 0; margin: 0; }
.how-compare-preview .how-portrait { height: 142px; }
.how-compare-preview figcaption { margin-top: 7px; padding: 5px 8px; border-radius: 999px; color: #152033; background: #e3f3fc; text-align: center; font-size: 12px; font-weight: 650; }
.how-vs { padding-bottom: 28px; color: #586a7a; font-size: 12px; }
.how-example-score { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; min-height: 150px; padding: 12px 8px; border: 1px solid rgba(31, 79, 122, .09); border-radius: 12px; background: rgba(255, 255, 255, .48); text-align: center; }
.how-example-score > span { color: #586a7a; font-size: 13px; }
.how-example-score strong { margin: 6px 0 10px; color: #173348; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; font-weight: 750; letter-spacing: -.035em; }
.how-example-score small { color: #476780; font-size: 11px; line-height: 1.4; }
.page-how-it-works .how-button { min-height: 44px; padding: 11px 14px; font-size: 14px; font-weight: 750; gap: 7px; line-height: 1.3; text-align: center; background: linear-gradient(180deg, #c7f0fd, #a4e0f5); border-color: #b4e5f5; }
.how-details-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.how-panel { --surface-radius: 22px; min-width: 0; padding: clamp(22px, 1.9vw, 30px); }
.how-section-heading { margin-bottom: 20px; }
.how-section-heading .how-kicker { margin-bottom: 7px; font-size: 9px; }
.how-section-heading h2 { color: #152033; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -.035em; font-weight: 750; text-wrap: balance; }
.how-score-explanation { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 20px; }
.how-score-copy p { color: #586a7a; font-size: 14px; line-height: 1.5; }
.how-score-copy p + p { margin-top: 16px; }
.how-confidence-chart { min-width: 0; margin: 0; padding: 14px 10px 10px; border: 1px solid rgba(31, 79, 122, .09); border-radius: 16px; background: rgba(255, 255, 255, .4); }
.how-confidence-chart > p { margin: 0 0 4px; color: #0876c2; font-size: 12px; line-height: 1.4; text-align: center; }
.how-confidence-chart strong { font-weight: 650; }
.how-confidence-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.how-chart-grid { stroke: #e2eaf0; stroke-width: 1; }
.how-chart-band { fill: #dceffc; }
.how-chart-axis { fill: none; stroke: #a7bdcc; stroke-width: 1; }
.how-chart-line { fill: none; stroke: #129cf2; stroke-width: 2.5; }
.how-chart-points { fill: #fff; stroke: #129cf2; stroke-width: 1.7; }
.how-chart-labels { fill: #586a7a; font-size: 10px; }
.how-confidence-chart figcaption { margin-top: 8px; color: #586a7a; font-size: 10px; line-height: 1.4; text-align: center; }
.how-text-link { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; min-height: 30px; margin-top: 12px; color: #1f4f7a; font-size: 12px; font-weight: 700; text-decoration: none; }
.how-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.how-reliability-list { display: grid; }
.how-reliability-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; padding: 11px 0; }
.how-reliability-item:first-child { padding-top: 0; }
.how-reliability-item + .how-reliability-item { border-top: 1px solid rgba(31, 79, 122, .08); }
.how-reliability-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #c3ecfa; color: #078bdf; }
.how-reliability-icon svg { width: 23px; height: 23px; }
.how-reliability-item h3 { color: #152033; font-size: 14px; line-height: 1.3; font-weight: 750; }
.how-reliability-item p { margin-top: 3px; color: #586a7a; font-size: 12px; line-height: 1.45; }
.how-faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.9fr); align-items: start; gap: 28px; }
.how-faq .how-section-heading { margin: 4px 0 0; }
.how-faq-items { min-width: 0; padding: 2px 16px; border: 1px solid rgba(31, 79, 122, .08); border-radius: 16px; background: rgba(255, 255, 255, .42); }
.how-faq details + details { border-top: 1px solid rgba(31, 79, 122, .1); }
.how-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; color: #152033; font-size: 13px; font-weight: 650; line-height: 1.45; cursor: pointer; list-style: none; }
.how-faq summary::-webkit-details-marker { display: none; }
.how-faq summary::after { content: "+"; flex: 0 0 12px; color: #476780; font-size: 17px; font-weight: 500; text-align: center; }
.how-faq details[open] > summary::after { content: "−"; }
.how-faq-answer { padding: 0 0 16px; color: #586a7a; font-size: 13px; line-height: 1.65; }
.how-faq-answer p + p { margin-top: 10px; }
.how-faq-answer a { color: #1f4f7a; text-underline-offset: 3px; }
.how-page a:focus-visible, .how-faq summary:focus-visible { outline: 3px solid #278fc7; outline-offset: 4px; border-radius: 6px; }

@media (min-width: 801px) {
    /* Keep every rotated silhouette fully inside the header. */
    .how-background { display: block; }
    .how-background .home-background-card--left-edge { display: block; left: clamp(20px, 2.5vw, 48px); top: 50%; translate: 0 -50%; width: clamp(85px, 8vw, 120px); }
    .how-background .home-background-card--right-edge { right: clamp(20px, 2.5vw, 48px); top: 50%; translate: 0 -50%; width: clamp(85px, 8vw, 120px); }
    .how-background .home-background-card--left-soft { left: 13%; top: 12%; width: clamp(66px, 6vw, 96px); }
    .how-background .home-background-card--right-soft { right: 13%; top: 10%; width: clamp(66px, 6vw, 96px); }
}

@media (max-width: 1100px) {
    .how-content { width: calc(100% - 40px); }
    .how-steps { gap: 14px; }
    .how-step { padding: 18px; }
    .how-step-copy { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
    .how-step-number { width: 34px; height: 34px; font-size: 21px; }
    .how-step h2 { font-size: 18px; }
    .how-step p { font-size: 13px; }
    .how-step-visual { gap: 12px; min-height: 158px; }
    .how-portrait { height: 150px; }
    .how-compare-preview { gap: 7px; }
    .how-compare-preview .how-portrait { height: 126px; }
    .how-details-grid { grid-template-columns: 1fr; }
    .how-score-explanation { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .how-confidence-chart { max-width: 320px; justify-self: end; }
    .how-reliability-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
    .how-reliability-item { align-items: start; padding-block: 10px; }
    .how-reliability-item:first-child { padding-top: 10px; }
    .how-reliability-item:nth-child(2) { border-top: 0; }
}

@media (max-width: 800px) {
    .how-hero { min-height: 0; padding: 32px 24px 26px; }
    .how-content { width: min(600px, calc(100% - 32px)); }
    .how-steps { grid-template-columns: 1fr; gap: 16px; }
    .how-step { padding: 24px; gap: 20px; }
    .how-step-copy { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
    .how-step-number { width: 44px; height: 44px; font-size: 25px; }
    .how-step h2 { font-size: 22px; }
    .how-step p { font-size: 14px; line-height: 1.5; }
    .how-step-visual { width: min(100%, 340px); min-height: 190px; margin: 0 auto; gap: 20px; }
    .how-portrait { height: 190px; }
    .how-compare-preview .how-portrait { height: 160px; }
    .how-upload-example, .how-example-score { min-height: 174px; }
    .how-example-score strong { font-size: 42px; }
    .how-panel { padding: 24px; }
    .how-faq { grid-template-columns: 1fr; gap: 18px; }
    .how-faq .how-section-heading { margin: 0; }
    .how-faq summary { padding-block: 13px; font-size: 14px; }
}

@media (max-width: 480px) {
    .how-content { width: calc(100% - var(--mobile-page-gutter, 12px) * 2); }
    .how-step, .how-panel { padding: 20px; }
    .how-step-copy { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
    .how-step-number { width: 36px; height: 36px; font-size: 22px; }
    .how-step h2 { font-size: 21px; }
    .how-step-visual { gap: 14px; min-height: 172px; }
    .how-portrait { height: 172px; }
    .how-compare-preview { gap: 8px; }
    .how-compare-preview .how-portrait { height: 142px; }
    .how-upload-example, .how-example-score { min-height: 158px; }
    .how-score-explanation, .how-reliability-list { grid-template-columns: 1fr; }
    .how-confidence-chart { justify-self: center; width: 100%; max-width: 340px; }
    .how-reliability-item:nth-child(2) { border-top: 1px solid rgba(31, 79, 122, .08); }
    .how-reliability-item { gap: 12px; }
    .how-reliability-item p { font-size: 13px; }
    .how-faq-items { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .page-how-it-works > .how-page { opacity: 1; animation: none; }
}
