@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

.shell-bg {
    background: radial-gradient(circle at top, #f9fafb 0, #e5e7eb 54%, #e5e7eb 100%);
}

/* Layout */

.container {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
}

.page-wrap {
    padding: 1.5rem 0 3.25rem;
}

h1, h2, h3, h4 {
    font-weight: 650;
    letter-spacing: -0.03em;
    color: #111111;
    margin-top: 0;
}

p {
    line-height: 1.6;
    margin: 0 0 .75rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.section-label {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: .35rem;
}

.section-header {
    margin-bottom: 1.8rem;
}

.section-lead,
.lead {
    font-size: .97rem;
    color: #374151;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 3000; /* ensure header & mobile nav sit above Leaflet controls */
    background: #272727;
    color: #f9fafb;
    border-bottom: 1px solid #181818;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 0;
}

.logo img {
    height: 32px;
    display: block;
}

.main-nav {
    display: flex;
    gap: 1.4rem;
    font-size: .93rem;
}

.main-nav a {
    color: #e5e5e5;
    opacity: .85;
    position: relative;
    padding-block: .1rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.35rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #48c132;
    transition: width .18s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}



/* App download button in nav */
.main-nav a.nav-download-btn {
    background: #48c132;
    color: #111111;
    opacity: 1;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    text-decoration: none;
    transition: transform .12s ease-out, box-shadow .12s ease-out, background .12s ease-out;
    white-space: nowrap;
}

.main-nav a.nav-download-btn:hover {
    transform: translateY(-1px);
}

.main-nav a.nav-download-btn::after {
    display: none;
}
.main-nav a.active {
    opacity: 1;
}

/* Mobile nav */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: .25rem;
    background: transparent;
    border: 0;
    padding: .25rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 550;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease-out, box-shadow .12s ease-out, background .12s ease-out, border-color .12s ease-out;
    white-space: nowrap;
}

.btn.primary {
    background: #48c132;
    color: #111111;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.btn.ghost {
    border-color: #d1d5db;
    color: #111827;
    background: #ffffff;
}

.btn.ghost:hover {
    background: #f3f4f6;
}

.btn.full-width {
    width: 100%;
}

.small-btn {
    padding: .4rem .9rem;
    font-size: .8rem;
}

/* Hero */

.hero-card-shell {
    padding-top: 1.5rem;
}

.hero-card {
    max-width: 1020px;
    margin: 0 auto;
    background: #f9fafb;
    border-radius: 1.1rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
    border: 1px solid #cfd3da;
    padding: 1.35rem 1.6rem 1.6rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-top {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    background: #272727;
    color: #f9fafb;
    font-size: .78rem;
    padding: .25rem .75rem;
    margin-bottom: .9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.status-dot-green {
    background: #48c132;
}

.status-text {
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 2.1rem;
    align-items: flex-start;
}

.hero h1 {
    font-size: clamp(2.2rem, 3.1vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: .98rem;
    max-width: 32rem;
    color: #30343a;
}

.hero-subtext {
    font-size: .9rem;
    color: #4b5563;
    margin-top: .2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.4rem 0 .9rem;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: .9rem 0 0;
    font-size: .84rem;
    color: #4b5563;
}

.hero-highlights li + li {
    margin-top: .18rem;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.panel {
    border-radius: .9rem;
    border: 1px solid #d1d5db;
    background: #fdfdfe;
    padding: 1rem 1.1rem;
}

.panel-main h2 {
    font-size: .98rem;
    margin-bottom: .4rem;
}

.panel-main p {
    font-size: .86rem;
    color: #4b5563;
}

.panel-buttons {
    display: flex;
    gap: .5rem;
    margin-top: .7rem;
}

.pill-btn {
    padding-inline: .9rem;
    font-size: .82rem;
}

.pill-btn:first-child {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
    box-shadow: none;
}

.panel-stack {
    padding: 0;
}

.panel-header {
    border-radius: .9rem .9rem 0 0;
    padding: .55rem 1.1rem;
    font-size: .85rem;
    font-weight: 550;
    color: #ffffff;
}

.panel-header.blue {
    background: #0d6efd;
}

.panel-body {
    padding: .8rem 1.1rem .95rem;
    font-size: .86rem;
}

.field-label {
    display: block;
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: .25rem;
}

.field-select {
    border-radius: .55rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: .45rem .75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-help {
    font-size: .78rem;
    color: #6b7280;
    margin-top: .35rem;
}

.chevron {
    font-size: .75rem;
    color: #6b7280;
}

/* Triptych */

.feature-triptych {
    margin-top: 3rem;
}

.feature-triptych.slim-top {
    margin-top: 2rem;
}

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

.triptych-card {
    border-radius: 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 1.1rem 1.2rem 1.25rem;
    font-size: .9rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.triptych-card h3 {
    font-size: .98rem;
    margin-bottom: .6rem;
}

.triptych-media {
    background: #111827;
    border-radius: .8rem;
    padding: .5rem;
    margin-bottom: .7rem;
    overflow: hidden;
}

.triptych-media img {
    width: 100%;
    display: block;
    border-radius: .7rem;
}

/* Pill feature section */

.feature-shell {
    background: #f3f4f6;
    margin-top: 3rem;
    padding: 3rem 0 3.2rem;
}

.pill-section + .pill-section {
    margin-top: 1.6rem;
}

.pill-group-title {
    font-size: .98rem;
    margin-bottom: .7rem;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.pill-card {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem .9rem;
    border-radius: .9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: .86rem;
}

.pill-icon {
    font-size: 1rem;
}

/* Stripes */

.feature-stripes {
    margin-top: 3.1rem;
}

.feature-stripes .container {
    max-width: 880px;
    margin: 0 auto;
}

.stripe-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.8fr);
    gap: 0.9rem;
    align-items: center;
    margin: 1.0rem auto;
    border-radius: 1.2rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 1.2rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}


.stripe-media {
    display: flex;
    align-items: center;
    justify-content: center;
}


.stripe-media img {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    object-fit: contain;
    background: #000000;
}

.stripe-copy h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

.stripe-link {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .86rem;
    font-weight: 550;
    margin-top: .4rem;
}

.stripe-link span {
    transform: translateY(1px);
}

/* CTA banner */

.cta-shell {
    margin-top: 3.4rem;
}

.cta-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
    gap: 2rem;
    border-radius: 1.5rem;
    background: #272727;
    padding: 1.7rem 1.9rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .12);
}

.cta-media {
    text-align: center;
}

.cta-label {
    display: inline-block;
    padding: .18rem .6rem;
    border-radius: 999px;
    background: #272727;
    color: #f9fafb;
    font-size: .8rem;
    margin-bottom: .6rem;
}

.cta-media img {
    max-width: 200px;
    width: 100%;
    display: block;
    margin: .2rem auto .8rem;
}

.cta-product-name {
    font-weight: 600;
    font-size: .96rem;
    margin-bottom: .1rem;
}

.cta-product-copy {
    font-size: .86rem;
    color: #4b5563;
}

.cta-copy h2 {
    margin-bottom: .4rem;
}

.cta-store-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 1rem 0 .9rem;
}

.store-badge {
    height: 34px;
    display: block;
}

.store-badge-vertical {
    max-width: 190px;
    height: auto;
    display: block;
}


.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

/* Generic page */

.page {
    background: #f9fafb;
    border-radius: 1.1rem;
    padding: 1.6rem 1.8rem 2rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .1);
    border: 1px solid #cfd3da;
}

.page-header {
    max-width: 46rem;
    margin-bottom: 1.9rem;
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr);
    gap: 1.6rem;
}

/* Cards / utilities */

.card {
    border-radius: .9rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 1.1rem 1.2rem;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.arch-card h3 {
    font-size: .94rem;
    margin-bottom: .4rem;
}

.bullet-list {
    padding-left: 1.1rem;
    font-size: .88rem;
    color: #374151;
}

.bullet-list li + li {
    margin-top: .3rem;
}

.fine-print {
    font-size: .78rem;
    color: #6b7280;
}

/* Inline CTA */

.inline-cta {
    margin-top: 2.6rem;
}

.inline-cta-inner {
    border-radius: 1rem;
    background: #272727;
    color: #f9fafb;
    padding: 1.2rem 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.inline-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

/* Compatibility */

.brand-selector {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 1rem 0 1.4rem;
}

.brand-pill {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: .35rem .9rem;
    font-size: .86rem;
    background: #ffffff;
    cursor: pointer;
}

.brand-pill.active {
    background: #272727;
    color: #f9fafb;
    border-color: #272727;
}

.compat-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.compat-brand-block {
    padding: .9rem 1rem;
    border-radius: .9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.compat-brand-title {
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.compat-models {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.model-pill {
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .78rem;
    border: 1px solid #d1d5db;
    background: #f9fafb;
}

.model-pill.supported {
    background: #dcfce7;
    border-color: #16a34a;
}

.model-pill.unsupported {
    background: #f3f4f6;
    color: #6b7280;
}

.function-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.function-card {
    border-radius: .9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: .85rem 1rem;
    font-size: .9rem;
}

/* Installers */

.installer-search {
    margin-bottom: 0.5rem;
}

.installer-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-end;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: min(260px, 100%);
}

label {
    font-size: .8rem;
    color: #4b5563;
}

input[type="text"],
input[type="email"],
select,
textarea {
    font-family: inherit;
    font-size: .9rem;
    padding: .55rem .7rem;
    border-radius: .55rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #272727;
    outline-offset: 1px;
}

.installers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
    gap: 1.2rem;
}


/* Installer map tweaks: keep Leaflet fully under header on mobile */
.installer-map {
    width: 100%;
    height: 350px;
    border-radius: .9rem;
    overflow: hidden; /* clip map + controls to rounded card */
}

/* Make sure Leaflet panes & controls sit below sticky header */
.installer-map .leaflet-pane,
.installer-map .leaflet-top,
.installer-map .leaflet-bottom,
.installer-map .leaflet-control-container {
    z-index: 1;
}

.installer-list h2 {
    margin-top: 0;
    margin-bottom: .5rem;
}

.installer-items {
    list-style: none;
    padding-left: 0;
    margin: 0 0 .9rem;
    font-size: .88rem;
}

.installer-items li + li {
    margin-top: .55rem;
}

.installer-item-name {
    font-weight: 600;
}

.installer-item-distance {
    font-size: .8rem;
    color: #6b7280;
}

/* Contact */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
    gap: 1.4rem;
}

/* Footer */

.site-footer {
    background: #272727;
    color: #d1d5db;
    padding: 1.2rem 0 1.5rem;
    border-top: 1px solid #181818;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 1.2rem;
    align-items: flex-start;
}

.footer-logo {
    height: 26px;
    display: block;
    margin-bottom: .4rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.2rem;
    font-size: .86rem;
}

.footer-links a {
    color: #e5e7eb;
}

.footer-meta {
    font-size: .78rem;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-meta-text {
    max-width: 60ch;
}

.footer-tagline {
    font-size: .86rem;
    color: #e5e7eb;
}

.footer-store-badges {
    margin-left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
}

.footer-store-badges img {
    height: 26px;
    width: auto;
    display: block;
}

/* On small screens stack the footer nicely */
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-meta {
        align-items: flex-start;
    }

    .footer-store-badges {
        margin-left: 0;
    }
}

/* Animations */

.hero-animate {
    animation: heroIn .35s ease-out both;
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp .5s ease-out forwards;
}

.fade-in:nth-child(2) {
    animation-delay: .08s;
}

.fade-in:nth-child(3) {
    animation-delay: .16s;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */

@media (max-width: 900px) {
    .main-nav {
        position: absolute;
        inset: 100% 0 auto;
        background: #272727;
        padding: .6rem 1.25rem 1rem;
        flex-direction: column;
        gap: .6rem;
        border-bottom: 1px solid #181818;
        max-height: 0;
        overflow: hidden;
        transition: max-height .2s ease-out;
        display: none; /* hide collapsed menu so 'Home' doesn't show */
    }

    .main-nav.open {
        max-height: 260px;
        display: flex; /* show menu when burger is toggled */
    }

    .nav-toggle {
        display: flex;
    }

    .hero-main,
    .cta-banner,
    .installers-layout,
    .contact-layout,
    .admin-grid,
    .arch-grid,
    .grid-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .triptych-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-stripes .stripe-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .page {
        padding-inline: 1.1rem;
    }

    .installer-search-form {
        flex-direction: column;
        align-items: stretch;
    }
}


/* Store badges footer layout overrides */

.footer-store-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .9rem;
}

.store-link {
    display: inline-flex;
}

.store-badge {
    display: block;
    height: auto;
    max-height: 40px;
}


/* Comfort controls section on How it works */

.comfort-controls {
    margin-top: 2.4rem;
}

.comfort-controls h3 {
    margin-top: 1.1rem;
}


/* Inline CTA – ensure text is readable on dark background */
.inline-cta-inner h2 {
    color: #f9fafb;
}

.inline-cta-inner p {
    color: #e5e7eb;
}

/* Footer meta row + layout tweaks */

.footer-meta {
    display: block;
}

.footer-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .78rem;
    color: #9ca3af;
}

.footer-meta-row span {
    white-space: nowrap;
}

.footer-meta-text {
    max-width: none;
}

.footer-store-badges {
    margin-left: 0;
    margin-top: .45rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .4rem;
}

.footer-store-badges img {
    height: 26px;
    width: auto;
}

/* On very small screens stack nicely */
@media (max-width: 640px) {
    .footer-meta-row span {
        white-space: normal;
    }
}


/* FORCE FOOTER NAV ON ONE LINE */
.footer-links {
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:1.4rem;
    white-space:nowrap;
}

.footer-links a {
    display:inline-block;
}


/* Hero app screenshot frame on the right-hand side */
.hero-side-app {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-frame {
    width: 260px;
    max-width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-frame img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 18px 40px rgba(15, 23, 42, .35));
}

/* On small screens stack hero content, phone first or last neatly */
@media (max-width: 768px) {
    .hero-main {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-side-app {
        margin-top: 1.4rem;
    }
}


.footer-badges-row {
    margin-top: .45rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.footer-badges-row img {
    height: 26px;
    width: auto;
    display: block;
}


.footer-badge-wrap {
    margin-top: .45rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
}

.footer-badge-wrap img {
    height: 26px;
    width: auto;
    display: block;
}


.stripe-media img[src*="stop-start-icon"],
.stripe-media img[src*="lane-assist-icon"],
.stripe-media img[src*="speed-warning-icon"] {
    width: 200px;
    height: 200px;
    object-fit: contain !important;
    margin: auto;
    display: block;
}


.social-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    opacity: 0.85;
}
.social-icon:hover {
    opacity: 1;
}

.installer-list {
    align-self: flex-start;
}

/* Dark CTA banner overrides */
.cta-banner .cta-product-copy,
.cta-banner .fine-print {
    color: #e5e7eb;
}


/* Force CTA banner text white */
.cta-banner, 
.cta-banner h1,
.cta-banner h2,
.cta-banner h3,
.cta-banner p,
.cta-banner .cta-product-name,
.cta-banner .cta-product-copy,
.cta-banner .fine-print {
    color: #ffffff !important;
}


/* Contact form spacing + status */
.contact-form .form-field {
    margin-bottom: 0.9rem;
}

.contact-form .btn {
    margin-top: 0.4rem;
}

.form-status {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    min-height: 1.2em;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}
