.finder-page {
    background: #f6f7f4;
    margin-top: -1rem;
    padding: 3.5rem 0 4rem;
    color: #101828;
}

/* Keep the local review viewport clear; this stylesheet is loaded only here. */
#djDebug {
    display: none !important;
}

.finder-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.finder-eyebrow {
    display: inline-block;
    margin-bottom: .55rem;
    color: #1556c0;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.finder-intro h1 {
    margin: 0;
    font-size: 2.8rem;
    line-height: 1.08;
}

.finder-intro p,
.finder-results-heading p {
    margin: 1rem 0 0;
    color: #667085;
    font-size: 1.08rem;
    line-height: 1.6;
}

.finder-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}

.finder-question-panel {
    padding: 2.25rem;
}

.finder-progress-copy,
.finder-actions,
.finder-results-heading,
.finder-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.finder-progress-copy strong {
    display: block;
    color: #1556c0;
    font-size: .9rem;
}

.finder-progress-copy small {
    display: block;
    margin-top: .2rem;
    color: #667085;
}

.finder-progress-copy > span {
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #1556c0;
    font-size: .82rem;
    font-weight: 700;
}

.finder-progress {
    height: 7px;
    margin: 1.2rem 0 2rem;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f5;
}

.finder-progress span {
    display: block;
    width: 14%;
    height: 100%;
    border-radius: inherit;
    background: #1556c0;
    transition: width .2s ease;
}

.finder-question-panel h2 {
    margin: 0;
    font-size: 1.75rem;
}

.finder-question-description {
    margin: .55rem 0 0;
    color: #667085;
}

.finder-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
}

.finder-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    min-height: 78px;
    padding: .9rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    text-align: left;
}

.finder-option:hover,
.finder-option:focus-visible {
    border-color: #1556c0;
    outline: 3px solid rgba(21, 86, 192, .1);
}

.finder-option.is-selected {
    border: 2px solid #1556c0;
    background: #f5f8ff;
}

.finder-option-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #f2f4f7;
    color: #1556c0;
    font-weight: 800;
}

.finder-option strong,
.finder-option small {
    display: block;
}

.finder-option small {
    margin-top: .2rem;
    color: #667085;
    line-height: 1.3;
}

.finder-option-check {
    color: #1556c0;
    font-weight: 800;
    visibility: hidden;
}

.finder-option.is-selected .finder-option-check {
    visibility: visible;
}

.finder-actions {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e4e7ec;
}

.finder-back,
.finder-next,
.finder-secondary-button,
.finder-feedback button {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
}

.finder-back {
    border: 0;
    background: transparent;
    color: #475467;
}

.finder-back:disabled {
    opacity: .4;
}

.finder-next {
    padding: .65rem 1.4rem;
    border: 1px solid #1556c0;
    background: #1556c0;
    color: #fff;
}

.finder-trust {
    padding: 2rem;
    border-left: 1px solid #e4e7ec;
    background: #f8fafc;
}

.finder-trust-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    background: #e5efff;
    color: #1556c0;
    font-size: 1.4rem;
    font-weight: 800;
}

.finder-trust h2 {
    margin: 1.2rem 0 .6rem;
    font-size: 1.2rem;
}

.finder-trust p,
.finder-trust li,
.finder-trust small {
    color: #667085;
    font-size: .9rem;
    line-height: 1.6;
}

.finder-trust ul {
    padding-left: 1.2rem;
}

.finder-trust small {
    display: block;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid #e4e7ec;
}

.finder-form-error {
    margin: 1rem 0 0;
    color: #b42318;
    font-weight: 700;
}

.finder-loading {
    max-width: 680px;
    margin: 2rem auto 0;
    padding: 4rem 2rem;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.finder-spinner {
    display: inline-block;
    width: 42px;
    height: 42px;
    border: 4px solid #dbe7fb;
    border-top-color: #1556c0;
    border-radius: 50%;
    animation: finder-spin .8s linear infinite;
}

@keyframes finder-spin { to { transform: rotate(360deg); } }

.finder-results {
    max-width: 1040px;
    margin: 2.5rem auto 0;
}

.finder-results-heading {
    margin-bottom: 1.25rem;
    align-items: flex-end;
}

.finder-results-heading h2 {
    margin: 0;
    font-size: 2rem;
}

.finder-secondary-button,
.finder-feedback button {
    padding: .55rem 1rem;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
}

.finder-match-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #c7d7f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}

.finder-product-media {
    position: relative;
    display: grid;
    min-height: 300px;
    padding: 2rem;
    place-items: center;
    background: #f8fafc;
}

.finder-product-media img {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
}

.finder-product-placeholder {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border-radius: 50%;
    background: #e5e7eb;
    color: #475467;
    font-size: 2rem;
    font-weight: 800;
}

.finder-card-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #1556c0;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.finder-match-content {
    padding: 2rem;
}

