:root {
   --bg-main: #ffffff;
   --bg-soft: #f8fafc;
   --bg-surface: #ffffff;
   --ink-heavy: #040814;
   --ink-medium: #334155;
   --ink-light: #64748b;
   --accent: #0022f7;
   --accent-gradient: linear-gradient(135deg, #0022f7 0%, #3b82f6 100%);
   --accent-hover: #0018b3;
   --line: #e2e8f0;
   --line-focus: #cbd5e1;
   --whats: #16a34a;
   --whats-hover: #15803d;
   --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
   --shadow-md: 0 15px 30px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
   --shadow-lg: 0 25px 50px -12px rgba(0, 34, 247, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; } 

html { scroll-behavior: smooth; width: 100%; overflow-x: hidden; } 

body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
   background-color: var(--bg-main);
   color: var(--ink-heavy);
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   width: 100%;
   overflow-x: hidden;
   position: relative;
} 

h1, h2, h3, h4 {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
   color: var(--ink-heavy);
   letter-spacing: -0.025em;
   font-weight: 700;
} 

a { color: inherit; text-decoration: none; } 

::selection { background: var(--accent); color: #ffffff; } 
::-webkit-scrollbar { width: 6px; } 
::-webkit-scrollbar-track { background: var(--bg-main); } 
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 100px; } 

.reveal {
   opacity: 0;
   transform: translateY(20px);
   transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
} 

.reveal.active { opacity: 1; transform: translateY(0); } 

.glow-blob {
   position: absolute;
   width: 400px; height: 400px;
   background: radial-gradient(circle, rgba(0, 34, 247, 0.08) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
   filter: blur(50px);
   z-index: 0; pointer-events: none;
} 

.blob-1 { top: -50px; left: 5%; } 
.blob-2 { top: 300px; right: -50px; width: 500px; height: 500px; } 

.grid-bg {
   position: absolute; inset: 0;
   background-size: 36px 36px;
   background-image: 
     linear-gradient(to right, rgba(4, 8, 20, 0.03) 1px, transparent 1px),
     linear-gradient(to bottom, rgba(4, 8, 20, 0.03) 1px, transparent 1px);
   pointer-events: none; z-index: 0;
} 

header {
   position: sticky; top: 0; z-index: 50;
   background: rgba(255, 255, 255, 0.92);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border-bottom: 1px solid var(--line);
   width: 100%;
} 

.nav-wrap {
   max-width: 1160px; margin: 0 auto; padding: 14px 20px;
   display: flex; align-items: center; justify-content: space-between;
   width: 100%;
} 

.brand {
   display: flex; align-items: center; gap: 8px;
   font-family: 'Inter', -apple-system, sans-serif; font-weight: 800; font-size: 1.3rem;
   color: var(--ink-heavy); letter-spacing: -0.03em; z-index: 52;
} 

.brand .dot {
   width: 7px; height: 7px; border-radius: 50%;
   background: var(--accent); box-shadow: 0 0 10px var(--accent);
} 

nav ul { list-style: none; display: flex; gap: 28px; } 

nav a {
   color: var(--ink-medium); font-size: 0.92rem; font-weight: 500;
   transition: color 0.2s;
} 

nav a:hover { color: var(--accent); } 

.nav-cta {
   display: inline-flex; align-items: center; gap: 8px;
   background: var(--ink-heavy); color: #ffffff;
   padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 0.85rem;
   transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
   box-shadow: var(--shadow-sm);
   white-space: nowrap;
} 

.nav-cta:hover { background: var(--accent); } 

.mobile-toggle { 
   display: none; background: none; border: none; cursor: pointer; color: var(--ink-heavy); z-index: 52; 
   padding: 4px; 
} 

.btn-primary {
   display: inline-flex; align-items: center; justify-content: center; gap: 10px;
   background: var(--whats); color: #ffffff; font-weight: 600; font-size: 0.95rem;
   padding: 14px 24px; border-radius: 10px; width: 100%;
   box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.35);
   transition: all 0.25s ease;
   text-align: center;
} 

.btn-primary:hover { background: var(--whats-hover); } 

.btn-secondary {
   display: inline-flex; align-items: center; justify-content: center; gap: 8px;
   background: var(--bg-surface); border: 1px solid var(--line); color: var(--ink-heavy);
   font-weight: 600; font-size: 0.95rem; padding: 14px 22px; border-radius: 10px; width: 100%;
   transition: all 0.2s; box-shadow: var(--shadow-sm);
   text-align: center;
} 

.btn-secondary:hover { background: var(--bg-soft); border-color: var(--line-focus); } 

section { padding: 70px 20px; position: relative; width: 100%; } 

.section-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; width: 100%; } 

.section-head { max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 40px; text-align: center; } 

.section-head .eyebrow {
   font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--accent);
   text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; display: block; margin-bottom: 10px;
} 

