/* Segmento Comércio e varejo — tokens e escala alinhados a sp-produto.css */

.sc-pdf:has(.cv-page) {
    --product-navy: #062b4f;
    --product-navy-dark: #041f3a;
    --product-navy-mid: #073b6d;
    --product-blue: #008ef4;
    --product-blue-soft: #eaf6ff;
    --product-ice: #f5faff;
    --product-white: #ffffff;
    --product-orange: #ff6b20;
    --product-orange-hover: #ed5712;
    --product-text: #062b4f;
    --product-muted: #63778c;
    --product-border: #dce9f4;
    --product-font: Inter, "Segoe UI", "Segoe UI Variable", sans-serif;
    --product-wrap: 1280px;
    --product-gutter: 32px;
    /* Derivados para AA sobre fundo claro (pendência do DS: --product-blue dá 3,4:1 no branco) */
    --cv-blue-text: #0067b8;
    --cv-neutral: #f3f5f7;
    --cv-neutral-text: #52657a;
    --cv-field-border: #7890a8;
    --cv-shadow-card: 0 16px 34px rgba(6, 43, 79, 0.08);
    --cv-shadow-hover: 0 16px 34px rgba(6, 43, 79, 0.1);
    --cv-shadow-media: 0 18px 40px rgba(6, 43, 79, 0.08);
    background: var(--product-white);
}

.sc-pdf:has(.cv-page),
.sc-pdf:has(.cv-page) h1,
.sc-pdf:has(.cv-page) h2,
.sc-pdf:has(.cv-page) h3,
.sc-pdf:has(.cv-page) p,
.sc-pdf:has(.cv-page) a,
.sc-pdf:has(.cv-page) li,
.sc-pdf:has(.cv-page) span,
.sc-pdf:has(.cv-page) button,
.sc-pdf:has(.cv-page) strong,
.sc-pdf:has(.cv-page) small,
.sc-pdf:has(.cv-page) b,
.sc-pdf:has(.cv-page) label,
.sc-pdf:has(.cv-page) select,
.sc-pdf:has(.cv-page) input,
.sc-pdf:has(.cv-page) blockquote,
.sc-pdf:has(.cv-page) cite {
    font-family: var(--product-font) !important;
}

.cv-page {
    color: var(--product-text);
    background: var(--product-white);
    overflow-x: clip;
}

.cv-page *,
.cv-page *::before,
.cv-page *::after {
    box-sizing: border-box;
}

.cv-shell {
    width: min(calc(100% - (var(--product-gutter) * 2)), var(--product-wrap));
    margin-inline: auto;
}

.cv-section {
    padding: 72px 0;
}

.cv-page h1,
.cv-page h2,
.cv-page h3,
.cv-page p {
    margin-top: 0;
}

.cv-page h1,
.cv-page h2,
.cv-page h3 {
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    color: var(--product-text) !important;
}

.cv-page h2 {
    text-wrap: balance;
    margin-bottom: 16px;
    font-size: clamp(32px, 3.6vw, 40px) !important;
    line-height: 1.12 !important;
}

.cv-page p {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

.cv-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--cv-blue-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cv-hero .cv-eyebrow,
.cv-supply .cv-eyebrow,
.cv-final .cv-eyebrow {
    color: rgba(234, 246, 255, 0.86);
}

.cv-page a:focus-visible,
.cv-page button:focus-visible,
.cv-page select:focus-visible,
.cv-page input:focus-visible {
    outline: 3px solid rgba(10, 149, 255, 0.45) !important;
    outline-offset: 3px;
}

/* Hero */

.cv-hero {
    position: relative;
    min-height: 590px;
    padding: calc(var(--sp-hero-nav-h, 78px) + 18px) 0 72px;
    color: #fff;
    background: var(--product-navy-dark);
}

.cv-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #041f3a 0%, rgba(4, 31, 58, 0.94) 37%, rgba(4, 31, 58, 0.18) 68%, rgba(4, 31, 58, 0.35) 100%);
}

