: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: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, 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;
}

/* Quiz home: produto “flutuando” */
.hero-image--floating {
    position: relative;
    will-change: transform;
    animation: hero-float 4.5s ease-in-out infinite;
}

.hero-countdown {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #fcd34d;
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 5px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.hero-countdown strong {
    font-variant-numeric: tabular-nums;
    color: #c2185b;
    font-weight: 800;
}

body.theme-maismu .hero-image--floating {
    filter: drop-shadow(0 22px 44px rgba(21, 21, 65, 0.16)) drop-shadow(0 10px 24px rgba(0, 160, 227, 0.14));
}

/* Quiz landing: sem cartão branco atrás do conteúdo */
body[data-page="home"].theme-maismu .step--home {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Some o fundo branco do estúdio da foto ao fundo da página */
body[data-page="home"].theme-maismu .hero-image.hero-image--floating {
    isolation: isolate;
    background: radial-gradient(
        ellipse 90% 80% at 50% 42%,
        rgba(227, 242, 252, 0.95) 0%,
        rgba(240, 249, 255, 0.65) 55%,
        transparent 78%
    );
    border-radius: clamp(16px, 4vw, 22px);
    padding: clamp(8px, 2vw, 14px);
    filter: drop-shadow(0 18px 40px rgba(21, 21, 65, 0.12)) drop-shadow(0 8px 20px rgba(0, 160, 227, 0.1));
}

body[data-page="home"].theme-maismu .hero-image--floating img {
    mix-blend-mode: multiply;
    border-radius: clamp(10px, 2.5vw, 14px);
    vertical-align: middle;
}

@keyframes hero-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image--floating {
        animation: none;
    }
}

.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.5rem 14px 0.7rem;
    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.45rem;
    transform: translateY(0) scale(0.75);
    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);
}

.cep-loading-wrap {
    flex-direction: column;
    gap: clamp(14px, 3vw, 18px);
    padding: clamp(20px, 4vw, 28px) clamp(16px, 3vw, 24px);
    min-height: clamp(120px, 22vw, 140px);
}

.cep-loading-text {
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    font-weight: 600;
    color: var(--text);
}

.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;
}

.spinner--cep {
    width: clamp(44px, 12vw, 52px);
    height: clamp(44px, 12vw, 52px);
    border-width: 4px;
    border-color: rgba(0, 160, 227, 0.2);
    border-top-color: #00a0e3;
    flex-shrink: 0;
}

body.theme-maismu .spinner:not(.spinner--cep) {
    border-color: rgba(0, 160, 227, 0.22);
    border-top-color: #00a0e3;
}

@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.3;
    margin: 0 0 clamp(12px, 2.5vw, 16px);
    letter-spacing: -0.02em;
    text-align: center;
    display: block;
}

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

.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;
    align-items: stretch;
}


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

.success-offer-grid--single {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.price-row--solo {
    justify-content: center;
}

.price-row--solo .new-price {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
}

.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: contain;
    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;
}

/* Botão Resgatar por card */
.reward-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-item .success-reward-card {
    flex: 1;
}

.btn-resgatar {
    max-width: 100%;
    padding: clamp(12px, 2.5vw, 14px) clamp(16px, 3vw, 20px);
    font-size: clamp(0.9rem, 2.2vw, 0.95rem);
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.btn-resgatar:hover {
    background: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-resgatar--disabled,
.btn-resgatar:disabled {
    background: #d1d5db;
    box-shadow: none;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 1;
    animation: none !important;
}

.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);
}

body.theme-maismu[data-page="success"] .success-reward-card:hover {
    border-color: rgba(0, 160, 227, 0.4);
    box-shadow: 0 6px 20px rgba(0, 160, 227, 0.12);
}

body.theme-maismu[data-page="success"] .success-reward-card.is-selected {
    border-color: #00a0e3;
    box-shadow: 0 0 0 3px rgba(0, 160, 227, 0.22), 0 8px 24px rgba(0, 160, 227, 0.14);
}

body.theme-maismu[data-page="success"] .success-reward-card:focus-visible {
    outline-color: #00a0e3;
}

body.theme-maismu[data-page="success"] .new-price {
    color: #151541;
}

.success-reward-card--unavailable {
    position: relative;
    cursor: not-allowed;
    border-style: dashed;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

.success-reward-card--unavailable:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    transform: none;
}

