﻿/* Wreet logo override in HOW section */
#how .wreet-main-logo,
#how img[src*="wreet-logo"],
#how .section-logo {
    display: block !important;
    margin: 0 auto 40px !important;
    max-height: 150px !important;
    height: 150px !important;
    width: auto !important;
    opacity: .98 !important;
}

/* Backup */
.wreet-main-logo {
    display: block !important;
    margin: 0 auto 40px !important;
    max-height: 150px !important;
    height: 150px !important;
    width: auto !important;
    opacity: .98 !important;
}

/* Theme */
:root {
    --container: 1200px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(2,6,23,.07);
    --shadow-lg: 0 20px 40px rgba(2,6,23,.1);
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #475569;
    --bg: #ffffff;
    --alt: #f8fafc;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --primary-50: #eff6ff;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --success: #10b981;
    /* control height for aligned input+button in newsletter */
    --control-h: 48px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(var(--container),92%);
    margin-inline: auto;
}

/* Hero */
.hero {
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

    .hero:before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>') center/cover no-repeat;
    }

.hero-inner {
    display: grid;
    gap: 48px;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(36px,5vw,64px);
    margin: 0 0 16px;
    line-height: 1.1;
}

.hero .lead {
    color: #cbd5e1;
    margin: 0 0 32px;
    font-size: 1.25rem;
}

.grad {
    background: linear-gradient(90deg,#2563eb,#60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Trust logos */
.trust {
    display: flex;
    gap: 16px;
    align-items: center;
    color: #94a3b8;
    font-size: .9rem;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 100%;
    width: auto;
    object-fit: contain;
    opacity: .85;
    transition: opacity .3s ease, transform .2s ease;
}

.logo-box:hover .logo-img {
    opacity: 1;
    transform: translateY(-2px);
}

.bosch-logo {
    height: 45px;
}

.siemens-logo {
    height: 30px;
}

.delphi-logo {
    height: 50px;
}

.marelli-logo {
    height: 60px;
}

@media (max-width:1024px) {
    .trust-logos {
        gap: 24px;
    }

    .bosch-logo {
        height: 40px;
    }

    .siemens-logo {
        height: 28px;
    }

    .delphi-logo {
        height: 45px;
    }

    .marelli-logo {
        height: 55px;
    }
}

@media (max-width:768px) {
    .trust {
        flex-direction: column;
        gap: 12px;
    }

    .trust-logos {
        gap: 20px;
    }

    .bosch-logo {
        height: 36px;
    }

    .siemens-logo {
        height: 25px;
    }

    .delphi-logo {
        height: 40px;
    }

    .marelli-logo {
        height: 50px;
    }
}

@media (max-width:480px) {
    .trust-logos {
        gap: 16px;
    }

    .bosch-logo {
        height: 32px;
    }

    .siemens-logo {
        height: 22px;
    }

    .delphi-logo {
        height: 36px;
    }

    .marelli-logo {
        height: 45px;
    }
}

/* Hero media */
.hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg) skew(-5deg,2deg) scale(1.1);
    transition: transform .5s ease;
    border: 2px solid rgba(255,255,255,.1);
}

    .hero-media:hover {
        transform: perspective(1000px) rotateY(-6deg) rotateX(3deg) skew(-3deg,1deg) scale(1.12);
    }

    .hero-media::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(45deg, rgba(37,99,235,.1) 0%, transparent 50%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-media img {
        width: 100%;
        border-radius: var(--radius-lg);
        position: relative;
        z-index: 0;
        transform: scale(1.05);
    }

@media (max-width:1024px) {
    .hero-media {
        transform: scale(1.05);
        margin-top: 40px;
    }

        .hero-media:hover {
            transform: scale(1.07);
        }

        .hero-media img {
            transform: none;
        }
}

/* Sections */
.section {
    padding: 80px 0;
}

    .section.alt {
        background: var(--alt);
    }

    .section.dark {
        background: var(--dark);
        color: #fff;
    }

    .section h2 {
        font-size: clamp(28px,4vw,42px);
        margin: 0 0 16px;
        text-align: center;
    }

.section-sub {
    color: var(--muted);
    margin: 0 auto 40px;
    text-align: center;
    max-width: 600px;
    font-size: 1.125rem;
}

.section-dark .section-sub {
    color: #cbd5e1;
}

/* Wreet logo (How) */
.wreet-main-logo {
    display: block;
    margin: 0 auto 40px;
    max-height: 500px;
    width: auto;
    opacity: .98;
}

@media (max-width:1024px) {
    .wreet-main-logo {
        max-height: 400px;
    }
}

@media (max-width:768px) {
    .wreet-main-logo {
        max-height: 300px;
    }
}

@media (max-width:480px) {
    .wreet-main-logo {
        max-height: 250px;
    }
}

/* Showcase CTA */
.showcase-cta {
    text-align: center;
    margin-top: 28px;
}

/* Features */
.features-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3,1fr);
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: all .3s ease;
    text-align: center;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

