:root {
    --ink: #171916;
    --muted: #665f54;
    --quiet: #81786b;
    --paper: #f4efe6;
    --paper-deep: #e8ded0;
    --wash: #fbf7ed;
    --surface: #ffffff;
    --forest: #12392f;
    --forest-deep: #0d2d26;
    --lime: #d9f85f;
    --lime-soft: #eef7bb;
    --gold: #aa8250;
    --warm: #a85f48;
    --line: #c8bdad;
    --line-strong: #928678;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --text: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body,
select {
    font-size: 1rem;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
    margin-top: 0;
}

button,
input,
select {
    font: inherit;
}

:focus-visible {
    outline: 0.1875rem solid var(--warm);
    outline-offset: 0.1875rem;
}

.shell {
    width: min(70rem, calc(100% - 2.5rem));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
    min-height: 2.75rem;
    border: 0.125rem solid var(--forest);
    background: var(--lime);
    padding: 0.625rem 0.875rem;
    color: var(--forest-deep);
    font-weight: 800;
    transform: translateY(-160%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 0.0625rem solid var(--line);
    background: rgba(244, 239, 230, 0.96);
    backdrop-filter: blur(1rem);
}

.header-layout {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) auto auto;
    gap: 2rem;
    align-items: center;
    min-height: 4.5rem;
}

.brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
}

.brand img {
    display: block;
    width: auto;
    height: 2.125rem;
}

.primary-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.primary-nav a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--forest);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 0.125rem;
    text-underline-offset: 0.5rem;
}

.language-control {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--quiet);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.language-control select {
    min-width: 4.25rem;
    min-height: 2.75rem;
    border: 0.0625rem solid var(--line-strong);
    border-radius: 0;
    background: var(--wash);
    padding: 0 0.625rem;
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 800;
}

.hero-section {
    border-bottom: 0.0625rem solid var(--line);
    padding: 5.25rem 0 4.5rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
    gap: 4.5rem;
    align-items: end;
}

