/* templates/home.html */

/* Hero: copy on the left, an example conversation on the right. */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4.5rem;
    align-items: center;
    padding: 4.5rem 0 5rem;
    margin-bottom: 1rem;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--primary-text);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-lede {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.hero-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    gap: 0.5rem;
}

.hero-link:hover {
    color: var(--primary-text);
}

.hero-form {
    display: flex;
    gap: 0.75rem;
    max-width: 34rem;
}

.hero-form-input {
    flex: 1;
    min-width: 0;
}

.hero-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.hero-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.hero-steps li {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.25rem 1.25rem 0;
    font-size: 0.9375rem;
    border-left: 1px solid var(--border);
}

.hero-steps li:first-child {
    padding-left: 0;
    border-left: none;
}

.hero-step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-text);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.chat-demo {
    width: 100%;
    max-width: 25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.chat-demo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--border);
}

.chat-demo-avatar {
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--radius-lg);
    background: #cfe0fa;
}

.chat-demo-name {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.chat-demo-status {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.chat-demo-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.125rem;
}

.chat-demo-msg {
    max-width: 84%;
    padding: 0.6875rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    border-radius: 14px;
}

.chat-demo-bot {
    align-self: flex-start;
    background: var(--bg-raised);
    border-bottom-left-radius: 4px;
}

.chat-demo-user {
    align-self: flex-end;
    background: var(--primary-strong);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-demo-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.625rem 0.625rem 1.125rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.chat-demo-send {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--primary-strong);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.lead-toast {
    width: 20rem;
    margin-right: 5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.lead-toast strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.lead-toast-dot {
    width: 8px;
    height: 8px;
    margin-top: 0.375rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--premium);
}

/* Three benefits, side by side under a hairline. */
.benefits {
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border);
}

.benefits h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

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

.benefit h3 {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
}

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

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.check-list i {
    color: var(--success-text);
    font-size: 0.875rem;
}

.benefits-checks {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin-top: 2.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-teaser, .referral-teaser {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.pricing-teaser-inner, .referral-teaser-inner {
    flex: 1;
}

.pricing-teaser h2, .referral-teaser h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.pricing-teaser p, .referral-teaser p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 38rem;
}

.referral-teaser strong {
    color: var(--premium-text);
    font-weight: 500;
}

.pricing-teaser-cta, .referral-teaser-cta {
    flex-shrink: 0;
}

.final-cta-note {
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    margin: 2rem 0 5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.final-cta h2 {
    font-size: 2rem;
    margin: 0;
    max-width: 32rem;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 3rem;
    }

    .hero-visual {
        align-items: stretch;
    }

    .chat-demo {
        max-width: none;
    }

    .lead-toast {
        width: auto;
        margin: 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.125rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-link {
        justify-content: center;
    }

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

    .hero-steps li,
    .hero-steps li:first-child {
        flex-direction: row;
        align-items: baseline;
        gap: 0.75rem;
        padding: 0.875rem 0;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .hero-form {
        flex-direction: column;
    }

    .benefits h2 {
        font-size: 1.75rem;
    }

    .benefits-checks {
        flex-direction: column;
    }

    .pricing-teaser, .referral-teaser,
    .final-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .final-cta {
        padding: 2rem 1.5rem;
    }

    .final-cta h2 {
        font-size: 1.625rem;
    }
}

/* Keeps "customer-facing" from breaking at its hyphen. */
.nowrap {
    white-space: nowrap;
}