/* How it works layout */
.how-it-works {
    display: grid;
    gap: 60px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.steps {
    padding: 0;
    margin: 0 0 32px;
}

    .steps li {
        list-style: none;
        padding: 24px 0 24px 80px;
        position: relative;
        border-bottom: 1px solid var(--border);
    }

        .steps li:last-child {
            border-bottom: none;
        }

        .steps li:before {
            content: '';
            position: absolute;
            left: 0;
            top: 24px;
            width: 48px;
            height: 48px;
            background: var(--primary);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.25rem;
        }

        .steps li:nth-child(1):before {
            content: '1';
        }

        .steps li:nth-child(2):before {
            content: '2';
        }

        .steps li:nth-child(3):before {
            content: '3';
        }

    .steps strong {
        display: block;
        font-size: 1.5rem;
        margin-bottom: 8px;
        color: var(--text);
    }

    .steps p {
        margin: 0;
        color: var(--muted);
        font-size: 1.1rem;
        line-height: 1.6;
    }

.media-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.software-gif {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

@media (max-width:768px) {
    .how-it-works {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps li {
        padding: 20px 0 20px 70px;
    }

        .steps li:before {
            width: 40px;
            height: 40px;
            top: 20px;
        }
}

@media (max-width:480px) {
    .how-it-works {
        gap: 32px;
    }

    .steps li {
        padding: 16px 0 16px 60px;
    }

        .steps li:before {
            width: 36px;
            height: 36px;
            top: 16px;
        }

    .steps strong {
        font-size: 1.25rem;
    }
}

/* ECU Support grid */
.ecu-grid-4x2 {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4,1fr);
}

.ecu-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all .3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

    .ecu-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
    }

    .ecu-card.selected {
        border-color: var(--primary);
        background: rgba(37,99,235,.1);
    }

    .ecu-card h4 {
        margin: 0;
        font-size: 1rem;
    }

/* REAL logo images in ECU cards */
.ecu-logo {
    height: 44px;
    margin: 0 auto 12px;
    object-fit: contain;
    display: block;
    filter: none; /* keep brand colors */
    transition: transform .2s ease, opacity .2s ease;
    opacity: .95;
}

/* Brand logo sizes within ECU section only (hero keeps its own sizes) */
#ecus .bosch-logo {
    height: 35px;
}

#ecus .siemens-logo {
    height: 25px;
}

#ecus .delphi-logo {
    height: 40px;
}

#ecus .marelli-logo {
    height: 50px;
}

#ecus .continental-logo {
    height: 55px;
}

#ecus .denso-logo {
    height: 25px;
}

#ecus .temic-logo {
    height: 45px;
}

#ecus .valeo-logo {
    height: 50px;
}

.ecu-card:hover .ecu-logo {
    transform: translateY(-2px);
    opacity: 1;
}

/* Preorder progress */
.preorder-progress {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin: 16px auto 32px;
    max-width: 720px;
}

.preorder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.preorder-label {
    font-size: .975rem;
}

.preorder-status {
    font-size: .9rem;
    color: var(--muted);
}

