﻿/* ------------------------------------------------------------------ */
/* Home page: colour-coded bordered tiles that echo the app's own UI.  */
/* Scoped under .ivh so nothing leaks into other pages.                */
/* ------------------------------------------------------------------ */

.ivh {
    --ivh-blue: #2b8cff;
    --ivh-green: #36c25a;
    --ivh-amber: #ff9a2e;
    --ivh-yellow: #ffd23f;
    --ivh-purple: #a77bff;
    --ivh-teal: #2fd3a6;
    --ivh-pink: #ff5c8a;
    --ivh-cyan: #34d3f0;
    --ivh-text: #e8edf5;
    --ivh-muted: #a9b4c4;
    --ivh-body: Jura-Regular, Verdana, Arial, Helvetica, sans-seri width: var(--marginedwidth, 82%);
    max-width: 1200px;
    margin: 0 auto;
    clear: both;
    color: var(--ivh-text);
    text-align: center;
}

/* Colour themes: each sets --c, used for border, tint, glow and heading */
.ivh-c-blue   { --c: var(--ivh-blue); }
.ivh-c-green  { --c: var(--ivh-green); }
.ivh-c-amber  { --c: var(--ivh-amber); }
.ivh-c-yellow { --c: var(--ivh-yellow); }
.ivh-c-purple { --c: var(--ivh-purple); }
.ivh-c-teal   { --c: var(--ivh-teal); }
.ivh-c-pink   { --c: var(--ivh-pink); }
.ivh-c-cyan   { --c: var(--ivh-cyan); }

/* ---------- Hero ---------- */
.ivh-hero {
    padding: 2.5rem 0 1rem;
}

.ivh .ivh-logo {
    width: min(360px, 60vw);
    height: auto;
}

.ivh-eyebrow {
    font-family: IvampRegular, var(--ivh-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--ivh-blue);
    margin: 1rem 0 0;
}

.ivh .ivh-title {
    font-family: FlowRegular, var(--ivh-body);
    font-size: clamp(1.5rem, 3.4vw, 2.6rem);
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 0 18px rgba(0, 127, 255, 0.55);
    margin: 0.75rem auto 1rem;
    max-width: 22em;  
    font-weight:normal;
}

.ivh-lead {
    font-family: var(--ivh-body);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: var(--ivh-muted);
    max-width: 44em;
    margin: 0 auto 1.5rem;
}

    .ivh-lead strong {
        color: #fff;
        font-weight: 600;
    }

/* Fact chips */
.ivh ul.ivh-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

    .ivh ul.ivh-chips li {
        margin: 0;
        padding: 0.4rem 0.95rem;
        border: 1.5px solid var(--c);
        border-radius: 999px;
        background: color-mix(in srgb, var(--c) 14%, transparent);
        color: #fff;
        text-shadow: none;
        font-family: var(--ivh-body);
        font-size: 0.9rem;
        font-weight: 600;
    }

/* Screenshot, framed like an app tile */
.ivh-shot {
    margin: 0 auto;
    max-width: 1000px;
    padding: 6px;
    border: 1.5px solid rgba(43, 140, 255, 0.6);
    border-radius: 14px;
    background: #050a14;
    box-shadow: 0 0 40px rgba(0, 127, 255, 0.25);
}

    .ivh-shot img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 9px;
    }

/* ---------- Sections ---------- */
.ivh-section {
    padding: 2.5rem 0 0.5rem;
}

.ivh .ivh-h2 {
    font-family: FlowRegular, var(--ivh-body);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    color: #fff;
    margin: 0 0 1.25rem;
}

/* ---------- The bordered tile ---------- */
.ivh-box {
    position: relative;
    text-align: left;
    padding: 1.25rem 1.3rem 1.3rem;
    border: 1.5px solid var(--c);
    border-top-width: 4px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 4%, transparent)),
        #0b0d12;
    box-shadow: 0 0 0 0 transparent;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .ivh-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 24px color-mix(in srgb, var(--c) 35%, transparent);
    }

    .ivh .ivh-box h3 {
        font-family: IvampRegular, var(--ivh-body);
        font-size: 1rem;
        line-height: 1.35;
        color: var(--c);
        margin: 0 0 0.5rem;
    }

    .ivh .ivh-box p {
        font-family: var(--ivh-body);
        font-size: 0.97rem;
        line-height: 1.55;
        color: var(--ivh-text);
        margin: 0;
    }