.cv-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
    gap: 36px;
    align-items: center;
}

.cv-breadcrumb ol {
    align-items: center;
}

.cv-breadcrumb a {
    display: inline-block;
    padding: 4px 0;
}

.cv-hero h1 {
    margin-bottom: 16px !important;
    color: #fff !important;
    font-size: clamp(34px, 4.4vw, 54px) !important;
    letter-spacing: -0.035em;
    line-height: 1.08 !important;
}

.cv-hero h1 em {
    font-style: normal;
    color: #9ed6ff;
}

.cv-hero-copy > p {
    max-width: 560px;
    margin-bottom: 24px;
    color: rgba(234, 246, 255, 0.86);
    font-size: 18px;
}

.cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cv-tags span {
    padding: 8px 14px;
    border: 1px solid rgba(158, 214, 255, 0.55);
    border-radius: 999px;
    background: rgba(4, 31, 58, 0.6);
    color: #fff;
    font-size: 13px;
}

.cv-tags i {
    margin-right: 6px;
    color: #9ed6ff;
}

/* Etapas */

.cv-steps {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: -24px auto 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--cv-shadow-card);
    overflow: hidden;
}

.cv-steps > li {
    min-height: 130px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--product-border);
}

.cv-steps > li:last-child {
    border: 0;
}

.cv-steps i {
    margin-bottom: 12px;
    color: var(--cv-blue-text);
    font-size: 24px;
}

.cv-steps strong {
    color: var(--product-navy);
    font-size: 17px;
}

.cv-steps small {
    margin-top: 4px;
    color: var(--product-muted);
    font-size: 13px;
    line-height: 1.35;
}

.cv-steps .is-active {
    background: linear-gradient(145deg, #0875df, #0660b8);
}

.cv-steps .is-active i,
.cv-steps .is-active strong,
.cv-steps .is-active small {
    color: #fff;
}

/* Operações */

.cv-operations {
    background: var(--product-ice);
}

.cv-operations-grid {
    display: grid;
    grid-template-columns: 0.78fr 0.72fr 0.72fr;
    gap: 18px;
    align-items: stretch;
}

.cv-section-copy {
    padding: 28px 24px 18px 0;
}

.cv-section-copy p {
    color: var(--cv-neutral-text);
}

.cv-search-copy p {
    color: var(--product-muted);
}

.cv-operation-card {
    position: relative;
    display: block;
    min-height: 175px;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--product-navy-dark);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.cv-operation-card:hover,
.cv-operation-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--cv-shadow-hover);
}

.cv-store {
    min-height: 365px;
}

.cv-operation-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4, 31, 58, 0.92) 0%, rgba(4, 31, 58, 0.7) 60%, transparent 95%);
}

.cv-store::after {
    background: linear-gradient(0deg, rgba(4, 31, 58, 0.92), transparent 68%);
}

.cv-operation-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-operation-card span {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
}

.cv-operation-card b {
    font-size: 21px;
}

.cv-operation-card small {
    grid-column: 1;
    color: rgba(234, 246, 255, 0.9);
    font-size: 13px;
}

.cv-operation-card i {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cv-blue-text);
}

.cv-operation-stack {
    display: grid;
    gap: 18px;
}

/* Busca */

.cv-search {
    background: #fff;
}

.cv-search-grid {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    gap: 48px;
    align-items: center;
}

.cv-search-visual {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--cv-shadow-media);
    background: var(--product-blue-soft);
}

.cv-search-visual img {
    display: block;
    width: 100%;
    height: 410px;
    object-fit: cover;
}

.cv-fake-search {
    height: 56px;
    margin: 24px 0;
    padding-left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--cv-field-border);
    border-radius: 12px;
    color: var(--product-muted);
    overflow: hidden;
}

.cv-fake-search i {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--cv-blue-text);
    color: #fff;
}

.cv-checks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-checks li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: start;
    margin: 12px 0;
    color: var(--product-muted);
    font-size: 15px;
}

.cv-checks li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--cv-blue-text);
    color: #fff;
    font-size: 12px;
}

