/* ── Home / Landing Page ── */

.home-page {
    padding: 0;
}

/* ── Badge ── */
.home-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.375rem 1rem;
    border-radius: var(--border-radius-full);
    margin-bottom: var(--space-6);
    letter-spacing: 0.01em;
}

/* Tiny paw accent inside the hero badge (currentColor = badge green). */
.home-badge-paw {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Hero ── */
.home-hero {
    background: linear-gradient(160deg, var(--navy-50) 0%, var(--bg-body) 40%, var(--hound-50) 100%);
    padding: 5rem 0 4rem;
    text-align: left;
}

/* Two-column hero: copy left, brand photo right; stacks on mobile. */
.home-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: var(--space-10);
    max-width: 1080px;
    margin: 0 auto;
}

.home-hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.home-hero-accent {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-8);
    max-width: 580px;
}

.home-hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.home-hero-media {
    min-width: 0;
}

.home-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-card-hover);
}

/* ── Section Header ── */
.home-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-12);
}

.home-section-header h2 {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.home-section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Receipt zigzag seam (brand motif) ──
   A sawtooth strip in the section's own background colour that "bites"
   upward into the section above — the torn-receipt edge. Reused via the
   .zigzag-edge class; override --zigzag-color to match the section bg. */
.zigzag-edge {
    position: relative;
}

.zigzag-edge::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 16px;
    background:
        linear-gradient(-45deg, var(--zigzag-color, var(--bg-body)) 8px, transparent 0),
        linear-gradient(45deg, var(--zigzag-color, var(--bg-body)) 8px, transparent 0);
    background-position: left bottom;
    background-size: 16px 16px;
    background-repeat: repeat-x;
    pointer-events: none;
}

/* ── Features ── */
.home-features {
    --zigzag-color: var(--bg-body);
    padding: 5rem 0;
    background: var(--bg-body);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.home-feature-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.home-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-100);
}

.home-feature-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--hound-600);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-4);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.home-feature-icon svg {
    width: 26px;
    height: 26px;
}

/* Hover: deepen the green icon tint alongside the card lift. */
.home-feature-card:hover .home-feature-icon {
    background: var(--hound-100);
    color: var(--hound-700);
}

.home-feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.home-feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── How It Works ── */
.home-how-it-works {
    padding: 5rem 0;
    background: var(--color-white);
}

.home-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-6);
}

.home-step {
    text-align: center;
    flex: 1;
    max-width: 280px;
}

.home-step-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary-gradient);
    color: var(--text-inverse);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-primary);
}

.home-step h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.home-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Dotted green trail between steps — the scent-trail motif. */
.home-step-divider {
    width: 60px;
    height: 0;
    background: none;
    border-top: 3px dotted var(--hound-400);
    margin-top: 24px;
    flex-shrink: 0;
}

/* ── Benefits ── */
.home-benefits {
    padding: 5rem 0;
    background: var(--bg-body);
}

.home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 880px;
    margin: 0 auto;
}

.home-benefit {
    display: flex;
    gap: var(--space-4);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.home-benefit:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-100);
}

.home-benefit-icon {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--hound-600);
    border-radius: var(--border-radius);
    flex-shrink: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.home-benefit-icon svg {
    width: 24px;
    height: 24px;
}

.home-benefit:hover .home-benefit-icon {
    background: var(--hound-100);
    color: var(--hound-700);
}

.home-benefit-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.home-benefit-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── CTA ── */
.home-cta {
    --zigzag-color: var(--color-white);
    padding: 5rem 0;
    background: var(--color-white);
}

.home-cta-card {
    text-align: center;
    background: linear-gradient(160deg, var(--navy-50) 0%, var(--navy-100) 100%);
    border-radius: var(--border-radius-xl);
    padding: 3.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--color-primary-100);
}

/* Modest mascot on the CTA card for warmth. */
.home-cta-mascot {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto var(--space-4);
}

.home-cta-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.home-cta-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .home-hero {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .home-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-title {
        font-size: 2rem;
    }

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

    .home-steps {
        flex-direction: column;
        align-items: center;
    }

    .home-step-divider {
        width: 0;
        height: 32px;
        border-top: none;
        border-left: 3px dotted var(--hound-400);
        margin: 0;
    }

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

    .home-section-header h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .home-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
