/* ==========================================================
   Leeve NFS-e - página /emissor-nfse/
   Base comum das landing pages em ../css/lp.css; abas, janela e cursor em ../css/demos.css.
   Aqui: simulação da emissão (js/nfse-demo.js) e blocos próprios da página.
   ========================================================== */

/* ---------- Simulação: janela da emissão ---------- */
/* Base 820x520 (420x760 no celular), escalada pelo script como a do PDV. */
.nfd-window {
    font-size: 12px;
}

.nfd-titlebar-tag {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--d-blue-soft);
    color: var(--d-blue);
    font-size: 11px;
    font-weight: 650;
}

.nfd-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    height: calc(100% - 34px);
    padding: 18px 22px;
    background: #F5F7FA;
}

.nfd-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

/* Passos */
.nfd-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.nfd-stepper li {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.nfd-stepper li:last-child {
    flex: none;
}

.nfd-stepper-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--d-muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
}

.nfd-stepper-btn:not(:disabled) {
    cursor: pointer;
}

.nfd-stepper-num {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E9EEF5;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 700;
    transition: background .25s, color .25s, box-shadow .25s;
}

.nfd-stepper-num svg {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

.nfd-stepper li.is-active .nfd-stepper-num {
    background: var(--d-blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(29, 108, 242, .14);
}

.nfd-stepper li.is-active .nfd-stepper-txt {
    color: var(--d-ink);
}

.nfd-stepper li.is-done .nfd-stepper-num {
    background: var(--d-green);
    color: #fff;
}

.nfd-stepper-line {
    flex: 1;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--d-line);
}

.nfd-stepper-line b {
    display: block;
    width: 0;
    height: 100%;
    background: var(--d-green);
    transition: width .45s ease;
}

.nfd-stepper li.is-done .nfd-stepper-line b {
    width: 100%;
}

/* Telas de cada passo */
.nfd-panes {
    position: relative;
    flex: 1;
    min-height: 0;
}

.nfd-pane {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(14px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

.nfd-pane.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease .05s, transform .25s ease .05s, visibility 0s;
}

/* Emitindo e autorizada: conteúdo centralizado na altura (telas curtas) */
.nfd-pane[data-pane="emit"],
.nfd-pane[data-pane="done"] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 28px;
}

.nfd-pane[data-pane="done"] .nfd-outra {
    align-self: flex-start;
}

.nfd-pane h3 {
    margin: 0;
    color: var(--d-ink);
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.nfd-sub {
    margin: 3px 0 12px;
    color: var(--d-muted);
    font-size: 12px;
}

.nfd-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid var(--d-line);
    border-radius: 10px;
    background: #fff;
    color: #94A3B8;
}

.nfd-search svg {
    width: 15px;
    height: 15px;
}

.nfd-list {
    display: grid;
    gap: 8px;
}

.nfd-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--d-line);
    border-radius: 11px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}

.nfd-row.is-pressed,
.nfd-pay.is-pressed,
.nfd-emitir.is-pressed,
.nfd-share > .is-pressed {
    transform: scale(.97);
}

.nfd-row.is-selected {
    border-color: var(--d-blue);
    background: var(--d-blue-soft);
    box-shadow: 0 0 0 3px rgba(29, 108, 242, .12);
}

.nfd-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.nfd-row-txt {
    display: grid;
    flex: 1;
    min-width: 0;
}

.nfd-row-txt strong,
.nfd-row-txt small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nfd-row-txt strong {
    color: var(--d-ink);
    font-size: 13px;
    font-weight: 650;
}

.nfd-row-txt small {
    color: var(--d-muted);
    font-size: 11px;
}

.nfd-radio {
    flex: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #CBD5E1;
    border-radius: 50%;
}

.nfd-row.is-selected .nfd-radio {
    border-color: var(--d-blue);
    background: var(--d-blue);
    box-shadow: inset 0 0 0 3px #fff;
}

.nfd-row-valor {
    flex: none;
    color: var(--d-ink);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Passo 3: pagamento, resumo e emitir */
.nfd-pays {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.nfd-pay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 9px 4px 8px;
    border: 1px solid var(--d-line);
    border-radius: 10px;
    background: #fff;
    color: var(--d-text);
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}

.nfd-pay.is-selected {
    border-color: var(--d-blue);
    background: var(--d-blue-soft);
    color: var(--d-ink);
    box-shadow: 0 0 0 3px rgba(29, 108, 242, .12);
}

.nfd-pay-ico,
.nfd-pay-ico img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nfd-pay-ico-svg {
    color: var(--d-blue);
}

.nfd-pay-ico-svg svg {
    width: 20px;
    height: 20px;
}

.nfd-resumo {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--d-line);
    border-radius: 10px;
    background: #fff;
}

