/* Honest Weather landing — overrides and additions */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #3d8bfd;
    --hw-sky-top: #e8f4fc;
    --hw-sky-bottom: #f8fafc;
}

.hero.hw-hero {
    background: linear-gradient(165deg, var(--hw-sky-top) 0%, var(--hw-sky-bottom) 55%, #ffffff 100%);
}

.brand-name {
    color: var(--secondary);
    font-weight: 700;
}

.brand-name span {
    color: var(--primary);
    font-weight: 800;
}

.nav-brand .brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--primary);
}

/* Hero: full-res screenshot scaled in CSS — keep one compositor layer to reduce 3D-transform blur */
.phone-frame picture,
.phone-frame .hw-hero-shot {
    display: block;
}

.hw-hero-shot {
    width: 100%;
    height: auto;
    vertical-align: middle;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Feature cards with screenshots */
.hw-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.hw-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.hw-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Tall phone screenshots: strict cap — full-res asset, small on-screen crop */
.hw-card-figure {
    margin: -28px -28px 18px -28px;
    background: #0f172a;
    line-height: 0;
    height: 17vh;
    max-height: 158px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hw-card-shot {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hw-card-figure picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hw-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.04));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.hw-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.hw-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.hw-card ul {
    margin: 14px 0 0;
    padding-left: 1.2rem;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.hw-card li {
    margin-bottom: 6px;
}

.privacy.hw-privacy-band {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

@media (max-width: 992px) {
    .hw-feature-grid {
        grid-template-columns: 1fr;
    }

    .hw-card-figure {
        height: 15vh;
        max-height: 145px;
    }
}

@media (max-width: 640px) {
    .hw-card-figure {
        height: 14vh;
        max-height: 132px;
    }
}
