:root {
    --ifood-red: #ea1d2c;
    --ifood-red-dark: #c81a27;
    --text: #1a1a1a;
    --text-muted: #5c5c5c;
    --bg: #f3f3f5;
    --card: #fff;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-sheet: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(0, 0, 0, 0.04);
    --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
    /* Outfit não inclui emoji — usar só onde há caracteres emoji */
    --font-emoji: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Android Emoji", "EmojiSymbols", "Twemoji Mozilla", sans-serif;
    --page-pad: clamp(16px, 4.5vw, 28px);
    --content-max: min(100%, 36rem);
}

@media (min-width: 768px) {
    :root {
        --content-max: min(100%, 40rem);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font);
    font-size: 1.0625rem;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    background: var(--card);
    padding: clamp(14px, 3vw, 22px) var(--page-pad);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-container {
    max-width: calc(var(--content-max) + 4rem);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ifood-logo--wide {
    max-height: clamp(44px, 11vw, 56px);
    width: auto;
}

.no-js {
    display: block;
    text-align: center;
    padding: 12px;
    background: #fff3cd;
    color: #664d03;
    font-size: 0.9rem;
}

.container {
    flex: 1;
    width: 100%;
    max-width: calc(var(--content-max) + 2 * var(--page-pad));
    margin: 0 auto;
    padding: clamp(20px, 5vw, 36px) var(--page-pad) clamp(28px, 6vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    text-align: center;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 32px) clamp(24px, 5vw, 40px);
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sheet);
}

.badge-container {
    margin-bottom: clamp(14px, 3vw, 20px);
}

.badge {
    display: inline-block;
    font-size: clamp(0.8rem, 2.4vw, 0.875rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ifood-red);
    background: rgba(234, 29, 44, 0.12);
    padding: 8px 16px;
    border-radius: 999px;
}

.step h1 {
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 clamp(14px, 3vw, 20px);
    color: var(--text);
    letter-spacing: -0.02em;
}

.step > p {
    margin: 0 0 clamp(24px, 5vw, 36px);
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    line-height: 1.55;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    margin: 0 auto clamp(24px, 5vw, 32px);
    max-width: min(100%, 22rem);
    width: 100%;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.14));
}

.hero-image img {
    width: 100%;
    margin: 0 auto;
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2.5vw, 14px);
    justify-content: center;
    margin-bottom: clamp(28px, 6vw, 40px);
}

.benefit-item {
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.action-stack {
    margin-bottom: clamp(28px, 6vw, 40px);
    display: flex;
    justify-content: center;
}

.btn-primary {
    appearance: none;
    width: 100%;
    max-width: min(100%, 22rem);
    border: none;
    border-radius: var(--radius-sm);
    padding: clamp(17px, 3.5vw, 20px) clamp(24px, 5vw, 32px);
    font-size: clamp(1.05rem, 2.8vw, 1.15rem);
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(180deg, var(--ifood-red) 0%, var(--ifood-red-dark) 100%);
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(234, 29, 44, 0.38);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 29, 44, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.trust-strip--cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(12px, 3vw, 16px);
    width: 100%;
}

@media (min-width: 360px) {
    .trust-strip--cards {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(8px, 2vw, 12px);
    }
}

.trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vw, 12px);
    padding: clamp(16px, 3.5vw, 20px) clamp(8px, 2vw, 12px);
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.35;
    min-height: 0;
}

.trust-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 14vw, 64px);
    height: clamp(52px, 14vw, 64px);
    border-radius: 14px;
    background: rgba(234, 29, 44, 0.08);
    flex-shrink: 0;
}

.trust-icon-img {
    width: clamp(30px, 8vw, 38px);
    height: clamp(30px, 8vw, 38px);
    object-fit: contain;
}

.footer {
    padding: clamp(20px, 4vw, 28px) var(--page-pad);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--card);
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: clamp(0.875rem, 2.2vw, 0.9375rem);
    color: var(--text-muted);
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    display: none !important;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 100;
    max-width: min(calc(100% - 32px), var(--content-max));
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: toast-in 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.55s ease forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--page-pad);
    padding-bottom: max(var(--page-pad), env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
}