.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 12px; font-weight: 800; line-height: 1.2; } 
.section-head p { color: var(--ink-medium); font-size: 1rem; } 

.service-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   width: 100%;
} 

.service-card {
   background: var(--bg-surface); border: 1px solid var(--line);
   padding: 32px 24px; border-radius: 18px;
   transition: all 0.3s ease;
   box-shadow: var(--shadow-sm); position: relative;
   display: flex; flex-direction: column; justify-content: space-between;
   width: 100%;
} 

.service-card:hover {
   border-color: rgba(0, 34, 247, 0.35);
   transform: translateY(-3px); box-shadow: var(--shadow-md);
} 

.service-icon {
   width: 46px; height: 46px; border-radius: 10px;
   background: linear-gradient(135deg, rgba(0,34,247,0.08) 0%, rgba(59,130,246,0.15) 100%);
   border: 1px solid rgba(0,34,247,0.15); display: flex; align-items: center; justify-content: center;
   color: var(--accent); margin-bottom: 20px;
} 

.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; } 
.service-card p { font-size: 0.9rem; color: var(--ink-medium); line-height: 1.5; } 

footer { background: #ffffff; border-top: 1px solid var(--line); padding: 36px 20px; text-align: center; font-size: 0.85rem; color: var(--ink-light); width: 100%; } 
footer strong { color: var(--ink-heavy); } 

.float-container { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; } 

.online-badge {
   background: #ffffff; color: var(--ink-heavy); border: 1px solid var(--line);
   padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600;
   box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 6px;
} 

.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--whats); animation: pulse-green 2s infinite; } 

@keyframes pulse-green { 
  0%, 100% { opacity: 1; transform: scale(1); } 
  50% { opacity: 0.4; transform: scale(0.8); } 
} 

.float-wa {
   background: var(--whats); color: #ffffff; width: 52px; height: 52px; border-radius: 50%;
   display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
   transition: transform 0.25s ease;
} 

.float-wa:hover { transform: scale(1.08); } 

@media (max-width: 768px) {
   .mobile-toggle { display: block; } 
   nav {
     position: absolute; top: 100%; left: 0; right: 0; background: #ffffff;
     border-bottom: 1px solid var(--line); padding: 24px 20px; display: none; box-shadow: var(--shadow-md);
     width: 100%;
   } 
   nav.active { display: block; } 
   nav ul { flex-direction: column; gap: 16px; align-items: center; width: 100%; } 
   nav ul li { width: 100%; text-align: center; } 
   nav ul li a { display: block; padding: 8px 0; font-size: 1rem; } 
   .online-badge { display: none; } 
   section { padding: 50px 16px; } 
   .nav-cta { display: none; } 
}

/* ==========================================================
   ADICÕES ESSENCIAIS PARA OS FORMULÁRIOS (CHAMADOS E RETIRADA)
   ========================================================== */
.tally-app-container {
    min-height: 80vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    position: relative;
}
.tally-form-wrapper {
    width: 100%;
    max-width: 680px;
    background: var(--bg-main);
    position: relative;
    z-index: 2;
}
.tally-logo-area {
    margin-bottom: 24px;
}
.koody-form-logo {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.4rem;
}
.tally-form-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}
.tally-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.tally-description {
    font-size: 0.95rem;
    color: var(--ink-medium);
    margin-bottom: 12px;
}
.tally-block {
    margin-bottom: 24px;
}
.tally-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.required { color: var(--accent); }

.tally-input, .tally-textarea, select {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.2s;
}
.tally-input:focus, .tally-textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 34, 247, 0.1);
}

.tally-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tally-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}
.tally-option:hover {
    background: var(--bg-secondary);
    border-color: var(--line-focus);
}
.tally-option input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.tally-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tally-grid-3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 12px; }

@media(max-width: 600px) {
    .tally-grid-2, .tally-grid-3 { grid-template-columns: 1fr; }
}

.photo-guidelines {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--ink-medium);
    margin-bottom: 16px;
}
.file-upload-box {
    border: 2px dashed var(--line);
    padding: 24px;
    text-align: center;
    border-radius: 8px;
    background: var(--bg-soft);
}
.btn-upload {
    background: white;
    border: 1px solid var(--line);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-heavy);
}
.file-limit { display: block; font-size: 0.8rem; color: var(--ink-medium); margin-top: 8px; }
.file-list { list-style: none; padding: 0; margin-top: 10px; font-size: 0.85rem; }

.terms-box {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--ink-medium);
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 16px;
}
.checkbox-term { background: transparent; border: none; padding: 0; }

.tally-submit-wrapper { margin-top: 40px; }
.tally-submit-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}
.tally-submit-btn:hover { background-color: var(--accent-hover); }

.success-screen {
    text-align: center;
    padding: 60px 20px;
}
.success-icon {
    width: 64px; height: 64px; background: #e9faeb; color: var(--whats); font-size: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}