/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --white: #ffffff;
    --border-radius: 8px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. HEADER & NAV --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 30px;
    width: auto;
}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.parent-brand {
    font-size: 0.75rem;
    font-weight: 400;
    color: #71717a;
    letter-spacing: 0.5px;
}

.lang-select {
    padding: 8px 28px 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    width: auto;
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

select.lang-select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.promo-banner {
    background: linear-gradient(90deg, #e8f7ee 0%, #eaf3ff 50%, #fff5dc 100%);
    border-bottom: 1px solid rgba(0, 123, 255, 0.15);
    color: #0d2c1f;
    text-align: center;
    position: relative;
    z-index: 20;
}

.promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 20px;
}

.promo-banner-pill {
    background: #0b8a5b;
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 10px;
    line-height: 1;
}

.promo-banner-copy,
.promo-banner-status {
    font-size: 0.95rem;
    font-weight: 600;
}

.promo-banner-status {
    color: #1258a7;
}

.test-banner {
    background: #fff8e1;
    color: #7a5c00;
    border-bottom: 1px solid #f0d070;
    text-align: center;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --- 3. BUTTONS --- */
.btn {
    padding: 10px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* --- 4. SECTIONS (Hero, Features) --- */
section {
    padding: 20px 0;
}

.hero {
    background-color: var(--bg-light);
    text-align: center;
    padding: 30px 0;
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container h2 {
    text-align: center;
}

.section-sub {
    text-align: center;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 0;
}
/* Reusable utility for vertical phone demo media blocks. */
.u-phone-demo-media {
    position: relative;
    width: 100%;
    aspect-ratio: 360 / 740;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    background: #000;
    box-shadow: none;
}
.u-phone-demo-media > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}
/* Phone frame overlay — sits on top of the video, bezel covers white edge pixels */
.u-phone-demo-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/img/non-branded-android-smartphone-medium.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}
.feature-card .feature-demo-media {
    max-width: 320px;
    margin: 18px auto 0;
    background: white;
}
.feature-demo-video {
    display: block;
}

/* Mobile: dissolve content wrapper so h3/p become direct flex children, reorder video between them */
.feature-card--with-demo {
    display: flex;
    flex-direction: column;
}
.feature-card--with-demo .feature-card-content {
    display: contents;
}
.feature-card--with-demo .feature-card-content > h3 {
    order: 1;
}
.feature-card--with-demo .feature-demo-media {
    order: 2;
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 32px 16px 32px 14px;
}
.feature-card--with-demo .feature-card-content > p {
    order: 3;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}
.hero p {
    font-size: 1.2rem;
    color: var(--secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bullets {
    list-style: none;
    padding: 20px 28px;
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 480px;
    background: var(--white);
    border: 1.5px solid #e0e7ef;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,123,255,0.08);
    text-align: left;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f4f8;
}

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

.hero-bullets li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}
.feature-card {
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-5px); }

@media (min-width: 992px) {
    .feature-card--with-demo {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    /* Restore wrapper as a real flex item on desktop */
    .feature-card--with-demo .feature-card-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* Reset order so DOM order is used (h3, p on left; video on right) */
    .feature-card--with-demo .feature-card-content > h3,
    .feature-card--with-demo .feature-card-content > p {
        order: 0;
    }

    .feature-card--with-demo .feature-demo-media {
        order: 0;
        flex: 0 0 320px;
        max-width: 320px;
        margin: 0;
    }
}


/* Sub-row: spans full grid width, 2 equal columns on wide screens */
.features-grid-subrow {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.icon-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* --- 5. PRICING BOXES --- */
.pricing-section { background-color: var(--bg-light); text-align: center; }
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pricing-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #eee;
}

.pricing-card.recommended {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 10;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 0 0;
}

.price-annual {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 400;
}

.price-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0 0 0;
}

.period {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 400;
}

.price-cents {
    font-size: 0.55em;
    font-weight: 600;
    vertical-align: super;
    line-height: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    text-align: left;
}
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

/* --- 6. CTA & FOOTER --- */
.cta { background-color: var(--primary); color: #fff; text-align: center; }
.cta h2 { font-size: 2rem; }

/* Nav login text link */
.nav-login-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-login-link:hover { color: var(--primary); }

/* Hero CTA button sizing */
.btn-hero-cta {
    margin-top: 28px;
    padding: 14px 36px;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* Trust micro-copy below hero CTA */
.hero-trust {
    font-size: 0.9rem !important;
    color: #444 !important;
    margin-top: 14px !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 1;
}

/* --- Trust Strip --- */
.trust-strip {
    background: var(--white);
    border-top: 1px solid #e8edf2;
    border-bottom: 1px solid #e8edf2;
    padding: 18px 0;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--secondary);
    white-space: nowrap;
}

.trust-icon {
    font-size: 1rem;
    line-height: 1;
}

/* --- Pricing Explainer --- */
.pricing-explainer {
    margin-top: 36px;
    padding: 20px 28px;
    background: var(--white);
    border: 1.5px solid #e0e7ef;
    border-radius: var(--border-radius);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pricing-explainer p {
    margin: 0 0 8px;
    color: var(--secondary);
    font-size: 0.95rem;
}

.pricing-explainer p:last-child {
    margin: 0;
}

.pricing-example {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
}

/* --- For Who Section --- */
.for-who-section {
    background: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.for-who-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.for-who-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 12px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid #e8edf2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.for-who-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.1);
    border-color: var(--primary);
}

.for-who-emoji {
    font-size: 2.2rem;
    line-height: 1;
}

.for-who-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 600px) {
    .for-who-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- How It Works Section --- */
.how-it-works-section {
    background-color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    margin-top: 48px;
}

.step-card {
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.step-card:hover { transform: translateY(-4px); }

.step-number {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 52px;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--secondary);
    margin: 0;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    align-self: center;
    padding: 0 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .step-arrow { display: none; }
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .step-card { max-width: 100%; width: 100%; }
    .nav-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
    .nav-login-link {
        display: inline-block;
    }
    .btn {
        padding: 9px 14px;
        font-size: 0.9rem;
    }
}

/* --- FAQ Section --- */
.faq-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.faq-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-cat-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin: 0 0 6px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

details.faq-item {
    background: var(--white);
    border: 1px solid #e8edf2;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

details.faq-item[open] {
    box-shadow: 0 4px 12px rgba(0,123,255,0.08);
    border-color: #c8d8f0;
}

summary.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

summary.faq-question::-webkit-details-marker { display: none; }

summary.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}

details[open] summary.faq-question::after {
    transform: rotate(45deg);
}

details[open] summary.faq-question {
    color: var(--primary);
    border-bottom: 1px solid #e8edf2;
}

.faq-answer {
    padding: 14px 18px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--secondary);
    line-height: 1.7;
}

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

footer { background: #333; color: #ccc; padding: 40px 0; font-size: 0.9rem; }
footer p { margin: 0; line-height: 2; }
footer a { color: #bbb; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer p > a,
footer p > span { margin: 0 8px; }
footer p > a:first-of-type { margin-left: 12px; }

.footer-sep { color: #666; margin: 0 6px; }

.footer-lang {
    margin-top: 16px;
}

.footer-lang-select {
    background-color: #fff;
    color: #212529;
    border-color: #666;
}

.footer-support-label {
    color: #ccc;
    margin-right: 5px;
}

.footer-email-link {
    color: #fff;
    text-decoration: none;
}
.footer-email-link:hover { text-decoration: underline; }

/* --- THEME DEMO SECTION --- */
.theme-demo-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.theme-toggle-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    padding: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 100%;
    margin: 0;
}

.theme-card-text {
    flex: 1;
}

.theme-card-text h2 {
    text-align: left;
    margin-bottom: 12px;
}

.theme-card-text p {
    color: var(--secondary);
    margin-bottom: 28px;
}

.theme-toggle-bar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Toggle switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: .3s;
}
.theme-slider:before {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    left: 4px; bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}
.theme-switch input:checked + .theme-slider { background: var(--primary); }
.theme-switch input:checked + .theme-slider:before { transform: translateX(24px); }

/* Images */
.theme-demo-images {
    position: relative;
    flex: 0 0 420px;
    max-width: 420px;
}

.theme-demo-img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    opacity: 0;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.theme-demo-img--active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .theme-toggle-card {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }
    .theme-card-text {
        flex: none;
        width: 100%;
    }
    .theme-card-text h2 { text-align: center; }
    .theme-card-text p { text-align: center; }
    .theme-toggle-bar { justify-content: center; }
}

/* --- 7. GDPR BANNER (Updated Compliant Structure) --- */
#gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 15px 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.gdpr-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
}
.gdpr-text {
    flex-grow: 1;
    margin-right: 20px;
    font-size: 0.9rem;
}
.gdpr-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.gdpr-actions button, .gdpr-actions a {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s;
}
.btn-accept-all {
    background-color: #28a745; /* Green */
    color: white;
    font-weight: bold;
}
.btn-reject {
    background-color: #dc3545; /* Red */
    color: white;
}
.btn-settings {
    background-color: #6c757d; /* Gray/Secondary */
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .pricing-grid { flex-direction: column; align-items: center; }
    .pricing-card.recommended { transform: scale(1); }
    .gdpr-content { flex-direction: column; text-align: center; gap: 15px; }
    .gdpr-text { margin-right: 0; }
    .gdpr-actions { justify-content: center; width: 100%; }
    .hero { padding: 20px 0; }
    .hero h1 { font-size: 2.2rem; }
}

/* --- 8. COOKIE SETTINGS MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000; 
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 40px auto;
}

.modal-content h2 {
    color: var(--primary);
    margin-top: 0;
}

.cookie-group {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

.cookie-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.required {
    font-size: 0.8rem;
    color: #28a745; /* Green */
    font-weight: 500;
}

/* Switch styling (Toggle button) */
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 25px;
}

.slider.round:before {
    border-radius: 50%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
