/* ============================================================================
   Oculato — guided finder results
   Loaded last. Scoped to .results-page so the rest of the site is untouched.
   Hierarchy: compatibility + net cost first, then motivation, strengths,
   tradeoffs and verification. Tokens only; light/dark and reduced motion
   handled explicitly.
   ========================================================================== */

.results-page {
    --rp-card-radius: 28px;
    --rp-panel-radius: 24px;
    --rp-warn-ink: color-mix(in srgb, var(--orange) 55%, var(--label));
    --rp-pos-ink: color-mix(in srgb, var(--green) 48%, var(--label));
    --rp-accent-ink: color-mix(in srgb, var(--blue) 60%, var(--label));
    --rp-btn-bg: var(--blue);
    --label-secondary: rgba(60, 60, 67, 0.78);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .results-page {
        --rp-btn-bg: color-mix(in srgb, var(--blue) 76%, #000);
        --label-secondary: rgba(235, 235, 245, 0.72);
    }

    :root:not([data-theme="light"]) body:has(.results-page) .header-compare {
        background: color-mix(in srgb, var(--blue) 76%, #000);
    }
}

[data-theme="dark"] .results-page {
    --rp-btn-bg: color-mix(in srgb, var(--blue) 76%, #000);
    --label-secondary: rgba(235, 235, 245, 0.72);
}

[data-theme="dark"] body:has(.results-page) .header-compare {
    background: color-mix(in srgb, var(--blue) 76%, #000);
}

.results-page .btn-filled {
    background: var(--rp-btn-bg);
}

.results-page .text-link {
    color: var(--rp-accent-ink);
}

.results-page .btn-tinted {
    color: var(--rp-accent-ink);
}

.results-page a:focus-visible,
.results-page button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.results-page .results-hero {
    padding: 54px 0 26px;
}

.results-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px 48px;
    align-items: end;
}

.results-hero__copy {
    min-width: 0;
}

.results-page .results-hero .display {
    margin-top: 14px;
    max-width: 18ch;
}

.results-page .results-hero .page-lede {
    max-width: 64ch;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
}

.results-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 236px;
}

.results-hero__actions .btn {
    justify-content: flex-start;
    min-height: 46px;
}

.results-hero__stamp {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 3px;
    color: var(--label-secondary);
    font-size: 14px;
    font-weight: var(--weight-medium);
    line-height: 1.4;
}

.results-hero__stamp .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
}

.results-page .answer-chips {
    gap: 7px;
    margin-top: 22px;
}

.results-page .answer-chips span {
    gap: 6px;
    padding: 7px 11px;
    color: var(--label-secondary);
    font-size: 14.5px;
    font-weight: var(--weight-medium);
    line-height: 1.3;
}

.results-page .answer-chips .icon {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   Stage + notices
   -------------------------------------------------------------------------- */

.results-page .results-stage {
    padding: 8px 0 80px;
}

.results-page .results-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--fill-4);
    color: var(--label-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.results-page .results-notice .icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--blue);
}

.results-notice p {
    margin: 0;
}

.results-page .results-notice--warning {
    background: color-mix(in srgb, var(--orange) 10%, var(--bg-tertiary));
    box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--orange) 32%, transparent);
}

.results-page .results-notice--warning .icon {
    color: var(--rp-warn-ink);
}

/* --------------------------------------------------------------------------
   Quick comparison strip
   -------------------------------------------------------------------------- */

.results-glance {
    margin-bottom: 34px;
    padding: 24px;
    border-radius: var(--rp-card-radius);
    background:
        radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--blue) 6%, transparent), transparent 62%),
        var(--bg-tertiary);
    box-shadow:
        var(--shadow-1),
        inset 0 0 0 0.5px var(--separator);
}

.results-glance__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 32px;
    margin-bottom: 18px;
}

.results-glance__head h2 {
    margin-top: 7px;
    font-size: 22px;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.026em;
    line-height: var(--leading-snug);
}

.results-glance__head p {
    max-width: 42ch;
    color: var(--label-secondary);
    font-size: 15.5px;
    line-height: 1.45;
}

.glance-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.glance-list > li {
    min-width: 0;
}

.glance-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 150px;
    padding: 14px;
    border-radius: 18px;
    background: var(--bg-tertiary);
    color: var(--label);
    text-decoration: none;
    box-shadow:
        var(--shadow-1),
        inset 0 0 0 0.5px var(--separator);
    transition: transform var(--duration-fast) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.glance-card--top {
    box-shadow:
        var(--shadow-2),
        inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 38%, transparent);
}