@media (min-width: 480px) {
    .modal {
        align-items: center;
    }
}

.modal-card {
    width: 100%;
    max-width: min(calc(100vw - 2 * var(--page-pad)), 26rem);
    background: var(--card);
    border-radius: var(--radius);
    padding: 0 0 clamp(24px, 5vw, 32px);
    box-shadow: var(--shadow), var(--shadow-sheet);
    overflow: hidden;
    animation: modal-up 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes modal-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coupon-hero {
    background: linear-gradient(180deg, rgba(234, 29, 44, 0.1) 0%, transparent 100%);
    padding: clamp(24px, 5vw, 32px) clamp(20px, 4vw, 28px) 12px;
}

.coupon-hero img {
    margin: 0 auto;
    max-height: min(50vh, 14rem);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.modal-badge {
    display: inline-block;
    margin: clamp(12px, 3vw, 16px) clamp(20px, 4vw, 28px) 0;
    font-size: clamp(0.75rem, 2vw, 0.8125rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ifood-red);
}

.modal-card h3 {
    margin: 10px clamp(20px, 4vw, 28px) 10px;
    font-size: clamp(1.35rem, 4vw, 1.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.modal-card #coupon-message {
    margin: 0 clamp(20px, 4vw, 28px) 10px;
    font-size: clamp(1rem, 2.5vw, 1.0625rem);
    color: var(--text-muted);
    line-height: 1.5;
}

.coupon-subtitle {
    display: block;
    margin: 0 clamp(20px, 4vw, 28px) clamp(20px, 4vw, 24px);
    font-size: clamp(0.875rem, 2.2vw, 0.9375rem);
    color: var(--text-muted);
    font-weight: 600;
}

.modal-card .btn-primary {
    margin: 0 clamp(20px, 4vw, 28px);
    width: calc(100% - 2 * clamp(20px, 4vw, 28px));
    max-width: none;
}

/* —— Quiz —— */
body[data-page="quiz"] .container {
    justify-content: center;
    padding-top: clamp(16px, 3vh, 28px);
    padding-bottom: clamp(24px, 5vh, 48px);
}

@media (min-height: 720px) {
    body[data-page="quiz"] .container {
        padding-top: clamp(20px, 5vh, 48px);
        padding-bottom: clamp(32px, 6vh, 56px);
    }
}

body[data-page="quiz"] .step--quiz {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    margin-top: 0;
    padding-top: clamp(24px, 4vw, 32px);
    padding-bottom: clamp(28px, 5vw, 40px);
}

body[data-page="quiz"] .step-header {
    order: 0;
    flex-shrink: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.step-header {
    margin-bottom: clamp(24px, 4vw, 32px);
}

.step-count {
    display: block;
    font-size: clamp(0.75rem, 2vw, 0.8125rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ifood-red);
    margin-bottom: 14px;
    text-align: center;
}

.progress-bar {
    height: 11px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

body[data-page="quiz"] .progress-bar {
    max-width: min(100%, 22rem);
    margin-left: auto;
    margin-right: auto;
}

.progress-bar .progress {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ifood-red-dark), var(--ifood-red));
    width: 0;
    transition: width 0.35s ease;
}

.question-title {
    font-size: clamp(1.35rem, 4.2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 clamp(24px, 4vw, 32px);
    padding: 0 clamp(4px, 2vw, 12px);
    color: var(--text);
    text-align: center;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.options {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vw, 14px);
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3.5vw, 18px);
    width: 100%;
    margin: 0;
    padding: clamp(14px, 3vw, 17px) clamp(16px, 3.5vw, 20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font);
    font-size: clamp(1rem, 2.6vw, 1.0625rem);
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 3.5rem;
}

.option-btn:hover {
    border-color: rgba(234, 29, 44, 0.4);
    background: #fffefd;
    box-shadow: 0 6px 20px rgba(234, 29, 44, 0.1);
}

.option-btn:active {
    transform: scale(0.995);
}

.option-btn:focus-visible {
    outline: 2px solid var(--ifood-red);
    outline-offset: 2px;
}

.option-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: clamp(2.75rem, 8vw, 3.25rem);
    height: clamp(2.75rem, 8vw, 3.25rem);
    border-radius: 14px;
    background: rgba(234, 29, 44, 0.09);
    font-family: var(--font-emoji);
    font-size: clamp(1.5rem, 4.5vw, 1.875rem);
    font-weight: normal;
    line-height: 1;
    font-style: normal;
    font-variant-emoji: emoji;
    -webkit-font-smoothing: antialiased;
}

.option-btn .option-label {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    font-family: var(--font);
    font-weight: 600;
}

/* —— CEP —— */
body[data-page="cep"] .container {
    justify-content: center;
    align-items: center;
    padding-top: clamp(16px, 3vh, 32px);
    padding-bottom: clamp(24px, 5vh, 52px);
}

@media (min-height: 700px) {
    body[data-page="cep"] .container {
        padding-top: clamp(20px, 5vh, 48px);
        padding-bottom: clamp(32px, 6vh, 64px);
    }
}

body[data-page="cep"] .step--cep {
    text-align: left;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding-top: clamp(24px, 4vw, 36px);
    padding-bottom: clamp(28px, 5vw, 44px);
}

body[data-page="cep"] .step-header {
    margin-bottom: clamp(22px, 4vw, 32px);
    width: 100%;
}

/* Coluna central para CEP, formulário e cards */
body[data-page="cep"] .cep-title,
body[data-page="cep"] .cep-lead {
    width: 100%;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}

body[data-page="cep"] #cep-error,
body[data-page="cep"] .input-group--floating,
body[data-page="cep"] .action-stack--cep,
body[data-page="cep"] #cep-loading {
    width: 100%;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}

body[data-page="cep"] #cep-error {
    box-sizing: border-box;
}

