/* Homepage — self-contained tokens (works even if style.css is stale on server) */

.home-page {
    --home-cream: #feead7;
    --home-cream-deep: #f5d4b8;
    --home-white: #ffffff;
    --home-text: #3d3028;
    --home-text-muted: #6b5b50;
    --home-border: #ecd9c8;
    --home-radius: 20px;
    --home-shadow: 0 8px 24px rgba(61, 48, 40, 0.1);

    overflow-x: hidden;
}

body.page-home header {
    margin-bottom: 0;
}

body.page-home {
    background: var(--home-white);
}

.home-section {
    width: 100%;
    padding: 3.5rem 0;
}

.home-section--cream {
    background: var(--home-cream);
}

.home-section--white {
    background: var(--home-white);
}

.home-section--accent {
    background: var(--home-cream-deep);
}

/* Hero */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.home-hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--home-text);
}

.home-hero-copy .lead {
    font-size: 1.15rem;
    color: var(--home-text-muted);
    margin-bottom: 1.5rem;
    max-width: 34rem;
}

.home-hero-welcome {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    color: var(--home-text);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.home-hero-visual {
    position: relative;
    background: var(--home-white);
    border-radius: var(--home-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 420px;
    box-shadow: var(--home-shadow);
}

.home-hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Panels */
.home-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.home-panel {
    background: var(--home-white);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 1rem;
    box-shadow: var(--home-shadow);
}

.home-panel-image {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: var(--home-radius);
    overflow: hidden;
    background: var(--home-cream);
}

.home-panel-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-panel-body {
    padding: 1.25rem 0.25rem 0.5rem;
}

.home-panel-body h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--home-text);
}

.home-panel-body p {
    color: var(--home-text-muted);
    margin-bottom: 1.25rem;
}

/* Compare */
.home-compare h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--home-text);
}

.home-compare-section--spaced {
    padding-top: 3.5rem;
    border-top: 1px solid var(--home-border);
}

.home-html-content {
    max-width: 52rem;
    margin: 0 auto;
    color: var(--home-text);
}

.home-html-content img {
    max-width: 100%;
    height: auto;
}

.home-html-content h1,
.home-html-content h2,
.home-html-content h3 {
    color: var(--home-text);
    margin-bottom: 0.75rem;
}

.home-html-content p {
    color: var(--home-text-muted);
    margin-bottom: 1rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--home-white);
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    border: 1px solid var(--home-border);
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--home-border);
}

.compare-table th {
    background: var(--home-cream);
    font-weight: 600;
    color: var(--home-text);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-yes {
    color: #2d8a5c;
    font-weight: 700;
    font-size: 1.25rem;
}

.compare-no {
    color: #c45c5c;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Steps */
.home-steps h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--home-text);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.step-card {
    background: var(--home-cream);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--home-shadow);
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--home-cream-deep);
    color: var(--home-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--home-text);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--home-text-muted);
}

/* Banner */
.home-banner {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
}

.home-banner h2 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    color: var(--home-text);
}

.home-banner p {
    color: var(--home-text-muted);
    margin: 0 auto 1.5rem;
}

@media (max-width: 900px) {
    .home-section {
        padding: 2.5rem 0;
    }

    .home-section--custom > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-hero,
    .home-panels,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        width: 100%;
        max-width: 100%;
        min-height: 240px;
        aspect-ratio: 4 / 3;
        order: -1;
        margin: 0;
        border-radius: var(--home-radius);
        overflow: hidden;
    }

    .home-hero-visual img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center center;
    }

    .home-panel-image {
        height: 280px;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .home-hero-visual {
        min-height: 220px;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }
}
