/* ============================
   Reset & Base
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #0f1a35;
    background: #0a1228;
    overflow: hidden;
}

/* ============================
   Container
   ============================ */
.container {
    max-width: 560px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* ============================
   Seções
   ============================ */
.section {
    width: 100%;
    padding: clamp(24px, 4vh, 56px) clamp(20px, 5vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vh, 36px);
    flex: 1 1 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

/* --- Header: foto + pergunta (slim, horizontal) --- */
.section--header {
    background:
        radial-gradient(ellipse at center top, rgba(212, 165, 52, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    padding: clamp(14px, 2.4vh, 24px) clamp(18px, 5vw, 28px);
    gap: 18px;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.avatar-ring {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 45deg,
        #d4a534 0deg,
        #f4d06f 90deg,
        #00a651 180deg,
        #007a3d 270deg,
        #d4a534 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 18px rgba(15, 26, 53, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    flex-shrink: 0;
    animation: ringSpin 14s linear infinite;
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    padding: 2px;
    position: relative;
    animation: ringSpinReverse 14s linear infinite;
}

@keyframes ringSpinReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 50%;
    display: block;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f1a35 0%, #1a2a52 100%);
    color: #d4a534;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    display: none;
    align-items: center;
    justify-content: center;
}

.greeting {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f1a35;
    text-align: left;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    flex: 1;
}

/* --- Plano 2x: branco com leve textura de luz dourada --- */
.section--plano2x {
    background:
        radial-gradient(ellipse at top, rgba(212, 165, 52, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
    color: #0f1a35;
    padding-bottom: clamp(40px, 6vh, 72px);
}

/* Linha dourada decorativa no topo do Plano 2x (separa do header) */
.section--plano2x::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 165, 52, 0.5) 50%, transparent 100%);
}

/* --- Igreen: verde profundo, "subindo" do branco com cantos arredondados --- */
.section--igreen {
    background:
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.14) 0%, transparent 65%),
        linear-gradient(180deg, #00a651 0%, #007a3d 100%);
    color: #ffffff;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    padding-top: clamp(36px, 5vh, 56px);
    box-shadow:
        0 -12px 32px rgba(0, 60, 30, 0.18),
        0 -1px 0 rgba(255, 255, 255, 0.15) inset;
    z-index: 1;
}

/* Brilho sutil acima da curva, como "luz" entre as seções */
.section--igreen::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: 2px;
}

/* ============================
   Logo
   ============================ */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo--plano2x {
    max-width: min(360px, 80%);
    max-height: clamp(70px, 14vh, 140px);
    filter: drop-shadow(0 4px 16px rgba(15, 26, 53, 0.12));
}

.logo--igreen {
    max-width: min(280px, 72%);
    max-height: clamp(60px, 12vh, 120px);
    filter: drop-shadow(0 6px 20px rgba(0, 40, 20, 0.35));
}

.logo-fallback {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: center;
    text-transform: uppercase;
}

.section--plano2x .logo-fallback {
    color: #0f1a35;
}

.section--igreen .logo-fallback {
    color: #ffffff;
}

/* ============================
   Botões
   ============================ */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 440px;
}

.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: clamp(14px, 2.2vh, 22px) clamp(20px, 4vw, 28px);
    border-radius: 14px;
    font-family: inherit;
    font-size: clamp(0.85rem, 1.6vh, 1rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                background 0.25s ease,
                filter 0.25s ease;
    cursor: pointer;
    border: none;
    overflow: hidden;
    isolation: isolate;
}

.btn::after {
    content: "→";
    margin-left: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    transition: transform 0.25s ease;
}

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

.btn:hover::after {
    transform: translateX(4px);
}

.btn:active {
    transform: translateY(-1px);
}

/* --- Botão Plano 2x: navy com brilho dourado --- */
.btn--plano2x {
    background: linear-gradient(135deg, #0f1a35 0%, #1a2a52 100%);
    color: #ffffff;
    box-shadow:
        0 10px 28px rgba(15, 26, 53, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 165, 52, 0.4);
}

.btn--plano2x::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d4a534 0%, #f4d06f 50%, #b8860b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn--plano2x:hover {
    color: #0f1a35;
    box-shadow:
        0 14px 36px rgba(212, 165, 52, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: #d4a534;
}

.btn--plano2x:hover::before {
    opacity: 1;
}

/* --- Botões Igreen: branco com texto verde --- */
.btn--igreen {
    background: #ffffff;
    color: #007a3d;
    box-shadow:
        0 10px 28px rgba(0, 60, 30, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn--igreen:hover {
    background: #f0fdf4;
    color: #006633;
    box-shadow:
        0 14px 36px rgba(0, 60, 30, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ============================
   Responsivo
   ============================ */
@media (max-width: 480px) {
    .container {
        box-shadow: none;
    }

    .section {
        padding: 48px 22px;
        gap: 32px;
    }

    .section--header {
        padding: 18px 22px;
        gap: 14px;
    }

    .avatar-ring {
        width: 64px;
        height: 64px;
    }

    .greeting {
        font-size: 1.3rem;
    }

    .avatar-fallback {
        font-size: 1.2rem;
    }

    .logo--plano2x {
        max-width: 280px;
    }

    .logo--igreen {
        max-width: 200px;
    }

    .btn {
        padding: 18px 22px;
        font-size: 0.875rem;
    }

    .btn::after {
        font-size: 1rem;
        margin-left: 10px;
    }

    .logo-fallback {
        font-size: 2.25rem;
    }
}

@media (max-width: 360px) {
    .btn {
        font-size: 0.8rem;
        padding: 16px 18px;
    }
}
