﻿/* Home page.
   Scoped under .hp- so nothing here collides with style.css, which carries two
   generations of rules (two .section-title definitions, a fixed-height #intro)
   that are still used by other pages. */

:root {
    --hp-ink: #16222e;
    --hp-body: #5b6b7a;
    --hp-muted: #8d9aa7;
    --hp-line: #e8eef3;
    --hp-bg-soft: #f6f9fc;
    --hp-brand: #2E6EA4;
    --hp-brand-dark: #24567f;
    --hp-accent: #3498db;
    --hp-radius: 14px;
}

.hp {
    color: var(--hp-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

    .hp h1, .hp h2, .hp h3, .hp h4 {
        color: var(--hp-ink);
        line-height: 1.25;
    }

.hp-shell {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.hp-section {
    padding: 78px 0;
}

.hp-section-soft {
    background: var(--hp-bg-soft);
}

.hp-head {
    max-width: 720px;
    margin: 0 auto 46px;
    text-align: center;
}

.hp-eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hp-accent);
    margin-bottom: 12px;
}

.hp-head h2 {
    font-size: 2.05rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.hp-head p {
    font-size: 1.04rem;
    color: var(--hp-body);
    margin: 0;
}

/* --- Hero --------------------------------------------------------------- */

.hp-hero {
    padding: 104px 0 70px;
    background: linear-gradient(180deg, #f7fbfe 0%, #fff 100%);
}

/* Near-even split. The hero illustration is landscape, so a much wider text
   column would leave it as a thumbnail. */
.hp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.hp-hero h1 {
    font-size: 2.85rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 18px;
}

.hp-hero-sub {
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--hp-body);
    margin-bottom: 26px;
}

.hp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 9px;
    font-size: .98rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    cursor: pointer;
}

.hp-btn-primary {
    background: var(--hp-brand);
    color: #fff;
}

    .hp-btn-primary:hover,
    .hp-btn-primary:focus {
        background: var(--hp-brand-dark);
        color: #fff;
        text-decoration: none;
    }

.hp-btn-ghost {
    background: #fff;
    color: var(--hp-brand);
    border-color: #cfe0ee;
}

    .hp-btn-ghost:hover,
    .hp-btn-ghost:focus {
        border-color: var(--hp-brand);
        color: var(--hp-brand-dark);
        text-decoration: none;
    }

.hp-hero-note {
    font-size: .85rem;
    color: var(--hp-muted);
    margin-bottom: 24px;
}

.hp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .hp-chips span {
        font-size: .82rem;
        padding: 5px 13px;
        border-radius: 30px;
        background: #eef4f9;
        color: #48606f;
    }

/* --- Hero image ---------------------------------------------------------
   Two shapes for the same slot. An illustration on a white background needs
   no frame; a screenshot of the app does, so it reads as a window rather than
   as part of the page. */

/* Illustration on its own background, so no frame or shadow. It is wider than
   the column it sits in, which is what keeps it sharp on a high-density
   screen. */
.hp-hero-art {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hp-hero-shot,
.hp-row-shot {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: 0 12px 32px rgba(22, 34, 46, .10);
}

/* Product shots in the feature rows sit a little lighter than the hero, which
   is the one image meant to carry weight. */
.hp-row-shot {
    box-shadow: 0 8px 24px rgba(22, 34, 46, .08);
}

/* --- Image placeholders -------------------------------------------------
   Every visual slot is a labelled frame until the real screenshot lands, so
   the layout is already the right shape and nothing shifts when images are
   dropped in. Replace the .hp-frame div with an <img> of the same aspect. */

.hp-frame {
    position: relative;
    width: 100%;
    border-radius: var(--hp-radius);
    background: repeating-linear-gradient(45deg, #f2f7fb, #f2f7fb 12px, #eaf2f8 12px, #eaf2f8 24px);
    border: 1px solid #dceaf4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #7d95a8;
    overflow: hidden;
}

    .hp-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: var(--hp-radius);
    }

    .hp-frame i {
        font-size: 2rem;
        margin-bottom: 8px;
        opacity: .55;
    }

.hp-frame-label {
    font-size: .82rem;
    font-weight: 600;
}

.hp-frame-hint {
    font-size: .72rem;
    opacity: .75;
    margin-top: 3px;
}

.hp-ratio-16x10 { aspect-ratio: 16 / 10; }
.hp-ratio-4x3   { aspect-ratio: 4 / 3; }
.hp-ratio-1x1   { aspect-ratio: 1 / 1; }

/* Older browsers without aspect-ratio still need a floor. */
@supports not (aspect-ratio: 1 / 1) {
    .hp-ratio-16x10 { min-height: 300px; }
    .hp-ratio-4x3   { min-height: 280px; }
    .hp-ratio-1x1   { min-height: 260px; }
}

/* --- Proof strip -------------------------------------------------------- */

.hp-proof {
    border-top: 1px solid var(--hp-line);
    border-bottom: 1px solid var(--hp-line);
    background: #fff;
    padding: 26px 0;
}

.hp-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: center;
}

.hp-proof-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--hp-brand);
    line-height: 1.2;
}