.eyebrow {
    margin-bottom: 1.125rem;
    color: var(--gold);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 44rem;
    margin-bottom: 1.5rem;
    font-family: var(--display);
    font-size: clamp(3.25rem, 6vw, 5.25rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
}

.hero-intro {
    max-width: 39rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.trust-panel {
    border-top: 0.3125rem solid var(--lime);
    background: var(--forest);
    color: var(--surface);
}

.trust-item {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 1rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.trust-item:last-child {
    border-bottom: 0;
}

.trust-index {
    color: var(--lime);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.trust-item h2 {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.trust-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.city-section {
    border-bottom: 0.0625rem solid var(--line);
    background: var(--wash);
    padding: 2.25rem 0;
}

.city-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
    gap: 3rem;
    align-items: center;
}

.city-fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.city-fieldset legend {
    margin-bottom: 0.25rem;
    padding: 0;
    font-family: var(--display);
    font-size: 1.75rem;
    line-height: 1.2;
}

.city-hint {
    margin-bottom: 1.125rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.city-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 0.0625rem solid var(--line-strong);
}

.city-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.city-option + .city-option {
    border-left: 0.0625rem solid var(--line-strong);
}

.city-option input {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    opacity: 0;
}

.city-option > span {
    display: grid;
    min-height: 4.75rem;
    align-content: center;
    gap: 0.25rem;
    padding: 0.875rem 1.125rem;
    background: var(--surface);
}

.city-option input:checked + span {
    background: var(--lime-soft);
    box-shadow: inset 0 -0.25rem 0 var(--forest);
}

.city-option input:focus-visible + span {
    outline: 0.1875rem solid var(--warm);
    outline-offset: -0.1875rem;
}

.city-option strong {
    color: var(--forest);
    font-size: 1rem;
}

.city-option small {
    color: var(--quiet);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
}

.coverage-gap {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    border-left: 0.1875rem solid var(--gold);
    padding: 0.75rem 0 0.75rem 1.25rem;
}

.coverage-gap > span {
    color: var(--gold);
    font-weight: 900;
}

.coverage-gap p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.results-section,
.process-section {
    padding: 5rem 0;
}

.results-section {
    background: var(--paper);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.62fr);
    gap: 4rem;
    align-items: end;
    margin-bottom: 2.5rem;
}

.section-heading h2,
.request-copy h2 {
    max-width: 42rem;
    margin-bottom: 0;
    font-family: var(--display);
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.results-summary {
    border-top: 0.0625rem solid var(--line-strong);
    padding-top: 1rem;
}

.results-summary strong {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--forest);
    font-size: 1rem;
}

.results-summary p,
.source-language-note {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.service-status {
    border: 0.0625rem solid var(--line);
    background: var(--wash);
    padding: 1.25rem;
    color: var(--muted);
}

.service-status[hidden] {
    display: none;
}

.provider-list {
    display: grid;
    gap: 1.25rem;
}

.provider-card {
    display: grid;
    grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
    grid-template-areas:
        "header evidence"
        "offering evidence"
        "facts checks"
        "footer footer";
    border: 0.0625rem solid var(--line-strong);
    background: var(--surface);
}

.provider-card__header {
    grid-area: header;
    border-right: 0.0625rem solid var(--line);
    padding: 1.5rem 1.5rem 1rem;
}

.provider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.provider-tag {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    border: 0.0625rem solid var(--line);
    padding: 0.25rem 0.5rem;
    color: var(--muted);
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.provider-tag--scope {
    border-color: var(--forest);
    background: var(--lime-soft);
    color: var(--forest);
}

.provider-tag--verify {
    border-color: #b9836f;
    background: #f4e6df;
    color: #68382d;
}

.provider-card__title {
    margin-bottom: 0;
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.12;
}

.provider-section {
    padding: 1rem 1.5rem 1.5rem;
}

.provider-card > .provider-section:not(.provider-section--evidence) {
    grid-area: offering;
    border-right: 0.0625rem solid var(--line);
}

.provider-section--evidence {
    grid-area: evidence;
    border-bottom: 0.0625rem solid var(--line);
    padding: 1.5rem 1.75rem;
}

.provider-section__label,
.provider-facts__term {
    margin-bottom: 0.375rem;
    color: var(--quiet);
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.provider-offering,
.provider-evidence,
.provider-boundary {
    margin-bottom: 0;
}

.provider-offering {
    color: var(--forest);
    font-size: 0.9375rem;
    font-weight: 800;
}

.provider-evidence {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.provider-boundary {
    margin-top: 1rem;
    border-left: 0.1875rem solid var(--gold);
    padding-left: 0.875rem;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.provider-facts {
    grid-area: facts;
    display: grid;
    align-content: start;
    gap: 0.25rem;
    margin-bottom: 0;
    border-top: 0.0625rem solid var(--line);
    border-right: 0.0625rem solid var(--line);
    padding: 1.25rem 1.5rem 1.5rem;
}

.provider-facts__term:not(:first-child) {
    margin-top: 0.75rem;
}

.provider-facts__value {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.provider-checks {
    grid-area: checks;
    align-self: stretch;
    padding: 1.25rem 1.75rem 1.5rem;
}

.provider-checks__summary {
    min-height: 2.75rem;
    color: var(--forest);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 900;
    line-height: 2.75rem;
}

.provider-checks__list {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.provider-checks__list li + li {
    margin-top: 0.5rem;
}

.provider-card__footer {
    grid-area: footer;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    border-top: 0.0625rem solid var(--line-strong);
    background: var(--wash);
    padding: 0.875rem 1.5rem;
}

.source-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-bottom: 0.125rem solid var(--forest);
    color: var(--forest);
    font-size: 0.75rem;
    font-weight: 900;
    text-decoration: none;
}

.source-link::after {
    content: "↗";
    margin-left: 0.5rem;
}

.source-link--secondary {
    border-bottom-color: var(--line-strong);
    color: var(--muted);
}

.source-language-note {
    margin-top: 1rem;
}

.request-section {
    border-top: 0.3125rem solid var(--lime);
    background: var(--forest-deep);
    padding: 5rem 0;
    color: var(--surface);
}

.request-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(26rem, 1.2fr);
    gap: 5rem;
    align-items: start;
}

.request-copy .eyebrow {
    color: var(--lime);
}

.request-copy p:not(.eyebrow) {
    max-width: 32rem;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.request-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.28);
}

.request-form label {
    display: grid;
    gap: 0.5rem;
    border-right: 0.0625rem solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
}

.request-form label:first-child {
    padding-left: 0;
}

.request-form label:last-of-type {
    border-right: 0;
}

.request-form label > span {
    min-height: 2rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.request-form select {
    width: 100%;
    min-height: 3rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.42);
    border-radius: 0;
    background: var(--forest);
    padding: 0 0.75rem;
    color: var(--surface);
    font-size: 0.8125rem;
}

.primary-action {
    grid-column: 1 / -1;
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    background: var(--lime);
    padding: 0.75rem 1rem;
    color: var(--forest-deep);
    font-size: 0.8125rem;
    font-weight: 900;
    text-decoration: none;
}

.primary-action::after {
    content: "→";
    font-size: 1.125rem;
}

.primary-action:hover {
    background: var(--lime-soft);
}

.privacy-note {
    grid-column: 1 / -1;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.75rem;
    line-height: 1.6;
}

.request-legal {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
}

.request-legal a {
    color: var(--lime);
    text-underline-offset: 0.2em;
}

.request-legal a:hover {
    color: var(--lime-soft);
}

.process-section {
    border-bottom: 0.0625rem solid var(--line);
    background: var(--wash);
}

.section-heading--compact {
    grid-template-columns: minmax(0, 1fr);
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-top: 0.0625rem solid var(--line-strong);
    padding: 0;
    list-style: none;
}

.process-list li {
    min-height: 13rem;
    border-right: 0.0625rem solid var(--line);
    border-bottom: 0.0625rem solid var(--line-strong);
    padding: 1.5rem;
}

.process-list li:first-child {
    padding-left: 0;
}

.process-list li:last-child {
    border-right: 0;
}

.process-list span {
    display: block;
    margin-bottom: 2.25rem;
    color: var(--gold);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.process-list h3 {
    margin-bottom: 0.625rem;
    font-size: 1rem;
}

.process-list p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.site-footer {
    background: var(--paper-deep);
    padding: 2.5rem 0;
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: end;
}

.footer-layout strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--forest);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-layout p {
    max-width: 47rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.footer-layout > span {
    color: var(--quiet);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 56rem) {
    .header-layout {
        gap: 1.25rem;
    }

    .hero-layout,
    .city-layout,
    .request-layout {
        grid-template-columns: 1fr;
    }

    .hero-layout,
    .request-layout {
        gap: 3rem;
    }

    .city-layout {
        gap: 1.5rem;
    }

    .trust-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-item {
        border-bottom: 0;
    }

    .trust-item + .trust-item {
        border-left: 0.0625rem solid rgba(255, 255, 255, 0.2);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .provider-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "offering"
            "evidence"
            "facts"
            "checks"
            "footer";
    }

    .provider-card__header,
    .provider-card > .provider-section:not(.provider-section--evidence),
    .provider-facts {
        border-right: 0;
    }

    .provider-card > .provider-section:not(.provider-section--evidence),
    .provider-facts,
    .provider-checks {
        border-top: 0.0625rem solid var(--line);
    }

    .request-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 42rem) {
    .shell {
        width: min(100% - 1.5rem, 70rem);
    }

    .site-header {
        position: static;
    }

    .header-layout {
        grid-template-columns: 1fr auto;
        min-height: 4rem;
    }

    .brand img {
        height: 1.75rem;
    }

    .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        border-top: 0.0625rem solid var(--line);
    }

    .language-control > span {
        position: absolute;
        width: 0.0625rem;
        height: 0.0625rem;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .hero-section,
    .results-section,
    .request-section,
    .process-section {
        padding: 3.5rem 0;
    }

    .hero-copy h1 {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .hero-intro {
        font-size: 1rem;
    }

    .trust-panel,
    .city-options,
    .request-form,
    .process-list {
        grid-template-columns: 1fr;
    }

    .trust-item + .trust-item,
    .city-option + .city-option,
    .request-form label {
        border-left: 0;
        border-right: 0;
    }

    .trust-item + .trust-item,
    .city-option + .city-option {
        border-top: 0.0625rem solid var(--line-strong);
    }

    .city-option > span {
        min-height: 4rem;
    }

    .section-heading h2,
    .request-copy h2 {
        font-size: 2.5rem;
    }

    .provider-card__header,
    .provider-section,
    .provider-section--evidence,
    .provider-facts,
    .provider-checks {
        padding-right: 1.125rem;
        padding-left: 1.125rem;
    }

    .provider-card__title {
        font-size: 1.5rem;
    }

    .request-form label,
    .request-form label:first-child {
        border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.2);
        padding: 1rem 0;
    }

    .process-list li,
    .process-list li:first-child {
        min-height: 0;
        border-right: 0;
        padding: 1.5rem 0;
    }

    .process-list span {
        margin-bottom: 1rem;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-layout > span {
        white-space: normal;
    }
}

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