.finder-match-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.finder-match-head h3 {
    margin: .25rem 0 0;
    font-size: 1.75rem;
}

.finder-match-score {
    min-width: 94px;
    padding: .65rem;
    border: 1px solid #b8cef2;
    border-radius: 8px;
    background: #f5f8ff;
    color: #1556c0;
    text-align: center;
}

.finder-match-score strong,
.finder-match-score small {
    display: block;
}

.finder-match-score strong { font-size: 1.35rem; }
.finder-match-score small { color: #344054; }
.finder-price-note { margin: .5rem 0 0; color: #667085; font-size: .85rem; }
.finder-reason { margin: 1.25rem 0; color: #344054; line-height: 1.6; }

.finder-fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.finder-fit-grid h4 { margin: 0 0 .5rem; }
.finder-fit-grid ul { margin: 0; padding-left: 1.2rem; color: #475467; }
.finder-tradeoff { padding: 1rem; border-radius: 8px; background: #fff8eb; color: #713f12; }
.finder-tradeoff p { margin: .45rem 0 0; }

.finder-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.4rem;
}

.finder-card-actions a {
    padding: .65rem 1rem;
    border: 1px solid #1556c0;
    border-radius: 8px;
    color: #1556c0;
    font-weight: 800;
    text-decoration: none;
}

.finder-card-actions a.finder-amazon {
    background: #1556c0;
    color: #fff;
}

.finder-secondary-grid,
.finder-advice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.finder-secondary-card,
.finder-flagship,
.finder-routine,
.finder-feedback {
    padding: 1.25rem;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.finder-secondary-card {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 1.15rem;
    min-height: 245px;
    overflow: hidden;
}

.finder-secondary-media {
    display: grid;
    min-width: 0;
    min-height: 200px;
    place-items: center;
    border-radius: 6px;
    background: #f8fafc;
}

.finder-secondary-media img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.finder-secondary-media .finder-product-placeholder {
    width: 92px;
    height: 92px;
    font-size: 1.35rem;
}

.finder-secondary-content {
    min-width: 0;
}

.finder-secondary-card h3,
.finder-flagship h3,
.finder-routine h3 { margin: 0; font-size: 1.2rem; }
.finder-secondary-card p,
.finder-flagship p { color: #667085; line-height: 1.55; }
.finder-secondary-score {
    display: block;
    margin-top: 1.1rem;
}

.finder-secondary-card a {
    display: inline-block;
    margin-top: .45rem;
    color: #1556c0;
    font-weight: 800;
    text-decoration: none;
}
.finder-flagship { border-color: #b8cef2; background: #f5f8ff; }
.finder-routine > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: 1rem; }
.finder-routine-item { padding-left: .75rem; border-left: 3px solid #dbe7fb; }
.finder-routine-item strong,
.finder-routine-item small { display: block; }
.finder-routine-item small { margin-top: .2rem; color: #667085; }
.finder-feedback { margin-top: 1rem; }
.finder-feedback small { display: block; margin-top: .2rem; color: #667085; }
.finder-feedback > div:last-child { display: flex; gap: .5rem; }

@media (max-width: 991px) {
    .finder-shell { grid-template-columns: 1fr; }
    .finder-trust { border-top: 1px solid #e4e7ec; border-left: 0; }
    .finder-match-card { grid-template-columns: 250px minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .finder-page { padding: 2rem 0 3rem; }
    .finder-intro { margin-bottom: 1.4rem; text-align: left; }
    .finder-intro h1 { font-size: 2rem; }
    .finder-intro p { font-size: 1rem; }
    .finder-question-panel,
    .finder-trust { padding: 1.25rem; }
    .finder-options { grid-template-columns: 1fr; }
    .finder-progress-copy > span { display: none; }
    .finder-match-card { grid-template-columns: 1fr; }
    .finder-product-media { min-height: 230px; }
    .finder-match-content { padding: 1.25rem; }
    .finder-match-head { display: block; }
    .finder-match-score { width: max-content; margin-top: 1rem; text-align: left; }
    .finder-fit-grid,
    .finder-secondary-grid,
    .finder-advice-grid { grid-template-columns: 1fr; }
    .finder-results-heading,
    .finder-feedback { align-items: stretch; flex-direction: column; }
    .finder-secondary-button { width: 100%; }
    .finder-card-actions a { width: 100%; text-align: center; }
    .finder-secondary-card {
        grid-template-columns: 120px minmax(0, 1fr);
        min-height: 210px;
    }
    .finder-secondary-media { min-height: 170px; }
    .finder-secondary-media img { max-height: 150px; }
}

@media (max-width: 420px) {
    .finder-secondary-card { grid-template-columns: 96px minmax(0, 1fr); gap: .85rem; }
    .finder-secondary-media { min-height: 145px; }
    .finder-secondary-media img { max-height: 125px; }
    .finder-secondary-card h3 { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    .finder-progress span { transition: none; }
    .finder-spinner { animation: none; }
}