.nfd-resumo div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.nfd-resumo dt {
    color: var(--d-muted);
}

.nfd-resumo dd {
    margin: 0;
    color: var(--d-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.nfd-resumo .nfd-resumo-total {
    margin-top: 2px;
    padding-top: 7px;
    border-top: 1px dashed var(--d-line);
}

.nfd-resumo-total dt {
    color: var(--d-ink);
    font-weight: 700;
}

.nfd-resumo-total dd {
    font-size: 15px;
    font-weight: 800;
}

.nfd-emitir {
    display: grid;
    place-items: center;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--d-blue);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 20px -10px rgba(29, 108, 242, .8);
    transition: transform .15s, background .2s;
}

.nfd-emitir-nota {
    margin: 6px 0 0;
    color: var(--d-muted);
    font-size: 11px;
    text-align: center;
}

/* Emitindo: as 4 etapas do app */
.nfd-etapas {
    display: grid;
    gap: 13px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.nfd-etapas li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 500;
    transition: color .25s;
}

.nfd-etapa-ico {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #EEF2F7;
    transition: background .25s;
}

.nfd-etapas li.is-atual,
.nfd-etapas li.is-feito {
    color: var(--d-ink);
    font-weight: 650;
}

.nfd-etapas li.is-atual .nfd-etapa-ico {
    background: var(--d-blue-soft);
}

.nfd-etapas li.is-atual .nfd-etapa-ico::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid var(--d-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: nfd-gira .7s linear infinite;
}

.nfd-etapas li.is-feito .nfd-etapa-ico {
    background: var(--d-green) no-repeat center / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

@keyframes nfd-gira {
    to {
        transform: rotate(360deg);
    }
}

/* Autorizada */
.nfd-ok {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--d-green-soft);
    color: var(--d-green);
}

.nfd-ok svg {
    width: 22px;
    height: 22px;
    stroke-width: 3;
}

.nfd-pane[data-pane="done"].is-active .nfd-ok {
    animation: nfd-pop .45s cubic-bezier(.2, 1.4, .4, 1);
}

@keyframes nfd-pop {
    from {
        transform: scale(.4);
        opacity: 0;
    }
}

.nfd-share {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.nfd-share-zap,
.nfd-share-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    border-radius: 10px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 650;
    transition: transform .15s;
}

.nfd-share-zap {
    border: 0;
    background: #1FAA59;
    color: #fff;
}

.nfd-share-pdf {
    border: 1px solid var(--d-line);
    background: #fff;
    color: var(--d-ink);
}

.nfd-share svg {
    width: 16px;
    height: 16px;
}

.nfd-outra {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--d-blue);
    font: inherit;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
}

.nfd-outra svg {
    width: 15px;
    height: 15px;
}

/* ---------- A nota ao vivo (papel) ---------- */
.nfd-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.nfd-side-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 8px;
    color: var(--d-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.nfd-side-label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--d-green);
    box-shadow: 0 0 0 3px rgba(3, 191, 101, .18);
}

.nfd-papel {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 16px 16px 14px;
    border: 1px solid #E5EAF1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 34px -18px rgba(15, 23, 42, .28);
    color: var(--d-muted);
    font-size: 11px;
}

.nfd-papel small {
    display: block;
    color: #64748B;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nfd-papel-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid #EDF0F5;
}

/* Logo oficial da NFS-e no cabeçalho da nota, como no DANFSe do Emissor Nacional */
.nfd-papel-logo {
    flex: none;
    width: auto;
    height: 26px;
    margin-top: 1px;
}

.nfd-papel-emp {
    display: grid;
    min-width: 0;
}

