/* Proteção Anti-Cópia */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
img, video {
    pointer-events: none; /* Impede arrastar imagens/vídeos */
}

:root {
    --primary: #007AFF;
    --primary-hover: #0056b3;
    --secondary: #FF9500;
    --text-dark: #1d1d1f;
    --text-light: #86868b;
    --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --border: #d2d2d7;
    --success: #34C759;
    --pix: #32BCAD;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-card);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: var(--bg-card);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.35;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

p.subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

.step-view {
    display: none;
    flex: 1;
    flex-direction: column;
    animation: fadeIn 0.4s ease;
}

.step-view.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Intro */
.intro-img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 25px;
    object-fit: cover;
}

/* Barra de progresso */
.progress-container {
    width: 100%;
    background-color: var(--border);
    border-radius: 10px;
    height: 6px;
    margin-bottom: 25px;
    overflow: hidden;
    display: none;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.4s ease;
}

/* Inputs */
.custom-input {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #f9f9fb;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    -webkit-user-select: text;
    user-select: text;
}

.custom-input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.input-group {
    width: 100%;
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-msg {
    color: #d93025;
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 10px;
    display: none;
}

/* Loading */
#view-loading {
    text-align: center;
    padding: 40px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Resultado */
.success-icon {
    background-color: var(--pix);
    color: #ffffff;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    font-size: 28px;
    margin: 0 auto 15px auto;
    text-align: center;
}

.result-pill {
    background-color: #f9f9fb;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 15px;
    display: inline-block;
    margin-bottom: 15px;
}

.result-pill p {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.result-video {
    width: 100%;
    border-radius: 12px;
    border: 3px solid var(--pix);
    box-sizing: border-box;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.2);
}

/* Botões */
.cta-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #32BCAD 0%, #008a49 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Brilho passando no botão */
.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.cta-btn:active {
    transform: scale(0.97);
}

.cta-btn:hover {
    box-shadow: 0 10px 25px rgba(0, 168, 89, 0.45);
    transform: translateY(-2px);
}

.cta-offer {
    flex-direction: column;
    line-height: 1.3;
    padding: 12px 20px;
}
.cta-offer span:first-child { font-size: 16px; }
.cta-offer small { font-size: 12px; font-weight: 500; opacity: 0.9; }

.btn-disabled {
    background: #e1e3e4 !important;
    color: #a0a4ab !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Subtítulo com efeito marca-texto */
.animated-subtitle-container {
    margin: 0 auto 25px auto;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.animated-subtitle-text {
    display: inline;
    color: var(--text-dark);
    background-image: linear-gradient(to right, #32BCAD 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 2px 6px;
    border-radius: 4px;
    animation: highlightSweep 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes highlightSweep {
    0% { background-position: 100% 0; color: var(--text-dark); }
    30% { color: #ffffff; }
    100% { background-position: 0% 0; color: #ffffff; }
}

/* Sublinhado torto do título */
.crooked-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.crooked-underline::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -2%;
    width: 104%;
    height: 8px;
    background-color: #32BCAD;
    z-index: -1;
    transform: rotate(-2deg);
    border-radius: 6px;
    opacity: 0.85;
}

/* Sublinhado torto preto (contraste com texto verde) */
.crooked-underline-black {
    position: relative;
    display: inline-block;
    z-index: 1;
    color: #32BCAD;
    margin-left: 5px;
}

.crooked-underline-black::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -2%;
    width: 104%;
    height: 6px;
    background-color: #222222;
    z-index: -1;
    transform: rotate(-1.5deg);
    border-radius: 4px;
    opacity: 0.9;
}