/* Compras */

.cv-supply {
    position: relative;
    padding: 72px 0;
    color: #fff;
    background: radial-gradient(circle at 80% 30%, var(--product-navy-mid), var(--product-navy-dark) 72%);
}

.cv-supply h2 {
    color: #fff !important;
    margin-bottom: 12px;
}

.cv-supply > div > p {
    max-width: 850px;
    color: rgba(234, 246, 255, 0.86);
}

.cv-supply-flow {
    display: grid;
    grid-template-columns: repeat(11, auto);
    gap: 12px;
    align-items: start;
    margin-top: 36px;
}

.cv-supply-flow > div {
    width: 126px;
    display: flex;
    flex-direction: column;
}

.cv-supply-flow > div > span {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(158, 214, 255, 0.55);
    border-radius: 50%;
    background: rgba(0, 142, 244, 0.22);
}

.cv-supply-flow > div > b {
    font-size: 15px;
}

.cv-supply-flow > div > small {
    margin-top: 4px;
    color: rgba(234, 246, 255, 0.86);
    font-size: 13px;
    line-height: 1.35;
}

.cv-supply-flow > i {
    margin-top: 24px;
    color: #9ed6ff;
}

/* Antes e depois */

.cv-results {
    background: #fff;
}

.cv-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.cv-compare article {
    padding: 18px;
    border-radius: 16px;
    background: var(--cv-neutral);
}

.cv-compare .cv-after {
    background: var(--product-blue-soft);
}

.cv-compare h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.cv-before h3,
.cv-before li::before {
    color: var(--cv-neutral-text) !important;
}

.cv-after h3,
.cv-after li::before {
    color: var(--cv-blue-text) !important;
}

.cv-compare article > div {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 18px;
}

.cv-compare img {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
}

.cv-after img {
    object-position: 62% center;
}

.cv-compare ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}

.cv-compare li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: start;
    margin: 12px 0;
    color: var(--product-text);
    font-size: 14px;
}

.cv-compare li::before {
    content: "●";
}

/* Demonstração */

.cv-demo {
    background: linear-gradient(100deg, var(--product-ice), var(--product-blue-soft));
}

.cv-demo-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 48px;
    align-items: center;
}

.cv-demo p {
    max-width: 480px;
    margin-bottom: 0;
    color: var(--product-navy-mid);
}

.cv-demo-card {
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--cv-shadow-card);
}

.cv-demo-card h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.cv-demo-card ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.cv-demo-card li {
    color: var(--product-text);
    font-size: 15px;
}

.cv-demo-card li i {
    width: 24px;
    color: var(--cv-blue-text);
}

/* Depoimento */

.cv-story {
    background: #fff;
}

.cv-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.cv-story blockquote {
    position: relative;
    margin: 20px 0 0 !important;
    padding: 0 0 0 48px !important;
    border: 0;
    background: none !important;
    text-align: left !important;
    color: var(--product-muted);
    font-size: 18px;
    line-height: 1.55;
}

.cv-story blockquote::before {
    content: "“" !important;
    position: absolute;
    left: 0;
    top: -25px;
    color: var(--product-blue);
    font-size: 82px;
    line-height: 1;
}

.cv-story blockquote::after {
    content: none !important;
}

.cv-story cite {
    display: block;
    margin-top: 14px;
    color: var(--product-text);
    font-style: normal;
    font-weight: 800;
}

.cv-story cite span {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.cv-story-card {
    display: grid;
    grid-template-columns: 55% 45%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--product-navy);
    color: #fff;
}

.cv-story-card img {
    width: 100%;
    height: 285px;
    object-fit: cover;
}

.cv-story-card ul {
    list-style: none;
    margin: 0;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cv-story-card li {
    margin: 12px 0;
    font-size: 15px;
}

.cv-story-card i {
    width: 32px;
    color: #9ed6ff;
    font-size: 20px;
}

/* CTA final */

.cv-final {
    padding: 72px 0;
    color: #fff;
    background: linear-gradient(118deg, var(--product-navy-dark) 0%, var(--product-navy) 46%, var(--product-navy-mid) 100%);
}

.cv-final-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.cv-final-icon {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 142, 244, 0.22);
    color: #9ed6ff;
    font-size: 40px;
}

