/* ============================================
   QUIZ DA TRANSFORMAÇÃO DE VIDA
   Design fiel ao Stitch — Light Theme
   Font: Manrope | Primary: #2bee7c
   ============================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
    --primary: #2bee7c;
    --primary-dark: #22d06c;
    --primary-light: #e6ffee;
    --primary-glow: rgba(43, 238, 124, 0.25);

    --black: #111111;
    --gray-900: #1a1a1a;
    --gray-700: #444444;
    --gray-600: #666666;
    --gray-400: #999999;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #ffffff;

    --success: #2bee7c;
    --whatsapp: #25d366;

    --font: 'Manrope', system-ui, -apple-system, sans-serif;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font);
    background: var(--gray-100);
    color: var(--black);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button,
a {
    font-family: var(--font);
}

ul {
    list-style: none;
}

/* --- Quiz Container --- */
.quiz-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* --- Screens --- */
.screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition:
        opacity 500ms var(--ease),
        transform 500ms var(--ease),
        visibility 0s linear 500ms;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition:
        opacity 500ms var(--ease),
        transform 500ms var(--ease),
        visibility 0s linear 0s;
}

.screen.exit-left {
    opacity: 0;
    transform: translateX(-50px);
}

.screen-inner {
    width: 100%;
    max-width: 480px;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ============================================
   TELA 1 — HOME / LANDING
   ============================================ */
.home-screen {
    background: var(--white);
    justify-content: flex-start;
}

.home-screen .screen-inner {
    padding: 0;
    max-width: 100%;
}

/* Hero image container */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 220px;
    max-height: 380px;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
}

/* Logo badge on hero */
.hero-logo-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 2;
}

.hero-logo-badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* Home content below hero */
.home-content {
    padding: 28px 24px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.home-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--black);
    letter-spacing: -0.3px;
}

.home-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.55;
    max-width: 360px;
}

/* Social proof avatars */
.social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.avatars-stack {
    display: flex;
}

.avatars-stack .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -8px;
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.avatars-stack .avatar:first-child {
    margin-left: 0;
}

.social-proof-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.social-proof-text span {
    color: var(--primary-dark);
}

/* Tags */
.home-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition: all 200ms var(--ease);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--black);
    box-shadow: 0 4px 16px var(--primary-glow);
    width: 100%;
    max-width: 380px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

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

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-dark {
    background: var(--black);
    color: var(--white);
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-md);
}

.btn-dark:hover {
    background: var(--gray-900);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    width: 100%;
    max-width: 380px;
    font-size: 16px;
    padding: 18px 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20c05c;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
    width: 100%;
    max-width: 380px;
}

.btn-outline:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

.btn-text {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px;
    transition: color 200ms;
}

.btn-text:hover {
    color: var(--gray-600);
}

.btn-icon {
    font-size: 1.1em;
}

.btn-arrow {
    font-size: 18px;
    transition: transform 200ms;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* ============================================
   BARRA DE PROGRESSO
   ============================================ */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

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

.progress-step {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.progress-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
}

.progress-track {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 600ms var(--ease);
}

/* ============================================
   PERGUNTA — HEADER
   ============================================ */
.question-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--black);
    letter-spacing: -0.2px;
}

.question-subtitle {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-top: -8px;
}

/* ============================================
   Q1 — GRID DE CARDS COM IMAGEM
   ============================================ */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 200ms var(--ease);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.grid-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.grid-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary), var(--shadow-md);
}

.grid-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: background 200ms;
}

.grid-card.selected .grid-card-icon {
    background: rgba(43, 238, 124, 0.2);
}

.grid-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
}

.grid-card-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

/* ============================================
   Q2 — LISTA DE CARDS HORIZONTAIS
   ============================================ */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.list-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 200ms var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.list-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.list-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.list-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background 200ms;
}

.list-card.selected .list-card-icon {
    background: rgba(43, 238, 124, 0.2);
}

