:root {
    --green-950: #072b21;
    --green-900: #0b3d2e;
    --green-800: #10553e;
    --green-700: #14654a;
    --green-600: #1a7d5a;
    --green-500: #22996e;
    --green-100: #dcefe5;
    --green-50: #eef8f2;
    --gold-500: #e0a63c;
    --gold-400: #f0bd5d;
    --gold-100: #fdf1d8;
    --cream: #f5f2ea;
    --paper: #fffdf9;
    --ink: #17241f;
    --ink-soft: #4c5c55;
    --muted: #7b8a83;
    --line: #e4e0d5;
    --line-strong: #d3cdbe;
    --danger: #b03a2e;
    --danger-bg: #fdeceb;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(23, 36, 31, .06), 0 6px 16px -12px rgba(23, 36, 31, .2);
    --shadow-md: 0 2px 4px rgba(23, 36, 31, .05), 0 24px 48px -32px rgba(11, 61, 46, .45);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(circle at 8% -10%, #fbf3e0 0%, transparent 42%),
        radial-gradient(circle at 96% 8%, #e8f4ec 0%, transparent 38%),
        var(--cream);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
}

a {
    color: var(--green-700);
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

.wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------- Header -------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 253, 249, .86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 224, 213, .8);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--green-800), var(--green-950));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--shadow-sm);
}

.brand-mark svg {
    width: 30px;
    height: 30px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.brand-text small {
    color: var(--muted);
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: #efeee6;
    border-radius: 999px;
}

.site-nav a {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: background .18s ease, color .18s ease;
}

.site-nav a:hover {
    color: var(--green-800);
}

.site-nav a.active {
    background: var(--paper);
    color: var(--green-800);
    box-shadow: var(--shadow-sm);
}

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

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(240, 189, 93, .2), transparent 48%),
        linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 52%, #0d4a37 100%);
    color: #f4f7f2;
    padding: 64px 0 96px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
    align-items: center;
    gap: 32px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-400);
}

.hero h1 {
    margin-top: 14px;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    max-width: 16ch;
}

.hero-copy > p {
    margin-top: 16px;
    max-width: 52ch;
    color: #c8d8d0;
    font-size: 1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pill {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
    font-size: .8rem;
    color: #e6efe9;
}

.hero-art {
    position: relative;
    height: 230px;
    min-width: 220px;
}

.hero-art .sun {
    position: absolute;
    top: 6px;
    right: 46px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #ffe6a8, var(--gold-400) 52%, var(--gold-500) 100%);
    box-shadow:
        0 0 0 14px rgba(240, 189, 93, .1),
        0 0 60px rgba(240, 189, 93, .45);
}

.hero-art .hill {
    position: absolute;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    bottom: 0;
}

.hill-back {
    left: 0;
    right: 20px;
    height: 120px;
    background: linear-gradient(180deg, rgba(26, 125, 90, .55), rgba(11, 61, 46, .2));
    transform: rotate(-3deg);
}

.hill-front {
    left: 40px;
    right: -10px;
    height: 86px;
    background: linear-gradient(180deg, var(--green-600), var(--green-800));
    box-shadow: 0 -6px 24px rgba(7, 43, 33, .35);
}

.hero-art .rice {
    position: absolute;
    left: 50px;
    right: 0;
    bottom: 0;
    height: 84px;
    background-image: repeating-linear-gradient(
        105deg,
        rgba(240, 189, 93, .35) 0 1px,
        transparent 1px 12px
    );
    mask-image: linear-gradient(to top, #000 12%, transparent 90%);
    -webkit-mask-image: linear-gradient(to top, #000 12%, transparent 90%);
}

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

.page {
    min-height: 60vh;
}

.content {
    position: relative;
    z-index: 3;
    margin-top: -56px;
    padding-bottom: 64px;
}

.content-flat {
    margin-top: 0;
    padding-top: 40px;
}

.page-head {
    background: linear-gradient(135deg, var(--green-900), var(--green-800));
    color: #f2f7f3;
    padding: 48px 0 40px;
}

.page-head-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.page-head h1 {
    margin-top: 10px;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.page-head p {
    margin-top: 10px;
    max-width: 62ch;
    color: #c8d8d0;
    font-size: .95rem;
}

.page-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* -------------------------------- Cards -------------------------------- */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.card-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-head h2 {
    font-size: 1.2rem;
}

.card-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: .88rem;
}

.step {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-700);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
}

/* -------------------------------- Form --------------------------------- */

.grid {
    display: grid;
    gap: 18px;
}

.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field > label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.req {
    color: var(--danger);
}

.optional {
    font-weight: 400;
    color: var(--muted);
    font-size: .78rem;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .92rem;
    transition: border-color .16s ease, box-shadow .16s ease;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%237b8a83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #a8b2ac;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(34, 153, 110, .14);
}

.input-suffix {
    position: relative;
}

.input-suffix input {
    padding-right: 62px;
}

.input-suffix span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .82rem;
    pointer-events: none;
}

.field-help {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .76rem;
    color: var(--muted);
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Progress */
.progress-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 14px 18px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-md);
}