.nfd-papel-emp strong {
    overflow: hidden;
    color: var(--d-ink);
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nfd-papel-emp span {
    font-size: 10px;
}

.nfd-papel-num {
    margin-left: auto;
    text-align: right;
}

.nfd-papel-num b {
    display: block;
    color: var(--d-ink);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.nfd-papel-sec {
    display: grid;
    gap: 2px;
    margin: 0 -6px;
    padding: 10px 6px;
    border-bottom: 1px solid #EDF0F5;
}

.nfd-papel-sec strong {
    min-height: 16px;
    overflow: hidden;
    color: var(--d-ink);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nfd-papel-sec span {
    min-height: 14px;
    overflow: hidden;
    font-size: 10.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nfd-traco {
    display: inline-block;
    height: 8px;
    border-radius: 3px;
    background: #EEF1F6;
    vertical-align: middle;
}

.nfd-papel-vals {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 9px 0 4px;
}

.nfd-papel-vals div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 -6px;
    padding: 0 6px;
    border-radius: 5px;
}

.nfd-papel-vals dd {
    margin: 0;
    color: var(--d-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.nfd-papel-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 6px -6px 0;
    padding: 9px 6px 2px;
    border-top: 1.5px solid var(--d-ink);
}

.nfd-papel-total span {
    color: var(--d-ink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nfd-papel-total b {
    color: var(--d-ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.nfd-papel-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    color: #98A2B3;
    font-size: 9px;
    line-height: 1.45;
    white-space: pre-line;
}

.nfd-papel-qr {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 3px;
    background:
        repeating-linear-gradient(90deg, #1F2A44 0 3px, transparent 3px 6px),
        repeating-linear-gradient(0deg, transparent 0 4px, #fff 4px 6px);
    background-blend-mode: normal;
    opacity: .16;
    transition: opacity .4s;
}

.nfd-papel.is-autorizada .nfd-papel-qr {
    opacity: .55;
}

/* Campo que mudou pisca em amarelo, como no app */
.is-flash {
    animation: nfd-flash 1s ease-out;
}

@keyframes nfd-flash {
    0%,
    35% {
        background-color: #FEF3C7;
    }

    100% {
        background-color: transparent;
    }
}

/* Carimbo e feixe da emissão */
.nfd-carimbo {
    position: absolute;
    z-index: 2;
    top: 62px;
    right: 14px;
    padding: 5px 10px;
    border: 2px solid #059669;
    border-radius: 6px;
    background: rgba(255, 255, 255, .88);
    color: #059669;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: 0;
    transform: rotate(-8deg) scale(1.7);
    pointer-events: none;
}

.nfd-papel.is-autorizada .nfd-carimbo {
    opacity: 1;
    transform: rotate(-8deg) scale(1);
    transition: transform .4s cubic-bezier(.2, 1.4, .4, 1), opacity .2s;
}

.nfd-feixe {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: -30%;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(29, 108, 242, .14), transparent);
    opacity: 0;
    pointer-events: none;
}

.nfd-papel.is-emitindo .nfd-feixe {
    opacity: 1;
    animation: nfd-feixe 1.3s linear infinite;
}

@keyframes nfd-feixe {
    to {
        top: 100%;
    }
}

/* Aviso (WhatsApp, PDF) */
.nfd-toast span {
    display: grid;
    line-height: 1.35;
}

/* ---------- Celular: uma coluna, nota embaixo ---------- */
.nfd-window.is-compact .nfd-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 362px;
    gap: 12px;
    padding: 14px 16px;
}

.nfd-window.is-compact .nfd-stepper {
    margin-bottom: 12px;
}

.nfd-window.is-compact .nfd-papel {
    padding: 14px 14px 10px;
}

/* Passo 3 no celular: sem a frase de apoio, o botão Emitir cabe inteiro */
.nfd-window.is-compact .nfd-emitir-nota {
    display: none;
}

.nfd-window.is-compact .nfd-resumo {
    margin-bottom: 10px;
}

.nfd-window.is-compact .nfd-papel-foot,
.nfd-window.is-compact .nfd-papel-vals div:nth-child(3) {
    display: none;
}

.nfd-window.is-compact .nfd-toast {
    bottom: 392px;
}

/* ---------- Interativo ---------- */
.nfd-interactive {
    margin: 0 auto;
}

.nfd-interactive > .pdvd-tabs {
    display: flex;
    width: fit-content;
    margin: 0 auto 18px;
}

.nfd-interactive .nfd-pane.is-active {
    pointer-events: auto;
}

.nfd-interactive .nfd-row,
.nfd-interactive .nfd-pay,
.nfd-interactive .nfd-emitir,
.nfd-interactive .nfd-share > * {
    cursor: pointer;
}

.nfd-interactive .nfd-row:hover {
    border-color: #BFD3FB;
}

.nfd-interactive .nfd-emitir:hover {
    background: #1A62E0;
}

.nfd-interactive :focus-visible {
    outline: 2px solid var(--d-blue);
    outline-offset: 2px;
}

.nfd .is-next {
    animation: pdvd-next 1.4s ease-in-out infinite;
}

.nfd-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin-top: 18px;
    animation: nfd-pop .4s ease;
}

.nfd-cta[hidden] {
    display: none;
}

.nfd-cta p {
    margin: 0;
    color: var(--d-ink);
    font-size: 15px;
    font-weight: 600;
}

.nfd-cta-btn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--d-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 10px 22px -12px rgba(29, 108, 242, .9);
}

.nfd-cta-btn:hover {
    background: #1A62E0;
}

/* Espaço reservado antes do JS montar a simulação do topo (evita a página pular) */
[data-nfse-demo]:not([data-nfse-demo="interactive"]):empty {
    aspect-ratio: 820 / 520;
}

@media (max-width: 560px) {
    [data-nfse-demo]:not([data-nfse-demo="interactive"]):empty {
        aspect-ratio: 420 / 760;
    }
}


/* ==========================================================
   Página
   ========================================================== */

/* Topo */
.nf-hero .hero-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 40px;
}

.nf-hero .hero-copy h1 {
    max-width: 11ch;
}

.nf-hero .hero-stage {
    padding: 48px 0 48px 5%;
}

.nf-hero .hero-stage::before {
    left: 0;
}

.nf-hero-visual {
    position: relative;
    width: 100%;
    max-width: 720px;
}

.nf-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 28px 0 32px;
    list-style: none;
}

.nf-hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: .95rem;
    font-weight: 500;
}

.nf-hero-points li::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E6F9EF no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303BF65' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Cartões ao redor da janela: cronômetro da nota e mensagem no WhatsApp */
.nf-hero .hero-card-status {
    top: -34px;
    right: auto;
    left: -34px;
}

.nf-hero .hero-card-done {
    top: auto;
    bottom: -26px;
    left: auto;
    right: -14px;
    max-width: 290px;
    white-space: normal;
}

.nf-hero .hero-card-done .hero-card-icon {
    background: #1FAA59;
    color: #fff;
}

.nf-hero .hero-card-done .hero-card-text small {
    font-variant-numeric: normal;
}

/* Seção do simulador */
.nf-try .split-head {
    margin-bottom: 32px;
}

.nf-try-stage {
    position: relative;
}

/* Vídeo vertical do app (arquivo próprio, sem YouTube) */
.vvideo video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Depois da nota: mini telas do app */
.nf-after-head {
    max-width: 620px;
    margin-bottom: 40px;
}

.nf-after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nf-mini {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.nf-mini-ui {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 196px;
    padding: 28px;
    background: var(--stage);
}

.nf-mini-copy {
    padding: 22px 26px 26px;
}

.nf-mini-copy h3 {
    font-size: 1.15rem;
}

.nf-mini-copy p {
    margin-top: 6px;
    color: var(--muted);
}

.nf-ui-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid #DCE5F5;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: .88rem;
    box-shadow: 0 10px 24px -18px rgba(11, 18, 32, .35);
}

.nf-ui-card small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
}

.nf-ui-card b {
    margin-left: auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nf-ui-tag {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 650;
    white-space: nowrap;
}

.nf-ui-tag-ok {
    background: #E6F9EF;
    color: #027A42;
}

.nf-ui-tag-warn {
    background: #FEF3C7;
    color: #92400E;
}

.nf-ui-tag-info {
    background: var(--blue-50);
    color: var(--blue);
}

.nf-ui-tag-bad {
    background: #FDECEC;
    color: #B42318;
}

/* Mensagem de WhatsApp */
.nf-zap {
    justify-self: end;
    max-width: 330px;
    padding: 10px 12px 8px;
    border-radius: 14px 14px 4px 14px;
    background: #DCF8C6;
    color: #14361F;
    font-size: .88rem;
    line-height: 1.45;
    box-shadow: 0 10px 24px -18px rgba(11, 18, 32, .35);
}

.nf-zap a,
.nf-zap span.nf-zap-link {
    display: block;
    color: #0B6E3A;
    font-weight: 600;
    word-break: break-all;
}

.nf-zap time {
    display: block;
    margin-top: 2px;
    color: #4C7A5C;
    font-size: .72rem;
    text-align: right;
}

.nf-zap-file {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 330px;
    padding: 9px 12px;
    border-radius: 14px 14px 4px 14px;
    background: #DCF8C6;
    color: #14361F;
    font-size: .84rem;
    font-weight: 600;
}

.nf-zap-file i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 34px;
    border-radius: 5px;
    background: #E5484D;
    color: #fff;
    font-size: .62rem;
    font-style: normal;
    font-weight: 800;
}

/* Recusa explicada */
.nf-ui-alert {
    padding: 14px 16px;
    border: 1px solid #F5C2C2;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-size: .88rem;
    box-shadow: 0 10px 24px -18px rgba(11, 18, 32, .35);
}

.nf-ui-alert strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--ink);
}