.preorder-bar {
    width: 100%;
    height: 12px;
    background: var(--primary-50);
    border-radius: 999px;
    overflow: hidden;
}

.preorder-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 1s ease;
}

/* Pricing */
.pricing-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2,1fr);
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

    .pricing-card.highlight {
        border-color: var(--primary);
        transform: scale(1.05);
    }

        .pricing-card.highlight:before {
            content: 'POPULAR';
            position: absolute;
            top: 20px;
            right: -30px;
            background: var(--primary);
            color: #fff;
            padding: 5px 30px;
            font-size: .75rem;
            font-weight: 700;
            transform: rotate(45deg);
        }

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

    .pricing-card.highlight:hover {
        transform: scale(1.05) translateY(-5px);
    }

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-card h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

    .price span {
        font-size: 16px;
        color: var(--muted);
        font-weight: 500;
    }

.price-note {
    font-size: .875rem;
    color: var(--muted);
    margin: 8px 0 0;
}

.pricing-features {
    margin: 0 0 32px;
    padding: 0;
}

    .pricing-features li {
        list-style: none;
        padding: 8px 0;
        position: relative;
        padding-left: 28px;
    }

        .pricing-features li:before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success);
            font-weight: bold;
        }

/* Payment logos */
.payment-logos {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

    .payment-logos img {
        height: 90px;
        width: auto;
        opacity: .98;
    }

/* Countdown (index page under PayPal) */
.countdown-section {
    margin: 24px auto 0;
    max-width: 780px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    background: #fff;
}

.countdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
}

    .countdown-header i {
        color: var(--primary);
    }

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
}

.countdown-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-50);
    padding: 10px 12px;
    border-radius: 12px;
    min-width: 64px;
    text-align: center;
}

.countdown-label {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.countdown-note {
    text-align: center;
    color: var(--muted);
    margin-top: 10px;
    font-size: .9rem;
}

    .countdown-note strong {
        color: var(--text);
    }

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background .2s ease;
}

    .faq-question:hover {
        background: var(--alt);
    }

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-toggle {
    transition: transform .3s ease;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-about {
    font-size: .9rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links h4 {
    color: #fff;
    margin: 0 0 16px;
    font-size: 1.125rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s ease;
}

    .footer-links a:hover {
        color: #fff;
    }

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

    .footer-bottom p {
        margin: 0;
    }

.footer-social {
    display: flex;
    gap: 16px;
}

    .footer-social a {
        color: #94a3b8;
        font-size: 1.25rem;
        transition: color .2s ease;
    }

        .footer-social a:hover {
            color: #fff;
        }

/* Responsive */
@media (max-width:1200px) {
    .ecu-grid-4x2 {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:900px) {
    .ecu-grid-4x2 {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:600px) {
    .ecu-grid-4x2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width:1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .how-it-works {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.highlight {
        transform: none;
    }

        .pricing-card.highlight:hover {
            transform: translateY(-5px);
        }
}

@media (max-width:768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:480px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0 60px;
    }
}

/* Newsletter */
.newsletter {
    background: #fff;
}

.newsletter-inner {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.newsletter-copy h2 {
    margin: 0 0 8px;
}

.newsletter-form {
    width: 100%;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

    .input-group input[type="email"] {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font: inherit;
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .input-group input[type="email"]:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-50);
        }

.form-status {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--muted);
    min-height: 1.25em; /* keeps layout stable */
}

    .form-status.success {
        color: var(--success);
    }

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

/* SR-only helper */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap; /* prevent line breaks */
}

/* Newsletter input+button alignment fixes */
#newsletter .input-group {
    align-items: stretch;
}

    #newsletter .input-group input[type="email"] {
        height: var(--control-h);
        border-radius: var(--radius); /* match button */
    }

    #newsletter .input-group .button {
        height: var(--control-h);
        padding: 0 18px;
        border-radius: var(--radius);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: var(--shadow);
    }

/* Responsive */
@media (max-width: 1024px) {
    .newsletter-inner {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .input-group {
        grid-template-columns: 1fr;
    }
}
