:root {
    --navy: #122740;
    --navy-deep: #0B1A2C;
    --navy-soft: #1B3554;
    --orange: #E95116;
    --magenta: #CC3366;
    --white: #FFFFFF;
    --light: #F3F3F3;
    --ink: #333333;
    --line: rgba(255, 255, 255, .14);
    --muted: rgba(255, 255, 255, .80);
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --sans: 'Archivo', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--sans);
    background: var(--navy);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

.tex {
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 9px);
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px
}

.hero>*,
.fbox>*,
.rgrid>*,
.grid3>*,
.grid2>* {
    min-width: 0
}

.kicker {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 500;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.04
}

h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.05rem)
}

h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.75rem)
}

h3 {
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -.01em
}

p {
    color: var(--muted)
}

.lead {
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    max-width: 52ch
}

/* ---------- nav ---------- */
nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(11, 26, 44, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center
}

.lockup {
    height: 46px;
    width: auto;
    display: block
}

.lg-o {
    fill: var(--orange)
}

.lg-b {
    fill: var(--white)
}

.logo:hover .lg-o {
    fill: #ff6a2e
}

.lg-o,
.lg-b {
    transition: fill .16s
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--orange);
    color: var(--white);
    border: 0;
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: -.01em;
    padding: 15px 26px;
    border-radius: 2px;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
    background: #f26327;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(233, 81, 22, .32)
}

.btn:active {
    transform: translateY(0)
}

.btn.sm {
    padding: 10px 18px;
    font-size: .82rem
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--white)
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, .06);
    box-shadow: none
}

.btn[disabled] {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px
}

/* ---------- hero ---------- */
header {
    padding: 76px 0 84px;
    position: relative;
    overflow: hidden
}

header::after {
    content: "";
    position: absolute;
    right: -14%;
    top: -24%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(204, 51, 102, .2), transparent 66%);
    pointer-events: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2
}

.hero h1 {
    margin: 18px 0 20px
}

.hero h1 em {
    font-style: normal;
    color: var(--orange)
}

.hero-cta {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin: 30px 0 22px
}

.proof {
    display: flex;
    gap: 10px 24px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.4
}

.proof b {
    color: var(--white);
    font-weight: 600
}

/* ---------- ledger ---------- */
.ledger {
    background: var(--navy-deep);
    border: 1px solid var(--line);
    padding: 26px 24px 22px;
    position: relative;
}

@media(min-width:941px) {
    #liveLedger {
        position: sticky;
        top: 104px
    }
}

.ledger::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--orange);
}

.led-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.led-head span {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted)
}

.led-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    font-size: .86rem
}

.led-row .lbl {
    color: rgba(255, 255, 255, .8);
    font-size: .82rem;
    overflow-wrap: break-word;
    min-width: 0
}

.led-row .fill {
    flex: 1 1 12px;
    border-bottom: 1px dotted rgba(255, 255, 255, .2);
    transform: translateY(-4px);
    min-width: 12px
}

.led-row .val {
    font-family: var(--mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: none
}

.led-row.neg .val {
    color: #FF8A66
}

.led-row.tot {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 11px
}

.led-row.tot .lbl {
    font-weight: 700;
    color: var(--white)
}

.led-row.tot .val {
    font-weight: 600;
    font-size: 1rem
}

.led-row.bottom .val {
    color: var(--orange);
    font-size: 1.28rem;
    font-weight: 600
}

.led-row.bottom .lbl {
    font-weight: 800;
    color: var(--white);
    font-size: .94rem
}

.led-row.dim {
    opacity: .5
}

.led-note {
    font-family: var(--mono);
    font-size: .63rem;
    color: var(--muted);
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    line-height: 1.6;
}

.reveal {
    opacity: 0;
    transform: translateY(6px);
    animation: rise .42s ease forwards
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none
    }
}

/* ---------- sections ---------- */
section {
    padding: 84px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 88px
}

#result {
    scroll-margin-top: 96px
}

.sec-head {
    max-width: 64ch;
    margin-bottom: 46px
}

.sec-head h2 {
    margin: 14px 0 16px
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px
}

