/* ProposalPilot — Styles */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --success: #059669;
    --success-dark: #047857;
    --danger: #dc2626;
    --bg: #f8f9fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --radius: 10px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    gap: 6px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-dark); color: #fff; }

.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #f0f0f0; }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg); }

.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

/* ─── Navigation ──────────────────────────────────────────────────────────── */
.nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 100%);
    color: #fff;
    padding: 80px 0 100px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(79,70,229,0.3);
    border: 1px solid rgba(79,70,229,0.5);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-count { font-weight: 800; color: #a5b4fc; }
.hero-social-proof { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ─── Section titles ────────────────────────────────────────────────────────── */
.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 48px;
}

/* ─── How It Works ─────────────────────────────────────────────────────────── */
.how-it-works { padding: 80px 0; background: #fff; }
.steps {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}
.step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow { font-size: 28px; color: var(--primary); align-self: center; padding-top: 12px; }

/* ─── Features ────────────────────────────────────────────────────────────── */
.features { padding: 80px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── Pain Section ─────────────────────────────────────────────────────────── */
.pain-section { padding: 80px 0; background: var(--primary); color: #fff; }
.pain-content { max-width: 700px; margin: 0 auto; text-align: center; }
.pain-title { font-size: 32px; font-weight: 800; margin-bottom: 32px; }
.pain-points { display: grid; gap: 16px; margin-bottom: 32px; text-align: left; }
.pain-point { background: rgba(255,255,255,0.1); padding: 16px 20px; border-radius: var(--radius); font-size: 16px; }
.pain-solution { font-size: 17px; color: rgba(255,255,255,0.85); line-height: 1.7; }

/* ─── Pricing ──────────────────────────────────────────────────────────────── */
.pricing { padding: 80px 0; background: #fff; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-light); }
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.pricing-tier { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.pricing-amount { font-size: 48px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { font-size: 14px; padding: 6px 0; color: var(--text-muted); }
.pricing-features li strong { color: var(--text); }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 24px; }

/* ─── Testimonials ─────────────────────────────────────────────────────────── */
.testimonials { padding: 80px 0; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.testimonial-card p { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { padding: 80px 0; background: #fff; }
.faq-list { max-width: 680px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── CTA Section ──────────────────────────────────────────────────────────── */
.cta-section { padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; font-size: 17px; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.6); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; }
.footer-brand span { color: var(--primary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; }

/* ─── Wizard ───────────────────────────────────────────────────────────────── */
.wizard-container {
    max-width: 640px;
    margin: 60px auto;
    padding: 0 20px;
}
.wizard-header { text-align: center; margin-bottom: 40px; }
.wizard-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.wizard-header p { color: var(--text-muted); font-size: 16px; }

.progress-bar { margin-bottom: 40px; }
.progress-track { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s ease; }
.progress-steps { display: flex; justify-content: space-between; }
.progress-step { font-size: 12px; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.progress-step.active { color: var(--primary); font-weight: 700; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wizard-step h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step-hint { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input.error { border-color: var(--danger); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.deposit-preview {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: center;
}
.deposit-preview-label { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.deposit-preview-amount { font-size: 32px; font-weight: 800; color: var(--primary); }

/* Deliverables grid */
.deliverables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.checkbox-card { cursor: pointer; }
.checkbox-card input { display: none; }
.checkbox-card-inner {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s, background 0.15s;
}
.checkbox-card input:checked + .checkbox-card-inner {
    border-color: var(--primary);
    background: var(--primary-light);
}
.checkbox-label { font-size: 14px; font-weight: 700; }
.checkbox-desc { font-size: 12px; color: var(--text-muted); }

/* Timeline options */
.timeline-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.radio-card { cursor: pointer; }
.radio-card input { display: none; }
.radio-card-inner {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s, background 0.15s;
}
.radio-card input:checked + .radio-card-inner { border-color: var(--primary); background: var(--primary-light); }
.radio-label { font-size: 15px; font-weight: 700; }
.radio-desc { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* Flash messages */
.flash-messages { margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 8px; font-size: 14px; }
.flash-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }

/* ─── Proposal Page ────────────────────────────────────────────────────────── */
.proposal-container {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
}
.proposal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.proposal-brand { font-size: 22px; font-weight: 800; }
.proposal-brand span { color: var(--primary); }
.proposal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.proposal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.proposal-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.proposal-title { font-size: 28px; font-weight: 800; margin-bottom: 32px; }
.proposal-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.proposal-section:last-of-type { border-bottom: none; }
.proposal-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 6px; }
.proposal-value { font-size: 16px; line-height: 1.7; }
.proposal-goals { white-space: pre-wrap; }
.proposal-deliverables { list-style: none; }
.proposal-deliverables li { font-size: 15px; padding: 4px 0; padding-left: 20px; position: relative; }
.proposal-deliverables li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.proposal-pricing {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 24px;
}
.pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding: 6px 0;
    color: var(--text-muted);
}
.pricing-row.deposit { color: var(--success); font-weight: 700; font-size: 16px; padding-top: 12px; }
.pricing-row.total { font-weight: 800; font-size: 18px; color: var(--text); border-top: 2px solid var(--border); margin-top: 8px; padding-top: 12px; }

.deposit-panel {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 24px;
    text-align: center;
}
.deposit-panel h3 { font-size: 20px; margin-bottom: 12px; }
.deposit-panel p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.deposit-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero { padding: 60px 0 80px; }
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }
    .form-row { grid-template-columns: 1fr; }
    .deliverables-grid { grid-template-columns: 1fr; }
    .proposal-card { padding: 24px 20px; }
    .proposal-header { flex-direction: column; align-items: flex-start; }
}