.success-reward-card--unavailable .success-reward-image {
    filter: grayscale(1);
    opacity: 0.55;
}

.success-reward-unavailable-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(21, 21, 65, 0.78);
    padding: 4px 8px;
    border-radius: 6px;
    pointer-events: none;
}

/* —— 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);
}

/* —— Tema +Mu (loja pré-treinos) —— */
body.theme-maismu {
    --ifood-red: #00a0e3;
    --ifood-red-dark: #0077c8;
    font-family: "Archivo", var(--font);
}

body.theme-maismu .badge {
    color: #151541;
    background: rgba(0, 160, 227, 0.14);
}

.header--maismu {
    border-bottom-color: rgba(21, 21, 65, 0.08);
}

.logo-link-maismu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.maismu-logo {
    max-height: clamp(48px, 12vw, 64px);
}

.quiz-kicker {
    margin: 0 0 6px;
    font-size: clamp(0.75rem, 2.2vw, 0.8125rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00a0e3;
}

/* Frase de destaque (home + perguntas) — substitui o rótulo curto */
.quiz-kicker--lead {
    margin: 0 0 clamp(14px, 3vw, 20px);
    padding: 0 clamp(8px, 3vw, 16px);
    font-size: clamp(0.95rem, 2.7vw, 1.125rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.45;
    text-align: center;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
    color: #151541;
}

body.theme-maismu .step-count {
    color: #151541;
}

body.theme-maismu .progress-bar .progress {
    background: linear-gradient(90deg, #151541, #00a0e3);
}

.option-btn--with-image {
    align-items: center;
}

.option-thumb {
    flex-shrink: 0;
    width: clamp(3rem, 10vw, 3.5rem);
    height: clamp(3rem, 10vw, 3.5rem);
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-maismu .option-btn:hover {
    border-color: rgba(0, 160, 227, 0.45);
    box-shadow: 0 6px 20px rgba(0, 160, 227, 0.12);
}

body.theme-maismu .option-btn:focus-visible {
    outline-color: #00a0e3;
}

body.theme-maismu .option-btn .icon {
    background: rgba(0, 160, 227, 0.12);
}

body.theme-maismu .options.options--picked .option-btn {
    pointer-events: none;
}

body.theme-maismu .options.options--picked .option-btn:not(.option-btn--correct) {
    opacity: 0.42;
    filter: grayscale(0.25);
}

body.theme-maismu .option-btn.option-btn--correct {
    border-color: #22c55e;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.28);
    color: #14532d;
}

body.theme-maismu .option-btn.option-btn--correct .icon {
    background: rgba(22, 163, 74, 0.2);
}

body.theme-maismu .option-btn.option-btn--correct .option-thumb {
    border-color: rgba(22, 163, 74, 0.4);
    background: #f0fdf4;
}

body.theme-maismu .option-btn--unavailable {
    position: relative;
    opacity: 0.78;
    cursor: not-allowed;
    filter: grayscale(0.35);
    border-style: dashed;
    border-color: rgba(21, 21, 65, 0.22);
    box-shadow: none;
}

body.theme-maismu .option-btn--unavailable:hover {
    border-color: rgba(21, 21, 65, 0.22);
    box-shadow: none;
    transform: none;
}

body.theme-maismu .option-btn--unavailable .option-label {
    color: var(--text-muted);
}

.option-unavailable-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(21, 21, 65, 0.78);
    padding: 4px 8px;
    border-radius: 6px;
    pointer-events: none;
}

/* Botão primário: sem halo colorido (o CSS base usa sombra vermelha fixa) */
body.theme-maismu .btn-primary,
body.theme-maismu .btn-primary:hover {
    box-shadow: none;
}

.footer--maismu {
    font-size: 0.875rem;
}

.footer--maismu a {
    color: #00a0e3;
    font-weight: 700;
    text-decoration: none;
}

.footer--maismu a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════════
   Quiz loading — 3 pontos entre perguntas
   ════════════════════════════════════════════ */
.step--quiz {
    position: relative;
}

.quiz-loading {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 20;
    animation: qlFadeIn .1s ease both;
}

.quiz-loading.hidden {
    display: none;
}

@keyframes qlFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.quiz-loading-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
    animation: qlBounce .55s ease-in-out infinite alternate;
}

.quiz-loading-dot:nth-child(2) { animation-delay: .12s; }
.quiz-loading-dot:nth-child(3) { animation-delay: .24s; }

@keyframes qlBounce {
    from { transform: translateY(0);   opacity: .35; }
    to   { transform: translateY(-8px); opacity: 1; }
}

/* ════════════════════════════════════════════
   Tema PARFOIS — preto + branco + verde sucesso
   ════════════════════════════════════════════ */
body.theme-parfois {
    --ifood-red:      #1a1a1a;
    --ifood-red-dark: #000000;
    font-family: "Archivo", var(--font);
}

body.theme-parfois .badge {
    color: #fff;
    background: #1a1a1a;
}

/* Header — fundo branco, texto preto */
.header--parfois {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

/* Logo texto — preto */
.parfois-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.parfois-logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.parfois-logo-img {
    max-height: clamp(36px, 10vw, 52px);
    width: auto;
    display: block;
}

/* Kicker / rótulo */
body.theme-parfois .quiz-kicker {
    color: #1a1a1a;
}

body.theme-parfois .quiz-kicker--lead {
    color: #1a1a1a;
}

/* Contador de pergunta */
body.theme-parfois .step-count {
    color: #1a1a1a;
}

/* Barra de progresso — verde */
body.theme-parfois .progress-bar .progress {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

/* Ícone das opções */
body.theme-parfois .option-btn .icon {
    background: rgba(0, 0, 0, 0.06);
}

/* Hover/focus da opção */
body.theme-parfois .option-btn:hover {
    border-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

body.theme-parfois .option-btn:focus-visible {
    outline-color: #1a1a1a;
}

/* Picked state */
body.theme-parfois .options.options--picked .option-btn {
    pointer-events: none;
}

body.theme-parfois .options.options--picked .option-btn:not(.option-btn--correct) {
    opacity: 0.42;
    filter: grayscale(0.25);
}

/* Opção seleccionada — VERDE sucesso */
body.theme-parfois .option-btn.option-btn--correct {
    border-color: #22c55e;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.28);
    color: #14532d;
}

body.theme-parfois .option-btn.option-btn--correct .icon {
    background: rgba(22, 163, 74, 0.20);
}

body.theme-parfois .option-btn.option-btn--correct .option-thumb {
    border-color: rgba(22, 163, 74, 0.40);
    background: #f0fdf4;
}

/* Botão primário — sem sombra vermelha do tema base */
body.theme-parfois .btn-primary,
body.theme-parfois .btn-primary:hover {
    box-shadow: none;
}

/* Ponto de interrogação pulsante nas perguntas */
.question-mark-pulse {
    display: inline-block;
    animation: qmarkPulse 1.4s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes qmarkPulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.35); opacity: .65; }
}

/* Selo verificado tipo Instagram */
.verified-badge {
    display: inline-block;
    width: clamp(22px, 5vw, 28px);
    height: clamp(22px, 5vw, 28px);
    vertical-align: middle;
    margin-left: 4px;
    position: relative;
    top: -2px;
    flex-shrink: 0;
}

/* Imagem hero estática no tema PARFOIS */
body.theme-parfois .hero-image--floating {
    animation: none;
    will-change: auto;
}

/* Botão home — pulsar lento */
body.theme-parfois[data-page="home"] #btn-start {
    animation: parfoisPulse 2s ease-in-out infinite;
}

body.theme-parfois[data-page="home"] #btn-start:hover,
body.theme-parfois[data-page="home"] #btn-start:active {
    animation: none;
}


@keyframes parfoisPulse {
    0%, 100% { transform: translateY(0)    scale(1); }
    50%       { transform: translateY(-5px) scale(1.03); }
}

/* Spinner */
body.theme-parfois .spinner:not(.spinner--cep) {
    border-color: rgba(0, 0, 0, 0.12);
    border-top-color: #1a1a1a;
}

/* Success — card seleccionado verde */
body.theme-parfois[data-page="success"] .success-reward-card:hover {
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

body.theme-parfois[data-page="success"] .success-reward-card.is-selected {
    border-color: transparent;
    border-width: 2px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.18);
    animation: cardWiggle 3s ease-in-out infinite;
    transform-origin: center center;
}

/* Borda verde apenas na imagem */
body.theme-parfois[data-page="success"] .success-reward-card.is-selected .success-reward-media {
    border: 3px solid #22c55e;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    box-sizing: border-box;
}

/* Texto Disponível no card activo */
.available-label {
    color: #16a34a !important;
    font-weight: 800;
}

/* Barra de stock discreta */
.stock-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.stock-bar-text {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 500;
}

.stock-bar-track {
    display: block;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.stock-bar-fill {
    display: block;
    height: 100%;
    background: #16a34a;
    border-radius: 99px;
    transition: width 1.2s ease;
}

body.theme-parfois[data-page="success"] .success-reward-card.is-selected:hover,
body.theme-parfois[data-page="success"] .success-reward-card.is-selected:active {
    animation: none;
}

@keyframes cardWiggle {
    0%,  60%, 100% { transform: rotate(0deg)    translateY(0); }
    62%             { transform: rotate(-1.5deg) translateY(-2px); }
    64%             { transform: rotate(1.5deg)  translateY(-3px); }
    66%             { transform: rotate(-1deg)   translateY(-2px); }
    68%             { transform: rotate(1deg)    translateY(-1px); }
    70%             { transform: rotate(0deg)    translateY(0); }
}

body.theme-parfois[data-page="success"] .success-reward-card:focus-visible {
    outline-color: #1a1a1a;
}

body.theme-parfois[data-page="success"] .new-price {
    color: #1a1a1a;
    font-weight: 800;
}

/* Notificação de visitantes */
.visitor-notif {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: clamp(0.7rem, 2.8vw, 0.78rem);
    font-weight: 500;
    padding: 8px clamp(10px, 3vw, 16px);
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 0 rgba(0,0,0,0.06);
    white-space: normal;
    text-align: center;
    pointer-events: none;
    line-height: 1.4;
}

.visitor-notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Footer */
.footer--parfois {
    font-size: 0.875rem;
}

.footer--parfois a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
}

.footer--parfois a:hover {
    text-decoration: underline;
}

/* —— Quiz: grelha de imagens 2×2 —— */
.options--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 2.5vw, 12px);
}

