/* =============================================================
   FLAGS DOS DOCUMENTOS — CSS da Página
   Identidade: Verde-esmeralda / Teal
   ============================================================= */

:root {
    --fl-primary:      #0d9488;
    --fl-primary-dark: #0f766e;
    --fl-accent:       #2dd4bf;
    --fl-nfe:   #2563eb;
    --fl-nfce:  #7c3aed;
    --fl-nfse:  #059669;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #ffffff;
    color: #0f172a;
}

/* ---------------------------------------------------------------
   HERO
--------------------------------------------------------------- */
.hero-flags-docs {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #134e4a 100%);
    position: relative;
    overflow: hidden;
}

.hero-flags-docs::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero-flags-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-flags-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-flags-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight-primary   { color: #99f6e4; }
.highlight-secondary { color: #ccfbf1; }

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 3rem;
}

.hero-cta            { margin-top: 2.5rem; text-align: center; }
.hero-cta-benefits   { margin-top: 1rem; font-size: 0.9rem; color: rgba(255,255,255,.9); }
.hero-cta-benefits .check { color: #2dd4bf; margin-right: 0.5rem; }

.btn-green {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    color: #fff;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.35);
}
.btn-green:hover {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    transform: translateY(-1px);
    box-shadow: 0 12px 34px rgba(13, 148, 136, 0.4);
}
.btn-white {
    background: #fff;
    color: #0f766e;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255,255,255,.15);
}
.btn-white:hover { background: #f0fdfa; transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ---------------------------------------------------------------
   HERO VISUAL
--------------------------------------------------------------- */
.hero-flags-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-flags-container {
    position: relative;
    width: 100%;
    max-width: 540px;
}

/* MOCKUP */
.flags-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.1);
}

.mockup-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-controls { display: flex; gap: 0.5rem; }
.control { width: 12px; height: 12px; border-radius: 50%; }
.control.red    { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green  { background: #27ca3f; }

.mockup-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mockup-content {
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Barra finalidade */
.fl-finalidade {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.73rem;
    flex-wrap: wrap;
}

.fl-fin-label {
    font-weight: 700;
    color: #374151;
    margin-right: 0.25rem;
}

.fl-fin-tag {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.fl-fin-tag--active {
    background: #ccfbf1;
    color: #0f766e;
    border-color: #99f6e4;
}

.fl-fin-tag--dev {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

/* Abas de flags */
.fl-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.fl-tab {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    white-space: nowrap;
}

.fl-tab strong { font-weight: 800; }

.fl-tab--active {
    background: #ccfbf1;
    color: #0f766e;
    border-color: #5eead4;
}

.fl-tab--warn {
    background: #fef9c3;
    color: #a16207;
    border-color: #fde047;
}

/* Grade de notas */
.fl-grid {
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.fl-grid-header {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    padding: 0.45rem 0.75rem;
    background: #f1f5f9;
    font-size: 0.67rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
}

.fl-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    gap: 0.5rem;
}

.fl-row:last-child { border-bottom: none; }

.fl-actions {
    display: flex;
    gap: 0.4rem;
}

.fl-act {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.fl-act--doc { background: #eff6ff; color: #2563eb; }
.fl-act--dl  { background: #f0fdf4; color: #16a34a; }
.fl-act--msg { background: #fffbeb; color: #d97706; }

.fl-flags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    align-items: center;
}

.fl-flag {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: default;
}

.fl-flag--difal  { background: #fef9c3; border-color: #fde047; font-size: 0.7rem; font-weight: 800; color: #a16207; }
.fl-flag--pct    { background: #f0fdf4; border-color: #86efac; font-size: 0.7rem; font-weight: 800; color: #15803d; }
.fl-flag--transp { background: #eff6ff; border-color: #93c5fd; }

/* Floating Elements */
.floating-element {
    position: absolute;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #212529;
    animation: float 3s ease-in-out infinite;
}

.elem-1 { top: 5%;    right: -12%; animation-delay: 0s; }
.elem-2 { bottom: 35%; left: -15%; animation-delay: 1s; }
.elem-3 { bottom: 5%;  right: -10%; animation-delay: 2s; }

.floating-element i { color: #0d9488; font-size: 1rem; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@media (max-width: 992px) {
    .hero-flags-layout   { grid-template-columns: 1fr; gap: 3rem; }
    .hero-flags-content  { text-align: center; margin: 0 auto; }
    .hero-flags-content h1 { font-size: 2rem; }
    .floating-element    { display: none; }
}

@media (max-width: 576px) {
    .hero-flags-docs     { padding: 5rem 0 4rem; }
    .hero-flags-content h1 { font-size: 1.75rem; }
    .hero-description    { font-size: 1rem; }
    .mockup-content      { padding: 0.9rem; }
}

/* ---------------------------------------------------------------
   INTRODUÇÃO
--------------------------------------------------------------- */
#introducao {
    position: relative;
    overflow: hidden;
}

#introducao::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/background/fundo.png') no-repeat center left;
    background-size: 20%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

#introducao .container { position: relative; z-index: 1; }

@media (max-width: 768px) { #introducao::before { display: none; } }

/* ---------------------------------------------------------------
   SEÇÕES LP
--------------------------------------------------------------- */
.lp-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: #fff;
}

.lp-section--alt      { background: #f8fafc; }

.lp-section--gradient {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lp-section--gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(13,148,136,.35), transparent 55%),
                radial-gradient(circle at 80% 40%, rgba(6,182,212,.2), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.lp-section__narrow     { max-width: 860px; margin-inline: auto; }
.lp-section__header     { text-align: center; margin-bottom: 3rem; }
.lp-section__header--light { color: #fff; }

.lp-section__eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--fl-primary);
    background: rgba(13,148,136,.1);
    padding: 0.35rem 1rem;
    border-radius: 999px;
}

.lp-section--gradient .lp-section__eyebrow {
    background: rgba(45,212,191,.2);
    color: #5eead4;
}

.lp-section__title {
    margin-top: 1rem;
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1e293b;
}

.lp-section--gradient .lp-section__title { color: #fff; }

.lp-section__subtitle {
    margin-top: 0.75rem;
    color: #4b5563;
    font-size: 1.25rem;
    line-height: 1.6;
}

.lp-section--gradient .lp-section__subtitle { color: rgba(255,255,255,.82); }

.lp-article p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
}

.lp-article h2 {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

/* ---------------------------------------------------------------
   STEPS
--------------------------------------------------------------- */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.lp-step {
    position: relative;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15,23,42,.08);
    border: 1px solid rgba(148,163,184,.18);
    text-align: center;
    transition: all .3s ease;
}

.lp-step:hover { transform: translateY(-5px); box-shadow: 0 25px 55px rgba(15,23,42,.12); }

.lp-step__number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--fl-accent), var(--fl-primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(13,148,136,.35);
}

.lp-step__icon {
    width: 80px; height: 80px;
    margin: 1rem auto 1.5rem;
    background: linear-gradient(135deg, rgba(13,148,136,.1), rgba(45,212,191,.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--fl-primary);
}

.lp-step h3 { font-size: 1.3rem; margin-bottom: 1rem; color: #1e293b; font-weight: 700; }
.lp-step p  { color: #4b5563; line-height: 1.7; font-size: 1rem; }

@media (max-width: 768px) {
    .lp-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .lp-step  { padding: 2rem 1.5rem; }
}

/* ---------------------------------------------------------------
   BENEFITS
--------------------------------------------------------------- */
.lp-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.lp-benefit {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,.18);
    background: #fff;
    box-shadow: 0 18px 35px rgba(15,23,42,.06);
    text-align: center;
    transition: all .3s ease;
}

.lp-benefit:hover { transform: translateY(-5px); box-shadow: 0 25px 55px rgba(15,23,42,.12); }

.lp-benefit__icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(13,148,136,.1), rgba(45,212,191,.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--fl-primary);
}

.lp-benefit h3 { font-size: 1.3rem; margin-bottom: 1rem; color: #1e293b; font-weight: 700; }
.lp-benefit p  { color: #4b5563; line-height: 1.7; font-size: 1rem; }

@media (max-width: 768px) {
    .lp-benefits { grid-template-columns: 1fr; gap: 1.5rem; }
    .lp-benefit  { padding: 2rem 1.5rem; }
}

/* ---------------------------------------------------------------
   CARDS POR DOCUMENTO
--------------------------------------------------------------- */
.fl-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.fl-doc-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,.2);
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
    overflow: hidden;
    transition: all .3s ease;
}

.fl-doc-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(15,23,42,.11); }

.fl-doc-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: white;
}

.fl-doc-card__header--nfe  { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.fl-doc-card__header--nfce { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.fl-doc-card__header--nfse { background: linear-gradient(135deg, #059669, #047857); }

.fl-doc-card__icon {
    width: 46px; height: 46px;
    background: rgba(255,255,255,.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.fl-doc-card__label {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
}

.fl-doc-card__name {
    font-size: 0.78rem;
    opacity: 0.88;
    margin-top: 0.2rem;
}

.fl-doc-card__list {
    list-style: none;
    padding: 1.25rem 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fl-doc-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.fl-doc-card__list li i {
    color: var(--fl-primary);
    font-size: 0.7rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .fl-doc-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   FEATURE GRID
--------------------------------------------------------------- */
.lp-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
}

.lp-feature {
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 1.9rem;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 25px 40px rgba(15,23,42,.3);
    transition: all .3s ease;
}

.lp-feature:hover { transform: translateY(-3px); box-shadow: 0 30px 50px rgba(15,23,42,.4); }

.lp-feature__icon {
    width: 60px; height: 60px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(13,148,136,.25), rgba(45,212,191,.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #5eead4;
}

.lp-feature h3 { font-size: 1.3rem; margin-bottom: .75rem; color: #fff; }
.lp-feature p  { color: rgba(226,232,240,.92); line-height: 1.65; }

@media (max-width: 768px) {
    .lp-feature-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .lp-feature      { padding: 1.5rem; text-align: center; }
    .lp-feature__icon { width: 50px; height: 50px; font-size: 1.3rem; margin: 0 auto 1.2rem; }
}

/* ---------------------------------------------------------------
   FAQ
--------------------------------------------------------------- */
.faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15,23,42,.04);
    transition: box-shadow .3s ease;
}

.faq-item:hover { box-shadow: 0 8px 25px rgba(15,23,42,.08); }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background .2s;
}

.faq-question:hover { background: #f0fdfa; }

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--fl-primary);
    font-size: 0.9rem;
    transition: transform .3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid #ccfbf1;
}

.faq-item.active .faq-answer { display: block; }

.faq-answer p {
    font-size: 0.975rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .faq-question    { padding: 1rem 1.25rem; }
    .faq-answer      { padding: 0 1.25rem 1rem; }
    .faq-question h3 { font-size: .975rem; }
    .lp-section__title { font-size: 2rem; }
    .lp-section__subtitle { font-size: 1.05rem; }
    .lp-article h2     { font-size: 2rem; }
}
