/* Base reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Helps avoid white “flashes” on mobile/overscroll */
html {
    background: #0f0f14;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background:
            radial-gradient(900px at 20% 10%, rgba(255, 200, 150, 0.2), transparent 60%),
            radial-gradient(700px at 80% 90%, rgba(180, 160, 255, 0.2), transparent 60%),
            linear-gradient(180deg, #1a1a22, #0f0f14);
    color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* Layout */
.container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffb86c, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

main {
    margin-bottom: 40px;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 17px;
    opacity: 0.75;
    margin-bottom: 32px;
}

/* Switch */
.switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px;
    margin-bottom: 32px;
    backdrop-filter: blur(14px);
}

.switch button {
    border: none;
    background: transparent;
    color: #fff;
    padding: 14px 0;
    border-radius: 16px;
    font-size: 15px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.25s ease;
    font-weight: 500;
}

.switch button.active {
    background: linear-gradient(135deg, #ffb86c, #c084fc);
    color: #1a1a22;
    opacity: 1;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Benefits */
.benefits {
    list-style: none;
    margin-bottom: 24px;
}

.benefits li {
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    font-size: 14px;
    line-height: 1.4;
}

/* Hint */
.hint {
    font-size: 14px;
    opacity: 0.65;
    margin-bottom: 24px;
    text-align: center;
}

/* CTA */
.cta {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #1a1a22;
    background: linear-gradient(135deg, #ffb86c, #c084fc);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 107, 53, 0.5);
    }
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.55);
    animation: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer a {
    color: #f5f5f7;
    text-decoration: none;
    opacity: 0.6;
    font-size: 13px;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-box {
    background: linear-gradient(180deg, #1b1b24, #121218);
    padding: 36px;
    border-radius: 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
    position: relative;
}

.modal-box button#closeModal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-box button#closeModal:hover {
    opacity: 1;
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.modal p {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.modal input {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
}

.modal input::placeholder {
    color: #aaa;
}

.modal .checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

.modal .checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-top: 2px;
}

.modal .checkbox-wrapper a {
    color: #ff6b35;
    text-decoration: none;
}

.modal .checkbox-wrapper a:hover {
    text-decoration: underline;
}

.modal .success {
    display: none;
    text-align: center;
}

.modal .success h2 {
    margin-bottom: 10px;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

.toast.success {
    background: linear-gradient(
            135deg,
            rgba(34, 197, 94, 0.9),
            rgba(22, 163, 74, 0.9)
    );
    color: white;
}

.toast.error {
    background: linear-gradient(
            135deg,
            rgba(239, 68, 68, 0.9),
            rgba(220, 38, 38, 0.9)
    );
    color: white;
}

.toast-icon {
    font-size: 20px;
}
.toast-message {
    flex: 1;
}
.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}
.toast-close:hover {
    opacity: 1;
}

/* Privacy page */
.privacy-content {
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.65;
    font-size: 15px;
    color: #f5f5f7;
    opacity: 0.92;
}

.privacy-content h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 32px;
    background: linear-gradient(90deg, #ffb86c, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-content h2,
.privacy-content h3 {
    font-weight: 600;
    margin: 28px 0 16px;
    color: #fff;
}

.privacy-content h2 {
    font-size: 22px;
    margin-top: 40px;
}

.privacy-content h3 {
    font-size: 18px;
    font-weight: 600;
}

.privacy-content p {
    margin-bottom: 16px;
}

.privacy-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.privacy-content li {
    margin-bottom: 8px;
    position: relative;
}

.privacy-content a {
    color: #ffb86c;
    text-decoration: underline;
}

.privacy-content a:hover {
    color: #ffcc80;
}

.back-button {
    display: block;
    width: fit-content;
    margin: 0 auto 30px;
    padding: 12px 28px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, #ffb86c, #c084fc);
    color: #1a1a22;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.45);
}

/* ----------------------------
   Responsive tweaks (mobile-first adjustments without touching desktop)
   ---------------------------- */
/* Mobile */
@media (max-width: 480px) {
    body {
        min-height: 100svh; /* better than 100vh on mobile browsers */
    }

    .container {
        max-width: 100%;
        justify-content: flex-start; /* less “empty space” than center */
        padding: 24px 0;
    }

    .badge {
        padding: 5px 12px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .logo {
        font-size: 24px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .switch {
        border-radius: 16px;
        padding: 5px;
        margin-bottom: 22px;
    }

    .switch button {
        padding: 12px 0;
        border-radius: 14px;
        font-size: 14px;
    }

    .benefits li {
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 13px;
    }

    .hint {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .cta {
        padding: 16px;
        border-radius: 16px;
        font-size: 15px;
    }

    main {
        margin-bottom: 28px;
    }

    footer {
        padding: 14px 0;
    }

    footer nav {
        gap: 10px;
    }

    /* Toasts on mobile */
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 12px;
    }

    /* Modal on mobile */
    .modal {
        padding: 14px;
    }

    .modal-box {
        padding: 22px;
        border-radius: 22px;
    }

    .modal h2 {
        font-size: 20px;
    }

    .modal p {
        font-size: 12px;
    }

    .modal input {
        padding: 14px;
        border-radius: 14px;
        font-size: 14px;
    }

    /* Privacy on mobile */
    .privacy-content {
        padding: 0 16px;
        font-size: 14px;
    }

    .privacy-content h1 {
        font-size: 26px;
    }

    .privacy-content h2 {
        font-size: 20px;
    }
}