.option-btn--image-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    min-height: auto;
}

.option-btn--image-card .option-thumb {
    width: 100%;
    height: clamp(96px, 26vw, 130px);
    object-fit: cover;
    border-radius: 0;
    background: var(--bg);
    border: none;
    display: block;
    flex-shrink: 0;
}

.option-btn--image-card .option-label {
    padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 12px);
    text-align: center;
    font-size: clamp(0.8125rem, 2.2vw, 0.9rem);
    line-height: 1.3;
    font-weight: 700;
}

body.theme-parfois .option-btn--image-card.option-btn--correct .option-thumb {
    filter: brightness(0.92);
}

/* —— Quiz: input de texto / NIF —— */
.quiz-input-wrap {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vw, 16px);
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
}

.quiz-input-wrap .btn-primary {
    max-width: none;
    width: 100%;
}

.quiz-input-wrap .input-group--floating {
    margin-bottom: 0;
}

.quiz-input-note {
    margin: 0;
    font-size: clamp(0.8rem, 2.1vw, 0.875rem);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.45;
}

/* —— NIF: caixa de verificação —— */
.nif-verify-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(14px, 3vw, 18px) clamp(16px, 3.5vw, 20px);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.nif-verify-box .spinner {
    flex-shrink: 0;
    border-color: rgba(0, 0, 0, 0.15);
    border-top-color: #1a1a1a;
}