.card {
    background: var(--navy-deep);
    border: 1px solid var(--line);
    padding: 28px 24px
}

.card h3 {
    margin-bottom: 9px
}

.card p {
    font-size: .9rem
}

.card .idx {
    font-family: var(--mono);
    font-size: .68rem;
    color: var(--orange);
    letter-spacing: .16em;
    display: block;
    margin-bottom: 14px;
}

.sig {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.sig:last-child {
    border-bottom: 0
}

.sig .q {
    font-family: var(--mono);
    color: var(--magenta);
    font-size: 1.2rem;
    line-height: 1;
    flex: none;
    width: 26px;
    text-align: center;
    font-weight: 600;
}

.sig p {
    font-size: .98rem;
    color: rgba(255, 255, 255, .86);
    line-height: 1.55
}

/* ---------- form ---------- */
#form-sec {
    background: var(--navy-deep)
}

.fbox {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
    align-items: start
}

.fpanel {
    background: var(--navy);
    border: 1px solid var(--line);
    padding: 32px 30px;
    min-height: 452px;
    display: flex;
    flex-direction: column
}

.steps {
    display: flex;
    gap: 5px;
    margin-bottom: 26px
}

.dot {
    height: 3px;
    flex: 1;
    background: rgba(255, 255, 255, .13);
    transition: background .3s
}

.dot.on {
    background: var(--orange)
}

.dot.done {
    background: rgba(255, 75, 3, .45)
}

.qnum {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .2em;
    color: var(--orange);
    text-transform: uppercase
}

.qtitle {
    font-size: 1.38rem;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 11px 0 7px;
    line-height: 1.2
}

.qhelp {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.55
}

.fields {
    flex: 1
}

.field {
    margin-bottom: 17px
}

.field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .9)
}

.field .hint {
    font-family: var(--mono);
    font-size: .66rem;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.55;
    display: block
}

input[type=text],
input[type=email],
input[type=tel],
select {
    width: 100%;
    background: var(--navy-deep);
    border: 1px solid var(--line);
    color: var(--white);
    font-family: var(--mono);
    font-size: .98rem;
    padding: 13px 14px;
    border-radius: 2px;
    transition: border-color .16s;
}

input:focus,
select:focus {
    border-color: var(--orange);
    outline: none
}

input:disabled {
    color: rgba(255, 255, 255, .38);
    cursor: not-allowed;
    background: rgba(255, 255, 255, .03)
}

input::placeholder {
    color: rgba(255, 255, 255, .28)
}

select {
    font-family: var(--sans);
    cursor: pointer
}

select option {
    background: var(--navy-deep)
}

.opts {
    display: grid;
    gap: 9px
}

.opt {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 15px 16px;
    cursor: pointer;
    background: var(--navy-deep);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: border-color .16s, background .16s;
}

.opt:hover {
    border-color: rgba(233, 81, 22, .55)
}

.opt.sel {
    border-color: var(--orange);
    background: rgba(233, 81, 22, .10)
}

.opt .mk {
    width: 15px;
    height: 15px;
    border: 1px solid var(--line);
    border-radius: 50%;
    flex: none;
    margin-top: 3px;
    position: relative;
}

.opt.sel .mk {
    border-color: var(--orange)
}

.opt.sel .mk::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--orange);
    border-radius: 50%
}

.opt b {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 2px
}

.opt span {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.45
}

.nav-row {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line)
}

.back {
    background: none;
    border: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .74rem;
    cursor: pointer;
    padding: 8px 2px;
    letter-spacing: .08em;
}

.back:hover {
    color: var(--white)
}

.spacer {
    flex: 1
}

.skip {
    font-family: var(--mono);
    font-size: .68rem;
    color: var(--muted);
    margin-top: 13px;
    display: block
}

/* ---------- redaction ---------- */
.redact {
    display: inline-block;
    background: var(--navy-soft);
    color: transparent;
    padding: 1px 9px;
    border-radius: 1px;
    position: relative;
    user-select: none;
    font-family: var(--mono);
    letter-spacing: .06em;
}

.redact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 5px);
}