.ivh-ico {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    font-size: 1.25rem;
    background: color-mix(in srgb, var(--c) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
}

/* How-it-works steps */
.ivh-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ivh-num {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--c);
    color: #000;
    font-family: var(--ivh-body);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Feature grid */
.ivh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ivh-wide {
    text-align: center;
    padding: 1.6rem 1.5rem;
}

    .ivh-wide p {
        max-width: 46em;
        margin: 0 auto !important;
    }

/* Call to action */
.ivh-cta {
    padding-bottom: 2rem;
}

.ivh-stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

    .ivh-stores img {
        height: 48px;
        width: auto;
        display: block;
    }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ivh-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ivh { width: auto; margin: 0 16px; }
    .ivh-steps, .ivh-grid { grid-template-columns: 1fr; }
    .ivh-hero { padding-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ivh-box, .ivh-box:hover { transition: none; transform: none; }
}

/* ---------- Works with (hardware brands) ---------- */
.ivh-brands {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

    .ivh .ivh-brands .ivh-box h3 {
        font-size: 1.3rem;
    }

.ivh-new {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--c);
    color: #000;
    font-family: var(--ivh-body);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .ivh-brands { grid-template-columns: 1fr; }
}

/* Section intro line */
.ivh-sub {
    font-family: var(--ivh-body);
    color: var(--ivh-muted);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 44em;
    margin: -0.5rem auto 1.25rem;
}

/* ---------- Which one is me? (three routes in) ---------- */
.ivh-paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ivh-path {
    display: flex;
    flex-direction: column;
}

    .ivh .ivh-path h3 {
        font-size: 1.2rem;
    }

    .ivh .ivh-path .ivh-need {
        color: var(--ivh-muted);
        font-size: 0.93rem;
        margin-bottom: 0.9rem;
    }

        .ivh .ivh-path .ivh-need strong {
            color: #fff;
            font-weight: 600;
        }

.ivh ul.ivh-ticks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;   /* pushes the button to the bottom so all three line up */
}

    .ivh ul.ivh-ticks li {
        position: relative;
        padding-left: 1.6rem;
        margin: 0 0 0.55rem;
        font-family: var(--ivh-body);
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--ivh-text);
        text-shadow: none;
    }

        .ivh ul.ivh-ticks li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--c);
            font-weight: 800;
        }

.ivh a.ivh-path-cta {
    align-self: flex-start;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid var(--c);
    background: color-mix(in srgb, var(--c) 22%, transparent);
    color: #fff;
    font-family: IvampRegular, var(--ivh-body);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background .15s ease;
}

    .ivh a.ivh-path-cta:hover,
    .ivh a.ivh-path-cta:focus-visible {
        background: color-mix(in srgb, var(--c) 45%, transparent);
    }

.ivh-price {
    font-family: var(--ivh-body);
    color: var(--ivh-muted);
    font-size: 0.95rem;
    margin: 1.25rem auto 0;
}

@media (max-width: 900px) {
    .ivh-paths { grid-template-columns: 1fr; }
}

/* ---------- Promo video ---------- */
.ivh-video {
    margin: 0 auto;
    max-width: 560px;
    padding: 6px;
    border: 1.5px solid rgba(43, 140, 255, 0.6);
    border-radius: 14px;
    background: #050a14;
    box-shadow: 0 0 40px rgba(0, 127, 255, 0.25);
}

    .ivh-video video {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 9px;
        background: #050b18;
    }


/* ---------- Installer strip in the hero ---------- */
.ivh-trade {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
    max-width: 880px; margin: 1.5rem auto 1.75rem; padding: 1rem 1.25rem; box-sizing: border-box;
    font-family: var(--ivh-body);
    border: 1px solid rgba(167,123,255,0.45); border-radius: 14px;
    background: linear-gradient(135deg, rgba(167,123,255,0.14), rgba(43,140,255,0.10));
    text-align: left;
}
.ivh-trade-tag {
    flex: 0 0 auto; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: #0b0b12; background: var(--ivh-purple); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.ivh-trade-line { flex: 1 1 320px; margin: 0; color: var(--ivh-muted); line-height: 1.5; }
.ivh-trade-line strong { color: var(--ivh-text); }
.ivh-trade-cta {
    flex: 0 0 auto; color: #fff; background: var(--ivh-purple); font-weight: 600;
    padding: 0.55rem 1rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
    box-sizing: border-box; font-family: inherit;
}
.ivh-trade-cta:hover { filter: brightness(1.1); color: #fff; }
@media (max-width: 600px) { .ivh-trade-cta { width: 100%; text-align: center; } }

/* EV band: centre the link inside a wide box */
.ivh .ivh-wide a.ivh-path-cta { display: inline-block; align-self: center; margin-top: 1rem; }
