:root {
    color-scheme: light;
    --bg: #f6f1e8;
    --surface: #fffdf8;
    --elevated: #ffffff;
    --text: #1d1914;
    --muted: #4e463d;
    --border: #e4d8c8;
    --accent: #0c5c56;
    --accent-text: #ffffff;
    --accent-soft: #e5f4f1;
    --focus: #0c5c56;
    --danger: #8d2f2f;
    --space: clamp(1rem, 2vw, 1.5rem);
    --content: 72rem;
    --font: "Segoe UI", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #121614;
        --surface: #1b221f;
        --elevated: #24302b;
        --text: #f4efe6;
        --muted: #d2cbc0;
        --border: #3a4741;
        --accent: #9ee0d6;
        --accent-text: #10211e;
        --accent-soft: #1d3330;
        --focus: #9ee0d6;
        --danger: #ffb4b4;
    }
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f1e8;
    --surface: #fffdf8;
    --elevated: #ffffff;
    --text: #1d1914;
    --muted: #4e463d;
    --border: #e4d8c8;
    --accent: #0c5c56;
    --accent-text: #ffffff;
    --accent-soft: #e5f4f1;
    --focus: #0c5c56;
    --danger: #8d2f2f;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #121614;
    --surface: #1b221f;
    --elevated: #24302b;
    --text: #f4efe6;
    --muted: #d2cbc0;
    --border: #3a4741;
    --accent: #9ee0d6;
    --accent-text: #10211e;
    --accent-soft: #1d3330;
    --focus: #9ee0d6;
    --danger: #ffb4b4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
}

a { color: var(--accent); }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--surface);
    color: var(--text);
    padding: 0.5rem 1rem;
}

.skip:focus { top: 1rem; }

.site-header,
main {
    width: min(var(--content), calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.mark {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent);
    display: inline-flex;
}

.mark-svg { width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .mark-ring {
        transform-origin: 32px 32px;
        animation: settle 2.6s ease-out 1;
    }
}

@keyframes settle {
    0% { transform: rotate(0deg); }
    45% { transform: rotate(220deg); }
    100% { transform: rotate(360deg); }
}

.header-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.langs {
    display: flex;
    gap: 0.5rem;
}

.langs a {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
}

.langs a[aria-current="true"] {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.theme {
    border: 1px solid var(--border);
    border-radius: 999px;
    margin: 0;
    padding: 0.2rem;
    display: flex;
    gap: 0.2rem;
    background: var(--surface);
}

.theme legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.theme button {
    min-height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    padding: 0 0.8rem;
    font: inherit;
    cursor: pointer;
}

.theme button[aria-pressed="true"] {
    background: var(--accent);
    color: var(--accent-text);
}

.hero { padding: 1rem 0 2rem; max-width: 40rem; }

.eyebrow {
    color: var(--muted);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    max-width: 18ch;
}

.lead, .support {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.15rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.panel, .notes {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: var(--space);
    margin-bottom: 1rem;
}

.notes p { margin: 0.4rem 0; }

ol { padding-left: 1.2rem; }

ol li { margin: 0.4rem 0; }

label { display: block; margin-top: 0.85rem; font-weight: 600; }

input, select {
    display: block;
    width: min(100%, 28rem);
    min-height: 2.75rem;
    margin-top: 0.35rem;
    padding: 0.4rem 0.7rem;
    font: inherit;
    color: var(--text);
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
}

form .button { margin-top: 1rem; }

textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.6rem 0.7rem;
    font: inherit;
    color: var(--text);
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.account-nav a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
}

.sheet {
    max-width: 40rem;
    margin-inline: auto;
    margin-bottom: 3rem;
}

.sheet h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    max-width: 20ch;
}

.form-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.form-stack > label,
.form-stack fieldset > label {
    margin-top: 1rem;
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.form-stack fieldset input,
.form-stack fieldset select,
.form-stack fieldset textarea {
    width: 100%;
    max-width: none;
}

.form-stack .choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    font-weight: 500;
}

.form-stack .choice input {
    width: 1.15rem;
    min-width: 1.15rem;
    min-height: 1.15rem;
    margin-top: 0;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin: 1.25rem 0 0;
    padding: 0.4rem 1rem 1.1rem;
    min-width: 0;
}

legend {
    font-weight: 700;
    padding: 0 0.35rem;
}

.service-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.service-row input[type="time"] {
    max-width: 12rem;
}

.notice {
    background: var(--accent-soft);
    color: var(--text);
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
}

.checks {
    padding-left: 1.2rem;
}

.checks li { margin: 0.35rem 0; }

.results { list-style: none; padding: 0; }

.results h2 { font-size: 1.35rem; margin: 0 0 0.4rem; }

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
}

.steps .step {
    min-height: 2.75rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font: inherit;
    cursor: pointer;
}

.steps .step[aria-current="step"] {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.breakdown {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 0.8rem;
}

.breakdown h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }

.breakdown dl { margin: 0.4rem 0 0.8rem; }

.breakdown dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0;
}

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

.breakdown dd { margin: 0; font-weight: 700; }

.errors {
    color: var(--danger);
    padding-left: 1.2rem;
}

.hero-band {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.hero-copy h1 { max-width: 16ch; }

.ease {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.doors {
    display: grid;
    gap: 1rem;
}

.door {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 7rem;
    padding: 1.4rem 1.3rem;
    border-radius: 1.4rem;
    background: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

.door-quiet {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.door strong { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; }

.door span { font-size: 1rem; }

.door-quiet span { color: var(--muted); }

.plain-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.plain-steps li {
    counter-increment: step;
    padding: 0.35rem 0 0.35rem 2rem;
    position: relative;
}

.plain-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--accent);
}

.prose h2, .split h2 { margin-bottom: 0.4rem; }

.split { display: grid; gap: 1.25rem; align-items: center; }

.dash {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.dash a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    font-weight: 700;
}

.regions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }

.regions a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
}

.site-footer {
    width: min(var(--content), calc(100% - 2rem));
    margin: 2rem auto 1.5rem;
    color: var(--muted);
}

.site-footer p { margin: 0.2rem 0; }

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

.hero-photo,
.photo {
    margin: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.hero-photo img,
.photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-photo img { aspect-ratio: 16 / 9; }

.photo img { aspect-ratio: 4 / 3; }

.hero-photo figcaption,
.photo-note {
    margin: 0;
    padding: 0.45rem 0.75rem 0.6rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.section { margin: 2.25rem 0; }

.section h2 { max-width: 22ch; }

.card-grid {
    display: grid;
    gap: 0.75rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 3rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.card strong { font-size: 1.15rem; }

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

.how {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: how;
}

.how li {
    counter-increment: how;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 0.85rem 1rem 0.85rem 3.2rem;
    position: relative;
}

.how li::before {
    content: counter(how);
    position: absolute;
    left: 0.85rem;
    top: 0.75rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--text);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.photo-row {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.cta-band {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: var(--space);
}

.stars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border: 0;
    margin: 0;
    padding: 0;
}

.stars label {
    position: relative;
}

.stars input {
    position: absolute;
    opacity: 0;
    inset: 0;
}

.stars span {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--elevated);
}

.stars input:focus-visible + span {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.stars input:checked + span {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.empty {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1rem 1.1rem;
}

@media (min-width: 720px) {
    .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
    .doors { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
    .hero-band { grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr); }
    .split { grid-template-columns: minmax(0, 1.1fr) minmax(14rem, 0.7fr); }
}

@media (min-width: 1600px) {
    :root { --content: 76rem; }
}