.find {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.find:last-child {
    border-bottom: 0
}

.find .ic {
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 600;
    flex: none;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin-top: 1px;
}

.find.open .ic {
    background: var(--orange);
    color: var(--white)
}

.find.lock .ic {
    background: var(--navy-soft);
    color: var(--muted)
}

.find .tx {
    font-size: .9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88)
}

.find .tx b {
    color: var(--white)
}

.find.lock .tx {
    color: var(--muted)
}

.badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    margin-left: 7px;
    vertical-align: 2px;
}

.badge.al {
    border-color: var(--orange);
    color: var(--orange)
}

/* ---------- result ---------- */
#result {
    display: none
}

.rgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start
}

.bench {
    margin-top: 4px
}

.brow {
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.brow:last-child {
    border-bottom: 0
}

.btop {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 9px
}

.btop .bn {
    font-size: .86rem;
    font-weight: 600
}

.btop .bv {
    font-family: var(--mono);
    font-size: .92rem;
    font-weight: 600
}

.scale {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, .11);
    border-radius: 2px
}

.scale .band {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, .2);
    border-radius: 2px
}

.scale .pin {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 12px;
    background: var(--orange)
}

.scale .med {
    position: absolute;
    top: -3px;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, .5)
}

.slabels {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: .6rem;
    color: var(--muted);
    margin-top: 6px
}

.cta-band {
    margin-top: 30px;
    background: var(--navy);
    border: 1px solid var(--orange);
    padding: 30px 28px;
}

.cta-band h3 {
    font-size: 1.34rem;
    margin-bottom: 11px
}

.cta-band p {
    font-size: .92rem;
    margin-bottom: 20px;
    max-width: 60ch
}

.cnpj-panel {
    max-width: 420px;
    margin-top: 4px
}

.cnpj-panel.hidden {
    display: none
}

.cnpj-panel label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 8px
}

.cnpj-panel input {
    width: 100%;
    background: var(--navy-deep);
    border: 1px solid var(--line);
    color: var(--white);
    font-family: var(--mono);
    font-size: .95rem;
    padding: 12px 14px;
    border-radius: 2px;
}

.cnpj-panel input:focus {
    border-color: var(--orange);
    outline: none
}

.cnpj-panel .hint {
    display: block;
    font-size: .74rem;
    color: var(--muted);
    margin-top: 7px
}

.cnpj-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    flex-wrap: wrap
}

.cnpj-actions a {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer
}

.cnpj-actions a:hover {
    color: var(--white)
}

.disc {
    font-family: var(--mono);
    font-size: .64rem;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 22px
}

footer {
    padding: 44px 0;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .68rem;
    color: var(--muted)
}

.foot-mark {
    height: 26px;
    width: auto;
    flex: none;
    opacity: .9
}

.foot-in {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center
}

@media(max-width:940px) {

    .hero,
    .fbox,
    .rgrid {
        grid-template-columns: 1fr;
        gap: 36px
    }

    .grid3,
    .grid2 {
        grid-template-columns: 1fr
    }

    header {
        padding: 52px 0 60px
    }

    section {
        padding: 60px 0
    }

    .fpanel {
        padding: 26px 20px;
        min-height: unset
    }

    .lockup {
        height: 38px
    }

    .nav-in {
        height: 68px
    }

    .hero-cta {
        flex-direction: column
    }

    .hero-cta .btn {
        width: 100%
    }

    .ledger {
        padding: 22px 16px 18px
    }

    .led-row {
        font-size: .8rem;
        padding: 7px 0;
        align-items: flex-start
    }

    .led-row .lbl {
        font-size: .78rem;
        line-height: 1.35
    }

    .led-row .val {
        font-size: .8rem
    }

    .led-row.bottom .val {
        font-size: 1.05rem
    }

    .led-row.tot .val {
        font-size: .88rem
    }

    .slabels {
        font-size: .55rem;
        gap: 6px
    }

    .slabels span:nth-child(2) {
        display: none
    }

    .card {
        padding: 22px 18px
    }

    .cta-band {
        padding: 24px 18px
    }

    .cta-band .btn {
        width: 100%
    }

    .find .tx {
        font-size: .86rem
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    html {
        scroll-behavior: auto
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}