body[data-page="cep"] .address-card,
body[data-page="cep"] .address-extra-card,
body[data-page="cep"] .freight-box {
    width: 100%;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.cep-title {
    font-size: clamp(1.35rem, 4.2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.28;
    margin: 0 0 clamp(10px, 2vw, 14px);
    padding: 0 clamp(4px, 2vw, 10px);
    text-align: center;
    letter-spacing: -0.02em;
}

.cep-lead {
    margin: 0 0 clamp(22px, 4vw, 30px);
    padding: 0 clamp(4px, 2vw, 10px);
    color: var(--text-muted);
    font-size: clamp(1rem, 2.6vw, 1.08rem);
    line-height: 1.55;
    text-align: center;
}

.form-error {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(234, 29, 44, 0.1);
    border: 1px solid rgba(234, 29, 44, 0.25);
    color: var(--ifood-red-dark);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.input-group--floating {
    margin-bottom: clamp(18px, 3.5vw, 22px);
}

body[data-page="cep"] .input-group:not(.input-group--floating) {
    margin-bottom: clamp(12px, 2.5vw, 14px);
}

.floating-input {
    width: 100%;
    padding: 1.1rem 14px 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 500;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-input:focus {
    outline: none;
    border-color: var(--ifood-red);
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.15);
}

.floating-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.0625rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform 0.2s ease, font-size 0.2s ease, top 0.2s ease, color 0.2s ease;
    transform-origin: left center;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 0.55rem;
    transform: translateY(0) scale(0.78);
    color: var(--ifood-red);
}

.action-stack--cep {
    margin-bottom: clamp(18px, 3.5vw, 24px);
}

body[data-page="cep"] .action-stack--cep .btn-primary {
    max-width: none;
    width: 100%;
}

.inline-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(14px, 3vw, 20px);
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: clamp(8px, 2vw, 12px);
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(234, 29, 44, 0.2);
    border-top-color: var(--ifood-red);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.spinner--sm {
    width: 22px;
    height: 22px;
    border-width: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.address-card {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 3vw, 16px);
    padding: clamp(16px, 3.5vw, 20px) clamp(16px, 3.5vw, 20px);
    background: var(--bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: clamp(18px, 3.5vw, 24px);
}

.address-icon {
    font-family: var(--font-emoji);
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    font-variant-emoji: emoji;
}

.address-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.address-details strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.address-details span {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

.address-extra-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: clamp(18px, 3.5vw, 24px);
}

.address-extra-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    background: #fff;
}

.address-extra-input:focus {
    outline: none;
    border-color: var(--ifood-red);
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.12);
}

.address-extra-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--bg);
}