.list-card-content {
    flex: 1;
    min-width: 0;
}

.list-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}

.list-card-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

.list-card-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
    position: relative;
    transition: all 200ms var(--ease);
}

.list-card.selected .list-card-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.list-card.selected .list-card-radio::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   Q3 — CARDS GRANDES COM IMAGEM DE FUNDO
   ============================================ */
.options-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.big-card {
    position: relative;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 200ms var(--ease);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.big-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.big-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary);
}

.big-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.big-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.big-card-emoji {
    font-size: 28px;
}

.big-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.big-card-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ============================================
   Q4 — TELA CONVITE
   ============================================ */
.invite-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.invite-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #d4fce4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.invite-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--black);
}

.invite-title .highlight {
    color: var(--primary-dark);
}

.invite-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.invite-social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.invite-social .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.invite-social-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.invite-social-text span {
    color: var(--primary-dark);
}

.invite-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
}

/* ============================================
   TELA FINAL — RESULTADO
   ============================================ */
.result-screen {
    background: var(--gray-100);
}

.result-screen .screen-inner {
    gap: 20px;
    align-items: center;
    text-align: center;
}

.result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-top: 8px;
}

.result-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--black);
}

.result-subtitle {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 380px;
}

/* CTA Block cards */
.cta-card {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    box-shadow: var(--shadow-md);
    position: relative;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.cta-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.3;
}

.cta-card-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

.cta-card-icon {
    font-size: 40px;
    align-self: center;
    margin-bottom: 4px;
}

/* Terms text */
.terms-text {
    font-size: 11px;
    color: var(--gray-400);
    line-height: 1.5;
    text-align: center;
    margin-top: 8px;
}

.terms-text a {
    color: var(--gray-600);
    text-decoration: underline;
}

/* ============================================
   NAV ROW (back + next)
   ============================================ */
.nav-row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.btn-back {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    font-size: 18px;
    cursor: pointer;
    transition: all 200ms var(--ease);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.btn-back:hover {
    background: var(--gray-200);
}

.nav-row .btn-primary {
    flex: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    60% {
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: fadeInUp 500ms var(--ease) both;
}

.animate-in-1 {
    animation-delay: 100ms;
}

.animate-in-2 {
    animation-delay: 200ms;
}

.animate-in-3 {
    animation-delay: 300ms;
}

.animate-in-4 {
    animation-delay: 400ms;
}

.animate-in-5 {
    animation-delay: 500ms;
}

/* Confetti */
.confetti-wrapper {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiDrop 2.5s ease-in forwards;
}

@keyframes confettiDrop {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Small phones */
@media (max-width: 374px) {
    .screen-inner {
        padding: 16px 16px 32px;
    }

    .home-content {
        padding: 20px 16px 32px;
    }

    .home-title {
        font-size: 22px;
    }

    .question-title {
        font-size: 19px;
    }

    .options-grid {
        gap: 8px;
    }

    .grid-card {
        padding: 14px 8px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Tablets */
@media (min-width: 640px) {
    .screen-inner {
        max-width: 520px;
        padding: 32px 24px 48px;
    }

    .home-content {
        padding: 32px 32px 48px;
    }

    .home-title {
        font-size: 30px;
    }

    .question-title {
        font-size: 24px;
    }

    .hero-image-container {
        height: 50vh;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .screen-inner {
        max-width: 560px;
        padding: 40px 32px 56px;
    }

    .hero-image-container {
        height: 50vh;
        max-height: 500px;
    }

    .home-title {
        font-size: 34px;
    }

    .question-title {
        font-size: 26px;
    }

    .grid-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .list-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .big-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
}

/* Very short viewports (landscape phones) */
@media (max-height: 600px) {
    .hero-image-container {
        height: 30vh;
        min-height: 160px;
    }

    .home-content {
        padding: 16px 20px 24px;
        gap: 10px;
    }

    .screen-inner {
        padding: 16px 16px 24px;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}