:root {
    --bg: #f7f6ef;
    --surface: #fffdf8;
    --ink: #152c21;
    --muted: #5b6b62;
    --brand: #163f2a;
    --brand-2: #276341;
    --lime: #ddeb76;
    --soft: #e8f0e6;
    --border: #ced7cf;
    --danger: #fff0e8;
    --focus: #9b6d00;
    --radius: 20px;
    --shadow: 0 16px 44px #17312610;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}
body {
    min-width: 0;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font:
        16px/1.55 Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        sans-serif;
}
main,
section,
article,
aside,
.shell,
header,
footer {
    min-width: 0;
}
p,
li,
dd,
a,
button {
    overflow-wrap: anywhere;
}
a {
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
button,
input,
select {
    font: inherit;
}
.skip {
    position: fixed;
    top: -6rem;
    left: 1rem;
    background: white;
    padding: 0.7rem;
    z-index: 20;
}
.skip:focus {
    top: 1rem;
}
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
.shell {
    width: min(1180px, calc(100% - 2rem));
    margin: auto;
}
.section {
    padding: 4.5rem 0;
}
header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem max(1rem, calc((100% - 1180px) / 2));
    position: sticky;
    top: 0;
    background: #f7f6eff2;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}
.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 46% 54%;
    background: var(--brand);
    color: var(--lime);
    font-family: Georgia, serif;
}
.logo small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
#menu {
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    width: 44px;
    height: 44px;
}
nav#nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
nav#nav.open {
    display: grid;
}
nav#nav a {
    padding: 0.65rem;
    font-weight: 750;
    text-decoration: none;
}
h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.04em;
}
h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    max-width: 930px;
    margin: 0.5rem 0 1rem;
}
h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0.45rem 0 1rem;
}
h3 {
    font-size: 1.45rem;
}
.lede,
.section-copy {
    font-size: 1.18rem;
    color: var(--muted);
    max-width: 760px;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--brand-2);
}
.hero {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(circle at 88% 20%, #ddeb7699, transparent 25%),
        linear-gradient(145deg, #e5eee2, #f5f0dc);
}
.hero-grid {
    display: grid;
    gap: 2rem;
}
.actions,
.card-actions,
.card-meta,
.section-head,
.result-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0.72rem 1rem;
    border: 1px solid var(--brand);
    border-radius: 11px;
    text-decoration: none;
    font-weight: 850;
    cursor: pointer;
}
.primary {
    background: var(--brand);
    color: white;
}
.primary:hover {
    background: #0d321f;
}
.ghost {
    background: transparent;
    color: var(--brand);
}
.microcopy {
    font-size: 0.86rem;
    color: var(--muted);
}
.hero-card {
    align-self: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow);
}
.step-number,
.brand-badge {
    display: inline-flex;
    padding: 0.3rem 0.55rem;
    border-radius: 7px;
    background: var(--lime);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}
