:root {
    --home-ink: #28254a;
    --home-accent: #dc594a;
    --home-cream: #faf7f2;
    --home-surface: #ffffff;
    --home-muted: #666477;
    --home-rule: #ddd9d2;
}

body {
    background: var(--home-cream);
}

.navbar {
    min-height: 66px;
    border-bottom: 1px solid #dedbe8 !important;
}

.navbar-brand-logo {
    height: 46px;
}

.navbar .nav-link {
    color: #403d5e;
    font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--home-accent);
}

.navbar .btn-dark {
    padding: 0.5rem 0.85rem;
    background: var(--home-ink);
    border-color: var(--home-ink);
    border-radius: 5px;
    font-weight: 700;
}

.app-shell {
    padding-top: clamp(28px, 4vw, 56px) !important;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 72px);
    background: var(--home-ink);
    border: 0;
    border-radius: 0;
}

.home-hero::after {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent 47px, rgba(255, 255, 255, 0.055) 48px);
    content: "";
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.home-eyebrow {
    margin: 0 0 16px;
    color: #ffb89e;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.home-title {
    max-width: 12ch;
    margin: 0 0 24px;
    color: #fffdf9;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.home-lead {
    max-width: 58ch;
    margin: 0;
    color: #e0dfe9;
    font-size: 1.1rem;
    line-height: 1.7;
}

.home-process {
    padding: clamp(24px, 3vw, 32px);
    background: #fffdf9;
    border: 0;
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--home-accent);
}

.home-process h2,
.home-section-heading h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.35;
}

.home-process ol {
    display: grid;
    gap: 18px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.home-process li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 14px;
    align-items: start;
}

.home-process span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: #f2efeb;
    color: var(--home-accent);
    font-size: 0.875rem;
    font-weight: 800;
}

.home-process p {
    margin: 4px 0 0;
    color: #555167;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.home-section {
    margin-top: clamp(48px, 7vw, 88px);
}

.home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 32px;
    align-items: end;
    max-width: none;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #cfcad8;
}

.home-section-heading h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    letter-spacing: -0.035em;
}

.home-section-heading p {
    max-width: 62ch;
    margin: 0;
    color: var(--home-muted);
    line-height: 1.65;
}

.home-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-module {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 28px;
    background: var(--home-surface);
    border: 1px solid var(--home-rule);
    border-top: 4px solid var(--home-accent);
    border-radius: 0;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.home-module:hover {
    background: #fffdf9;
    border-color: #c6bfba;
    box-shadow: 0 5px 8px rgba(40, 37, 74, 0.1);
}

.home-module:focus-within {
    border-color: var(--home-accent);
    box-shadow: 0 0 0 3px rgba(220, 89, 74, 0.2);
}

.home-module-heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.home-module-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    background: #f1edeb;
    color: var(--home-accent);
}

.home-module-icon svg {
    width: 23px;
    height: 23px;
}

.home-module h3 {
    margin: 1px 0 7px;
    color: var(--home-ink);
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.25;
}

.home-module p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.home-module ul {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--home-rule);
    list-style: none;
}

.home-module li {
    position: relative;
    padding-left: 18px;
    color: #4e4b5d;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.home-module li::before {
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--home-accent);
    border-radius: 50%;
    content: "";
}

.home-module-action {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-self: flex-end;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 12px 14px 12px 16px;
    background: var(--home-ink);
    border: 1px solid var(--home-ink);
    border-radius: 5px;
    color: #fffdf9;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.home-module-action::after {
    content: "→";
    font-size: 1.25rem;
    line-height: 1;
}

.home-module-action:hover,
.home-module-action:focus {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #ffffff;
}

.home-module-action-unavailable {
    background: #777384;
    border-color: #777384;
    cursor: default;
}

.home-module-action-unavailable:hover,
.home-module-action-unavailable:focus {
    background: #777384;
    border-color: #777384;
    color: #fffdf9;
}

@media (max-width: 991.98px) {
    .home-hero-grid,
    .home-section-heading {
        grid-template-columns: 1fr;
    }

    .home-hero-grid {
        gap: 40px;
    }

    .home-section-heading {
        gap: 12px;
    }

    .home-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand-logo {
        height: 40px;
    }

    .home-hero {
        padding: 32px 22px;
    }

    .home-title {
        font-size: clamp(2.5rem, 13vw, 3.4rem);
    }

    .home-process {
        padding: 22px;
        box-shadow: 5px 5px 0 var(--home-accent);
    }

    .home-module {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-module,
    .home-module-action {
        transition: none;
    }
}
