:root {
    --background: #ffffff;
    --foreground: #0b1220;
    --card: #ffffff;
    --primary: #00BCC5;
    --primary-foreground: #ffffff;
    --accent: #009BA3;
    --muted: #f3f4f7;
    --muted-foreground: #6b7280;
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: rgba(0, 188, 197, 0.35);
    --destructive: #dc2626;
    --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    min-height: 100vh;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
}
.logo { height: 32px; width: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; cursor: pointer; font-weight: 600;
    padding: 10px 20px; border-radius: var(--radius);
    font-size: 14px; transition: background-color .15s ease, opacity .15s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--accent); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; padding: 12px 16px; }

.banner { display: block; width: 100%; height: auto; }
main picture { display: block; }

@media (min-width: 640px) {
    .header-inner { padding: 12px 32px; }
    .logo { height: 40px; }
    .btn { padding: 10px 24px; }
}

/* Modal */
.modal {
    display: none;
    position: fixed; inset: 0; z-index: 100;
    background: rgba(11, 18, 32, 0.5);
    padding: 16px;
    align-items: center; justify-content: center;
}
.modal.is-open { display: flex; }
.modal-content {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
    width: 100%; max-width: 1024px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .modal-content { grid-template-columns: 1.4fr 1fr; }
}

.modal-left { padding: 20px; }
@media (min-width: 640px) { .modal-left { padding: 32px; } }

.chip {
    display: inline-block;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
    font-size: 14px; font-weight: 600;
}
.modal-title { margin: 16px 0 4px; font-size: 20px; font-weight: 700; }
.modal-sub { margin: 0 0 16px; font-size: 14px; }

form .field { margin-bottom: 12px; }
form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
form .hint { font-size: 12px; color: var(--muted-foreground); margin: 0 0 4px; }
form input[type="text"] {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--input); border-radius: var(--radius);
    background: var(--background); color: var(--foreground);
    font-size: 14px; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
form input[type="text"].mono { letter-spacing: .12em; }
form input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}
form input::placeholder { color: var(--muted-foreground); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.robo {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border: 1px solid var(--input);
    border-radius: var(--radius); background: var(--background);
    margin: 8px 0; font-size: 14px;
}
.robo input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); }

.error { color: var(--destructive); font-size: 14px; font-weight: 500; margin: 8px 0; }

.modal-right {
    position: relative;
    display: none;
    background: var(--primary);
    align-items: center; justify-content: center;
    padding: 16px; overflow: hidden;
}
@media (min-width: 768px) { .modal-right { display: flex; } }
.modal-right img { max-width: 100%; max-height: 100%; object-fit: contain; }

.close {
    background: transparent; border: 0; cursor: pointer;
    color: var(--foreground);
    position: absolute; right: 16px; top: 16px;
    transition: opacity .15s ease;
}
.close:hover { opacity: .7; }
.close-desktop { color: var(--primary-foreground); z-index: 2; }
.close-mobile { display: block; }
@media (min-width: 768px) { .close-mobile { display: none; } }

/* Success */
.success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; height: 100%; padding: 16px; }
.success-icon {
    width: 64px; height: 64px; border-radius: 999px;
    background: var(--primary); color: var(--primary-foreground);
    display: flex; align-items: center; justify-content: center;
}
.success h2 { font-size: 24px; margin: 4px 0; }
.success .valor { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.15; margin: 4px 0; }
.success .sub { font-size: 16px; font-weight: 700; margin: 4px 0; }
.success .offer { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); font-weight: 600; margin-top: 8px; }
.success .legal { font-size: 11px; color: var(--muted-foreground); max-width: 420px; line-height: 1.6; }
.success .redirect-msg { font-size: 13px; color: var(--primary); font-weight: 700; margin: 6px 0; }

main picture { display: block; }

/* ===== Rodapé ===== */
.site-footer {
    background: #000;
    color: #fff;
    padding: 32px 24px;
    
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}
.footer-brand { display: flex; align-items: center; }
.footer-logo {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 42px;
    letter-spacing: -1px;
    color: #fff;
    line-height: 1;
}
.footer-logo-z { color: #14e0c8; }
.footer-info {
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
}
.footer-info p { margin: 2px 0; }
.footer-address { margin-bottom: 8px !important; }
.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}
.footer-social-label {
    font-size: 13px;
    color: #fff;
    margin-right: 4px;
}
.social-list {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    border-radius: 4px;
    transition: opacity .2s;
}
.social-list a:hover { opacity: .75; }

@media (max-width: 767px) {
    .site-footer { padding: 28px 20px; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        justify-items: center;
    }
    .footer-brand { justify-content: center; }
    .footer-logo { font-size: 36px; }
    .footer-info { font-size: 12px; }
    .footer-social { flex-direction: column; gap: 10px; }
}

/* Remove any gap between banner and footer */
main { margin: 0; padding: 0; }
main picture, .banner { margin: 0; padding: 0; display: block; }
.site-footer { margin-top: 0 !important; }