.nif-verify-box.nif-verify-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

/* ================================================
   MOBILE OPTIMISATION — todas as páginas
   ================================================ */

/* Espaço extra no fundo de todas as páginas
   para não ficar por baixo da barra de visitantes */
body[data-page="home"] .container,
body[data-page="quiz"] .container,
body[data-page="cep"] .container,
body[data-page="processing"] .container,
body[data-page="success"] .container {
    padding-bottom: calc(clamp(20px, 5vw, 36px) + 56px);
}

/* —— HOME —— */
body[data-page="home"] .container {
    padding-top: clamp(12px, 3vw, 24px);
    justify-content: center;
}

body[data-page="home"] .step--home {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 clamp(16px, 4vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

body[data-page="home"] .step h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: clamp(10px, 2.5vw, 16px);
    text-align: center;
}

body[data-page="home"] .step > p {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    margin: 0 0 clamp(18px, 4vw, 28px);
    text-align: center;
    max-width: 26rem;
}

body[data-page="home"] .hero-image {
    max-width: min(100%, 20rem);
    width: 100%;
    margin-bottom: clamp(18px, 4vw, 28px);
}

body[data-page="home"] .action-stack {
    width: 100%;
    max-width: 22rem;
    margin-bottom: 0;
}

body[data-page="home"] .action-stack .btn-primary {
    width: 100%;
    max-width: none;
    padding: clamp(16px, 4vw, 20px);
    font-size: clamp(1.05rem, 3.5vw, 1.2rem);
}

/* —— QUIZ —— */
body[data-page="quiz"] .step--quiz {
    padding: clamp(16px, 3.5vw, 28px) clamp(12px, 3.5vw, 24px) clamp(20px, 4vw, 32px);
}

.question-title {
    font-size: clamp(1.15rem, 4vw, 1.55rem);
    margin-bottom: clamp(18px, 3.5vw, 26px);
    padding: 0 clamp(2px, 1vw, 8px);
}

.option-btn {
    padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 20px);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    min-height: 3rem;
}