.hero-card ol {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    counter-reset: steps;
}
.hero-card li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.1rem 0.7rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
    counter-increment: steps;
}
.hero-card li:before {
    content: counter(steps);
    grid-row: 1/3;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    font-weight: 900;
}
.hero-card li span {
    color: var(--muted);
}
.needs,
.lesson,
.grid {
    display: grid;
    gap: 1rem;
}
.needs {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 2rem;
}
.needs a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    text-decoration: none;
    transition: 0.2s;
}
.needs a:hover {
    border-color: var(--brand-2);
    transform: translateY(-2px);
}
.needs small {
    display: block;
    color: var(--muted);
}
.need-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--soft);
    font-size: 1.4rem;
}
.lesson-wrap {
    background: var(--brand);
    color: white;
}
.lesson {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 2rem 0;
}
.lesson article {
    padding: 1.1rem;
    border: 1px solid #ffffff38;
    border-radius: 15px;
}
.lesson article span {
    color: var(--lime);
    font-weight: 900;
}
.lesson article b {
    display: block;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
.lesson article p {
    color: #e1ebe4;
}
.text-cta {
    font-weight: 850;
}
.section-head,
.result-head {
    justify-content: space-between;
    align-items: end;
}
.grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.product-media {
    height: 220px;
    position: relative;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #edf2ea, #f5edda);
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: 0.25s;
}
.product-media:hover img {
    transform: scale(1.04);
}
.source-tag {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #ffffffdb;
    font-size: 0.7rem;
    font-weight: 800;
}
.image-fallback {
    font-size: 4rem;
}
.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}
.card-meta {
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.78rem;
}
.card h3 {
    margin: 0.8rem 0 0.4rem;
}
.card h3 a {
    text-decoration: none;
}
.price-line {
    margin: 0;
    font-weight: 900;
}
.card p {
    color: var(--muted);
}
.why {
    padding: 0.7rem;
    border-left: 3px solid var(--brand-2);
    background: var(--soft);
    font-size: 0.9rem;
}
.card dl {
    display: grid;
    gap: 0.45rem;
}
.card dl div {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}
.card dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.card dd {
    margin: 0;
}
.card-actions {
    margin-top: auto;
}
.compare-link {
    padding: 0.7rem;
    font-weight: 800;
}
.trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.2rem;
    border: 1px solid #a6b8a9;
    border-radius: var(--radius);
    background: #ffffffa8;
}
.trust div {
    display: grid;
}
.trust span,
.trust p {
    color: var(--muted);
}
.trust p {
    grid-column: 1/-1;
    margin: 0;
}
.breadcrumbs {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.finder-layout,
.calculator-layout,
.detail,
.product-hero {
    display: grid;
    gap: 1.5rem;
}
.finder-layout form,
.calculator-layout form,
form#compare {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
label {
    display: grid;
    gap: 0.35rem;
    font-weight: 750;
}
label > span,
label small {
    font-weight: 400;
    color: var(--muted);
}
input,
select {
    min-height: 48px;
    border: 1px solid #899c8e;
    border-radius: 9px;
    padding: 0.65rem;
    background: white;
}
.form-row {
    display: grid;
    gap: 1rem;
}
.finder-help,
.detail > article,
.detail > aside,
.sources,
.prose,
.empty,
.totals {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.finder-help {
    align-self: start;
    margin-top: 2rem;
}
.result-note {
    padding: 0.8rem;
    border-left: 4px solid var(--brand-2);
    background: var(--soft);
}
.results {
    padding-top: 2rem;
}
.empty {
    text-align: center;
    margin: 2rem 0;
}
.empty > span {
    font-size: 3rem;
}
.product-hero {
    align-items: center;
}
.detail-media {
    min-height: 330px;
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #edf2ea, #f5edda);
    text-align: center;
}
.detail-media img {
    max-height: 360px;
    object-fit: contain;
}
.detail-media a,
.detail-media > span {
    font-size: 0.75rem;
    color: var(--muted);
}
.price {
    font-size: 1.65rem;
    font-weight: 900;
}
.detail > aside {
    align-self: start;
}
.decision-grid {
    display: grid;
    gap: 1rem;
}
.yes,
.no {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 12px;
}
.yes {
    background: var(--soft);
}
.no {
    background: var(--danger);
}
.spec-list {
    padding: 0;
    list-style: none;
}
.spec-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.claim {
    display: inline-block;
    margin-right: 0.45rem;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 850;
}
.official {
    background: #e3ebff;
}
.facts div {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.facts dt {
    font-weight: 850;
}
.facts dd {
    margin: 0.2rem 0 0;
    color: var(--muted);
}
.checklist {
    list-style: none;
    padding: 0;
}
.checklist li {
    padding: 0.55rem 0;
}
.checklist li:before {
    content: "✓";
    color: var(--brand-2);
    font-weight: 900;
    margin-right: 0.5rem;
}
.full {
    width: 100%;
}
.affiliate-note {
    font-size: 0.8rem;
    color: var(--muted);
}
.merchant-cta {
    background: #b84b12;
    border-color: #9d3d0a;
    color: white;
}
.merchant-cta:hover {
    background: #913708;
}
.card-disclosure {
    margin: 0.55rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.offer-status {
    padding: 0.75rem;
    border-radius: 9px;
    background: var(--soft);
    color: var(--muted);
}
.source-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.88rem;
    color: var(--muted);
}
.compare-picker {
    display: grid;
    gap: 0.5rem;
}
.compare-picker label {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.compare-picker input {
    min-height: auto;
    margin-top: 0.3rem;
}
.compare-picker small {
    display: block;
}
.compare-table {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
th,
td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}
thead th {
    background: var(--soft);
}
thead strong,
thead a {
    display: block;
    margin-top: 0.45rem;
}
.brand-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--soft);
    border-radius: 14px;
}
.brand-feature .brand-badge {
    font-size: 1rem;
}
.calculator-layout {
    align-items: start;
}
.totals {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
.totals span,
.totals strong {
    display: grid;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.totals b {
    font-size: 1.4rem;
}
.totals strong b {
    font-size: 2rem;
}
.prose {
    max-width: 820px;
}
.prose li {
    margin-bottom: 0.7rem;
}
footer {
    padding: 2.5rem max(1rem, calc((100% - 1180px) / 2));
    background: #102f20;
    color: white;
    display: grid;
    gap: 1rem;
}
footer p {
    color: #d8e2db;
}
@media (min-width: 820px) {
    #menu {
        display: none;
    }
    nav#nav {
        display: flex;
        position: static;
        background: none;
        border: 0;
        padding: 0;
    }
    .hero-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    }
    .finder-layout {
        grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
    }
    .form-row,
    .decision-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-hero {
        grid-template-columns: minmax(330px, 0.85fr) 1.2fr;
    }
    .detail {
        grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    }
    .detail > aside {
        position: sticky;
        top: 90px;
    }
    .calculator-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    }
    footer {
        grid-template-columns: 1fr 1fr;
    }
    footer > p {
        grid-column: 1/-1;
    }
}
@media (max-width: 520px) {
    h1 {
        font-size: clamp(2.15rem, 12vw, 2.6rem);
    }
    h2 {
        font-size: clamp(1.75rem, 9vw, 2rem);
    }
    .section {
        padding: 3rem 0;
    }
    .hero {
        padding: 3.5rem 0;
    }
    .actions .button,
    .card-actions .button {
        width: 100%;
    }
    .section-head,
    .result-head {
        align-items: start;
    }
    .product-media {
        height: 190px;
    }
}
/* Five nav links plus the endorsed brand need more room than a small tablet. */
@media (min-width: 820px) and (max-width: 959px) {
    #menu {
        display: block;
    }
    nav#nav {
        position: absolute;
        inset: 74px 0 auto;
        display: none;
        max-height: calc(100vh - 74px);
        max-height: calc(100dvh - 74px);
        overflow-y: auto;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        background: var(--surface);
    }
    nav#nav.open {
        display: grid;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        transition: none !important;
    }
}