.glance-card:active {
    transform: scale(0.985);
}

.glance-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.glance-card__rank {
    color: var(--label-secondary);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
}

.glance-card--top .glance-card__rank,
.glance-card--top .glance-card__compat {
    color: var(--rp-accent-ink);
}

.glance-card__compat {
    color: var(--label);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.035em;
    line-height: 1;
}

.glance-card__provider {
    margin-top: 8px;
    color: var(--label-secondary);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.055em;
    line-height: 1.25;
    text-transform: uppercase;
}

.glance-card__name {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    font-size: 16px;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.012em;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.glance-card__cost {
    margin-top: auto;
    padding-top: 8px;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.03em;
}

.glance-card__cost small {
    color: var(--label-secondary);
    font-size: 14px;
    font-weight: var(--weight-regular);
    letter-spacing: 0;
}

.glance-card__first {
    color: var(--label-secondary);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.results-page .results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 344px;
    gap: 30px;
    align-items: start;
}

.results-main {
    min-width: 0;
}

.results-main__head {
    margin: 2px 0 18px;
}

.results-main__head h2 {
    margin-top: 7px;
    font-size: 28px;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.032em;
    line-height: 1.1;
}

.results-main__head p {
    max-width: 62ch;
    margin-top: 8px;
    color: var(--label-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-item {
    margin: 0;
    scroll-margin-top: calc(var(--nav-height) + 26px);
}

/* --------------------------------------------------------------------------
   Result card
   -------------------------------------------------------------------------- */

.results-page .result-card {
    position: relative;
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    grid-template-areas:
        "media head"
        "cost cost"
        "why why"
        "lists lists"
        "foot foot";
    gap: 18px 26px;
    padding: 24px;
    border-radius: var(--rp-card-radius);
    background: var(--bg-tertiary);
    box-shadow:
        var(--shadow-2),
        inset 0 0 0 0.5px var(--separator);
}

.results-page .result-card > * {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.results-page .result-card--top {
    box-shadow:
        var(--shadow-3),
        inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 28%, var(--separator));
}

.results-page .result-card--top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(88% 120% at 100% 0%, color-mix(in srgb, var(--card-accent) 9%, transparent), transparent 64%);
    pointer-events: none;
}

/* Media: rank + card artwork ------------------------------------------------ */

.result-card__media {
    grid-area: media;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: start;
}

.result-card__rank {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.result-card__rank-number {
    color: var(--label-secondary);
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.09em;
    line-height: 1.2;
}

.result-card__rank-label {
    color: var(--label);
    font-size: 14.5px;
    font-weight: var(--weight-semibold);
    line-height: 1.3;
}

.result-card--top .result-card__rank-number,
.result-card--top .result-card__rank-label {
    color: var(--rp-accent-ink);
}

.result-card__visual {
    width: 100%;
}

.results-page .result-card .plan-visual:not(.plan-visual--photo) {
    border-radius: 18px;
    box-shadow:
        0 16px 32px rgba(8, 10, 16, 0.22),
        0 2px 6px rgba(8, 10, 16, 0.14);
}

/* Identity + compatibility ------------------------------------------------ */

.result-card__head {
    grid-area: head;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.result-card__identity {
    min-width: 0;
}

.result-card__eyebrow {
    display: block;
    color: var(--label-secondary);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.065em;
    line-height: 1.3;
    text-transform: uppercase;
}

.result-card__head h3 {
    margin-top: 5px;
    font-size: 26px;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.034em;
    line-height: 1.08;
    text-wrap: balance;
}

.result-card__head h3 a {
    color: var(--label);
    text-decoration: none;
}

.result-card__tagline {
    max-width: 48ch;
    margin-top: 7px;
    color: var(--label-secondary);
    font-size: 16px;
    line-height: 1.45;
}

.result-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: var(--radius-capsule);
    background: var(--fill-4);
    color: var(--label-secondary);
    font-size: 14px;
    font-weight: var(--weight-medium);
    line-height: 1.25;
}

.result-card__chip .icon {
    width: 13px;
    height: 13px;
}

.compat {
    display: flex;
    flex: 0 0 128px;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.results-page .compat__value {
    color: var(--label);
    font-size: 42px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.055em;
    line-height: 0.95;
    text-transform: none;
}

.results-page .compat__value span {
    margin-left: 1px;
    color: var(--label-secondary);
    font-size: 20px;
    font-weight: var(--weight-medium);
    letter-spacing: -0.02em;
}

.results-page .compat__label {
    margin-top: 4px;
    color: var(--label-secondary);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.results-page .compat__meter {
    width: 100%;
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: var(--radius-capsule);
    background: var(--fill-3);
}

.results-page .compat__meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.results-page .compat__verdict {
    margin-top: 5px;
    color: var(--label-secondary);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

/* Cost -------------------------------------------------------------------- */

.result-card__cost {
    grid-area: cost;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 14px 20px;
    align-items: start;
    padding-top: 16px;
    border-top: 1px solid var(--separator);
}

.cost-hero,
.cost-first {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.results-page .cost-hero__label,
.results-page .cost-first__label {
    color: var(--label-secondary);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.results-page .cost-hero__amount {
    margin-top: 5px;
    color: var(--label);
    font-size: 36px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.05em;
    line-height: 1;
    text-transform: none;
}

.results-page .cost-first__amount {
    margin-top: 6px;
    color: var(--label);
    font-size: 24px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: none;
}

.results-page .cost-hero__note,
.results-page .cost-first__note {
    display: block;
    margin-top: 6px;
    color: var(--label-secondary);
    font-size: 14.5px;
    font-weight: var(--weight-regular);
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

.cost-first__note .icon {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 2px;
    vertical-align: -2px;
    color: var(--rp-pos-ink);
}

.results-page .cost-hero__over {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: var(--radius-capsule);
    background: color-mix(in srgb, var(--orange) 13%, transparent);
    color: var(--rp-warn-ink);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.results-page .cost-hero__over .icon {
    width: 13px;
    height: 13px;
}

.cost-parts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--separator);
}

.cost-parts > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--fill-4);
}

.cost-parts dt {
    color: var(--label-secondary);
    font-size: 14px;
    font-weight: var(--weight-medium);
    line-height: 1.3;
}

.cost-parts dd {
    margin: 0;
    color: var(--label);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    line-height: 1.3;
}

.cost-parts__credit dt::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--rp-pos-ink);
    vertical-align: 1px;
}

/* Why --------------------------------------------------------------------- */

.result-card__why {
    grid-area: why;
    padding: 16px 18px;
    border-left: 3px solid var(--blue);
    border-radius: 4px 18px 18px 4px;
    background: color-mix(in srgb, var(--blue) 5%, var(--fill-4));
}

.why-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--label);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.055em;
    line-height: 1.3;
    text-transform: uppercase;
}

.why-label .icon {
    width: 14px;
    height: 14px;
    color: var(--blue);
}

.result-card__why > p {
    margin-top: 7px;
    color: var(--label);
    font-size: 17px;
    line-height: 1.55;
}

.result-card__why .why-extra {
    color: var(--label-secondary);
    font-size: 15.5px;
    line-height: 1.45;
}

.result-card__why .why-more {
    color: var(--label-secondary);
    font-size: 14.5px;
    line-height: 1.45;
}

.why-more a {
    color: var(--rp-accent-ink);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    text-underline-offset: 3px;
}

.why-more a:hover {
    text-decoration: underline;
}

/* Strengths + tradeoffs ---------------------------------------------------- */

.result-card__lists {
    grid-area: lists;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--separator);
}

.result-card__lists h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--label);
    font-size: 14.5px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.list-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.list-mark .icon {
    width: 14px;
    height: 14px;
}