.option-btn .icon {
    width: clamp(2.4rem, 7.5vw, 3rem);
    height: clamp(2.4rem, 7.5vw, 3rem);
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    border-radius: 12px;
}

.options {
    gap: clamp(10px, 2vw, 12px);
}

/* —— CEP —— */
body[data-page="cep"] .step--cep {
    padding: clamp(16px, 3.5vw, 28px) clamp(12px, 3.5vw, 24px) clamp(20px, 4vw, 32px);
}

.cep-title {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    margin-bottom: clamp(8px, 2vw, 12px);
}

.cep-lead {
    font-size: clamp(0.875rem, 2.4vw, 1rem);
    margin-bottom: clamp(18px, 3.5vw, 26px);
}

/* —— PROCESSING —— */
body[data-page="processing"] .step--processing {
    padding: clamp(16px, 3.5vw, 28px) clamp(12px, 3.5vw, 24px) clamp(20px, 4vw, 32px);
}

.processing-title {
    font-size: clamp(1.15rem, 4vw, 1.55rem);
}

.processing-subtitle {
    font-size: clamp(0.875rem, 2.4vw, 1rem);
}

.video-card {
    max-width: min(100%, 17rem);
}

/* —— SUCCESS —— */
body[data-page="success"] .step--success {
    padding: clamp(14px, 3vw, 24px) clamp(10px, 2.5vw, 20px) clamp(14px, 3vw, 24px);
}

.success-headline {
    font-size: clamp(1.2rem, 4.5vw, 1.65rem);
    margin-bottom: clamp(8px, 2vw, 12px);
}

.success-lead {
    font-size: clamp(0.875rem, 2.4vw, 1rem);
    margin-bottom: clamp(14px, 3vw, 20px);
    padding: 0 clamp(4px, 1.5vw, 8px);
}

/* Cards de recompensa: disponível ocupa linha inteira, esgotados em linha */
.success-offer-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 14px);
}

.reward-item--main {
    width: 100%;
}

/* Linha dos 2 cards esgotados sempre lado a lado */
.reward-row-unavailable {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(8px, 2vw, 12px);
}

.reward-row-unavailable .reward-item {
    min-width: 0;
}

/* Esgotados: imagem proporcional */
.success-reward-card--unavailable .success-reward-media {
    aspect-ratio: 1 / 1;
}

/* Oculta os botões "Resgatar" desactivados */
.btn-resgatar--disabled {
    display: none;
}

/* Desktop: layout em 3 colunas */
@media (min-width: 520px) {
    .success-offer-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .reward-row-unavailable {
        display: contents;
    }

    .btn-resgatar--disabled {
        display: flex;
    }
}

/* Botão Resgatar activo — destaque total */
#btn-checkout.btn-resgatar {
    width: 100%;
    max-width: none;
    padding: clamp(14px, 3vw, 18px) clamp(20px, 4vw, 28px);
    font-size: clamp(1rem, 2.8vw, 1.1rem);
    background: #1a1a1a;
    letter-spacing: 0.02em;
}

/* Botão primário geral — sem overflow em telas pequenas */
.btn-primary {
    max-width: min(100%, 22rem);
    font-size: clamp(0.95rem, 2.7vw, 1.1rem);
}

.visitor-notif {
    user-select: none;
}

/* Verified badge — inline com o texto */
.verified-badge {
    display: inline-block;
    vertical-align: middle;
    width: clamp(18px, 4.5vw, 22px);
    height: clamp(18px, 4.5vw, 22px);
    flex-shrink: 0;
}
