
:root{--ink:#152331;--red:#e90025;--yellow:#fcb900;--muted:#526073;--line:#e3e8ee;--bg:#f7f9fb}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);line-height:1.55;background:#fff}a{color:inherit}a:focus-visible{outline:3px solid var(--red);outline-offset:4px}.wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}.header{height:96px;background:#fff;display:flex;align-items:center;border-bottom:1px solid #edf0f2}.nav{display:flex;justify-content:space-between;align-items:center;gap:32px}.logo{display:block;width:min(340px,56vw);height:auto}.links{display:flex;gap:38px;font-weight:600;font-size:15px}.links a{text-decoration:none}.links a:hover{color:var(--red)}.hero{position:relative;overflow:hidden;min-height:575px;display:flex;align-items:center;background:#edf3f8}.hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,#f7f9fb 0%,rgba(247,249,251,.97) 29%,rgba(247,249,251,.68) 50%,rgba(247,249,251,.06) 74%),url('/assets/trucks-hero.webp');background-position:center,right center;background-size:cover,auto 100%;background-repeat:no-repeat}.hero-content{position:relative;padding:78px 0;z-index:1}.hero-text{max-width:675px}.pill{display:inline-flex;align-items:center;gap:10px;background:#e8edf3;padding:8px 16px;border-radius:40px;font-size:12px;letter-spacing:.1em;font-weight:800}.dot{background:var(--red);width:9px;height:9px;border-radius:50%}h1{font-size:clamp(44px,5.4vw,72px);letter-spacing:-.055em;line-height:1.07;margin:28px 0 22px;font-weight:850}h1 span{display:block}.lead{font-size:clamp(18px,2vw,23px);max-width:570px;color:#425063;line-height:1.45;margin:0 0 30px}.btn{display:inline-flex;gap:25px;align-items:center;justify-content:center;background:var(--red);color:white;border-radius:6px;padding:15px 28px;text-decoration:none;font-size:17px;font-weight:750}.btn:hover{background:#c90021}.focus{background:var(--bg);padding:48px 0 50px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:31px 29px;min-height:235px}.card svg{width:66px;height:66px;margin-bottom:16px}.card h2{font-size:22px;letter-spacing:-.025em;line-height:1.2;margin:0 0 10px}.card p{font-size:16px;color:var(--muted);margin:0}.about{position:relative;overflow:hidden;background:white;min-height:355px;display:flex;align-items:center}.about:before{content:"";position:absolute;inset:0 0 0 45%;background-image:linear-gradient(90deg,white 0%,rgba(255,255,255,.55) 13%,rgba(255,255,255,0) 42%),url('/assets/truck-stop.webp');background-size:cover,cover;background-position:center,right center}.about-content{position:relative;padding:60px 0}.about-copy{width:min(510px,51%)}.bar{width:80px;height:5px;background:var(--yellow);margin-bottom:26px}.about h2{font-size:clamp(30px,3.9vw,44px);letter-spacing:-.045em;line-height:1.14;margin:0 0 18px}.about p{font-size:17px;color:var(--muted);margin:0}.footer{background:#222e3a;color:#d9e1e9;padding:32px 0}.footer-row{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.footer-brand{display:flex;align-items:center;gap:20px}.footer-logo{font-size:23px;font-weight:800;letter-spacing:-.05em;color:white}.footer-logo strong{color:#ff3754}.footer-desc{border-left:1px solid #8a949e;padding-left:22px;font-size:14px}.footer a{text-decoration:none}.footer nav{display:flex;gap:22px;font-size:14px}.legal{font-size:12px;color:#b9c4cf;margin-top:16px}.portal-main{min-height:65vh;display:grid;align-items:center;padding:110px 0;background:linear-gradient(135deg,#f5f7fa,#e6edf4)}.portal-main h1{font-size:clamp(40px,6vw,64px);max-width:850px}.portal-main p{font-size:20px;max-width:720px;color:var(--muted)}@media(max-width:850px){.hero:before{background-image:linear-gradient(90deg,rgba(247,249,251,.97) 0%,rgba(247,249,251,.84) 57%,rgba(247,249,251,.35)),url('/assets/trucks-hero.webp')}.cards{gap:14px}.card{padding:23px 20px}.card h2{font-size:19px}.about:before{inset:0 0 0 35%}.about-copy{width:60%}}@media(max-width:650px){.wrap{width:calc(100% - 34px)}.header{height:auto;padding:17px 0}.nav{flex-wrap:wrap;gap:12px}.logo{width:min(300px,75vw)}.links{gap:22px;font-size:13px}.hero{min-height:560px}.hero-content{padding:75px 0}.hero:before{background-image:linear-gradient(180deg,rgba(247,249,251,.97) 0%,rgba(247,249,251,.93) 55%,rgba(247,249,251,.62) 100%),url('/assets/trucks-hero.webp');background-position:center,right bottom;background-size:cover,auto 85%}h1{font-size:clamp(39px,10vw,55px)}.lead{font-size:18px}.cards{grid-template-columns:1fr;gap:15px}.card{min-height:auto}.about{min-height:unset;display:block}.about:before{inset:auto 0 0 0;height:240px;background-image:linear-gradient(180deg,white,rgba(255,255,255,.04) 55%),url('/assets/truck-stop.webp');background-size:cover;background-position:center}.about-content{padding:55px 0 245px}.about-copy{width:100%}.footer-row{align-items:flex-start;flex-direction:column}.footer-brand{flex-wrap:wrap}.footer-desc{font-size:13px}}

/* Hero readability and responsive headline correction */
.hero-text {
    max-width: 780px;
}

.hero h1 {
    font-size: clamp(38px, 4.5vw, 62px);
    line-height: 1.13;
    letter-spacing: -0.045em;
    max-width: 780px;
    overflow-wrap: normal;
}

.hero:before {
    background-image:
        linear-gradient(
            90deg,
            #f7f9fb 0%,
            rgba(247,249,251,.98) 30%,
            rgba(247,249,251,.90) 52%,
            rgba(247,249,251,.18) 85%
        ),
        url('/assets/trucks-hero.webp');
}

@media (max-width: 650px) {
    .hero h1 {
        font-size: clamp(34px, 8.5vw, 48px);
        line-height: 1.16;
    }

    .hero:before {
        background-image:
            linear-gradient(
                180deg,
                rgba(247,249,251,.99) 0%,
                rgba(247,249,251,.94) 65%,
                rgba(247,249,251,.65) 100%
            ),
            url('/assets/trucks-hero.webp');
    }
}

/* InterstateIQ hero headline — definitive visibility fix */
.hero {
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f7f9fb 0%,
        rgba(247,249,251,.99) 35%,
        rgba(247,249,251,.94) 55%,
        rgba(247,249,251,.0) 100%
    );
}