.list-mark--pos {
    background: color-mix(in srgb, var(--green) 15%, transparent);
    color: var(--rp-pos-ink);
}

.list-mark--neg {
    background: color-mix(in srgb, var(--orange) 15%, transparent);
    color: var(--rp-warn-ink);
}

.result-card__lists ul {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.result-card__lists li {
    position: relative;
    padding-left: 14px;
    color: var(--label-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.result-card__lists li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--label-tertiary);
}

.result-card__none {
    margin-top: 10px;
    color: var(--label-secondary);
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
}

/* Foot -------------------------------------------------------------------- */

.result-card__foot {
    grid-area: foot;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    padding-top: 14px;
    border-top: 1px solid var(--separator);
}

.results-page .result-card__foot .verification {
    gap: 5px;
    font-size: 14.5px;
    line-height: 1.35;
}

.results-page .result-card__foot .verification .icon {
    width: 14px;
    height: 14px;
}

.result-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.results-page .result-card__actions .btn {
    min-height: 44px;
    padding: 9px 15px;
    font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.results-page .results-aside {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-page .criteria-card {
    padding: 20px;
    border-radius: var(--rp-panel-radius);
    background: var(--bg-tertiary);
    box-shadow:
        var(--shadow-1),
        inset 0 0 0 0.5px var(--separator);
}

.results-page .criteria-card h2 {
    margin-top: 8px;
    font-size: 20px;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.026em;
    line-height: 1.16;
}

.criteria-card__intro {
    margin-top: 6px;
    color: var(--label-secondary);
    font-size: 15.5px;
    line-height: 1.45;
}

.results-page .weight-list {
    display: grid;
    gap: 11px;
    margin-top: 16px;
}

.results-page .weight-row {
    display: grid;
    grid-template-columns: minmax(78px, auto) minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
}

.results-page .weight-row > .weight-row__label {
    color: var(--label-secondary);
    font-size: 15px;
    line-height: 1.3;
}

.results-page .weight-row__track {
    height: 7px;
    overflow: hidden;
    border-radius: var(--radius-capsule);
    background: var(--fill-3);
}

.results-page .weight-row__track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.results-page .weight-row strong {
    color: var(--label);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    text-align: right;
}

.results-page .criteria-card__note {
    margin-top: 14px;
    color: var(--label-secondary);
    font-size: 14.5px;
    line-height: 1.5;
}

.results-page .assumption-list {
    margin: 14px 0 0;
}

.results-page .assumption-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-top: 1px solid var(--separator);
}

.results-page .assumption-list dt {
    color: var(--label-secondary);
    font-size: 15.5px;
    line-height: 1.4;
}

.results-page .assumption-list dd {
    margin: 0;
    color: var(--label);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    line-height: 1.4;
    text-align: right;
}

.results-page .criteria-card > p,
.criteria-card--limits p {
    margin-top: 10px;
    color: var(--label-secondary);
    font-size: 16px;
    line-height: 1.55;
}

.results-page .criteria-card .text-link {
    margin-top: 12px;
    min-height: 44px;
    font-size: 15.5px;
}

.results-page .results-aside > .btn {
    min-height: 50px;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Disclaimer under the list
   -------------------------------------------------------------------------- */

.results-disclaimer {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--fill-4);
    color: var(--label-secondary);
    font-size: 14.5px;
    line-height: 1.5;
}

.results-disclaimer > .icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--label-secondary);
}

