:root {
    --bg: #fcf8f5;
    --surface: #ffffff;
    --surface-soft: #fff4ef;
    --text: #1f1a17;
    --muted: #675a54;
    --border: #dfd3cb;
    --accent: #b8322f;
    --accent-dark: #8f211f;
    --accent-soft: #f7dfdb;
    --shadow: 0 18px 44px rgba(79, 48, 40, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1160px;
    --font-body: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
    --font-heading: "Gill Sans", "Trebuchet MS", "Avenir Next", sans-serif;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(184, 50, 47, 0.08), transparent 22rem),
        linear-gradient(180deg, #fffdfb 0%, var(--bg) 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

main {
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    width: min(760px, 100%);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 253, 251, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(223, 211, 203, 0.9);
}

.header-row,
.nav-row,
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-row {
    padding: 1rem 0 0.75rem;
}

.nav-row {
    padding: 0 0 1rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    border: 2px solid #1c1714;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.brand-heart {
    width: 22px;
    height: 22px;
    background: var(--accent);
    transform: rotate(45deg);
    position: absolute;
    top: 17px;
    border-radius: 4px;
}

.brand-heart::before,
.brand-heart::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
}

.brand-heart::before {
    top: -11px;
    left: 0;
}

.brand-heart::after {
    top: 0;
    left: -11px;
}

.brand-hands {
    width: 34px;
    height: 8px;
    border-top: 3px solid #1c1714;
    border-bottom: 3px solid #1c1714;
    border-radius: 10px;
    position: absolute;
    bottom: 16px;
    transform: rotate(-10deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-tag {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.language-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.language-options {
    display: flex;
    gap: 0.5rem;
    font-weight: 700;
}

.language-options span {
    padding: 0.15rem 0.25rem;
}

.language-options .is-active {
    color: var(--accent);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-nav a {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
    color: var(--text);
    background: var(--accent-soft);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mobile-actions {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    min-height: 50px;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--accent-dark);
}

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

.button-large {
    min-height: 58px;
    padding: 1rem 1.6rem;
    font-size: 1.05rem;
}

.hero,
.page-intro {
    padding: 3.25rem 0 2rem;
}

.hero-grid,
.split-layout,
.choice-grid,
.steps-grid,
.card-grid {
    display: grid;
    gap: 1.25rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    align-items: stretch;
}

.hero-copy h1,
.page-intro h1,
.section-heading h2 {
    font-family: var(--font-heading);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    max-width: 13ch;
}

.page-intro h1,
.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 40rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero-panel {
    background: linear-gradient(180deg, var(--surface) 0%, #fff7f3 100%);
}

.feature-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.feature-list li + li {
    margin-top: 0.65rem;
}

.section {
    padding: 1.5rem 0 3.5rem;
}

.section-soft {
    background: linear-gradient(180deg, rgba(247, 223, 219, 0.34) 0%, rgba(255, 255, 255, 0) 100%);
}

.section-heading {
    margin-bottom: 1.5rem;
}

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

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

.card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card h3,
.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-family: var(--font-heading);
}

.text-link {
    display: inline-flex;
    margin-top: 0.8rem;
    color: var(--accent-dark);
    font-weight: 700;
}

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

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

.step-card {
    position: relative;
    padding-top: 4.5rem;
}

.step-number {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

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

.choice-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.choice-card:hover,
.choice-card:focus-visible {
    border-color: #c99a95;
    transform: translateY(-2px);
}

.choice-card .button {
    margin-top: auto;
    width: fit-content;
}

.choice-badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.form-card {
    padding: 1.7rem;
}

.form-notice,
.flash {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.form-notice {
    margin-bottom: 1.25rem;
    background: var(--surface-soft);
    border: 1px solid #efcac2;
    color: var(--accent-dark);
}

.flash-stack {
    padding-top: 1rem;
}

.flash {
    background: #fff5d8;
    border: 1px solid #efd08b;
    color: #74560d;
}

.flash-success {
    background: #e9f8ed;
    border-color: #9fd0aa;
    color: #20582d;
}

.flash-error {
    background: #fff0ee;
    border-color: #e3aba3;
    color: #8f211f;
}

.flash-warning {
    background: #fff5d8;
    border-color: #efd08b;
    color: #74560d;
}

.flash-info {
    background: #edf5ff;
    border-color: #b7d0ef;
    color: #24496d;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-weight: 700;
}

.full-width {
    grid-column: 1 / -1;
}

.field-input {
    width: 100%;
}

.field-input-error {
    border-color: var(--accent);
    background: #fff7f6;
}

.field-errors {
    display: block;
    color: var(--accent-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.form-help {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.form-checklist {
    display: grid;
    gap: 0.85rem;
    margin: 1.25rem 0 1.5rem;
}

.checkbox-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    font-weight: 700;
}

.checkbox-control {
    padding-top: 0.1rem;
}

.checkbox-control input {
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
    min-height: 1.2rem;
}

.checkbox-copy {
    color: var(--text);
}

.checkbox-errors {
    margin-top: -0.4rem;
}

.dashboard-card {
    min-height: 100%;
}

input,
textarea {
    width: 100%;
    border: 1px solid #cdbdb4;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

input::placeholder,
textarea::placeholder {
    color: #8a7d76;
}

input:focus,
textarea:focus,
.button:focus,
.site-nav a:focus,
.choice-card:focus {
    outline: 3px solid rgba(184, 50, 47, 0.24);
    outline-offset: 2px;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: #fffdfa;
}

.footer-row {
    padding: 1.35rem 0;
    justify-content: center;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero-grid,
    .split-layout,
    .steps-grid,
    .card-grid-three,
    .card-grid-four,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .card-grid-two,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .desktop-actions {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .header-row,
    .nav-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    html {
        font-size: 17px;
    }

    .brand {
        align-items: flex-start;
    }

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

    .language-switch {
        width: 100%;
        justify-content: space-between;
    }

    .header-tools,
    .hero-actions,
    .header-actions {
        width: 100%;
    }

    .header-actions .button,
    .hero-actions .button {
        flex: 1 1 100%;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
    }

    .hero,
    .page-intro {
        padding-top: 2rem;
    }
}
