* {
    box-sizing: border-box;
}
:root {
    color-scheme: light;
    --ink: #292339;
    --muted: #625b70;
    --purple: #6347a2;
    --line: #e5deed;
}
body {
    margin: 0;
    background: #faf8f4;
    color: var(--ink);
    font-family: system-ui, "Microsoft YaHei", sans-serif;
    line-height: 1.75;
}
a {
    color: inherit;
    text-decoration: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid #a46a28;
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
h1, h2, h3, p, figure {
    margin: 0;
}
h1, h2, h3 {
    line-height: 1.4;
    overflow-wrap: anywhere;
}
p {
    color: var(--muted);
}
.wrap {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}
.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.nav, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}
.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--purple);
}
nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 15px;
}
nav a:hover, footer a:hover {
    color: var(--purple);
    text-decoration: underline;
}
.hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    margin-top: 30px;
    background: #f0eaf8;
    border-radius: 24px;
    overflow: hidden;
}
.hero-copy {
    padding: 42px;
    min-width: 0;
}
.eyebrow {
    display: block;
    color: var(--purple);
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 750;
    margin-bottom: 12px;
}
h1 {
    font-size: clamp(29px, 3.1vw, 45px);
    letter-spacing: -1px;
}
.lead {
    font-weight: 700;
    font-size: 21px;
    color: #49346e;
    margin: 15px 0;
}
.button {
    display: inline-block;
    background: var(--purple);
    color: white;
    border-radius: 10px;
    padding: 12px 23px;
    margin-top: 24px;
    font-weight: 650;
}
.hero-image {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #e6d9ed;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}
figcaption {
    background: #fff;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--muted);
}
.section {
    margin-block: 54px;
    scroll-margin-top: 20px;
}
.section-head {
    margin-bottom: 22px;
}
h2 {
    font-size: clamp(23px, 2.4vw, 31px);
    margin-bottom: 8px;
}
h3 {
    font-size: 19px;
    margin-bottom: 9px;
}
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.steps li, .articles article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
.steps li span {
    display: inline-block;
    color: var(--purple);
    background: #f0eaf8;
    border-radius: 10px;
    padding: 5px 12px;
    font-weight: 800;
    margin-bottom: 18px;
}
.articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.articles p + p {
    margin-top: 12px;
}
.tag {
    display: inline-block;
    background: #fae6d1;
    color: #74441b;
    border-radius: 6px;
    padding: 3px 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.check {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    background: #eee7f7;
    padding: 34px;
    border-radius: 20px;
}
.score {
    margin: 20px 0;
}
output {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--purple);
}
progress {
    width: 100%;
    accent-color: var(--purple);
    height: 16px;
}
fieldset {
    min-width: 0;
    border: 1px solid #d8c9e7;
    border-radius: 12px;
    padding: 14px 18px;
    background: #fff;
}
legend {
    font-weight: 700;
    padding: 0 8px;
}
fieldset label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
fieldset label:last-child {
    border: 0;
}
input {
    accent-color: var(--purple);
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
button {
    font: inherit;
    color: var(--purple);
    background: white;
    border: 1px solid var(--purple);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
}
details {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
}
summary {
    cursor: pointer;
    font-weight: 650;
}
details p {
    margin-top: 12px;
}
footer {
    background: #2e2540;
    color: #fff;
    font-size: 14px;
}
@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-image img {
        min-height: 0;
        height: auto;
    }
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .articles {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .wrap {
        width: calc(100% - 28px);
    }
    .nav {
        gap: 16px;
    }
    nav {
        gap: 12px 18px;
        font-size: 14px;
    }
    .hero {
        margin-top: 16px;
        border-radius: 16px;
    }
    .hero-copy {
        padding: 24px;
    }
    .section {
        margin-block: 36px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .check {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
    }
    .footer-inner {
        gap: 12px;
    }
}
/* Supplemental research modules */
.comparison, .metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.comparison article, .metrics article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    min-width: 0;
}
.metrics strong {
    display: block;
    font-size: clamp(19px, 2.5vw, 30px);
    color: var(--purple);
    overflow-wrap: anywhere;
}
.measure-note {
    margin: 16px 0 12px;
}
.diagram {
    margin: 24px 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.diagram img {
    width: 100%;
}
.method {
    padding-inline-start: 24px;
    color: var(--muted);
}
.method li {
    margin-block: 8px;
}
.hero-image img {
    flex: 1;
    height: 0;
}
@media (max-width: 850px) {
    .comparison, .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-image img {
        flex: none;
        height: auto;
    }
}
@media (max-width: 560px) {
    .comparison, .metrics {
        grid-template-columns: 1fr;
    }
}
