:root {
    --blue-50: #eff6ff;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --violet-600: #7c3aed;
    --emerald-500: #10b981;
    --emerald-600: #16a34a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    -webkit-tap-highlight-color: transparent;
    background: var(--blue-50);
    color: var(--slate-800);
}

.page-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card-shell {
    width: 100%;
    max-width: 420px;
    min-height: 640px;
    background: var(--white);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
    display: flex;
    flex-direction: column;
}

.top-bar {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--blue-600), var(--violet-600));
}

.card-body {
    padding: 24px;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}

.intro-block {
    text-align: center;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-600), var(--violet-600));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.22);
}

.brand-name {
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--blue-600), var(--violet-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro-block h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: var(--slate-900);
}

.intro-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--slate-500);
}

.benefit-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.benefit-card {
    background: var(--slate-50);
    border-radius: 16px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: var(--slate-700);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.benefit-icon {
    font-size: 20px;
}

.pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 28px 0 24px;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--slate-200);
    transition: all 0.3s ease;
}

.dot.active {
    width: 32px;
    background: var(--blue-600);
}

.content-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stage-panel {
    display: flex;
    flex-direction: column;
}

.stage-hidden {
    display: none;
}

.stage-panel.centered,
#step-2,
#step-3 {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.input-wrap {
    margin-bottom: 8px;
}

.stock-input {
    width: 100%;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    color: var(--slate-800);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stock-input:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.helper-copy {
    margin: 6px 0 24px;
    text-align: center;
    color: var(--slate-400);
    font-size: 12px;
}

.primary-button,
.whatsapp-button {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 16px 18px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
    background: linear-gradient(90deg, var(--blue-600), var(--violet-600));
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.18);
}

.whatsapp-button {
    background: #1faf38;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.14);
}

.primary-button:hover,
.whatsapp-button:hover {
    transform: translateY(-1px);
}

.button-link-copy {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.trust-row,
.delivery-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 26px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 600;
}

.loader-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #dbeafe;
    border-top-color: var(--blue-600);
    animation: spin 0.8s linear infinite;
    margin-bottom: 22px;
}

.accent-text {
    color: var(--blue-600);
}

#step-2 h2,
#step-3 h2 {
    margin: 0 0 10px;
    color: var(--slate-800);
    font-size: 28px;
}

#step-2 p,
#step-3 h3,
.result-copy {
    margin: 0;
    color: var(--slate-500);
}

#step-3 h3 {
    font-size: 22px;
    color: var(--slate-800);
    margin-bottom: 12px;
}

.result-copy {
    max-width: 260px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.success-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    font-size: 32px;
    margin-bottom: 24px;
}

.legal-note {
    margin-top: 18px;
    padding-top: 18px;
    text-align: center;
    font-size: 10px;
    line-height: 1.55;
    color: #cbd5e1;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.robot-head-animate {
    display: inline-block;
    animation: gentleBob 2s ease-in-out infinite;
}

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

@keyframes gentleBob {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-2px) rotate(3deg);
    }
}

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

@media (min-width: 768px) {
    .card-shell {
        min-height: 680px;
    }

    .card-body {
        padding: 32px;
    }
}
