* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fafafa;
    color: #111;
    font-family: 'Inter', sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.demo-page {
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
}

.demo-container {
    width: 100%;
    max-width: 760px;
}

.demo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 38px;
    margin-bottom: 55px;
}

.demo-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.demo-progress {
    position: relative;
    width: min(100%, 540px);
    height: 28px;
}

.progress-track {
    position: absolute;
    top: 12px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e5e5e5;
}

.progress-line {
    width: 0;
    height: 100%;
    background: #111;
    transition: width .35s ease;
}

.progress-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-step {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fafafa;
    border: 1px solid #ddd;
    color: #aaa;
    font-size: 10px;
    font-weight: 600;
    transition: all .3s ease;
}

.progress-step.active,
.progress-step.completed {
    background: #111;
    border-color: #111;
    color: #fff;
}

.demo-step {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

.demo-step.active {
    display: block;
    animation: stepIn .35s ease forwards;
}

.demo-step.leaving {
    display: block;
    animation: stepOut .25s ease forwards;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stepOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.step-content {
    min-height: 450px;
}

.step-label {
    display: block;
    margin-bottom: 16px;
    color: #999;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.step-content h1 {
    max-width: 680px;
    margin: 0;
    color: #111;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.06;
    letter-spacing: -2.5px;
    font-weight: 600;
}

.step-description {
    max-width: 620px;
    margin: 18px 0 40px;
    color: #777;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field label {
    color: #333;
    font-size: 12px;
    font-weight: 600;
}

.field label span {
    color: #aaa;
    font-weight: 400;
}

.field input {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    outline: none;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 13px;
    color: #111;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder {
    color: #aaa;
}

.field input:focus {
    border-color: #bbb;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .03);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 90px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: #ccc;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card:has(input:checked) {
    border-color: #111;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.option-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: transparent;
    font-size: 8px;
    transition: all .2s ease;
}

.option-card:has(input:checked) .option-check {
    background: #111;
    border-color: #111;
    color: #fff;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-content strong {
    color: #222;
    font-size: 13px;
    font-weight: 600;
}

.option-content small {
    color: #999;
    font-size: 11px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.upload-field input,
.spreadsheet-upload input {
    display: none;
}

.upload-box {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #fff;
    border: 1px dashed #d7d7d7;
    border-radius: 18px;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s ease, background .2s ease;
}

.upload-box:hover {
    background: #fdfdfd;
    border-color: #aaa;
}

.upload-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 13px;
    background: #f3f3f3;
    color: #111;
    font-size: 17px;
}

.upload-title {
    color: #222;
    font-size: 13px;
    font-weight: 600;
}

.upload-description {
    margin-top: 5px;
    color: #999;
    font-size: 10px;
}

.upload-name {
    max-width: 100%;
    margin-top: 14px;
    overflow: hidden;
    color: #555;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #999;
    font-size: 10px;
    line-height: 1.5;
}

.upload-note i {
    font-size: 11px;
}

.option-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card:has(input:checked) {
    border-color: #111;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.choice-radio {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    transition: all .2s ease;
}

.choice-card:has(input:checked) .choice-radio {
    border: 6px solid #111;
}

.choice-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.choice-content strong {
    color: #222;
    font-size: 13px;
    font-weight: 600;
}

.choice-content small {
    color: #999;
    font-size: 11px;
}

.conditional-box {
    display: flex;
    gap: 17px;
    margin-top: 18px;
    padding: 22px;
    background: #111;
    border-radius: 17px;
    color: #fff;
    animation: conditionalIn .3s ease;
}

.conditional-box.hidden {
    display: none;
}

@keyframes conditionalIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conditional-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #252525;
    font-size: 15px;
}

.conditional-content {
    flex: 1;
}

.conditional-label {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.conditional-content h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    letter-spacing: -.3px;
}

.conditional-content p {
    margin: 6px 0 15px;
    color: #999;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.conditional-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-option {
    position: relative;
}

.mini-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mini-option span {
    display: block;
    padding: 8px 11px;
    border: 1px solid #333;
    border-radius: 999px;
    color: #aaa;
    font-size: 10px;
    cursor: pointer;
    transition: all .2s ease;
}

.mini-option:has(input:checked) span {
    background: #fff;
    border-color: #fff;
    color: #111;
}

.spreadsheet-template {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}

.template-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: #f1f1f1;
    color: #333;
    font-size: 17px;
}

.template-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.template-content strong {
    font-size: 12px;
    font-weight: 600;
}