.address-extra-checkline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 clamp(10px, 2.5vw, 14px);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.address-extra-checkline input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--ifood-red);
}

.freight-box {
    padding: clamp(18px, 4vw, 22px);
    background: linear-gradient(180deg, rgba(234, 29, 44, 0.06) 0%, rgba(234, 29, 44, 0.02) 100%);
    border: 1px solid rgba(234, 29, 44, 0.15);
    border-radius: var(--radius-sm);
    margin-top: clamp(4px, 1.5vw, 10px);
}

.freight-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: clamp(10px, 2vw, 12px);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.freight-row strong {
    color: var(--text);
    font-weight: 700;
    text-align: right;
}

.freight-row:last-of-type {
    margin-bottom: 0;
}

.btn-primary--block-mt {
    width: 100%;
    max-width: none;
    margin-top: clamp(14px, 3vw, 20px);
}

body[data-page="cep"] .form-error {
    margin-bottom: clamp(14px, 3vw, 18px);
}

/* —— Processing / VSL —— */
body[data-page="processing"] .container {
    justify-content: center;
    align-items: center;
    padding-top: clamp(16px, 3vh, 28px);
    padding-bottom: clamp(24px, 5vh, 48px);
}

body[data-page="processing"] .step--processing {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    text-align: center;
    padding-top: clamp(22px, 4vw, 32px);
    padding-bottom: clamp(28px, 5vw, 40px);
}

.processing-title {
    font-size: clamp(1.35rem, 4.2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 clamp(12px, 2.5vw, 16px);
    letter-spacing: -0.02em;
    padding: 0 clamp(8px, 3vw, 16px);
}

.processing-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.0625rem);
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
    margin: 0 auto clamp(22px, 4vw, 28px);
    max-width: 28rem;
    padding: 0 clamp(8px, 3vw, 16px);
    min-height: 1.5em;
    transition: opacity 0.3s ease;
}

.processing-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 22px);
    margin-bottom: clamp(24px, 4vw, 32px);
    min-height: clamp(72px, 18vw, 88px);
}

.processing-progress {
    width: 100%;
    max-width: min(100%, 22rem);
    margin: 0 auto;
}

.processing-progress-segments {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.processing-segment {
    flex: 1;
    min-width: 0;
    height: 8px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.processing-segment i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ifood-red-dark), var(--ifood-red));
    transition: width 0.08s linear;
}

.processing-progress-label {
    display: block;
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    font-weight: 700;
    color: var(--ifood-red);
    letter-spacing: 0.02em;
}