.cv-final h2 {
    margin-bottom: 8px;
    color: #fff !important;
}

.cv-final p {
    margin: 0;
    color: rgba(234, 246, 255, 0.86);
}

.cv-final-grid > div:last-child {
    display: grid;
    gap: 12px;
}

@media (max-width: 1199px) {
    .sc-pdf:has(.cv-page) {
        --product-gutter: 24px;
    }

    .cv-hero::after {
        background: linear-gradient(90deg, rgba(4, 31, 58, 0.98) 0%, rgba(4, 31, 58, 0.9) 58%, rgba(4, 31, 58, 0.38) 100%);
    }

    .cv-hero-grid {
        grid-template-columns: 1fr;
    }

    .cv-hero-copy {
        max-width: min(560px, 60%);
    }

    .cv-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .cv-steps > li:nth-child(3n) {
        border-right: 0;
    }

    .cv-operations-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cv-section-copy {
        grid-column: 1 / -1;
    }

    .cv-operation-stack {
        min-height: 365px;
    }

    .cv-search-grid,
    .cv-demo-grid,
    .cv-story-grid {
        grid-template-columns: 1fr;
    }

    .cv-supply-flow {
        grid-template-columns: repeat(6, 1fr);
    }

    .cv-supply-flow > div {
        width: auto;
    }

    .cv-supply-flow > i {
        display: none;
    }

    .cv-compare {
        grid-template-columns: 1fr;
    }

    .cv-final-grid {
        grid-template-columns: auto 1fr;
    }

    .cv-final-grid > div:last-child {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .sc-pdf:has(.cv-page) {
        --product-gutter: 16px;
    }

    .cv-section,
    .cv-supply,
    .cv-final {
        padding: 56px 0;
    }

    .cv-hero {
        padding-top: calc(var(--sp-hero-nav-h, 78px) + 18px);
    }

    .cv-hero::after {
        background: linear-gradient(90deg, rgba(4, 31, 58, 0.98) 0%, rgba(4, 31, 58, 0.9) 58%, rgba(4, 31, 58, 0.38) 100%);
    }

    .cv-hero-photo {
        object-position: 56% center;
    }

    .cv-hero-copy {
        max-width: none;
    }

    .cv-steps {
        grid-template-columns: 1fr 1fr;
        margin-top: 0;
    }

    .cv-steps > li {
        min-height: 115px;
    }

    .cv-steps > li:nth-child(3n) {
        border-right: 1px solid var(--product-border);
    }

    .cv-steps > li:nth-child(2n) {
        border-right: 0;
    }

    .cv-operations-grid {
        grid-template-columns: 1fr;
    }

    .cv-store {
        min-height: 320px;
    }

    .cv-search-grid {
        gap: 24px;
    }

    .cv-search-visual img {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .cv-supply-flow {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .cv-supply-flow > div {
        align-items: center;
        text-align: center;
    }

    .cv-compare article > div {
        grid-template-columns: 1fr;
    }

    .cv-compare img {
        height: 190px;
    }

    .cv-demo-card {
        padding: 20px;
    }

    .cv-demo-card ul {
        grid-template-columns: 1fr;
    }

    .cv-story-card {
        grid-template-columns: 1fr;
    }

    .cv-story-card img {
        height: 230px;
    }

    .cv-final-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cv-final-icon {
        margin: auto;
    }

    .cv-final-grid > div:last-child {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .cv-page .sp-product-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cv-operation-card,
    .cv-page .sp-product-btn {
        transition: none;
    }

    .cv-operation-card:hover,
    .cv-operation-card:focus-visible,
    .cv-page .sp-product-btn:hover,
    .cv-page .sp-product-btn:focus-visible {
        transform: none;
    }
}