.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero .hero-text {
    width: 100%;
    max-width: 750px;
}

.hero .hero-text h1 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.16;
    letter-spacing: -0.045em;
    max-width: 100%;
    overflow-wrap: normal;
}

.hero .hero-text h1 span {
    display: block;
    position: relative;
    z-index: 3;
}

@media (max-width: 850px) {
    .hero::after {
        background: rgba(247,249,251,.88);
    }
}

@media (max-width: 650px) {
    .hero .hero-text h1 {
        font-size: clamp(32px, 8vw, 46px);
        line-height: 1.17;
    }
}

/* InterstateIQ desktop-only hero correction */
@media (min-width: 1100px) {

    .hero .hero-content {
        position: relative;
        z-index: 5;
    }

    .hero .hero-text {
        width: 100%;
        max-width: 850px;
    }

    .hero .hero-text h1 {
        font-size: clamp(48px, 4vw, 60px);
        line-height: 1.15;
        letter-spacing: -0.045em;
        max-width: 850px;
    }

    .hero .hero-text h1 span {
        display: block;
        color: #152331;
        position: relative;
        z-index: 6;
    }
}

/* Mobile hero: restore visible trucking photography */
@media (max-width: 650px) {

    .hero {
        min-height: 650px;
        align-items: flex-start;
        isolation: isolate;
    }

    .hero::after {
        display: none;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background-image:
            linear-gradient(
                180deg,
                #f7f9fb 0%,
                rgba(247,249,251,.98) 38%,
                rgba(247,249,251,.72) 58%,
                rgba(247,249,251,.08) 85%,
                rgba(247,249,251,0) 100%
            ),
            url('/assets/trucks-hero.webp');
        background-position: center, 62% center;
        background-size: cover, cover;
        background-repeat: no-repeat;
    }

    .hero .hero-content {
        position: relative;
        z-index: 2;
        padding: 55px 0 190px;
    }

    .hero .hero-text h1 {
        font-size: clamp(34px, 8.5vw, 46px);
        line-height: 1.14;
    }
}

/* MOBILE HERO — photography visible below headline */
@media screen and (max-width: 650px) {

    .hero {
        position: relative;
        display: block;
        min-height: 780px;
        background-color: #f7f9fb;
        background-image: url('/assets/trucks-hero.webp');
        background-size: auto 58%;
        background-position: 65% bottom;
        background-repeat: no-repeat;
        isolation: isolate;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        display: block;
        z-index: 0;
        background: linear-gradient(
            to bottom,
            #f7f9fb 0%,
            #f7f9fb 39%,
            rgba(247,249,251,.96) 47%,
            rgba(247,249,251,.35) 62%,
            transparent 77%
        );
        pointer-events: none;
    }

    .hero::after {
        display: none;
    }

    .hero .hero-content {
        position: relative;
        z-index: 2;
        padding: 38px 0 320px;
    }

    .hero .hero-text {
        max-width: 100%;
    }

    .hero .hero-text h1 {
        font-size: clamp(34px, 8vw, 46px);
        line-height: 1.13;
        color: #152331;
    }

    .hero .lead {
        font-size: 17px;
        line-height: 1.45;
    }
}

/* FINAL MOBILE HERO PHOTO CORRECTION */
@media screen and (max-width: 650px) {

    .hero {
        display: block;
        position: relative;
        min-height: 760px;
        background: #f7f9fb url('/assets/trucks-hero.webp')
                    right bottom / auto 350px no-repeat !important;
    }

    .hero::before,
    .hero::after {
        display: none !important;
        content: none !important;
    }

    .hero .hero-content {
        position: relative;
        z-index: 1;
        padding: 40px 0 370px;
    }

    .hero .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(34px, 8vw, 46px);
        line-height: 1.13;
        color: #152331;
    }
}