.verified-icon {
    width: clamp(64px, 18vw, 80px);
    height: clamp(64px, 18vw, 80px);
    border-radius: 50%;
    background: linear-gradient(145deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
    animation: verified-pop 0.45s ease;
}

.verified-icon svg {
    width: 45%;
    height: 45%;
    color: #fff;
}

@keyframes verified-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    70% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* VSL em formato vertical (Reels / Stories 9:16) */
.video-card {
    width: 100%;
    max-width: min(100%, 20rem);
    margin: 0 auto;
    text-align: center;
}

.vsl-frame {
    position: relative;
    width: min(100%, 300px, calc(85dvh * 9 / 16));
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 9 / 16;
    max-height: min(85dvh, 720px);
    border-radius: clamp(18px, 5vw, 24px);
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.vsl-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.vsl-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.vsl-overlay-content {
    text-align: center;
    color: #fff;
}

.vsl-overlay-content strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.vsl-overlay-content span {
    font-size: 0.9375rem;
    opacity: 0.9;
    line-height: 1.4;
}

.vsl-overlay-btn {
    appearance: none;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--ifood-red);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(234, 29, 44, 0.4);
}

.vsl-overlay-btn:hover {
    filter: brightness(1.05);
}

.small-text {
    margin: clamp(14px, 3vw, 18px) 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
    padding: 0 clamp(8px, 2vw, 12px);
}

/* —— Success / resgate —— */
body[data-page="success"] .container {
    justify-content: flex-start;
    padding-top: clamp(16px, 3vh, 28px);
    padding-bottom: clamp(28px, 5vh, 48px);
}

body[data-page="success"] .step--success {
    text-align: center;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-top: clamp(22px, 4vw, 32px);
    padding-bottom: clamp(28px, 5vw, 40px);
}

.badge-approved {
    display: inline-block;
    font-size: clamp(0.75rem, 2vw, 0.8125rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: clamp(16px, 3vw, 20px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.success-headline {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 clamp(12px, 2.5vw, 16px);
    letter-spacing: -0.02em;
}

.success-lead {
    margin: 0 auto clamp(22px, 4vw, 28px);
    max-width: 36rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.6vw, 1.0625rem);
    line-height: 1.55;
    padding: 0 clamp(8px, 2vw, 12px);
}

.success-offer-card {
    margin-bottom: clamp(20px, 4vw, 26px);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.success-offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(12px, 3vw, 14px);
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
}

@media (min-width: 520px) {
    .success-offer-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        gap: 10px;
    }
}

.success-reward-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.success-reward-card:hover {
    border-color: rgba(234, 29, 44, 0.35);
    box-shadow: 0 6px 20px rgba(234, 29, 44, 0.12);
}

.success-reward-card.is-selected {
    border-color: var(--ifood-red);
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.2), 0 8px 24px rgba(234, 29, 44, 0.15);
}

.success-reward-card:focus-visible {
    outline: 2px solid var(--ifood-red);
    outline-offset: 2px;
}

.success-reward-media {
    display: block;
    aspect-ratio: 1;
    background: var(--bg);
    overflow: hidden;
}

.success-reward-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.success-reward-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
}

.success-reward-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.old-price {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.new-price {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--ifood-red);
}

.scarcity-box {
    max-width: 26rem;
    margin: 0 auto clamp(20px, 4vw, 26px);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: #fff8e6;
    border: 1px solid rgba(211, 47, 47, 0.2);
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text);
    text-align: left;
}

.scarcity-box strong {
    color: #c62828;
}

.scarcity-timer {
    margin-top: 8px;
    font-weight: 700;
    color: #d32f2f;
}

body[data-page="success"] .action-stack .btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.shipping-note {
    margin: clamp(16px, 3vw, 20px) 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
    padding: 0 clamp(8px, 2vw, 12px);
}

/* —— Gate (loader na raiz) —— */
body.gate-body,
body[data-page="gate"] {
    margin: 0;
    min-height: 100dvh;
    background: #fff;
}

.gate-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 24px;
}

.gate-logo {
    max-height: clamp(48px, 12vw, 64px);
    width: auto;
    object-fit: contain;
}

.gate-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(234, 29, 44, 0.15);
    border-top-color: #ea1d2c;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

.gate-nojs {
    text-align: center;
    padding: 16px;
    font-family: var(--font, system-ui, sans-serif);
}

/* —— Blog —— */
body[data-page="blog"] .blog-wrap {
    justify-content: flex-start;
    padding-top: clamp(20px, 4vw, 32px);
    padding-bottom: clamp(32px, 6vw, 48px);
}

.blog-article {
    text-align: left;
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
}

.blog-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}

.blog-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.blog-lead {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 28px;
}

.blog-article h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 28px 0 12px;
    color: var(--text);
}

.blog-article p {
    margin: 0 0 16px;
    line-height: 1.65;
    color: var(--text);
}

.blog-list {
    margin: 0 0 16px;
    padding-left: 1.25rem;
    line-height: 1.65;
}

.blog-list li {
    margin-bottom: 8px;
}

.blog-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