.nf-ui-alert-btn {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: .8rem;
    font-weight: 650;
}

/* Planos */
.nf-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}

.nf-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.nf-plan-featured {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue), 0 28px 50px -30px rgba(29, 108, 242, .55);
}

.nf-plan-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: .78rem;
    font-weight: 650;
}

.nf-plan h3 {
    font-size: 1.1rem;
}

.nf-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 14px 0 4px;
    color: var(--ink);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
}

.nf-plan-price span {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.nf-plan-price small {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: 0;
}

.nf-plan-limit {
    color: var(--muted);
    font-size: .95rem;
}

.nf-plan .checklist {
    margin: 22px 0 26px;
}

.nf-plan .btn {
    margin-top: auto;
}

.nf-plans-note {
    margin-top: 24px;
    color: var(--muted);
    text-align: center;
}

.nf-plans-note strong {
    color: var(--ink);
}

@media (max-width: 1080px) {
    .nf-hero .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nf-hero .hero-copy h1 {
        max-width: 14ch;
        margin-left: auto;
        margin-right: auto;
    }

    .nf-hero-points {
        justify-content: center;
    }

    .nf-hero .hero-stage {
        padding: 48px 0;
    }

    .nf-hero-visual {
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .nf-after,
    .nf-plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .nf-plans {
        max-width: 460px;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .nf-mini-ui {
        min-height: 0;
        padding: 22px 18px;
    }

    .nf-mini-copy {
        padding: 18px 20px 22px;
    }

    .nf-plan {
        padding: 26px 22px;
    }
}

.nf-nowrap {
    white-space: nowrap;
}

/* Selo: emite pelo padrão nacional da NFS-e (logo oficial) */
.nf-seal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 10px 16px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: .92rem;
    line-height: 1.3;
}

.nf-seal img {
    flex: none;
    width: auto;
    height: 30px;
}

.nf-seal strong {
    display: block;
    color: var(--ink);
    font-weight: 650;
}

.nf-portal-note {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nf-portal-note img {
    flex: none;
    width: auto;
    height: 26px;
}

/* Título do topo em duas linhas inteiras */
.nf-hero h1 span {
    display: inline-block;
}

.nf-hero .hero-copy h1 {
    max-width: none;
}

/* Linhas das mini telas: o texto encolhe com reticências, valor e etiqueta não quebram */
.nf-ui-card > span:first-child {
    flex: 1;
    min-width: 0;
}

.nf-ui-card strong,
.nf-ui-card > span:first-child small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nf-ui-card b {
    margin-left: 0;
}

/* Aluguel de imóveis: texto + linha do tempo das datas oficiais */
.nf-rent {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 56px;
    padding: 56px;
    border-radius: var(--radius-lg);
    background: var(--stage);
}

.nf-rent-copy h2 {
    max-width: 16ch;
}

.nf-rent-copy > p:not(.eyebrow):not(.nf-rent-fonte) {
    max-width: 34rem;
    margin: 16px 0 28px;
    color: var(--text);
    font-size: 1.08rem;
}

.nf-rent-fonte {
    max-width: 34rem;
    margin-top: 18px;
    color: var(--muted);
    font-size: .85rem;
}

.nf-rent-time {
    position: relative;
    display: grid;
    gap: 14px;
    list-style: none;
}

.nf-rent-time::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 21px;
    width: 2px;
    background: #C9D8F8;
}

.nf-rent-time li {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 16px 18px 16px 56px;
    border: 1px solid #D6E2FA;
    border-radius: 16px;
    background: #fff;
}

.nf-rent-time li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 14px;
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 2px var(--blue);
}

.nf-rent-date {
    color: var(--blue);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.nf-rent-time strong {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 650;
}

.nf-rent-time small {
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 900px) {
    .nf-rent {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding: 40px 28px;
    }
}

@media (max-width: 640px) {
    .nf-rent-section .container {
        padding: 0 12px;
    }

    .nf-rent {
        padding: 32px 20px;
    }
}

/* Espaço do simulador interativo antes de ser montado (evita a página pular) */
[data-nfse-demo="interactive"]:empty {
    max-width: 902px;
    aspect-ratio: 820 / 590;
}

@media (max-width: 560px) {
    [data-nfse-demo="interactive"]:empty {
        aspect-ratio: 420 / 830;
    }
}
