/* ========================================
   Self-hosted Google Fonts
   ======================================== */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/lato-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/lato-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   G Tech Group — comecrearesitoweb.it
   Design System
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #000222;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #3a679a; text-decoration: none; transition: color .2s; }
a:hover { color: #254573; }
ul, ol { list-style: none; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    background: #254573;
    color: #fff;
    padding: 12px 24px;
    z-index: 10000;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.25; color: #000222; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
strong { font-weight: 700; }

/* --- Layout --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: #f5f7fa; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title p { max-width: 680px; margin: .75rem auto 0; color: #555; font-size: 1.1rem; }
.text-center { text-align: center; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background .3s, box-shadow .3s, padding .3s;
}
.header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    padding: 10px 0;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo img { height: 40px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    color: #ffffff;
    transition: color .2s;
    padding: 8px 0;
}
.header.scrolled .header-nav a { color: #000222; }
.header-nav a:hover { color: #638dd8; }
.header-cta {
    display: inline-block;
    padding: 12px 28px;
    background: #3a679a;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s, transform .15s;
}
.header-cta:hover { background: #254573; transform: translateY(-1px); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: transform .3s, opacity .3s;
}
.header.scrolled .menu-toggle span { background: #000222; }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #254573 0%, #4878b4 50%, #638dd8 100%);
    overflow: hidden;
}
.hero-video {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    visibility: visible;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,15,30,.35);
    z-index: 1;
}
.hero::before {
    display: none;
}
.hero .container { position: relative; z-index: 2; text-align: center; padding-top: 100px; padding-bottom: 60px; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p.subtitle {
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    border: none;
    text-align: center;
}
.btn-primary {
    background: #fff;
    color: #254573;
}
.btn-primary:hover {
    background: #f0f4f8;
    color: #254573;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
}
.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}
.btn-blue {
    background: #3a679a;
    color: #fff;
}
.btn-blue:hover {
    background: #254573;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72,120,180,.3);
}
.btn-outline {
    background: transparent;
    color: #3a679a;
    border: 2px solid #3a679a;
}
.btn-outline:hover {
    background: #3a679a;
    color: #fff;
    transform: translateY(-2px);
}
.btn-whatsapp {
    background: #25d366;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Focus styles (accessibility) --- */
a:focus-visible, button:focus-visible {
    outline: 3px solid #638dd8;
    outline-offset: 2px;
}

/* --- Cards --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px;
    border: 1px solid #e8edf3;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(72,120,180,.12);
    border-color: #4878b4;
}
.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4878b4, #638dd8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #fff;
}
.card h3 { color: #254573; }
.card p { color: #555; font-size: .95rem; margin-bottom: .5rem; }
.card .tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    margin-top: 8px;
}
.tag-free { background: #e8f5e9; color: #2e7d32; }
.tag-mid { background: #fff3e0; color: #e65100; }
.tag-pro { background: #e3f2fd; color: #1565c0; }

/* Card pro/contro lists */
.card ul { margin-top: 12px; }
.card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 6px;
    font-size: .9rem;
    color: #555;
}
.card ul li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}
.card .pro li::before { content: '+'; color: #2e7d32; }
.card .con li::before { content: '\2013'; color: #c62828; }

/* --- Limits Section (4 cols) --- */
.limits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.limit-card {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf3;
    transition: transform .25s, box-shadow .25s;
}
.limit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(72,120,180,.12);
}
.limit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* --- Steps --- */
.steps { counter-reset: step; }
.step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    align-items: flex-start;
}
.step:last-child { margin-bottom: 0; }
.step-number {
    counter-increment: step;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4878b4, #638dd8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}
.step-content h3 { color: #254573; margin-bottom: .5rem; }
.step-content p { color: #555; margin-bottom: 0; }

/* --- AI Section --- */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.ai-card {
    padding: 36px;
    border-radius: 12px;
    border: 1px solid #e8edf3;
}
.ai-card h3 { margin-bottom: 1rem; }
.ai-card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #555;
}
.ai-card ul li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}
.ai-can { background: #f0fdf4; }
.ai-can ul li::before { content: '\2713'; color: #16a34a; }
.ai-need { background: #fefce8; }
.ai-need ul li::before { content: '\2605'; color: #ca8a04; }

/* --- Stats --- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin: 48px 0 32px;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
}
.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #3a679a;
    line-height: 1.1;
}
.stat-label {
    font-size: .95rem;
    color: #555;
    margin-top: 4px;
}

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid #e8edf3;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s;
}
.faq-item:hover { border-color: #4878b4; }
.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000222;
    text-align: left;
    gap: 16px;
    transition: background .2s;
}
.faq-question:hover { background: #f5f7fa; }
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #4878b4;
    transition: transform .3s, background .2s;
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: #4878b4; color: #fff; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-answer-inner {
    padding: 0 24px 20px;
    color: #555;
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #254573 0%, #4878b4 100%);
    text-align: center;
    padding: 80px 0;
}
.cta-section h2 { color: #fff; margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.95); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-contacts {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255,255,255,.9);
    font-size: .95rem;
}
.cta-contacts a { color: #fff; }
.cta-contacts a:hover { color: #638dd8; }

/* --- Footer --- */
.footer {
    background: #0a0f1a;
    color: rgba(255,255,255,.6);
    padding: 48px 0 24px;
    font-size: .9rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
}
.footer-brand img { height: 36px; margin-bottom: 12px; }
.footer-brand p { max-width: 320px; }
.footer-links h4 {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-size: .95rem;
    margin-bottom: 12px;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,.6);
    margin-bottom: 4px;
    padding: 4px 0;
    transition: color .2s;
}
.footer-links a:hover { color: #3a679a; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    text-align: center;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid #e8edf3;
    transition: transform .25s, box-shadow .25s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(72,120,180,.12);
}
.testimonial-stars {
    color: #f5a623;
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.testimonial-card blockquote p {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4878b4, #638dd8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block;
    color: #000222;
    font-size: .95rem;
}
.testimonial-author span {
    display: block;
    color: #666;
    font-size: .82rem;
}

/* --- Tools --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.tool-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px;
    border: 2px solid #e8edf3;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(72,120,180,.12);
    border-color: #4878b4;
    color: inherit;
}
.tool-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: background .2s;
}
.tool-card:hover .tool-icon {
    background: #e3edf8;
}
.tool-card h3 { color: #254573; }
.tool-card p { color: #555; font-size: .95rem; margin-bottom: 0; }

/* --- Footer Social --- */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    transition: background .2s, color .2s;
}
.footer-social a:hover {
    background: #3a679a;
    color: #fff;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .hero-video {
        display: none;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .limits-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { gap: 40px; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .header-nav {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,15,26,.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }
    .header-nav.open { opacity: 1; visibility: visible; }
    .header-nav a { color: #fff !important; font-size: 1.2rem; }
    .menu-toggle { display: block; z-index: 1001; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    .cards-grid { grid-template-columns: 1fr; }
    .limits-grid { grid-template-columns: 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
    .step { flex-direction: column; gap: 16px; }
    .hero { min-height: 80vh; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-row { gap: 24px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .footer-inner { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .card { padding: 28px 20px; }
}

/* --- Print --- */
@media print {
    .header, .menu-toggle, .hero-buttons, .cta-section, .cta-buttons, .btn, .footer { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    h1, h2, h3 { color: #000; page-break-after: avoid; }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
    .section { padding: 20px 0; }
    .hero { min-height: auto; background: none; padding: 40px 0; }
    .hero h1 { color: #000; }
    .hero .subtitle { color: #333; }
}

/* ========================================
   Cookie Banner
   ======================================== */
.cb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9998;
    opacity: 0;
    transition: opacity .3s;
}
.cb-overlay.cb-show { opacity: 1; }

.cb-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0,0,0,.15);
    border-radius: 16px 16px 0 0;
    padding: 28px 24px 24px;
    transform: translateY(100%);
    transition: transform .35s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.cb-banner.cb-show { transform: translateY(0); }

.cb-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: background .2s;
}
.cb-close:hover { background: #f0f0f0; }

.cb-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000222;
    margin-bottom: 8px;
}

.cb-text {
    font-size: .95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 700px;
}
.cb-text a { color: #3a679a; text-decoration: underline; }

.cb-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cb-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid #3a679a;
    transition: background .2s, color .2s, transform .15s;
    text-align: center;
    min-width: 160px;
}

.cb-btn-accept {
    background: #3a679a;
    color: #fff;
}
.cb-btn-accept:hover {
    background: #254573;
    border-color: #254573;
    transform: translateY(-1px);
}

.cb-btn-reject {
    background: #fff;
    color: #3a679a;
}
.cb-btn-reject:hover {
    background: #f0f4f8;
    transform: translateY(-1px);
}

.cb-btn-customize {
    background: #fff;
    color: #3a679a;
}
.cb-btn-customize:hover {
    background: #f0f4f8;
    transform: translateY(-1px);
}

/* Preferences panel */
.cb-prefs {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8edf3;
}
.cb-prefs.cb-show { display: block; }

.cb-pref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cb-pref-item:last-child { border-bottom: none; }

.cb-pref-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    color: #000222;
    margin-bottom: 2px;
}
.cb-pref-info p {
    font-size: .85rem;
    color: #777;
    margin-bottom: 0;
}

.cb-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 16px;
}
.cb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cb-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background .3s;
}
.cb-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .3s;
}
.cb-toggle input:checked + .cb-toggle-slider { background: #3a679a; }
.cb-toggle input:checked + .cb-toggle-slider::before { transform: translateX(22px); }
.cb-toggle input:disabled + .cb-toggle-slider { background: #a8c4e0; cursor: default; }
.cb-toggle input:disabled:checked + .cb-toggle-slider { background: #a8c4e0; }

.cb-prefs-save {
    margin-top: 16px;
    text-align: right;
}

/* Floating manage button */
.cb-manage-float {
    position: fixed;
    bottom: 16px; left: 16px;
    z-index: 9990;
    background: #3a679a;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: background .2s, transform .15s;
    display: none;
}
.cb-manage-float:hover { background: #254573; transform: translateY(-2px); }
.cb-manage-float.cb-show { display: block; }

/* Footer manage cookie link */
.footer-cookie-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    cursor: pointer;
    font-size: .9rem;
    padding: 0;
    transition: color .2s;
    font-family: inherit;
}
.footer-cookie-btn:hover { color: #3a679a; }

@media (max-width: 768px) {
    .cb-banner { padding: 24px 16px 20px; border-radius: 12px 12px 0 0; }
    .cb-buttons { flex-direction: column; }
    .cb-btn { min-width: unset; width: 100%; }
    .cb-manage-float { bottom: 12px; left: 12px; font-size: .78rem; padding: 8px 14px; }
}

/* ========================================
   Policy Pages
   ======================================== */
.policy-page {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.policy-header {
    background: linear-gradient(135deg, #254573 0%, #4878b4 50%, #638dd8 100%);
    padding: 80px 0 48px;
    text-align: center;
    margin-bottom: 48px;
}
.policy-header h1 { color: #fff; margin-bottom: .75rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.policy-header p { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.policy-summary {
    background: #f0f7ff;
    border-left: 4px solid #3a679a;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 40px;
}
.policy-summary h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: #254573;
    margin-bottom: 8px;
}
.policy-summary ul { margin-top: 8px; }
.policy-summary li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
    color: #333;
    font-size: .95rem;
}
.policy-summary li::before { content: '\2713'; position: absolute; left: 0; color: #3a679a; font-weight: 700; }

.policy-toc {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 40px;
}
.policy-toc h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #254573;
}
.policy-toc ol {
    list-style: decimal;
    padding-left: 20px;
}
.policy-toc li {
    margin-bottom: 6px;
    font-size: .95rem;
}
.policy-toc a { color: #3a679a; text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; }

.policy-section {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8edf3;
}
.policy-section:last-child { border-bottom: none; }

.policy-section h2 {
    font-size: 1.3rem;
    color: #254573;
    margin-bottom: 16px;
    padding-top: 8px;
}
.policy-section h3 {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 8px;
    margin-top: 20px;
}

.policy-section p,
.policy-section li {
    color: #444;
    font-size: .95rem;
    line-height: 1.75;
}
.policy-section ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 12px;
}
.policy-section ul li { margin-bottom: 4px; }

.policy-section a { color: #3a679a; text-decoration: underline; text-underline-offset: 2px; }
.policy-section a:hover { color: #254573; }

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: .9rem;
}
.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e8edf3;
}
.cookie-table th {
    background: #f5f7fa;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #254573;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cookie-table td { color: #444; }

/* Rights grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px 0;
}
.right-card {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 3px solid #3a679a;
}
.right-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: #254573;
    margin-bottom: 4px;
}
.right-card p { font-size: .85rem; color: #555; margin-bottom: 0; }

/* Contact box */
.policy-contact {
    background: linear-gradient(135deg, #254573, #4878b4);
    border-radius: 12px;
    padding: 28px 32px;
    color: #fff;
    margin-top: 20px;
}
.policy-contact h3 { color: #fff; margin-bottom: 12px; }
.policy-contact p { color: rgba(255,255,255,.9); margin-bottom: 6px; font-size: .95rem; }
.policy-contact a { color: #fff; text-decoration: underline; }

/* Browser links grid */
.browser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.browser-link {
    display: block;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    color: #3a679a;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.browser-link:hover { background: #e3edf8; transform: translateY(-2px); color: #254573; }

@media (max-width: 768px) {
    .policy-header { padding: 60px 0 36px; }
    .rights-grid { grid-template-columns: 1fr; }
    .browser-grid { grid-template-columns: 1fr 1fr; }
    .cookie-table { font-size: .82rem; }
    .cookie-table th, .cookie-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
    .browser-grid { grid-template-columns: 1fr; }
}
