:root {
    --paper: #faf6ee;
    --ink: #141414;
    --lime: #c9e838;
    --pink: #f7cbd9;
    --blue: #bfdcf2;
    --mint: #c7ebd6;
    --yellow: #f8e49b;
    --white: #fff;
    --muted: #595750;
    --radius: 16px;
    --outline: 2px solid var(--ink);
    --shadow: 5px 5px 0 var(--ink);
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* Private report: calm, data-forward evolution of the mobile HouseCheck UI. */
.private-report-page {
    background: #f6f7f2;
}

.report-header,
.report-shell,
.report-progress {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

.report-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
}

.report-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    padding-block: 20px 80px;
}

.report-rail {
    position: sticky;
    top: 20px;
    padding: 24px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--white);
}

.report-rail h2,
.report-label {
    margin-bottom: 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.report-score { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.report-score strong { font-size: 4.4rem; letter-spacing: -.07em; line-height: 1; }
.report-score span { color: var(--muted); }
.report-grade { margin-bottom: 24px; font-weight: 900; }
.report-meta { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 14px 0; }
.report-meta span { color: var(--muted); }
.report-rail ul { display: grid; gap: 6px; margin: 0; padding: 18px 0 0; border-top: 2px solid var(--ink); list-style: none; }
.report-rail a { display: block; min-height: 44px; padding: 10px 0; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.report-main { min-width: 0; }
.report-intro { padding: 12px 4px 24px; }
.report-intro h1 { max-width: 22ch; margin: 0; font-size: clamp(2.2rem, 4vw, 4.2rem); letter-spacing: -.055em; line-height: 1; }
.report-panel,
.progress-panel,
.correction-panel {
    margin-bottom: 20px;
    padding: clamp(20px, 3vw, 34px);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--white);
}
.report-panel > h2,
.report-category > header h2 { margin-bottom: 8px; font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -.035em; }
.report-category > header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.report-category > header p { margin: 0; white-space: nowrap; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-row { display: grid; align-content: start; min-width: 0; padding: 18px; border: 1px solid #cbc9c0; border-radius: 14px; background: #fbfbf8; }
.check-row h3 { margin: 0 0 4px; font-size: 1rem; }
.check-status { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: .88rem; }
.check-status span { width: 12px; height: 12px; flex: 0 0 auto; border: 2px solid currentColor; border-radius: 50%; background: var(--white); }
.check-row[data-severity="good"] .check-status span { background: #62a874; }
.check-row[data-severity="moderate"] .check-status span { background: #d9b53f; }
.check-row[data-severity="poor"] .check-status span { background: #d2685f; }
.check-value { margin-bottom: 12px; font-family: var(--mono); font-size: 1.15rem; font-weight: 700; }
.check-row details { margin-top: auto; }
.check-row summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 800; }
.check-row details dl,
.context-grid dl { display: grid; gap: 8px; margin-bottom: 0; font-size: .86rem; }
.check-row details dl div,
.context-grid dl div,
.fact-grid div { display: grid; grid-template-columns: minmax(90px, .5fr) 1fr; gap: 12px; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
.fact-grid { margin: 0 0 20px; }
.context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.context-grid article { padding: 20px; border-radius: 14px; background: #eef4df; }
.context-grid h3 { margin-top: 0; }
.context-notes { margin-top: 16px; }
.context-limitation,
.context-sources,
.context-notes p { color: var(--muted); }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; padding: 0; list-style: none; }
.source-links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 750; text-underline-offset: 4px; }
.vintage-grid { display: grid; gap: 8px; }
.vintage-grid div { display: grid; grid-template-columns: minmax(180px, .7fr) 1fr; gap: 16px; }
.quiet-panel { background: #f0f1ec; }
.report-map { min-height: 340px; overflow: hidden; border: 1px solid #cbc9c0; border-radius: 14px; background: #e5e8df; }
.report-map .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.report-map .maplibregl-ctrl-attrib a { min-height: 44px; display: inline-flex; align-items: center; }
.map-status { padding: 16px; background: #f3e8b8; }

.report-progress { max-width: 760px; padding-block: 40px 80px; }
.report-progress > .brand { margin-bottom: 38px; }
.progress-panel h1 { max-width: 14ch; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.06em; line-height: .98; }
.truthful-stage { padding: 15px 18px; border-radius: 14px; background: var(--lime); }
.stage-list { display: grid; gap: 10px; padding-left: 28px; }
.stage-list li { min-height: 44px; padding: 9px 4px; color: var(--muted); }
.stage-list li[aria-current="step"] { color: var(--ink); font-weight: 900; }
.correction-panel form { display: grid; gap: 10px; }
.correction-panel label { font-weight: 800; }
.correction-panel input { min-height: 50px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; }
.correction-panel .button { justify-self: start; }

@media (max-width: 767px) {
    .report-header,
    .report-shell,
    .report-progress { width: min(100% - 28px, 1240px); }
    .report-shell { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
    .report-rail { position: static; width: 100%; }
    .report-main { width: 100%; }
    .report-intro { padding-inline: 2px; }
    .report-intro h1 { font-size: 2.35rem; }
    .check-grid,
    .context-grid { grid-template-columns: 1fr; }
    .vintage-grid div { grid-template-columns: 1fr; gap: 0; }
    .report-panel { padding: 20px; }
    .report-map { min-height: 260px; }
    .report-category > header { align-items: flex-start; }
}

@media print {
    .report-header, .locale-nav, .report-map { display: none !important; }
    .report-shell { display: block; width: 100%; }
    .report-rail { position: static; margin-bottom: 20px; }
    .report-panel, .report-rail { break-inside: avoid; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 7% 24%, var(--pink) 0 7px, transparent 8px),
        radial-gradient(circle at 94% 40%, var(--yellow) 0 9px, transparent 10px),
        var(--paper);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
.maplibregl-ctrl button:focus-visible {
    outline: 4px solid #3273dc;
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 10px 14px;
    border: var(--outline);
    border-radius: 10px;
    background: var(--white);
    font-weight: 800;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.site-footer,
.hero,
.search-section,
.price-note {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.03em;
    text-decoration: none;
}

.brand img {
    border: var(--outline);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--ink);
}

.locale-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: var(--outline);
    border-radius: 999px;
    background: var(--white);
}

.locale-nav a {
    min-width: 42px;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: .72rem;
    text-align: center;
    text-decoration: none;
}

.locale-nav a[aria-current="page"] {
    background: var(--lime);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(370px, .96fr);
    align-items: center;
    gap: clamp(44px, 7vw, 96px);
    min-height: 690px;
    padding-block: 52px 90px;
}

.eyebrow,
.section-kicker,
.preview-topline,
.status {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 8px 13px;
    border: var(--outline);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 2px 2px 0 var(--ink);
}

.eyebrow span,
.status span {
    width: 9px;
    height: 9px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--lime);
}

h1,
h2,
p {
    margin-top: 0;
}

.hero h1 {
    position: relative;
    max-width: 9ch;
    margin: 24px 0 20px;
    font-size: clamp(3.7rem, 7.2vw, 6.9rem);
    font-weight: 900;
    letter-spacing: -.065em;
    line-height: .92;
}

.marker {
    position: absolute;
    right: 8%;
    bottom: -13px;
    width: 52%;
    height: 12px;
    border-radius: 99px;
    background: var(--lime);
    transform: rotate(-2deg);
    z-index: -1;
}

.intro {
    max-width: 51ch;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 21px;
    border: var(--outline);
    border-radius: var(--radius);
    font-weight: 900;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
    transform: translate(-2px, -2px);
}

.button-primary {
    background: var(--lime);
    box-shadow: var(--shadow);
}

.button-secondary {
    background: var(--white);
}

.proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin: 34px 0 0;
    padding: 0;
    font-size: .86rem;
    font-weight: 800;
    list-style: none;
}

.proof-list li::before {
    content: "✓";
    display: inline-grid;
    width: 22px;
    height: 22px;
    margin-right: 7px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 7px;
    background: var(--mint);
    font-size: .7rem;
}

.report-preview {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 20px;
    border: var(--outline);
    border-radius: 30px;
    background: var(--white);
    box-shadow: 10px 10px 0 var(--ink);
    transform: rotate(1.2deg);
    transition: transform 600ms cubic-bezier(.2, .75, .2, 1);
}

.report-preview:focus-visible {
    outline: 4px solid var(--accent);
    outline-offset: 6px;
}

.example-notice {
    width: min(100% - 32px, 1120px);
    margin: 18px auto 0;
    padding: 14px 18px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--yellow);
}

.js .report-preview:not(.is-visible) {
    transform: translateY(18px) rotate(1.2deg);
}

.preview-topline {
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
}

.score-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 6px 18px;
}

.score-block p {
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 800;
}

.score-block strong {
    font-size: 4.3rem;
    letter-spacing: -.07em;
    line-height: 1;
}

.score-block svg {
    width: 96px;
    transform: rotate(-90deg);
}

.score-block circle {
    fill: none;
    stroke-width: 12;
}

.score-track {
    stroke: var(--paper);
}

.score-value {
    stroke: var(--lime);
    stroke-dasharray: 244 302;
    stroke-linecap: round;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
}

.report-card {
    min-height: 126px;
    padding: 15px;
}

.report-card:nth-child(odd) {
    border-right: 2px solid var(--ink);
}

.report-card:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
}

.report-card span {
    font-family: var(--mono);
    font-size: .65rem;
}

.report-card h2 {
    max-width: 13ch;
    margin: 12px 0 7px;
    font-size: .9rem;
    line-height: 1.1;
}

.report-card b {
    font-size: 1.45rem;
}

.report-card-pink { background: var(--pink); }
.report-card-blue { background: var(--blue); }
.report-card-mint { background: var(--mint); }
.report-card-yellow { background: var(--yellow); }

.search-section {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(30px, 7vw, 90px);
    padding: clamp(32px, 5vw, 64px);
    border: var(--outline);
    border-radius: 28px;
    background: var(--ink);
    color: var(--white);
}

.section-kicker {
    margin-bottom: 14px;
    color: #657900;
}

.search-section .section-kicker {
    color: var(--lime);
}

.search-section h2,
.price-note h2,
.legal-page h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
}

.search-section p {
    color: #d4d2ca;
}

.address-search {
    align-self: center;
    padding: 20px;
    border: var(--outline);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 5px 5px 0 var(--lime);
    color: var(--ink);
}

.address-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}

.address-help {
    margin-bottom: 13px;
    color: var(--muted) !important;
    font-size: .9rem;
}

.address-combobox {
    position: relative;
}

.address-combobox > input[type="text"],
.address-confirm {
    min-height: 52px;
    border: 2px solid var(--ink);
    font: inherit;
}

.address-combobox > input[type="text"] {
    width: 100%;
    padding-inline: 13px;
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
}

.address-confirm {
    width: 100%;
    margin-top: 12px;
    padding-inline: 15px;
    border-radius: 10px;
    background: var(--lime);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
}

.address-suggestions {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    width: 100%;
    max-height: 250px;
    margin: 0;
    padding: 5px;
    overflow-y: auto;
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 4px 4px 0 var(--ink);
    list-style: none;
}

.address-suggestions[hidden] {
    display: none;
}

.address-suggestions li {
    padding: 10px 11px;
    border-radius: 6px;
    cursor: pointer;
}

.address-suggestions li[aria-selected="true"],
.address-suggestions li:hover {
    background: var(--lime);
}

.address-error,
.address-status,
.address-noscript {
    min-height: 1.5em;
    margin: 10px 0 0;
    font-size: .86rem;
}

.address-error {
    color: #a62121 !important;
    font-weight: 800;
}

.address-status,
.address-noscript {
    color: var(--muted) !important;
}

.address-page {
    width: min(760px, calc(100% - 40px));
    margin: clamp(50px, 10vw, 110px) auto;
    padding: clamp(24px, 5vw, 48px);
    border: var(--outline);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 9px 9px 0 var(--ink);
}

.address-page h1 {
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .95;
}

.address-choice-list {
    display: grid;
    gap: 12px;
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.address-choice-list form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: var(--outline);
    border-radius: var(--radius);
    background: var(--white);
}

.address-choice-list span {
    font-weight: 800;
}

.address-choice-list button {
    min-height: 44px;
    padding: 8px 13px;
    border: var(--outline);
    border-radius: 10px;
    background: var(--lime);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.address-page-status,
.confirmed-address {
    margin: 28px 0;
    padding: 16px;
    border: var(--outline);
    border-radius: var(--radius);
    background: var(--white);
    font-weight: 800;
}

.address-confirmation .confirmed-address {
    background: var(--lime);
}

.price-note {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(30px, 7vw, 90px);
    align-items: center;
    padding-block: 110px;
}

.price-note h2,
.price-note p {
    margin-bottom: 0;
}

.price-note p {
    font-size: 1.15rem;
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-block: 28px 40px;
    border-top: 2px solid var(--ink);
    font-size: .86rem;
}

.site-footer p {
    max-width: 70ch;
    margin: 0;
    color: var(--muted);
}

.site-footer nav,
.legal-footer {
    display: flex;
    gap: 20px;
}

.site-footer a {
    font-weight: 900;
}

.legal-page {
    width: min(760px, calc(100% - 40px));
    margin: 50px auto 100px;
}

.legal-page h1 {
    margin-bottom: 8px;
}

.updated {
    margin-bottom: 30px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .76rem;
}

.legal-summary {
    margin: 32px 0 44px;
    padding: 20px 22px;
    border: var(--outline);
    border-radius: var(--radius);
    background: var(--lime);
    box-shadow: var(--shadow);
}

.legal-summary p {
    margin: 0;
}

.legal-page section {
    padding-block: 26px;
    border-bottom: 1px solid rgba(20, 20, 20, .22);
}

.legal-page section h2 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 900;
}

.legal-page section p,
.legal-page section ul {
    margin-bottom: 0;
    color: var(--muted);
}

.legal-page li + li {
    margin-top: 8px;
}

.legal-footer {
    justify-content: space-between;
}

@media (max-width: 860px) {
    .hero,
    .search-section,
    .price-note {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-top: 32px;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 14vw, 6rem);
    }

    .report-preview {
        width: min(520px, 100%);
        margin-inline: auto;
    }

    .price-note {
        gap: 20px;
        padding-block: 80px;
    }
}

@media (max-width: 560px) {
    .site-header,
    .site-footer,
    .hero,
    .search-section,
    .price-note {
        width: min(100% - 28px, 1180px);
    }

    .brand span {
        font-size: 1.08rem;
    }

    .hero {
        padding-block: 24px 70px;
    }

    .hero h1 {
        font-size: clamp(3.15rem, 17vw, 4.6rem);
    }

    .button,
    .hero-actions {
        width: 100%;
    }

    .report-preview {
        padding: 13px;
        border-radius: 22px;
        box-shadow: 6px 6px 0 var(--ink);
    }

    .score-block strong {
        font-size: 3.4rem;
    }

    .search-section {
        padding: 27px 18px;
    }

    .address-choice-list form {
        grid-template-columns: 1fr;
    }

    .site-footer,
    .legal-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