.results-disclaimer > span {
    flex: 1 1 340px;
}

.results-disclaimer .text-link {
    flex: 0 0 auto;
    min-height: 44px;
    margin-left: auto;
    font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.results-empty {
    padding: 38px;
    border-radius: var(--rp-card-radius);
    background:
        radial-gradient(90% 110% at 0% 0%, color-mix(in srgb, var(--blue) 6%, transparent), transparent 58%),
        var(--bg-tertiary);
    box-shadow:
        var(--shadow-2),
        inset 0 0 0 0.5px var(--separator);
}

.results-empty .empty-state__mark {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--label-tertiary);
}

.results-empty h2 {
    max-width: 20ch;
    margin-top: 10px;
    font-size: 30px;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.034em;
    line-height: 1.08;
    text-wrap: balance;
}

.results-empty__reason {
    max-width: 58ch;
    margin-top: 10px;
    color: var(--label-secondary);
    font-size: 16px;
    line-height: 1.55;
}

.results-empty__box {
    margin-top: 24px;
    padding: 22px;
    border-radius: 20px;
    background: var(--fill-4);
}

.results-empty__box h3 {
    font-size: 16px;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.results-empty__steps {
    display: grid;
    gap: 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: empty-step;
}

.results-empty__steps > li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    counter-increment: empty-step;
}

.results-empty__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--label);
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-semibold);
    box-shadow: inset 0 0 0 0.5px var(--separator);
}

.results-empty__step-number::before {
    content: counter(empty-step);
}

.results-empty__steps strong {
    display: block;
    color: var(--label);
    font-size: 16px;
    font-weight: var(--weight-semibold);
    line-height: 1.4;
}

.results-empty__steps span span {
    display: block;
    margin-top: 2px;
    color: var(--label-secondary);
    font-size: 15.5px;
    line-height: 1.5;
}

.results-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.results-empty__actions .btn {
    min-height: 44px;
}

.results-empty__note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 18px;
    color: var(--label-secondary);
    font-size: 14.5px;
    line-height: 1.5;
}

.results-empty__note .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
    .results-page .results-layout {
        grid-template-columns: 1fr;
    }

    .results-page .results-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        align-items: start;
    }

    .results-page .results-aside > .btn {
        grid-column: 1 / -1;
    }

    .glance-list {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    }
}

