/* ===== Estilo compartilhado das páginas de produto TI-TEC ===== */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --accent: #20c997;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #f39c12;
    --white: #ffffff;
    --text-color: #333;
    --wa: #25d366;
    --font: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); line-height: 1.6; color: var(--text-color); background: var(--light); }
.container { width: 90%; max-width: 1150px; margin: 0 auto; padding: 0 15px; }
img { max-width: 100%; }

/* ----- Topo ----- */
.top-bar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 100;
}
.top-bar .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.6rem; padding-bottom: 0.6rem; gap: 1rem;
}
.top-bar img { height: 70px; width: auto; display: block; }
.top-links { display: flex; gap: 1.2rem; align-items: center; }
.top-links a { color: var(--dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.top-links a:hover { color: var(--primary); }

/* ----- Botões ----- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.8rem; border-radius: 6px; font-weight: 600;
    text-decoration: none; transition: transform 0.2s, background-color 0.3s;
    border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #1a9e73; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ----- Hero ----- */
.product-hero {
    color: #fff; text-align: center;
    padding: 5.5rem 0 4.5rem;
}
.product-hero .badge {
    display: inline-block; background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 0.35rem 1rem; border-radius: 30px; font-size: 0.85rem;
    margin-bottom: 1.2rem; letter-spacing: 0.3px;
}
.product-hero h1 { font-size: 2.9rem; line-height: 1.2; margin-bottom: 1.1rem; }
.product-hero p.lead { font-size: 1.2rem; max-width: 760px; margin: 0 auto 2.2rem; opacity: 0.92; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-backup  { background: linear-gradient(135deg, #0b2545 0%, #0056b3 60%, #007bff 100%); }
.hero-gateway { background: linear-gradient(135deg, #073b2c 0%, #128c4f 55%, #25d366 100%); }

/* ----- Seções ----- */
section.block { padding: 5rem 0; }
section.block.alt { background: var(--white); }
.section-title { text-align: center; font-size: 2.1rem; color: var(--dark); font-weight: 700; }
.section-title::after {
    content: ''; display: block; width: 70px; height: 4px;
    background: var(--primary); margin: 0.8rem auto 0; border-radius: 2px;
}
.theme-gateway .section-title::after { background: var(--wa); }
.section-sub { text-align: center; max-width: 720px; margin: 1.2rem auto 3rem; color: var(--secondary); font-size: 1.05rem; }

/* ----- Grade de cartões ----- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.8rem; }
.card {
    background: var(--white); border-radius: 10px; padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}
section.block.alt .card { background: var(--light); }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.card .icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 1rem; }
.theme-gateway .card .icon { color: #128c4f; }
.card .icon.danger { color: var(--danger); }
.card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: #555; }

/* ----- Passo a passo ----- */
.steps { display: grid; gap: 1.2rem; max-width: 900px; margin: 0 auto; counter-reset: step; }
.step {
    display: flex; gap: 1.4rem; align-items: flex-start;
    background: var(--white); border-radius: 10px; padding: 1.6rem 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.step-num {
    flex: 0 0 46px; height: 46px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.theme-gateway .step-num { background: #128c4f; }
.step h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 0.3rem; }
.step p { color: #555; font-size: 0.97rem; }

/* ----- Fluxo (diagrama) ----- */
.flow {
    display: flex; align-items: stretch; justify-content: center;
    gap: 0; flex-wrap: wrap; margin-top: 1rem;
}
.flow-node {
    flex: 1 1 170px; max-width: 220px;
    background: var(--white); border-radius: 10px; padding: 1.4rem 1rem;
    text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border-top: 4px solid var(--primary);
}
.theme-gateway .flow-node { border-top-color: var(--wa); }
.flow-node i { font-size: 2rem; color: var(--primary); margin-bottom: 0.6rem; }
.theme-gateway .flow-node i { color: #128c4f; }
.flow-node h4 { font-size: 1rem; color: var(--dark); margin-bottom: 0.3rem; }
.flow-node p { font-size: 0.85rem; color: #666; }
.flow-arrow {
    flex: 0 0 48px; display: flex; align-items: center; justify-content: center;
    color: var(--secondary); font-size: 1.4rem;
}

/* ----- Destaque / caixas ----- */
.highlight {
    display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap;
}
.highlight > div { flex: 1 1 360px; min-width: 0; }
@media (max-width: 768px) { .highlight > div { flex-basis: 100%; } }
.highlight h3 { font-size: 1.6rem; color: var(--dark); margin-bottom: 1rem; }
.highlight p { margin-bottom: 1rem; color: #444; }
.check-list { list-style: none; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: 0.75rem; }
.check-list li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 1px; color: var(--success);
}
.panel-box {
    background: var(--dark); color: #e9ecef; border-radius: 12px; padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.panel-box h4 { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.panel-box .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.92rem; }
.panel-box .row:last-child { border-bottom: 0; }
.panel-box .ok { color: #4ade80; }
.panel-box .lock { color: #93c5fd; }

.notice {
    border-left: 5px solid var(--warning); background: #fff8eb;
    padding: 1.4rem 1.6rem; border-radius: 8px; max-width: 900px; margin: 2.5rem auto 0;
}
.notice h4 { color: #b06d00; margin-bottom: 0.4rem; }
.notice p { color: #5a4a2a; font-size: 0.97rem; }

/* ----- Código ----- */
.code {
    background: #1e2329; color: #e6edf3; border-radius: 10px; padding: 1.4rem 1.6rem;
    font-family: Consolas, 'Courier New', monospace; font-size: 0.88rem; line-height: 1.6;
    overflow-x: auto; white-space: pre; box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.code .k { color: #7ee787; }
.code .s { color: #a5d6ff; }
.code .c { color: #8b949e; }

/* ----- Painéis de acesso ----- */
.access {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem;
    max-width: 850px; margin: 0 auto;
}
.access .card { text-align: center; }
.access .card .btn { margin-top: 1.2rem; }

/* ----- FAQ ----- */
.faq { max-width: 850px; margin: 0 auto; }
.faq details {
    background: var(--white); border-radius: 8px; margin-bottom: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05); overflow: hidden;
}
section.block.alt .faq details { background: var(--light); }
.faq summary {
    cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--dark);
    list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.4rem 1.2rem; color: #555; }

/* ----- CTA final ----- */
.cta-final { color: #fff; text-align: center; padding: 4.5rem 0; }
.cta-final h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.cta-final p { max-width: 700px; margin: 0 auto 2rem; opacity: 0.92; font-size: 1.1rem; }

/* ----- Rodapé ----- */
footer { background: var(--dark); color: #ccc; padding: 2rem 0; text-align: center; font-size: 0.9rem; }
footer a { color: #fff; }

/* ----- Responsivo ----- */
@media (max-width: 768px) {
    .product-hero { padding: 3.5rem 0 3rem; }
    .product-hero h1 { font-size: 2rem; }
    .product-hero p.lead { font-size: 1.05rem; }
    .section-title { font-size: 1.7rem; }
    section.block { padding: 3.5rem 0; }
    .top-bar img { height: 52px; }
    .top-links .hide-sm { display: none; }
    .step { flex-direction: column; gap: 0.8rem; padding: 1.4rem; }
    .flow { flex-direction: column; align-items: center; }
    .flow-node { max-width: 100%; width: 100%; }
    .flow-arrow { transform: rotate(90deg); height: 40px; }
    .cta-final h2 { font-size: 1.7rem; }
}

/* ===== Formulário (Torne-se uma Revenda) ===== */
.hero-revenda { background: linear-gradient(135deg, #1f2a44 0%, #0056b3 55%, #20c997 100%); }
.form-wrap {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start;
}
.form-aside h3 { font-size: 1.4rem; color: var(--dark); margin-bottom: 1rem; }
.form-aside p { color: #555; margin-bottom: 1rem; }
.form-card {
    background: var(--white); border-radius: 12px; padding: 2.2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--dark); margin-bottom: 0.35rem; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%; padding: 0.75rem 0.9rem; border: 1px solid #ced4da; border-radius: 6px;
    font: inherit; font-size: 0.97rem; background: #fff; color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}
.field .hint { font-size: 0.8rem; color: var(--secondary); margin-top: 0.25rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { font-size: 0.82rem; color: var(--danger); margin-top: 0.25rem; display: none; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: #555; }
.check input { margin-top: 0.25rem; width: auto; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; width: 100%; justify-content: center; margin-top: 0.5rem; }
.alert { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.4rem; font-size: 0.95rem; }
.alert-ok { background: #e8f8ef; border-left: 5px solid var(--success); color: #1d5e34; }
.alert-err { background: #fdecee; border-left: 5px solid var(--danger); color: #842029; }
.alert ul { margin: 0.4rem 0 0 1.2rem; }

@media (max-width: 860px) {
    .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.5rem; }
}