.hp-proof-label {
    font-size: .84rem;
    color: var(--hp-muted);
}

/* --- Cards -------------------------------------------------------------- */

.hp-grid {
    display: grid;
    gap: 20px;
}

.hp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hp-grid-4 { grid-template-columns: repeat(4, 1fr); }

.hp-card {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 26px 24px;
    height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .hp-card:hover {
        border-color: #cfe1ef;
        box-shadow: 0 6px 22px rgba(22, 34, 46, .07);
        transform: translateY(-2px);
    }

.hp-card-ic {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: #eaf4fb;
    color: var(--hp-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.hp-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 9px;
}

.hp-card p {
    font-size: .92rem;
    line-height: 1.65;
    margin: 0;
    color: var(--hp-body);
}

/* --- Alternating feature rows ------------------------------------------- */

.hp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 72px;
}

    .hp-row:last-child {
        margin-bottom: 0;
    }

    /* Reversing only the media column keeps the reading order in the DOM the
       same for screen readers while the layout alternates visually. */
    .hp-row.hp-row-flip .hp-row-media {
        order: -1;
    }

.hp-row-step {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hp-accent);
    margin-bottom: 10px;
}

.hp-row h3 {
    font-size: 1.62rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.hp-row > div > p {
    font-size: 1rem;
    margin-bottom: 16px;
}

.hp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .hp-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
        font-size: .94rem;
        line-height: 1.6;
    }

    .hp-list i {
        flex: none;
        margin-top: 3px;
        color: #3fa95e;
        font-size: 1.05rem;
    }

/* --- Security ----------------------------------------------------------- */

.hp-sec-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 22px;
    height: 100%;
}

    .hp-sec-card i {
        flex: none;
        font-size: 1.5rem;
        color: var(--hp-brand);
        margin-top: 2px;
    }

    .hp-sec-card h3 {
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 6px;
    }

    .hp-sec-card p {
        font-size: .88rem;
        line-height: 1.6;
        margin: 0;
    }

/* --- Audience ----------------------------------------------------------- */

/* A fixed square that crops whatever is dropped into it. The four source
   images range from 679x647 to 4000x2667, and object-fit is what lets them
   sit together without each being re-cut by hand. */
.hp-aud-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 11px;
    overflow: hidden;
    background: var(--hp-bg-soft);
}

    .hp-aud-art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

@supports not (aspect-ratio: 1 / 1) {
    .hp-aud-art {
        height: 0;
        padding-bottom: 100%;
        position: relative;
    }

        .hp-aud-art img {
            position: absolute;
            inset: 0;
        }
}

.hp-aud {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 24px;
    height: 100%;
}

    .hp-aud h3 {
        font-size: 1.02rem;
        font-weight: 700;
        margin: 14px 0 8px;
    }

    .hp-aud p {
        font-size: .9rem;
        margin: 0;
    }

/* --- FAQ ---------------------------------------------------------------- */

.hp-faq {
    max-width: 800px;
    margin: 0 auto;
}

.hp-faq-item {
    border: 1px solid var(--hp-line);
    border-radius: 11px;
    margin-bottom: 12px;
    background: #fff;
    /* No overflow:hidden here: the focus ring on the button inside would be
       clipped on the top/side edges, which is the boxed-in look in the
       screenshot. Each child clips its own corners instead. */
}