.template-content span {
    color: #999;
    font-size: 10px;
    line-height: 1.4;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 9px;
    color: #333;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.download-button:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.spreadsheet-upload {
    margin-top: 14px;
}

.spreadsheet-box {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #fff;
    border: 1px dashed #d4d4d4;
    border-radius: 17px;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s ease, background .2s ease;
}

.spreadsheet-box:hover {
    border-color: #aaa;
    background: #fdfdfd;
}

.spreadsheet-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 13px;
    background: #f2f2f2;
    color: #333;
    font-size: 17px;
}

.spreadsheet-title {
    color: #222;
    font-size: 13px;
    font-weight: 600;
}

.spreadsheet-description {
    margin-top: 5px;
    color: #999;
    font-size: 10px;
}

.spreadsheet-name {
    margin-top: 10px;
    color: #555;
    font-size: 10px;
}

.final-step {
    text-align: center;
}

.final-step .step-label {
    text-align: center;
}

.success-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 25px;
    border-radius: 20px;
    background: #111;
    color: #fff;
    font-size: 24px;
}

.final-step h1 {
    max-width: 600px;
    margin: 0 auto;
}

.final-step .step-description {
    margin: 18px auto 28px;
}

.free-trial-box {
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    text-align: left;
}

.free-trial-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: #f1f1f1;
    font-size: 15px;
}

.free-trial-box div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.free-trial-box strong {
    font-size: 12px;
    font-weight: 600;
}

.free-trial-box span {
    color: #999;
    font-size: 10px;
    line-height: 1.5;
}

.final-confirmation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: #999;
    font-size: 10px;
}

.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.next-button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 145px;
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}

.next-button:hover,
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.back-button {
    height: 48px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #888;
    font-size: 12px;
}

.back-button:hover {
    color: #111;
}

.submit-button {
    min-width: 190px;
}

.demo-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 45px;
    color: #aaa;
    font-size: 9px;
}

@media (max-width: 650px) {
    .demo-page {
        padding: 28px 20px;
    }

    .demo-header {
        gap: 30px;
        margin-bottom: 40px;
    }

    .demo-logo img {
        width: 50px;
        height: 50px;
    }

    .step-content {
        min-height: 0;
    }

    .step-content h1 {
        font-size: 38px;
        letter-spacing: -1.8px;
    }

    .step-description {
        margin-bottom: 30px;
    }

    .option-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .spreadsheet-template {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .template-content {
        min-width: calc(100% - 58px);
    }

    .download-button {
        margin-left: 56px;
    }

    .conditional-box {
        flex-direction: column;
    }

    .step-actions {
        margin-top: 35px;
    }

    .free-trial-box {
        align-items: flex-start;
    }

    .final-confirmation {
        align-items: flex-start;
        text-align: left;
    }

    .progress-track {
        left: 14px;
        right: 14px;
    }
}

.priority-support-card {
    width: 100%;
    padding: 24px;

    background: #111;
    border: 1px solid #111;
    border-radius: 18px;

    color: #fff;
}

.priority-support-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;

    gap: 14px;
}

.priority-support-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: #252525;
    color: #fff;

    font-size: 17px;
}

.priority-support-title {
    min-width: 0;
}

.priority-badge {
    display: inline-block;

    margin-bottom: 4px;

    color: #777;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.priority-support-title h3 {
    margin: 0;

    color: #fff;

    font-size: 17px;
    font-weight: 600;

    letter-spacing: -.3px;
}

/* PREÇO */

.priority-support-price {
    display: flex;
    align-items: baseline;

    gap: 3px;

    white-space: nowrap;
}

.priority-support-price strong {
    color: #fff;

    font-size: 18px;
    font-weight: 600;

    letter-spacing: -.5px;
}

.priority-support-price span {
    color: #777;

    font-size: 10px;
}

/* SWITCH */

.support-toggle {
    position: relative;

    display: block;

    width: 46px;
    height: 26px;

    flex-shrink: 0;

    cursor: pointer;
}

.support-toggle input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.toggle-slider {
    position: absolute;

    inset: 0;

    display: block;

    border-radius: 999px;

    background: #333;

    transition: background .25s ease;
}

.toggle-slider::before {
    content: '';

    position: absolute;

    width: 20px;
    height: 20px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: #888;

    transition:
        transform .25s ease,
        background .25s ease;
}

.support-toggle input:checked + .toggle-slider {
    background: #fff;
}