.progress-track {
    flex: 1;
    height: 8px;
    background: #d9e9e0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-600), var(--green-500));
    transition: width .28s ease;
}

.progress-text {
    font-size: .8rem;
    font-weight: 600;
    color: var(--green-700);
    white-space: nowrap;
}

/* Questions */
.questions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.question {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fcfbf6;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.question.is-answered {
    border-color: #bfe0cd;
    background: #fbfefb;
    box-shadow: 0 0 0 3px rgba(34, 153, 110, .06);
}

.question.shake {
    animation: shake .5s ease;
    border-color: var(--danger);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.q-head {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.q-no {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #eef1ed;
    color: var(--green-700);
    font-weight: 700;
    font-size: .78rem;
}

.question.is-answered .q-no {
    background: var(--green-100);
}

.q-text h3 {
    font-size: .98rem;
}

.q-text p {
    margin-top: 3px;
    font-size: .825rem;
    color: var(--muted);
    max-width: 78ch;
}

.options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.options input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
    min-width: 0;
}

.options label:hover {
    border-color: var(--green-500);
    background: var(--green-50);
}

.option-score {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f0efe7;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: .78rem;
}

.option-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.option-text strong {
    font-size: .8rem;
    font-weight: 600;
}

.option-text small {
    font-size: .68rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.options input[type="radio"]:checked + label {
    border-color: var(--green-600);
    background: var(--green-50);
    box-shadow: 0 0 0 2px rgba(20, 101, 74, .12);
}

.options input[type="radio"]:checked + label .option-score {
    background: var(--green-700);
    color: #fff;
}

.options input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--green-500);
    outline-offset: 2px;
}

/* Alerts */
.alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid transparent;
    animation: fade-up .3s ease both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.alert-icon svg {
    width: 18px;
    height: 18px;
}

.alert strong {
    display: block;
    font-size: .94rem;
    margin-bottom: 2px;
}

.alert p,
.alert ul {
    margin: 0;
    font-size: .86rem;
}

.alert ul {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alert-success {
    background: #f0faf4;
    border-color: #c4e6d3;
    color: #145c3f;
}

.alert-success .alert-icon {
    background: #d9f2e4;
    color: var(--green-700);
}

.alert-error {
    background: var(--danger-bg);
    border-color: #f3cdc8;
    color: #8c2f25;
}

.alert-error .alert-icon {
    background: #f8d9d5;
    color: var(--danger);
}

/* Submit */
.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 4px 6px 0;
}

.privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 58ch;
    font-size: .8rem;
    color: var(--muted);
}

.privacy svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--green-600);
    margin-top: 1px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 11px;
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
    white-space: nowrap;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(145deg, var(--green-600), var(--green-800));
    box-shadow: 0 10px 24px -12px rgba(11, 61, 46, .6), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -12px rgba(11, 61, 46, .7), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg,
.btn-secondary svg {
    width: 17px;
    height: 17px;
}

.btn-primary.btn-small,
.btn-secondary.btn-small {
    padding: 10px 18px;
    font-size: .86rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.content-flat .btn-secondary,
.page-head .btn-secondary {
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .18);
}

.page-head .btn-primary {
    background: var(--gold-400);
    color: var(--green-950);
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}

.page-head .btn-primary:hover {
    background: var(--gold-500);
}

