:root {
    color-scheme: light;
    --bg: #f7f5ef;
    --surface: #ffffff;
    --surface-strong: #eff4f0;
    --ink: #17201b;
    --muted: #5f6b66;
    --line: #d9ddd6;
    --green: #245f45;
    --green-dark: #143827;
    --blue: #284b63;
    --amber: #b57b34;
    --shadow: 0 22px 70px rgba(23, 32, 27, 0.11);
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
}

h1 {
    max-width: 820px;
    font-size: clamp(2.65rem, 5.8vw, 4.75rem);
    letter-spacing: 0;
}

h1:focus {
    outline: none;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0;
}

h3 {
    font-size: 1.35rem;
}

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

.site-shell {
    min-height: 100vh;
}

.site-header,
.site-footer,
main > section {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

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

.brand__mark {
    display: grid;
    width: 44px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 8px;
    background: var(--green-dark);
    color: #fff;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    padding: 9px 12px;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    background: #e8eee8;
    color: var(--green-dark);
}

.site-nav .nav-cta {
    background: var(--green-dark);
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
    gap: 48px;
    padding: 42px 0 48px;
}

.hero__content {
    align-self: center;
}

.eyebrow {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.hero__lede,
.page-heading p {
    max-width: 690px;
    font-size: 1.12rem;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    padding: 12px 18px;
    text-decoration: none;
}

.button--primary {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.button--secondary {
    background: var(--surface);
    color: var(--green-dark);
}

.hero__visual {
    align-self: center;
}

.hero__visual img {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.hero__panel {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.hero__panel div,
.standard-list div,
.pricing-grid article,
.info-card,
.service-card,
.offer,
.timeline article,
.post-list article,
.contact-card,
.contact-standards,
.book-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero__panel div,
.standard-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.hero__panel span,
.standard-list span,
.pricing-grid span,
.offer__type,
.service-card__label,
.post-list span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero__panel strong,
.standard-list strong {
    color: var(--green-dark);
}

.section,
.page-heading,
.offer-stack,
.pricing-grid,
.timeline,
.post-list,
.contact-layout,
.book-panel {
    margin-top: 54px;
}

.section {
    padding: 48px 0;
}

.section--tight {
    padding-top: 18px;
}

.section__header {
    max-width: 760px;
    margin-bottom: 24px;
}

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

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

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

.service-card,
.info-card,
.pricing-grid article,
.post-list article {
    padding: 24px;
}

.service-card a {
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
}

.split-section,
.section--accent,
.book-panel,
.contact-layout,
.pricing-grid {
    display: grid;
    gap: 26px;
}

.split-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
    align-items: start;
}

.section--accent {
    align-items: center;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 34px;
}

.standard-list,
.check-list,
.intake-list {
    display: grid;
    gap: 12px;
}

.check-list p,
.intake-list p {
    background: rgba(255, 255, 255, 0.72);
    border-left: 4px solid var(--green);
    margin: 0;
    padding: 14px 16px;
}

.page-heading {
    padding: 54px 0 10px;
}

.offer-stack {
    display: grid;
    gap: 18px;
}

.offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 26px;
    padding: 28px;
}

.offer aside {
    align-self: start;
    background: var(--surface-strong);
    border-radius: 8px;
    padding: 18px;
}

.offer aside strong,
.offer aside span {
    display: block;
}

.offer aside strong {
    color: var(--green-dark);
    font-size: 1.35rem;
}

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

.pricing-grid strong {
    display: block;
    color: var(--green-dark);
    font-size: 2rem;
    line-height: 1.1;
    margin: 8px 0 12px;
}

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

.timeline article {
    padding: 22px;
}

.timeline span {
    color: var(--amber);
    display: block;
    font-weight: 900;
    margin-bottom: 22px;
}

.book-panel {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 300px;
    padding: 32px;
}

.book-cover {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    justify-self: center;
    max-height: 460px;
    object-fit: contain;
    width: 100%;
}

.book-cover--small {
    max-width: 190px;
}

.book-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}

.book-details div {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.book-details dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.book-details dd {
    color: var(--ink);
    font-weight: 800;
    margin: 4px 0 0;
}

.book-author-callout {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 26px;
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 28px;
}

.post-list {
    display: grid;
    gap: 16px;
}

.contact-layout {
    display: grid;
}

.contact-card,
.contact-standards {
    padding: 28px;
}

.contact-card .button {
    margin-top: 22px;
}

.site-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 72px;
    padding: 28px 0 36px;
}

.site-footer strong,
.site-footer span {
    display: block;
}

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

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
}

@media (max-width: 920px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero,
    .split-section,
    .section--accent,
    .book-panel,
    .book-author-callout,
    .contact-layout,
    .offer,
    .pricing-grid,
    .timeline,
    .card-grid--three,
    .card-grid--two {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 34px;
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer,
    main > section {
        width: min(var(--max), calc(100% - 28px));
    }

    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    .site-nav a {
        padding: 8px 9px;
    }

    .hero__panel div,
    .standard-list div {
        align-items: flex-start;
        flex-direction: column;
    }

    .section--accent,
    .book-panel,
    .book-author-callout,
    .contact-card,
    .contact-standards,
    .offer,
    .pricing-grid article,
    .info-card,
    .service-card,
    .post-list article {
        padding: 20px;
    }

    .book-details {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