.support-toggle input:checked + .toggle-slider::before {
    background: #111;

    transform: translateX(20px);
}

/* DESCRIÇÃO */

.priority-support-description {
    max-width: 600px;

    margin: 20px 0 18px;

    color: #999;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;
    line-height: 1.7;
}

/* BENEFÍCIOS */

.priority-support-features {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.priority-support-features span {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 8px 10px;

    border: 1px solid #333;
    border-radius: 999px;

    color: #bbb;

    font-size: 10px;
}

.priority-support-features i {
    color: #fff;

    font-size: 9px;
}

/* FOOTER DO CARD */

.priority-support-footer {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin-top: 20px;
    padding-top: 17px;

    border-top: 1px solid #292929;

    color: #777;

    font-size: 10px;
    line-height: 1.6;
}

.priority-support-footer i {
    margin-top: 2px;

    flex-shrink: 0;

    color: #aaa;

    font-size: 10px;
}

/* NOTA */

.support-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 16px;

    color: #999;

    font-size: 10px;

    text-align: center;
}

.support-note i {
    flex-shrink: 0;

    color: #777;

    font-size: 10px;
}

/* BOTÕES */

.step-actions {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 35px;
}

.step-actions .back-button,
.step-actions .submit-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}

.step-actions .submit-button {
    gap: 10px;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .priority-support-card {
        padding: 18px;

        border-radius: 16px;
    }

    /*
     * Ícone + título + switch
     *
     * [ ícone ][ título             ][ switch ]
     */
    .priority-support-header {
        display: grid;

        grid-template-columns: 42px minmax(0, 1fr) 46px;

        align-items: center;

        gap: 11px;
    }

    .priority-support-icon {
        width: 42px;
        height: 42px;

        border-radius: 11px;

        font-size: 15px;
    }

    .priority-support-title {
        min-width: 0;
    }

    .priority-badge {
        margin-bottom: 3px;

        font-size: 8px;
    }

    .priority-support-title h3 {
        font-size: 15px;

        line-height: 1.2;
    }

    /*
     * Preço fica em uma nova linha.
     * Não disputa espaço com o switch.
     */
    .priority-support-price {
        grid-column: 2 / 3;

        margin-top: 2px;

        justify-self: start;
    }

    .priority-support-price strong {
        font-size: 17px;
    }

    .priority-support-price span {
        font-size: 9px;
    }

    /*
     * Switch permanece sempre inteiro
     * na coluna da direita.
     */
    .support-toggle {
        grid-column: 3;
        grid-row: 1;

        width: 46px;
        height: 26px;

        justify-self: end;
    }

    .priority-support-description {
        margin: 18px 0 16px;

        font-size: 11px;
        line-height: 1.7;
    }

    .priority-support-features {
        display: flex;
        flex-direction: column;

        gap: 7px;

        width: 100%;
    }

    .priority-support-features span {
        width: 100%;

        padding: 8px 10px;

        border-radius: 10px;

        font-size: 10px;
    }

    .priority-support-footer {
        margin-top: 17px;
        padding-top: 15px;

        font-size: 9px;
    }

    .support-note {
        margin-top: 14px;

        font-size: 9px;
    }

    /* BOTÕES MOBILE */

    .step-actions {
        display: grid;

        grid-template-columns: 1fr 1.5fr;

        gap: 10px;

        margin-top: 26px;
    }

    .step-actions .back-button,
    .step-actions .submit-button {
        width: 100%;

        min-height: 46px;

        padding: 0 12px;

        font-size: 11px;
    }

    .step-actions .submit-button {
        gap: 7px;
    }
}

/* ==========================================
   MOBILE PEQUENO
========================================== */

@media (max-width: 380px) {

    .priority-support-card {
        padding: 16px;
    }

    .priority-support-header {
        grid-template-columns: 40px minmax(0, 1fr) 44px;

        gap: 9px;
    }

    .priority-support-icon {
        width: 40px;
        height: 40px;
    }

    .support-toggle {
        width: 44px;
        height: 25px;
    }

    .toggle-slider::before {
        width: 19px;
        height: 19px;
    }

    .support-toggle input:checked + .toggle-slider::before {
        transform: translateX(19px);
    }

    .priority-support-title h3 {
        font-size: 14px;
    }

    .priority-support-price strong {
        font-size: 16px;
    }

    .step-actions {
        grid-template-columns: 1fr 1.4fr;
    }

    .step-actions .back-button,
    .step-actions .submit-button {
        font-size: 10px;
    }
}