/* -------------------------------- Results ------------------------------ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.stat-card.stat-accent {
    background: linear-gradient(145deg, var(--green-800), var(--green-950));
    border-color: transparent;
    color: #eef6f0;
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-accent .stat-label {
    color: #a9c9b8;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-top: 4px;
}

.stat-note {
    font-size: .8rem;
    color: var(--muted);
}

.stat-accent .stat-note {
    color: #a9c9b8;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.two-col .card {
    height: 100%;
}

.mutu-badge {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
}

.mutu-a { background: #1d7f57; }
.mutu-b { background: #2f7fa8; }
.mutu-c { background: #b8791c; }
.mutu-d { background: #a9423a; }

.stat-value .mutu-badge {
    height: 36px;
    min-width: 44px;
    font-size: 1.05rem;
}

.dist-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dist-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 84px;
    align-items: center;
    gap: 12px;
}

.dist-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.dist-track {
    height: 10px;
    border-radius: 999px;
    background: #eeece3;
    overflow: hidden;
}

.dist-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-600), var(--green-500));
}

.dist-1 { background: linear-gradient(90deg, #c05248, #d4736a); }
.dist-2 { background: linear-gradient(90deg, #c9892f, #dfa955); }
.dist-3 { background: linear-gradient(90deg, #3b8f68, #56a982); }
.dist-4 { background: linear-gradient(90deg, var(--green-700), var(--green-500)); }

.dist-value {
    text-align: right;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dist-value strong {
    font-size: .84rem;
}

.dist-value small {
    font-size: .68rem;
    color: var(--muted);
}

.highlight {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fcfbf6;
    margin-bottom: 12px;
}

.highlight strong {
    font-size: .95rem;
}

.highlight-score {
    font-size: .82rem;
    font-weight: 600;
    color: var(--green-700);
    white-space: nowrap;
}

.highlight-tag {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tag-best {
    background: var(--green-100);
    color: var(--green-700);
}

.tag-low {
    background: var(--gold-100);
    color: #96621a;
}

.mutu-scale {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
}

.mutu-scale-title {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.mutu-scale ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .8rem;
    color: var(--ink-soft);
}

.mutu-scale li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.mutu-scale .mutu-badge {
    min-width: 26px;
    height: 24px;
    font-size: .72rem;
    border-radius: 7px;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 0 -6px;
    padding: 0 6px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
    min-width: 620px;
}

.data-table th {
    text-align: left;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--ink-soft);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fbfaf4;
}

.data-table strong {
    color: var(--ink);
}

.col-no {
    width: 48px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.col-bar {
    width: 32%;
    min-width: 140px;
}

.col-score {
    width: 84px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table th.col-score {
    text-align: right;
}

.col-notes {
    min-width: 180px;
    max-width: 280px;
}

.notes {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: .8rem;
}

.nowrap {
    white-space: nowrap;
}

.muted {
    color: var(--muted);
}

.mini-track {
    height: 7px;
    border-radius: 999px;
    background: #eeece3;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-600), var(--green-500));
}

.data-table tfoot td {
    padding-top: 14px;
    border-top: 2px solid var(--line-strong);
    border-bottom: 0;
    font-size: .86rem;
    color: var(--ink-soft);
}

.data-table tfoot td:last-child {
    text-align: right;
    color: var(--green-800);
    font-size: .95rem;
}

.table-note {
    margin-top: 14px;
    font-size: .76rem;
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: 56px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--green-50);
    color: var(--green-600);
    margin-bottom: 6px;
}

.empty-icon svg {
    width: 30px;
    height: 30px;
}

.empty-state h2 {
    font-size: 1.2rem;
}

.empty-state p {
    color: var(--muted);
    font-size: .9rem;
    max-width: 46ch;
}

.empty-state .btn-primary {
    margin-top: 14px;
}

/* -------------------------------- Footer ------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 249, .7);
    padding: 26px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--muted);
}

.footer-note {
    text-align: right;
}

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

@media (max-width: 900px) {
    .cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .two-col {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-art {
        display: none;
    }

    .hero {
        padding-bottom: 84px;
    }

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

@media (max-width: 640px) {
    .wrap {
        padding: 0 16px;
    }

    .header-inner {
        min-height: 64px;
    }

    .brand-text small {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .site-nav a {
        padding: 7px 13px;
        font-size: .82rem;
    }

    .hero {
        padding: 44px 0 80px;
    }

    .content {
        margin-top: -48px;
    }

    .card {
        padding: 20px;
        border-radius: 16px;
    }

    .cols-3 {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.55rem;
    }

    .progress-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .progress-text {
        text-align: center;
    }

    .question {
        padding: 16px;
    }

    .options {
        grid-template-columns: 1fr 1fr;
    }

    .option-text small {
        display: none;
    }

    .dist-row {
        grid-template-columns: 96px minmax(0, 1fr) 70px;
        gap: 8px;
    }

    .dist-label {
        font-size: .74rem;
    }

    .submit-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
    }

    .page-head-inner {
        align-items: flex-start;
    }

    .page-head-actions {
        width: 100%;
    }

    .page-head-actions .btn-secondary,
    .page-head-actions .btn-primary {
        flex: 1;
    }

    .footer-note {
        text-align: left;
    }
}

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