@media (max-width: 900px) {
    .results-hero__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }

    .results-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        min-width: 0;
    }

    .results-hero__stamp {
        flex-basis: 100%;
        margin-top: 0;
    }

    .results-glance__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 900px) {
    .glance-list {
        display: flex;
        gap: 10px;
        margin: 0 -24px;
        padding: 2px 24px 10px;
        overflow-x: auto;
        scroll-padding-inline: 24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .glance-list > li {
        flex: 0 0 min(76vw, 250px);
        scroll-snap-align: start;
    }

    .glance-card {
        min-height: 144px;
    }
}

@media (max-width: 760px) {
    .results-page .results-hero {
        padding: 38px 0 18px;
    }

    .results-page .results-hero .display {
        font-size: clamp(2.15rem, 8.2vw, 2.8rem);
        letter-spacing: -0.038em;
    }

    .results-page .results-hero .page-lede {
        margin-top: 14px;
        font-size: 16px;
    }

    .results-hero__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .results-page .results-stage {
        padding: 4px 0 56px;
    }

    .results-glance {
        padding: 18px;
        border-radius: 24px;
    }

    .results-glance__head h2 {
        font-size: 20px;
    }

    .glance-list {
        margin: 0 -18px;
        padding: 2px 18px 10px;
        scroll-padding-inline: 18px;
    }

    .results-main__head h2 {
        font-size: 24px;
    }

    .results-page .result-card {
        grid-template-columns: 118px minmax(0, 1fr);
        grid-template-areas:
            "media head"
            "cost cost"
            "why why"
            "lists lists"
            "foot foot";
        gap: 16px;
        padding: 18px;
        border-radius: 24px;
    }

    .result-card__head {
        flex-direction: column;
        gap: 12px;
    }

    .results-page .result-card__visual {
        display: block;
    }

    .result-card__head h3 {
        font-size: 22px;
    }

    .compat {
        flex: none;
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .results-page .compat__value {
        font-size: 32px;
    }

    .results-page .compat__value span {
        font-size: 17px;
    }

    .results-page .compat__meter {
        margin-top: 7px;
    }

    .results-page .compat__label,
    .results-page .compat__verdict {
        display: inline-block;
        margin-top: 0;
    }

    .results-page .compat__label {
        margin-top: 4px;
    }

    .results-page .compat__verdict {
        margin-left: 6px;
        font-size: 14px;
    }

    .result-card__cost {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 12px 14px;
    }

    .results-page .cost-hero__amount {
        font-size: 32px;
    }

    .results-page .cost-first__amount {
        font-size: 22px;
    }

    .cost-parts {
        grid-template-columns: 1fr 1fr;
    }

    .result-card__lists {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .result-card__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .result-card__actions {
        display: flex;
    }

    .results-page .result-card__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .results-page .results-aside {
        grid-template-columns: 1fr;
    }

    .results-empty {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .results-empty h2 {
        font-size: 25px;
    }

    .results-empty__box {
        padding: 18px;
    }

    .results-empty__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .results-disclaimer {
        padding: 14px;
    }

    .results-disclaimer .text-link {
        margin-left: 0;
    }
}

@media (max-width: 430px) {
    .results-page .result-card {
        grid-template-columns: 100px minmax(0, 1fr);
        padding: 16px;
    }

    .result-card__rank-label {
        font-size: 14px;
    }

    .result-card__head h3 {
        font-size: 20px;
    }

    .result-card__tagline {
        font-size: 15.5px;
    }

    .results-page .cost-hero__amount {
        font-size: 29px;
    }

    .results-page .cost-first__amount {
        font-size: 21px;
    }

    .results-page .cost-hero__label,
    .results-page .cost-first__label {
        font-size: 14px;
        letter-spacing: 0.035em;
    }

    .results-page .cost-hero__note,
    .results-page .cost-first__note {
        font-size: 14px;
    }

    .results-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .results-page .results-hero .display {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }
}

/* --------------------------------------------------------------------------
   Interaction + accessibility preferences
   -------------------------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
    .glance-card:hover {
        transform: translateY(-2px);
    }

    .glance-card:hover .glance-card__name,
    .result-card__head h3 a:hover {
        color: var(--rp-accent-ink);
    }
}

@media (prefers-reduced-motion: reduce) {
    .glance-card {
        transition: none;
    }

    .glance-card:hover,
    .glance-card:active {
        transform: none;
    }
}

@media (prefers-contrast: more) {
    .results-page .result-card,
    .results-page .criteria-card,
    .results-glance,
    .glance-card,
    .results-empty {
        border: 1px solid var(--separator-opaque);
    }

    .compat__meter,
    .weight-row__track {
        box-shadow: inset 0 0 0 1px var(--separator-opaque);
    }

    .result-card__why {
        border-left-width: 4px;
    }
}