.hp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    border: none;
    background: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hp-ink);
    cursor: pointer;
    border-radius: 11px;
}

    .hp-faq-q:hover {
        color: var(--hp-brand);
    }

    /* A visible but unobtrusive ring, inset so it never clips against the
       item's rounded corners the way the default outline did. */
    .hp-faq-q:focus-visible {
        outline: 2px solid var(--hp-accent);
        outline-offset: -2px;
    }

    .hp-faq-q i {
        flex: none;
        transition: transform .25s ease;
        color: var(--hp-muted);
    }

    .hp-faq-q[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

/* Collapsed by default: max-height:0 plus overflow:hidden, animated to a fixed
   cap on .hp-open. This replaces a grid-template-rows: 0fr <-> 1fr version that
   rendered backwards in at least one browser (open by default, and clicking
   only ever closed it) — max-height has none of that ambiguity, since 0 can
   only ever mean closed.
   The 600px cap only needs to clear the tallest answer; it does not have to
   match the text height exactly because the transition is timed, not scrubbed
   to content size. */
.hp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
}

    .hp-faq-a.hp-open {
        max-height: 600px;
    }

    .hp-faq-a > div {
        padding: 0 20px 18px;
        font-size: .94rem;
        line-height: 1.7;
    }

/* --- Closing CTA -------------------------------------------------------- */

.hp-cta {
    background: linear-gradient(135deg, #2E6EA4 0%, #24567f 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

    .hp-cta h2 {
        color: #fff;
        font-size: 1.95rem;
        font-weight: 700;
        margin: 0 0 12px;
    }

    .hp-cta p {
        font-size: 1.04rem;
        color: rgba(255, 255, 255, .85);
        max-width: 620px;
        margin: 0 auto 26px;
    }

    .hp-cta .hp-btn-primary {
        background: #fff;
        color: var(--hp-brand);
    }

        .hp-cta .hp-btn-primary:hover {
            background: #eaf2f8;
            color: var(--hp-brand-dark);
        }

    .hp-cta .hp-btn-ghost {
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, .5);
    }

        .hp-cta .hp-btn-ghost:hover {
            border-color: #fff;
            color: #fff;
        }

.hp-cta-row-center {
    justify-content: center;
    margin-bottom: 14px;
}

.hp-cta-note {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
}

/* --- Contact ------------------------------------------------------------ */

.hp-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hp-contact-card {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 24px;
    text-align: center;
}

    .hp-contact-card i {
        font-size: 1.6rem;
        color: var(--hp-brand);
        margin-bottom: 10px;
        display: block;
    }

    .hp-contact-card h3 {
        font-size: .95rem;
        font-weight: 700;
        margin: 0 0 6px;
    }

    .hp-contact-card a,
    .hp-contact-card p {
        font-size: .9rem;
        margin: 0;
        word-break: break-word;
    }

    .hp-contact-card a {
        color: var(--hp-brand);
    }

/* --- Tablet ------------------------------------------------------------- */

@media screen and (max-width: 991px) {
    .hp-hero-grid,
    .hp-row {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    /* On one column the image belongs under the words it illustrates, so the
       flip is dropped rather than carried over from the desktop layout. */
    .hp-row.hp-row-flip .hp-row-media {
        order: 0;
    }

    .hp-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hp-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hp-contact-grid { grid-template-columns: 1fr; }

    .hp-hero {
        padding: 92px 0 56px;
    }

    .hp-hero h1 {
        font-size: 2.3rem;
    }

    .hp-section {
        padding: 58px 0;
    }
}

/* --- Phone -------------------------------------------------------------- */

@media screen and (max-width: 640px) {
    .hp {
        font-size: 15px;
    }

    .hp-hero h1 {
        font-size: 1.92rem;
    }

    .hp-hero-sub {
        font-size: 1rem;
    }

    .hp-head h2,
    .hp-cta h2 {
        font-size: 1.55rem;
    }

    .hp-row h3 {
        font-size: 1.32rem;
    }

    .hp-grid-2,
    .hp-grid-3,
    .hp-grid-4 {
        grid-template-columns: 1fr;
    }

    .hp-proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 14px;
    }

    /* Full-width buttons on a phone: two side by side leave each too narrow to
       read or to hit reliably. */
    .hp-cta-row .hp-btn {
        width: 100%;
        justify-content: center;
    }

    .hp-section {
        padding: 48px 0;
    }

    .hp-card,
    .hp-sec-card,
    .hp-aud,
    .hp-contact-card {
        padding: 20px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-card,
    .hp-faq-q i {
        transition: none;
    }

    .hp-card:hover {
        transform: none;
    }
}
