/* Tema Clean 4 — narrativa desktop orientada pela rolagem */

:root {
    --story-navy: #06245a;
    --story-blue: #0a4aa6;
    --story-cyan: #178de5;
    --story-orange: #ff6a00;
    --story-ink: #071b3f;
    --story-muted: #5f6f86;
    --story-line: #dfe7f2;
    --story-soft: #f5f8fc;
    --story-scroll-progress: 0;
}

@keyframes storyPrimaryCtaPulse {
    0%, 100% {
        border-color: rgba(10,74,166,.34);
        box-shadow: 0 14px 30px rgba(6,36,90,.18), 0 0 0 0 rgba(10,74,166,.20);
    }

    50% {
        border-color: rgba(10,74,166,.68);
        box-shadow: 0 18px 44px rgba(6,36,90,.24), 0 0 0 7px rgba(10,74,166,.14);
    }
}

@keyframes desktopRoleCarousel {
    0%, 16% {
        opacity: 1;
    }

    20%, 96% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes desktopRoleCarouselDot {
    0%, 16% {
        background: #ff6a00;
        transform: scale(1.18);
    }

    20%, 100% {
        background: rgba(255,255,255,.54);
        transform: scale(1);
    }
}

@media (min-width: 768px) {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 86px;
    }

    body {
        overflow-x: clip;
        background: #fff;
        color: var(--story-ink);
    }

    .scroll-story-section,
    #topo,
    #necessidade,
    #clientes,
    #orcamento {
        scroll-margin-top: 84px;
    }

    .story-reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 700ms ease var(--story-delay, 0ms), transform 700ms cubic-bezier(.2,.8,.2,1) var(--story-delay, 0ms);
    }

    .story-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .story-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--story-orange);
        font-size: .75rem;
        font-weight: 900;
        letter-spacing: .11em;
        text-transform: uppercase;
    }

    .story-eyebrow::before {
        width: 28px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        content: "";
    }

    /* Barra de leitura e panorama lateral */
    body::before {
        position: fixed;
        z-index: 10000;
        top: 0;
        left: 0;
        width: calc(var(--story-scroll-progress) * 100%);
        height: 4px;
        background: linear-gradient(90deg, var(--story-orange), #ff9a3c);
        box-shadow: 0 2px 12px rgba(255,106,0,.35);
        content: "";
        pointer-events: none;
    }

    .desktop-scroll-map {
        position: fixed;
        z-index: 900;
        top: 50%;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 9px;
        border: 1px solid rgba(10,74,166,.12);
        border-radius: 18px;
        background: rgba(255,255,255,.88);
        box-shadow: 0 14px 40px rgba(7,27,63,.12);
        opacity: 0;
        transform: translate(18px,-50%);
        transition: opacity .3s ease, transform .3s ease;
        pointer-events: none;
        backdrop-filter: blur(14px);
    }

    .desktop-scroll-map.is-visible {
        opacity: 1;
        transform: translate(0,-50%);
        pointer-events: auto;
    }

    .desktop-scroll-map a {
        display: grid;
        grid-template-columns: 28px minmax(0,0fr);
        align-items: center;
        min-height: 38px;
        overflow: hidden;
        border-radius: 11px;
        color: #718096;
        text-decoration: none;
        transition: grid-template-columns .25s ease, color .25s ease, background .25s ease;
    }

    .desktop-scroll-map a:hover,
    .desktop-scroll-map a:focus-visible {
        grid-template-columns: 28px minmax(0,78px);
        background: #edf4ff;
        color: var(--story-blue);
        outline: none;
    }

    .desktop-scroll-map a.is-active {
        grid-template-columns: 28px minmax(0,0fr);
        background: var(--story-navy);
        color: #fff;
    }

    .desktop-scroll-map a.is-active:hover,
    .desktop-scroll-map a.is-active:focus-visible {
        grid-template-columns: 28px minmax(0,78px);
    }

    .desktop-scroll-map span {
        display: grid;
        place-items: center;
        font-size: .69rem;
        font-weight: 900;
    }

    .desktop-scroll-map b {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        font-size: .72rem;
    }

    @media (pointer: coarse) {
        .desktop-scroll-map {
            right: max(8px, env(safe-area-inset-right));
            gap: 7px;
            padding: 10px;
        }

        .desktop-scroll-map a,
        .desktop-scroll-map a.is-active {
            grid-template-columns: 34px minmax(0,76px);
            min-height: 46px;
        }

        .desktop-scroll-map span {
            font-size: .75rem;
        }

        .desktop-scroll-map b {
            font-size: .76rem;
        }
    }

    /* Cabeçalho mais leve, alinhado ao novo panorama */
    .navbar {
        border-bottom: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .navbar .nav-link {
        color: var(--story-ink);
        font-weight: 700;
    }

    /* Hero claro e editorial */
    .desktop-story-active .hero {
        position: relative;
        z-index: 1;
        display: block;
        min-height: 790px;
        overflow: visible;
        padding: 118px 0 0;
        background:
            radial-gradient(circle at 20% 20%, rgba(23,141,229,.08), transparent 28%),
            #fff;
        color: var(--story-ink);
    }

    .desktop-story-active .hero::before {
        position: absolute;
        top: 102px;
        right: 48%;
        width: 420px;
        height: 420px;
        border: 1px solid rgba(255,106,0,.34);
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-radius: 50%;
        content: "";
        pointer-events: none;
    }

    .desktop-story-active .hero::after {
        position: absolute;
        z-index: 1;
        inset: 0;
        width: auto;
        height: auto;
        border: 0;
        border-radius: 0;
        background:
            linear-gradient(90deg, rgba(255,255,255,.89) 0%, rgba(255,255,255,.82) 27%, rgba(255,255,255,.64) 45%, rgba(255,255,255,.32) 63%, rgba(255,255,255,.1) 82%),
            linear-gradient(180deg, rgba(247,249,253,.03) 43%, rgba(247,249,253,.7) 82%, #f7f9fd 100%);
        content: "";
        opacity: 1;
        pointer-events: none;
    }

    .desktop-story-active .hero .hero-carousel {
        inset: 0;
        width: auto;
        height: auto;
        overflow: hidden;
        border-radius: 0;
        background: #f7f9fd;
        box-shadow: none;
    }

    .desktop-story-active .hero .hero-carousel::after {
        display: none;
    }

    .desktop-story-active .hero .hero-slide {
        display: block;
    }

    .desktop-story-active .hero-container {
        position: relative;
        z-index: 4;
        display: block;
        width: 100%;
        max-width: 1384px;
        min-height: 736px;
        padding-top: 56px;
    }

    .desktop-story-active .hero-container > .quote-calculator {
        position: absolute;
        z-index: 8;
        top: 6px;
        right: clamp(64px, 6vw, 112px);
        width: 440px;
        max-width: 40%;
        max-height: min(730px, calc(100vh - 172px));
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border: 1px solid rgba(220,229,242,.95);
        border-radius: 26px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 28px 70px rgba(7,27,63,.2);
        scrollbar-color: #8c98a8 transparent;
        scrollbar-width: thin;
        backdrop-filter: blur(18px);
    }

    .desktop-story-active .hero-container > .quote-calculator::-webkit-scrollbar {
        width: 7px;
    }

    .desktop-story-active .hero-container > .quote-calculator::-webkit-scrollbar-thumb {
        border-radius: 99px;
        background: #8c98a8;
    }

    /* Na confirmação da rota, formulário e mapa ocupam colunas independentes. */
    .desktop-story-active .hero-container > .route-map-panel {
        z-index: 12;
        top: 6px;
        right: clamp(64px, 6vw, 112px);
        width: 440px;
        max-width: 40%;
        transform: translateX(36px) scale(.98);
    }

    .desktop-story-active .hero.route-map-open .hero-container > .quote-calculator {
        right: clamp(64px, 6vw, 112px);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-20px) scale(.98);
        transform-origin: top right;
    }

    .desktop-story-active .hero-container > .route-map-panel[hidden] {
        display: none !important;
    }

    .desktop-story-active .hero.route-map-open .hero-container > .route-map-panel {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .desktop-story-active .hero .route-map-summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px 16px;
    }

    .desktop-story-active .hero .route-map-summary > div {
        grid-column: 1 / -1;
    }

    .desktop-story-active .hero .route-map-summary > a {
        justify-self: start;
    }

    .desktop-story-active .hero .route-map-summary > button {
        justify-self: end;
    }

    .desktop-story-active .hero-content {
        display: flex;
        flex-direction: column;
        width: 53%;
        max-width: 720px;
        min-height: clamp(500px, calc(100vh - 222px), 680px);
        color: var(--story-ink);
        text-shadow: none;
    }

    .desktop-story-active .hero-kicker {
        width: fit-content;
        margin-bottom: 8px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--story-orange);
        font-size: .75rem;
        font-weight: 900;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .desktop-story-active .hero-kicker span {
        background: var(--story-orange);
        box-shadow: 0 0 0 5px rgba(255,106,0,.12);
    }

    .desktop-story-active .hero h1 {
        max-width: 720px;
        margin: 0;
        color: var(--story-navy);
        font-size: clamp(3rem, 3.5vw, 3.625rem);
        line-height: .98;
        letter-spacing: -.055em;
        text-shadow: none;
    }

    .desktop-story-active .hero h1 span {
        color: var(--story-orange);
    }

    .desktop-story-active .hero-content > p {
        max-width: 580px;
        margin: 34px 0 0;
        color: var(--story-muted);
        font-size: 1.07rem;
        line-height: 1.72;
        text-shadow: none;
    }

    .desktop-story-active .hero-proof {
        margin-top: 22px;
        margin-bottom: 0;
        color: var(--story-blue);
        font-size: .92rem;
        text-shadow: none;
    }

    .desktop-story-active .hero-ctas {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 22px;
    }

    .desktop-story-active .hero-ctas .btn {
        min-height: 54px;
        border-radius: 14px;
        font-size: .93rem;
        box-shadow: 0 14px 30px rgba(6,36,90,.13);
    }

    .desktop-story-active .hero-ctas .btn[data-story-cta="modalidades"] {
        box-shadow: 0 14px 32px rgba(255,106,0,.24);
    }

    .desktop-story-active .hero-ctas .btn[data-story-cta="como-funciona"] {
        border-color: rgba(10,74,166,.34);
        background: rgba(255,255,255,.96);
        animation: storyPrimaryCtaPulse 2.35s ease-in-out infinite;
        box-shadow: 0 14px 30px rgba(6,36,90,.18);
    }

    .btn-outline-story {
        border: 1px solid #b9c7da;
        background: rgba(255,255,255,.9);
        color: var(--story-navy);
    }

    .btn-outline-story:hover,
    .btn-outline-story:focus-visible {
        border-color: var(--story-blue);
        background: #edf4ff;
        color: var(--story-blue);
    }

    .desktop-story-active .hero .microcopy {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 24px;
        color: var(--story-ink);
        text-shadow: none;
    }

    .desktop-story-active .hero .microcopy span {
        display: grid;
        grid-template-columns: 28px auto;
        grid-template-rows: auto auto;
        min-width: 0;
        min-height: 72px;
        flex: 1 1 0;
        padding: 10px 5px;
    }

    .desktop-story-active .hero .microcopy i {
        grid-row: 1 / 3;
        color: var(--story-orange);
    }

    .desktop-story-active .hero .microcopy strong {
        color: var(--story-ink);
        font-size: .77rem;
    }

    .desktop-story-active .hero .microcopy small {
        color: #78869a;
        font-size: .65rem;
    }

    .hero-scroll-cue {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        gap: 10px;
        margin-top: auto;
        margin-bottom: 24px;
        color: var(--story-blue);
        font-size: .76rem;
        font-weight: 800;
        text-decoration: none;
    }

    .hero-scroll-cue i {
        display: grid;
        width: 28px;
        height: 28px;
        place-items: center;
        border: 1px solid #d5dfec;
        border-radius: 50%;
        animation: story-cue 1.8s ease-in-out infinite;
    }

    @keyframes story-cue {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(5px); }
    }

    .desktop-story-active .hero-stats {
        position: relative;
        z-index: 5;
        display: grid;
        grid-template-columns: repeat(4,1fr);
        width: min(1180px, calc(100% - 48px));
        height: 96px;
        margin: 0 auto -72px;
        overflow: hidden;
        border: 1px solid rgba(23,141,229,.5);
        border-radius: 26px;
        background: linear-gradient(135deg, #06285f, #074aa1 58%, #0878c9);
        box-shadow: 0 24px 55px rgba(6,36,90,.24);
    }

    .desktop-story-active .hero-stats div,
    .desktop-story-active .hero-stats div:nth-child(2) {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-rows: auto auto;
        min-height: 0;
        height: 96px;
        padding: 0 24px;
        border: 0;
        border-right: 1px solid rgba(255,255,255,.15);
        background: transparent;
        text-align: left;
    }

    .desktop-story-active .hero-stats div:last-child {
        border-right: 0;
    }

    .desktop-story-active .hero-stats i {
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: center;
        margin: 0;
        color: #ff8b32;
        font-size: 1.85rem;
    }

    .desktop-story-active .hero-stats strong {
        align-self: end;
        color: #fff;
        font-size: 1.08rem;
        line-height: 1.1;
    }

    .desktop-story-active .hero-stats span {
        align-self: start;
        margin-top: 4px;
        color: #ccddf5;
        font-size: .78rem;
        line-height: 1.2;
    }

    /* Explicação visual */
    .desktop-role-story {
        position: relative;
        z-index: 0;
        padding: 83px 0 100px;
        background: #fff;
    }

    .desktop-role-grid {
        display: grid;
        grid-template-columns: minmax(0,1.08fr) minmax(420px,.92fr);
        align-items: center;
        gap: 70px;
    }

    .desktop-role-visual {
        position: relative;
        min-height: 510px;
        margin: 0;
        overflow: hidden;
        border-radius: 30px;
        background: var(--story-navy);
        box-shadow: 0 30px 75px rgba(7,27,63,.16);
    }

    .desktop-role-carousel {
        position: absolute;
        inset: 0;
    }

    .desktop-role-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 510px;
        object-fit: cover;
        object-position: 66% center;
        opacity: 0;
        animation: desktopRoleCarousel 20s ease-in-out infinite;
    }

    .desktop-role-slide:nth-child(1) { animation-delay: 0s; }
    .desktop-role-slide:nth-child(2) { animation-delay: 4s; }
    .desktop-role-slide:nth-child(3) { animation-delay: 8s; }
    .desktop-role-slide:nth-child(4) { animation-delay: 12s; }
    .desktop-role-slide:nth-child(5) { animation-delay: 16s; }

    .desktop-role-carousel-dots {
        position: absolute;
        z-index: 2;
        left: 24px;
        bottom: 26px;
        display: inline-flex;
        gap: 7px;
        padding: 9px 11px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 999px;
        background: rgba(4,27,66,.62);
        backdrop-filter: blur(10px);
    }

    .desktop-role-carousel-dots i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.54);
        box-shadow: 0 0 0 1px rgba(255,255,255,.12);
        animation: desktopRoleCarouselDot 20s ease-in-out infinite;
    }

    .desktop-role-carousel-dots i:nth-child(1) { animation-delay: 0s; }
    .desktop-role-carousel-dots i:nth-child(2) { animation-delay: 4s; }
    .desktop-role-carousel-dots i:nth-child(3) { animation-delay: 8s; }
    .desktop-role-carousel-dots i:nth-child(4) { animation-delay: 12s; }
    .desktop-role-carousel-dots i:nth-child(5) { animation-delay: 16s; }

    .desktop-role-visual figcaption {
        position: absolute;
        z-index: 2;
        right: 22px;
        bottom: 22px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 17px;
        border: 1px solid rgba(255,255,255,.25);
        border-radius: 14px;
        background: rgba(4,27,66,.86);
        color: #fff;
        font-size: .83rem;
        font-weight: 800;
        backdrop-filter: blur(12px);
    }

    .desktop-role-visual figcaption i {
        color: #ff9142;
    }

    .desktop-role-copy h2,
    .desktop-difference-intro h2,
    .desktop-quote-heading h2 {
        margin: 14px 0 20px;
        color: var(--story-navy);
        font-size: clamp(2.4rem,3.8vw,4.4rem);
        line-height: 1.02;
        letter-spacing: -.045em;
    }

    .desktop-role-copy > p {
        color: var(--story-muted);
        font-size: 1.03rem;
        line-height: 1.75;
    }

    .desktop-role-points {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 10px;
        margin-top: 30px;
    }

    .desktop-role-points article {
        min-height: 150px;
        padding: 20px 16px;
        border: 1px solid var(--story-line);
        border-radius: 18px;
        background: var(--story-soft);
    }

    .desktop-role-points i {
        display: grid;
        width: 38px;
        height: 38px;
        margin-bottom: 18px;
        place-items: center;
        border-radius: 11px;
        background: #fff;
        color: var(--story-blue);
        box-shadow: 0 8px 18px rgba(7,27,63,.08);
    }

    .desktop-role-points strong,
    .desktop-role-points span {
        display: block;
    }

    .desktop-role-points strong {
        color: var(--story-navy);
        font-size: .88rem;
    }

    .desktop-role-points span {
        margin-top: 7px;
        color: var(--story-muted);
        font-size: .72rem;
        line-height: 1.5;
    }

    /* Diagnóstico / diferenciais */
    .desktop-difference-story {
        padding: 95px 0;
        background: linear-gradient(180deg,#f8fafe,#fff);
    }

    .desktop-difference-grid {
        display: grid;
        grid-template-columns: minmax(280px,.5fr) minmax(0,1.5fr);
        gap: 44px;
        padding: 46px;
        border: 1px solid var(--story-line);
        border-radius: 28px;
        background: #fff;
        box-shadow: 0 22px 60px rgba(7,27,63,.07);
    }

    .desktop-difference-intro h2 {
        max-width: 430px;
        font-size: clamp(2.5rem,3.4vw,4rem);
    }

    .desktop-difference-intro p {
        max-width: 380px;
        color: var(--story-muted);
        line-height: 1.7;
    }

    .desktop-difference-compare {
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .desktop-difference-table {
        width: 100%;
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        color: var(--story-navy);
        table-layout: fixed;
    }

    .desktop-difference-table th,
    .desktop-difference-table td {
        padding: 14px 10px;
        border-bottom: 1px solid var(--story-line);
        font-size: .72rem;
        line-height: 1.28;
        text-align: center;
        vertical-align: middle;
    }

    .desktop-difference-table thead th {
        color: #0a2b66;
        font-size: .74rem;
        font-weight: 900;
    }

    .desktop-difference-table th:first-child {
        width: 24%;
        color: #233b63;
        font-weight: 800;
        text-align: left;
    }

    .desktop-difference-table .is-tom {
        width: 22%;
        background: #113b93;
        color: #fff;
        font-weight: 900;
    }

    .desktop-difference-table thead .is-tom {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        background: #1644a8;
        box-shadow: inset 0 3px 0 #06285f;
    }

    .desktop-difference-table tbody tr:last-child .is-tom {
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .desktop-difference-table td:not(.is-tom) {
        color: #233b63;
    }

    .desktop-difference-table tbody tr th,
    .desktop-difference-table tbody tr td {
        transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
    }

    @media (hover: hover) and (pointer: fine) {
        .desktop-difference-table tbody tr:hover th,
        .desktop-difference-table tbody tr:hover td,
        .desktop-difference-table tbody tr:hover .is-tom,
        html[data-theme="dark"] .desktop-difference-table tbody tr:hover th,
        html[data-theme="dark"] .desktop-difference-table tbody tr:hover td,
        html[data-theme="dark"] .desktop-difference-table tbody tr:hover .is-tom {
            border-color: rgba(255,106,0,.72);
            background: #ff6a00;
            color: #fff;
        }

        .desktop-difference-table tbody tr:hover th:first-child {
            box-shadow: -10px 0 0 #ff6a00;
        }

        .desktop-difference-table tbody tr:hover td:last-child {
            box-shadow: 10px 0 0 #ff6a00;
        }
    }

    .desktop-difference-table i {
        margin-right: 4px;
        font-size: .82rem;
    }

    /* Continuidade visual das seções existentes */
    .modality-discovery {
        padding-top: 112px !important;
        background: #fff !important;
    }

    .modality-discovery-heading .section-title,
    .section-before-after .section-title,
    .section-clients .section-title,
    .section-howitworks .section-title,
    .section-faq .section-title {
        color: var(--story-navy);
        letter-spacing: -.04em;
    }

    .modality-journey {
        box-shadow: 0 18px 45px rgba(7,27,63,.07);
    }

    .section-before-after,
    .section-howitworks,
    .section-faq {
        background: #f7f9fd;
    }

    :root[data-theme="light"].desktop-story-active .section-before-after .compare-content {
        border-color: #d8e2ee;
        background: rgba(255,255,255,.94);
        box-shadow: 0 24px 64px rgba(7,27,63,.12);
    }

    :root[data-theme="light"].desktop-story-active .section-before-after .compare-content .compare-title {
        color: var(--story-navy);
    }

    :root[data-theme="light"].desktop-story-active .section-before-after .compare-content p:not(.compare-title) {
        color: #5d6f86;
    }

    :root[data-theme="light"].desktop-story-active .section-before-after .compare-content li {
        color: #173b70;
    }

    .section-trust {
        border-radius: 34px;
    }

    .section-authority {
        margin: 38px 24px;
        overflow: hidden;
        border-radius: 30px;
    }

    .section-clients {
        padding-top: 100px;
        background: #fff;
    }

    .section-howitworks .step-card,
    .section-faq .faq-card {
        border: 1px solid var(--story-line);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 12px 32px rgba(7,27,63,.05);
    }

    .section-urgency {
        border-block: 1px solid var(--story-line);
        background: #fff;
    }

    main > .section-cta {
        display: none;
    }

    /* Formulário como encerramento da narrativa */
    .desktop-quote-final {
        position: relative;
        overflow: hidden;
        padding: 118px 0;
        background:
            radial-gradient(circle at 95% 8%, rgba(23,141,229,.12), transparent 28%),
            linear-gradient(180deg,#f7faff,#fff 45%);
    }

    .desktop-quote-final::before {
        position: absolute;
        top: 90px;
        left: -90px;
        width: 260px;
        height: 260px;
        border: 45px solid rgba(255,106,0,.08);
        border-radius: 50%;
        content: "";
    }

    .desktop-quote-heading {
        display: grid;
        grid-template-columns: 1.2fr .8fr;
        align-items: end;
        gap: 70px;
        margin-bottom: 44px;
    }

    .desktop-quote-heading h2 {
        max-width: 760px;
        margin-bottom: 0;
        font-size: clamp(2.6rem,3.8vw,4.5rem);
    }

    .desktop-quote-heading > p {
        margin: 0 0 8px;
        color: var(--story-muted);
        font-size: 1rem;
        line-height: 1.7;
    }

    .desktop-quote-layout {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr);
        align-items: start;
        gap: 24px;
    }

    .desktop-quote-destination {
        min-width: 0;
    }

    .desktop-quote-return {
        display: flex;
        min-height: 520px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: clamp(38px,5vw,76px);
        overflow: hidden;
        border: 1px solid var(--story-line);
        border-radius: 26px;
        background:
            radial-gradient(circle at 88% 14%, rgba(23,141,229,.13), transparent 28%),
            #fff;
        box-shadow: 0 26px 70px rgba(7,27,63,.1);
    }

    .desktop-quote-return > span {
        display: grid;
        width: 58px;
        height: 58px;
        margin-bottom: 24px;
        place-items: center;
        border-radius: 18px;
        background: #edf4ff;
        color: var(--story-blue);
        font-size: 1.35rem;
    }

    .desktop-quote-return small {
        color: var(--story-orange);
        font-size: .75rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .desktop-quote-return h3 {
        max-width: 660px;
        margin: 12px 0 16px;
        color: var(--story-navy);
        font-size: clamp(2rem,3vw,3.2rem);
        line-height: 1.05;
        letter-spacing: -.04em;
    }

    .desktop-quote-return p {
        max-width: 620px;
        margin: 0;
        color: var(--story-muted);
        line-height: 1.7;
    }

    .desktop-quote-return .btn {
        min-height: 54px;
        margin-top: 28px;
        border-radius: 14px;
    }

    .desktop-quote-destination .quote-calculator {
        position: relative;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 38px;
        border: 1px solid var(--story-line);
        border-radius: 26px;
        background: rgba(255,255,255,.98);
        box-shadow: 0 26px 70px rgba(7,27,63,.11);
        transform: none;
    }

    .desktop-quote-destination .quote-calculator::before {
        height: 5px;
        background: linear-gradient(90deg,var(--story-orange),#ff9b44);
    }

    .desktop-quote-destination .quote-calculator .form-head h2,
    .desktop-quote-destination .quote-calculator .quote-contact-field,
    .desktop-quote-destination .quote-calculator .quote-estimate-mode > strong,
    .desktop-quote-destination .quote-calculator .quote-date-field {
        color: var(--story-navy);
    }

    .desktop-quote-destination .quote-calculator .form-head p {
        color: var(--story-muted);
    }

    .desktop-quote-support {
        position: sticky;
        top: 106px;
        overflow: hidden;
        border-radius: 26px;
        background: var(--story-navy);
        color: #fff;
        box-shadow: 0 26px 70px rgba(7,27,63,.17);
    }

    .desktop-quote-support-image {
        position: relative;
        height: 265px;
        overflow: hidden;
    }

    .desktop-quote-support-image::after {
        position: absolute;
        inset: 45% 0 0;
        background: linear-gradient(transparent,var(--story-navy));
        content: "";
    }

    .desktop-quote-support-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .desktop-quote-support-image span {
        position: absolute;
        z-index: 1;
        bottom: 18px;
        left: 22px;
        color: #fff;
        font-size: .74rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .desktop-quote-support-copy {
        padding: 8px 28px 32px;
    }

    .desktop-quote-support-copy small {
        color: #98b7df;
        font-size: .76rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .desktop-quote-support-copy strong {
        display: block;
        margin-top: 9px;
        color: #fff;
        font-size: 1.6rem;
    }

    .desktop-quote-support-copy strong i {
        color: #43d17d;
    }

    .desktop-quote-support-copy p {
        color: #c5d5ea;
        font-size: .86rem;
        line-height: 1.65;
    }

    .desktop-quote-support-copy ul {
        display: grid;
        gap: 11px;
        margin: 22px 0 0;
        padding: 20px 0 0;
        border-top: 1px solid rgba(255,255,255,.13);
        list-style: none;
    }

    .desktop-quote-support-copy li {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #e8f0fb;
        font-size: .82rem;
    }

    .desktop-quote-support-copy li i {
        color: #ff8c39;
    }

    .desktop-quote-destination .route-map-panel {
        z-index: 1200;
    }

    /* Larguras intermediárias continuam desktop, porém sem apertar textos */
    @media (max-width: 1180px) {
        .desktop-scroll-map { right: 8px; }
        .desktop-story-active .hero h1 { font-size: clamp(2.7rem,4.6vw,4.1rem); }
        .desktop-story-active .hero-content { width: 48%; }
        .desktop-role-grid { gap: 38px; }
        .desktop-role-points { grid-template-columns: 1fr; }
        .desktop-role-points article { display: grid; grid-template-columns: 40px 1fr; min-height: auto; gap: 12px; }
        .desktop-role-points i { margin: 0; }
        .desktop-difference-grid { gap: 40px; padding: 40px; }
        .desktop-quote-layout { grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); }
        .desktop-story-active .hero-container > .quote-calculator,
        .desktop-story-active .hero-container > .route-map-panel,
        .desktop-story-active .hero.route-map-open .hero-container > .quote-calculator {
            right: clamp(32px, 5vw, 64px);
            width: 400px;
        }
    }

    @media (max-width: 980px) {
        .desktop-scroll-map { display: none; }
        .desktop-story-active .hero { min-height: 900px; }
        .desktop-story-active .hero .hero-carousel { inset: 0; width: auto; height: auto; border-radius: 0; }
        .desktop-story-active .hero-container { padding-top: 22px; }
        .desktop-story-active .hero-content { width: 100%; max-width: 760px; }
        .desktop-story-active .hero-content > p { max-width: 700px; }
        .desktop-story-active .hero .microcopy { display: none; }
        .desktop-story-active .hero::before { display: none; }
        .desktop-story-active .hero-container > .quote-calculator {
            position: relative;
            top: auto;
            right: auto;
            width: 100%;
            max-width: 760px;
            max-height: none;
            margin: 390px auto 0;
        }
        .desktop-story-active .hero-stats { grid-template-columns: repeat(2,1fr); }
        .desktop-story-active .hero-stats div:nth-child(2) { border-right: 0; }
        .desktop-story-active .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
        .desktop-role-grid,
        .desktop-difference-grid,
        .desktop-quote-heading,
        .desktop-quote-layout { grid-template-columns: 1fr; }
        .desktop-role-grid { gap: 44px; }
        .desktop-difference-table { min-width: 620px; }
        .desktop-quote-heading { gap: 18px; }
        .desktop-quote-support { position: relative; top: auto; display: grid; grid-template-columns: .9fr 1.1fr; }
        .desktop-quote-support-image { height: 100%; min-height: 300px; }
        .desktop-quote-support-copy { padding: 35px; }
    }
}

@media (max-width: 767px) {
    .desktop-scroll-map,
    .desktop-role-story,
    .desktop-difference-story,
    .desktop-quote-final,
    .hero-scroll-cue {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .story-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .desktop-story-active .hero-ctas .btn[data-story-cta="como-funciona"] {
        animation: none;
        transform: none;
    }
    .desktop-role-slide {
        animation: none;
        opacity: 0;
    }
    .desktop-role-slide:first-child {
        opacity: 1;
    }
    .desktop-role-carousel-dots i {
        animation: none;
    }
    .desktop-role-carousel-dots i:first-child {
        background: #ff6a00;
    }
    .hero-scroll-cue i { animation: none; }
}

@media (min-width: 768px) {
    html[data-theme="dark"] body {
        background: #071426;
    }

    html[data-theme="dark"] .navbar {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    html[data-theme="dark"] .desktop-scroll-map {
        border-color: rgba(255,255,255,.1);
        background: rgba(7,20,38,.92);
    }

    html[data-theme="dark"] .navbar .nav-link {
        color: #eaf2ff;
    }

    html[data-theme="dark"] .desktop-story-active .hero,
    html[data-theme="dark"] .desktop-role-story,
    html[data-theme="dark"] .desktop-difference-story,
    html[data-theme="dark"] .modality-discovery,
    html[data-theme="dark"] .section-clients,
    html[data-theme="dark"] .section-urgency,
    html[data-theme="dark"] .desktop-quote-final {
        background-color: #071426 !important;
        background-image: none;
    }

    html[data-theme="dark"] .desktop-story-active .hero {
        background:
            radial-gradient(circle at 18% 20%, rgba(10,74,166,.28), transparent 32%),
            linear-gradient(180deg, #071426 0%, #0a1930 54%, #071426 100%) !important;
        color: #f2f7ff;
    }

    html[data-theme="dark"] .desktop-story-active .hero::before {
        border-color: rgba(255,106,0,.38);
        border-right-color: transparent;
        border-bottom-color: transparent;
        opacity: .9;
    }

    html[data-theme="dark"] .desktop-story-active .hero::after {
        background:
            linear-gradient(90deg, rgba(7,20,38,.94) 0%, rgba(7,20,38,.86) 31%, rgba(7,20,38,.64) 50%, rgba(7,20,38,.36) 69%, rgba(7,20,38,.2) 100%),
            linear-gradient(180deg, rgba(7,20,38,.12) 38%, rgba(7,20,38,.7) 80%, #071426 100%);
    }

    html[data-theme="dark"] .desktop-story-active .hero .hero-carousel {
        background: #071426;
    }

    html[data-theme="dark"] .desktop-story-active .hero .hero-slide {
        filter: saturate(.9) contrast(1.05) brightness(.72);
    }

    html[data-theme="dark"] .desktop-story-active .hero-container > .quote-calculator {
        border-color: rgba(83,112,154,.44);
        background: rgba(9,24,47,.94);
        box-shadow: 0 30px 76px rgba(0,0,0,.38);
    }

    html[data-theme="dark"] .desktop-story-active .quote-calculator .form-head h2,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-contact-field,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-estimate-mode > strong,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-date-field {
        color: #f6f9ff;
    }

    html[data-theme="dark"] .desktop-story-active .quote-calculator .form-head h2 span,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .form-eyebrow,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-distance-feedback {
        color: #ff6a00;
    }

    html[data-theme="dark"] .desktop-story-active .quote-calculator .form-head p,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-contact-field small,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-mode-card small {
        color: #b7c5d8;
    }

    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-address-input,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-contact-field input,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-item-input-wrap,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-mode-card {
        border-color: #304460;
        background: #0f213d;
        color: #f7f9fc;
    }

    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-mode-card.is-active,
    html[data-theme="dark"] .desktop-story-active .quote-calculator .quote-mode-card:hover {
        border-color: #6da4ff;
        background: #17345e;
    }

    html[data-theme="dark"] .desktop-story-active .quote-calculator input::placeholder {
        color: #93a4bd;
    }

    html[data-theme="dark"] .desktop-story-active .hero h1,
    html[data-theme="dark"] .desktop-story-active .hero .microcopy strong,
    html[data-theme="dark"] .desktop-role-copy h2,
    html[data-theme="dark"] .desktop-difference-intro h2,
    html[data-theme="dark"] .desktop-quote-heading h2,
    html[data-theme="dark"] .desktop-role-points strong {
        color: #f2f7ff;
    }

    html[data-theme="dark"] .desktop-story-active .hero h1 span {
        color: #ff6a00;
    }

    html[data-theme="dark"] .desktop-story-active .hero-proof {
        color: #8fbdff;
    }

    html[data-theme="dark"] .desktop-story-active .hero-ctas .btn[data-story-cta="como-funciona"] {
        border-color: rgba(109,164,255,.72);
        background: rgba(13,29,50,.94);
        color: #f2f7ff;
        box-shadow: 0 16px 38px rgba(0,0,0,.28), 0 0 0 1px rgba(109,164,255,.18);
    }

    html[data-theme="dark"] .desktop-story-active .hero-content > p,
    html[data-theme="dark"] .desktop-role-copy > p,
    html[data-theme="dark"] .desktop-difference-intro p,
    html[data-theme="dark"] .desktop-quote-heading > p {
        color: #adbbcf;
    }

    html[data-theme="dark"] .desktop-difference-grid,
    html[data-theme="dark"] .desktop-role-points article,
    html[data-theme="dark"] .desktop-quote-return {
        border-color: #243652;
        background: #0d1d32;
    }

    html[data-theme="dark"] .desktop-difference-table th,
    html[data-theme="dark"] .desktop-difference-table td {
        border-color: #243652;
    }

    html[data-theme="dark"] .desktop-difference-table thead th,
    html[data-theme="dark"] .desktop-difference-table th:first-child,
    html[data-theme="dark"] .desktop-difference-table td:not(.is-tom) {
        color: #dbe8ff;
    }

    html[data-theme="dark"] .desktop-quote-return h3 {
        color: #f2f7ff;
    }

    html[data-theme="dark"] .desktop-quote-return p {
        color: #adbbcf;
    }

    html[data-theme="dark"] .btn-outline-story {
        border-color: #405571;
        background: #0d1d32;
        color: #edf4ff;
    }

    html[data-theme="dark"].desktop-story-active .hero {
        background:
            radial-gradient(circle at 18% 20%, rgba(10,74,166,.28), transparent 32%),
            linear-gradient(180deg, #071426 0%, #0a1930 54%, #071426 100%) !important;
        color: #f2f7ff;
    }

    html[data-theme="dark"].desktop-story-active .hero::before {
        border-color: rgba(255,106,0,.38);
        border-right-color: transparent;
        border-bottom-color: transparent;
        opacity: .9;
    }

    html[data-theme="dark"].desktop-story-active .hero::after {
        background:
            linear-gradient(90deg, rgba(7,20,38,.94) 0%, rgba(7,20,38,.86) 31%, rgba(7,20,38,.64) 50%, rgba(7,20,38,.36) 69%, rgba(7,20,38,.2) 100%),
            linear-gradient(180deg, rgba(7,20,38,.12) 38%, rgba(7,20,38,.7) 80%, #071426 100%);
    }

    html[data-theme="dark"].desktop-story-active .hero .hero-carousel {
        background: #071426;
    }

    html[data-theme="dark"].desktop-story-active .hero .hero-slide {
        filter: saturate(.9) contrast(1.05) brightness(.72);
    }

    html[data-theme="dark"].desktop-story-active .hero-container > .quote-calculator {
        border-color: rgba(83,112,154,.44);
        background: rgba(9,24,47,.94);
        box-shadow: 0 30px 76px rgba(0,0,0,.38);
    }

    html[data-theme="dark"].desktop-story-active .quote-calculator .form-head h2,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-contact-field,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-estimate-mode > strong,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-date-field {
        color: #f6f9ff;
    }

    html[data-theme="dark"].desktop-story-active .quote-calculator .form-head h2 span,
    html[data-theme="dark"].desktop-story-active .quote-calculator .form-eyebrow,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-distance-feedback {
        color: #ff6a00;
    }

    html[data-theme="dark"].desktop-story-active .quote-calculator .form-head p,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-contact-field small,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-mode-card small {
        color: #b7c5d8;
    }

    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-address-input,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-contact-field input,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-item-input-wrap,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-mode-card {
        border-color: #304460;
        background: #0f213d;
        color: #f7f9fc;
    }

    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-mode-card.is-active,
    html[data-theme="dark"].desktop-story-active .quote-calculator .quote-mode-card:hover {
        border-color: #6da4ff;
        background: #17345e;
    }

    html[data-theme="dark"].desktop-story-active .quote-calculator input::placeholder {
        color: #93a4bd;
    }

    html[data-theme="dark"].desktop-story-active .hero h1,
    html[data-theme="dark"].desktop-story-active .hero .microcopy strong {
        color: #f2f7ff;
    }

    html[data-theme="dark"].desktop-story-active .hero h1 span {
        color: #ff6a00;
    }

    html[data-theme="dark"].desktop-story-active .hero-content > p {
        color: #b7c5d8;
    }

    html[data-theme="dark"].desktop-story-active .hero-proof {
        color: #8fbdff;
    }

    html[data-theme="dark"].desktop-story-active .hero-ctas .btn[data-story-cta="como-funciona"] {
        border-color: rgba(109,164,255,.72);
        background: rgba(13,29,50,.94);
        color: #f2f7ff;
        box-shadow: 0 16px 38px rgba(0,0,0,.28), 0 0 0 1px rgba(109,164,255,.18);
    }
}
