/* Base Styles & Theme */
:root {
    --primary: #5d48d9;
    --primary-hover: #4835b0;
    --text-dark: #1d1d1f;
    --text-gray: #6e6e73;
    --bg-light: #fbf9fa;
    --card-bg: #ffffff;
    --grad-start: #af57a6;
    --grad-end: #e58a5c;
    --accent-pink: #fcf0f5;
    --accent-green: #eefcf4;
    --danger: #d94848;
    --danger-hover: #b03535;
    --danger-bg: #fdf2f2;
    --success: #35a86a;
    --success-bg: #eefcf4;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* For pages that need a narrower content area */
.container-narrow {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.container-x-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.container-xx-narrow {
    max-width: 600px;
}






/* Re-usable components */
.btn {
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    font-size: 1rem;
}

.btn i {
    font-size: 1.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary.pulse {
    animation: pulseGlow 2s infinite;
}

.btn-primary.highlight {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(93, 72, 217, 0.25);
}

.btn-outline {
    background-color: white;
    color: var(--text-dark);
    border: 2px solid #eaeaea;
}

.btn-outline.highlight {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}


.btn-outline:hover {
    border-color: var(--primary);
}

.btn-danger {
    width: 100%;
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-2px);
}

.btn-cancel {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-cancel:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(93, 72, 217, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(93, 72, 217, 0); }
    100% { box-shadow: 0 0 0 0 rgba(93, 72, 217, 0); }
}

/* Nav */
nav {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.container {
    padding-top: 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo span {
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Nav modifier for centered logo */
nav.nav-center {
    justify-content: center;
}


/* Footer */
footer {
    background-color: white;
    padding: 60px 0 40px;
    border-top: 1px solid #eaeaea;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}
/* Footer for simple centered pages */
footer.simple-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
    background: none;
    border-top: 1px solid rgba(0,0,0,0.05);
}
footer.simple-footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
footer.simple-footer a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}
footer.simple-footer a:hover {
    text-decoration: underline;
}


/* --- PAGE-SPECIFIC STYLES --- */

/* Index Page (Hero, Manifesto, etc.) */
.hero {
    position: relative;
    padding: 80px 0 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-bg-blob {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229, 138, 92, 0.15) 0%, rgba(175, 87, 166, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-text { flex: 1; max-width: 600px; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero p.lead { font-size: 1.25rem; color: var(--text-gray); margin-bottom: 32px; }
.cta-group { display: flex; gap: 16px; }
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }

.phone {
    width: 280px;
    border-radius: 40px;
    border: 10px solid white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    background: white;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}
.phone img { width: 100%; display: block; }
.phone.offset {
    position: absolute;
    right: 0;
    top: 40px;
    z-index: -1;
    opacity: 0.6;
    transform: scale(0.9);
    animation: float 7s ease-in-out infinite reverse;
}

.manifesto { background: white; padding: 80px 0; text-align: center; }
.manifesto h2 { font-size: 2.5rem; margin-bottom: 20px; }
.manifesto p { font-size: 1.2rem; color: var(--text-gray); max-width: 700px; margin: 0 auto 40px; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 40px; }
.tier-card { background: var(--bg-light); padding: 32px; border-radius: 24px; text-align: center; border: 1px solid rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; }
.tier-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(93, 72, 217, 0.1); }
.tier-icon { font-size: 3rem; margin-bottom: 16px; }
.tier-value { display: inline-block; background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; margin-bottom: 16px; }

.steps-section { padding: 100px 0; }
.steps-header { text-align: center; margin-bottom: 60px; }
.step-row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.step-row:nth-child(even) { flex-direction: row-reverse; }
.step-content { flex: 1; }
.step-number { font-size: 4rem; font-weight: 900; color: rgba(93, 72, 217, 0.1); line-height: 1; margin-bottom: -20px; }
.step-content h3 { font-size: 2rem; margin-bottom: 16px; color: var(--primary); }
.step-content p { font-size: 1.1rem; color: var(--text-gray); }
.step-image { flex: 1; display: flex; justify-content: center; }

/* Content Pages (FAQ, Privacy, Terms) */
.page-header { text-align: center; padding: 60px 0; background-color: white; border-bottom: 1px solid #eaeaea; }
.page-header h1 { font-size: 3rem; margin-bottom: 16px; }

.faq-links { background: white; padding: 40px; border-radius: 24px; margin-bottom: 40px; margin-top: 40px; }
.faq-links h2 { margin-bottom: 24px; font-size: 1.8rem; text-align: center; }
.faq-links h3 { margin: 10px 0; }
.faq-links ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.faq-links li a { display: block; padding: 12px 16px; text-decoration: none; color: var(--primary); font-weight: 500; border-radius: 12px; transition: background-color 0.3s ease; }
.faq-links li a:hover { background-color: #f0effb; }

.faq-content {

    padding: 40px 0;

    text-align: left;

}
.faq-item { margin-bottom: 50px; scroll-margin-top: 80px; }
.faq-item h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--primary); }
.faq-item p { font-size: 1.1rem; color: var(--text-gray); padding: 10px 0; }

.policy-body, .terms-body {
    background: linear-gradient(135deg, #fefbfc 0%, #f6eff4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.policy-container, .terms-container {
    background: var(--card-bg);
    padding: 50px 60px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%;
    text-align: left;
}
.policy-container h1, .terms-container h1 { font-size: 2.2rem; margin-bottom: 30px; text-align: center; letter-spacing: -0.5px; }
.policy-container h2, .terms-container h2 { font-size: 1.3rem; margin-top: 40px; margin-bottom: 16px; color: var(--primary); border-bottom: 2px solid #f0edf9; padding-bottom: 8px; }
.policy-container p, .terms-container p { color: #4a4a4f; margin-bottom: 16px; font-size: 1rem; }
.policy-container ul, .terms-container ul { margin-bottom: 20px; padding-left: 24px; color: #4a4a4f; }
.policy-container li, .terms-container li { margin-bottom: 8px; }
.policy-container a, .terms-container a { color: var(--primary); text-decoration: none; font-weight: 500; }
.policy-container a:hover, .terms-container a:hover { text-decoration: underline; }
.terms-container .highlight-danger { color: var(--danger); font-weight: bold; }

/* Form/Message Pages (Account Deletion) */
.form-page-body {
    background: linear-gradient(135deg, #fefbfc 0%, #f6eff4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.form-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.form-card, .message-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    width: 100%;
}
.form-card h1, .message-card h1 { font-size: 2rem; margin-bottom: 16px; text-align: center; }
.form-card p, .message-card p { color: var(--text-gray); margin-bottom: 24px; text-align: center; font-size: 0.95rem; }

.warning-box { background-color: var(--danger-bg); border-left: 4px solid var(--danger); padding: 16px; border-radius: 8px; margin-bottom: 32px; font-size: 0.9rem; color: #8a2a2a; }
.warning-box ul { margin-top: 8px; margin-left: 20px; }

.form-group { margin-bottom: 24px; }
label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
input[type="email"], input[type="text"], textarea {
    width: 100%; padding: 14px 16px; border: 2px solid #eaeaea; border-radius: 12px; font-size: 1rem;
    font-family: inherit; transition: border-color 0.2s ease; background-color: #fafafa;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); background-color: #fff; }
textarea { resize: vertical; min-height: 100px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
.checkbox-group input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--danger); }
.checkbox-group label { font-weight: normal; font-size: 0.9rem; color: var(--text-gray); margin-bottom: 0; line-height: 1.4; }

.success-icon {
    background-color: var(--success-bg); color: var(--success); width: 80px; height: 80px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 40px; margin: 0 auto 24px;
}

.info-box { background-color: #fafafa; border: 1px solid #eaeaea; padding: 24px; border-radius: 16px; margin-bottom: 32px; text-align: left; }
.info-box h3 { font-size: 1rem; margin-bottom: 12px; color: var(--text-dark); }
.info-box ul { color: var(--text-gray); font-size: 0.95rem; margin-left: 20px; }
.info-box li { margin-bottom: 8px; }


/* Responsive Design */
@media (max-width: 900px) {
    .hero, .step-row, .step-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    .hero-visual { margin-top: 40px; }
    .phone.offset { display: none; }
    .cta-group { justify-content: center; flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links a { margin: 0 12px; }
}

@media (max-width: 768px) {
    .policy-container, .terms-container { padding: 30px 20px; border-radius: 16px; }
    .policy-container h1, .terms-container h1 { font-size: 1.8rem; }
    .policy-container h2, .terms-container h2 { font-size: 1.2rem; }
}

@media (max-width: 600px) {
    .form-card, .message-card { padding: 30px 20px; border-radius: 16px; }
}
