:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #192e29;
    background: #f2f5f0;
    --green: #145b45;
    --green-dark: #104937;
    --muted: #536860;
    --border: #dce5dd;
    --alarm: #a9282e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
p, h1, h2, ol { margin: 0; }
button, input, textarea { font: inherit; }
svg { display: block; width: 1.25rem; height: 1.25rem; flex: none; }

.page { max-width: 73rem; margin: auto; padding: 0 2.5rem; }
.masthead {
    min-height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #d8e2d9;
}
.brand, .badges { display: flex; align-items: center; gap: .75rem; }
.brand-icon, .result-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    color: white;
    background: var(--green);
    flex: none;
}
.brand-name { font-weight: 760; letter-spacing: -.02em; }
.brand-school { color: var(--muted); font-size: .84rem; margin-top: .11rem; }
.badge {
    border: 1px solid #d2dfd4;
    color: #36554a;
    border-radius: 999px;
    padding: .37rem .66rem;
    font-size: .74rem;
    font-weight: 680;
}
.badge.demo { background: #fff3d8; color: #734900; border-color: #eedcb4; }

.layout { display: grid; grid-template-columns: minmax(13rem, .95fr) minmax(0, 2.6fr); gap: 2.8rem; margin-top: 2rem; }
.sidebar { padding: 2rem 0; }
.eyebrow { color: var(--green); font-weight: 770; font-size: .72rem; letter-spacing: .095em; text-transform: uppercase; }
h1 { margin-top: .75rem; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: .99; letter-spacing: -.075em; }
h2 { font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.11; letter-spacing: -.055em; margin-top: .45rem; }
.form-step h2:focus { outline: none; }
.steps { padding: 0; margin-top: 2.2rem; list-style: none; display: grid; gap: .75rem; color: var(--muted); font-size: .89rem; }
.steps li { display: flex; align-items: center; gap: .65rem; }
.steps li span:first-child {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    border: 1px solid #ccd9ce;
    border-radius: 50%;
    font-weight: 700;
}
.steps li[aria-current] { color: var(--green-dark); font-weight: 740; }
.steps li[aria-current] span:first-child { background: var(--green); border-color: var(--green); color: white; }

.panel { background: #fff; border: 1px solid #dce5dd; border-radius: 1.25rem; padding: 1.9rem 2rem; box-shadow: 0 12px 32px #284e3810; min-width: 0; }
.intro { margin: .45rem 0 1.25rem; color: var(--muted); font-size: .94rem; line-height: 1.5; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.choice { position: relative; cursor: pointer; min-width: 0; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-body {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .48rem;
    padding: .62rem .68rem;
    position: relative;
    min-height: 3.35rem;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: .66rem;
    font-size: .84rem;
    line-height: 1.25;
    font-weight: 660;
    overflow-wrap: anywhere;
    transition: border-color .12s, background .12s;
}
.choice-icon { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: .35rem; color: var(--green); background: #edf5ef; }
.choice-icon svg { width: 1rem; height: 1rem; }
.choice-check {
    position: absolute;
    top: .14rem;
    right: .17rem;
    color: var(--green);
    opacity: 0;
}
.choice-check svg { width: .78rem; height: .78rem; stroke-width: 2.5; }
.choice:hover .choice-body { border-color: #89aa98; background: #f7fbf8; }
.choice input:checked + .choice-body { background: #e9f5ed; border-color: #2d775d; box-shadow: inset 0 0 0 1px #2d775d; }
.choice input:checked + .choice-body .choice-check { opacity: 1; }
.choice input:focus-visible + .choice-body, :where(button, a, textarea, input[type="text"]):focus-visible { outline: 2px solid #197957; outline-offset: 3px; }

.field { margin-top: 1rem; }
.field label { display: block; margin-bottom: .38rem; font-size: .875rem; font-weight: 720; }
.field label span { color: var(--muted); font-size: .8rem; font-weight: 450; }
.field :is(textarea, input) {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #cbd8ce;
    border-radius: .59rem;
    padding: .56rem .7rem;
    font-size: .92rem;
    color: inherit;
    background: #fcfdfa;
}
.field textarea { resize: vertical; }
.hint, .demo-note { margin-top: .4rem; color: var(--muted); font-size: .78rem; }
.field-error { color: #9c222b; margin-top: .4rem; font-size: .85rem; font-weight: 650; }
.field-error:empty { margin: 0; }

.actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.first-actions { justify-content: flex-end; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 2.9rem;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: .65rem;
    font-size: .9rem;
    font-weight: 720;
    text-decoration: none;
    cursor: pointer;
}
.button svg { width: 1.1rem; height: 1.1rem; }
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { color: var(--green-dark); background: white; border-color: #cbd8ce; }
.secondary:hover { background: #f2f8f3; }
.alarm { color: white; background: var(--alarm); }
.alarm:hover { background: #872027; }
.button:disabled { opacity: .7; cursor: wait; }
.preview { margin-top: 1.2rem; background: #f1f6f1; border: 1px solid #dce8df; border-radius: .7rem; padding: .85rem 1rem; overflow-wrap: anywhere; }
.preview-title { margin-top: .35rem; font-weight: 760; }
.preview-place { color: var(--muted); font-size: .9rem; margin-top: .12rem; }
.preview-note { font-size: .875rem; margin-top: .55rem; white-space: pre-wrap; }
.demo-note { display: flex; gap: .38rem; align-items: center; margin-top: 1rem; }
.demo-note svg { width: .95rem; height: .95rem; }
.result { min-height: 15rem; display: grid; justify-items: start; align-content: center; gap: .65rem; }
.result > p { color: var(--muted); line-height: 1.5; }
.result .button { margin-top: .5rem; }
.notice { color: var(--alarm); margin-bottom: 1rem; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; padding: 1.4rem 0 1.6rem; color: var(--muted); font-size: .78rem; }
.footer strong { color: #7e1e25; }

@media (max-width: 61rem) {
    .page { padding: 0 1.45rem; }
    .layout { grid-template-columns: minmax(10rem, .85fr) minmax(0, 2.6fr); gap: 1.4rem; }
    .panel { padding: 1.4rem; }
    .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
    .page { padding: 0 1rem; }
    .masthead { min-height: 4.5rem; }
    .brand, .badges { gap: .42rem; }
    .brand-icon { width: 2.2rem; height: 2.2rem; border-radius: .65rem; }
    .brand-name { font-size: .9rem; }
    .brand-school { font-size: .73rem; }
    .badge { padding: .24rem .45rem; font-size: .66rem; }
    .layout { display: block; margin-top: 1rem; }
    .sidebar { padding: 0 0 .85rem; }
    h1 { font-size: 2rem; letter-spacing: -.065em; margin-top: .28rem; }
    h1 br { display: none; }
    .steps { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .65rem; }
    .steps li span:first-child { width: 1.45rem; height: 1.45rem; }
    .panel { padding: 1rem; border-radius: .9rem; }
    .choice-body { padding: .48rem .5rem; min-height: 3.15rem; font-size: .8rem; }
}
@media (max-width: 24rem) {
    .brand { min-width: 0; }
    .brand-name { overflow-wrap: anywhere; }
    .badges { flex-direction: column; align-items: flex-end; gap: .2rem; }
    .choice-body { grid-template-columns: 1fr; gap: .25rem; align-content: center; }
    .choice-icon { width: 1.45rem; height: 1.45rem; }
    .actions .primary, .actions .alarm { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .choice-body { transition: none; }
}
