/* assets/css/main.css
   Global styles for public-facing pages (index, login, register, privacy, terms)
   Design tokens match dashboard.css exactly for visual consistency.
*/

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

:root {
    --navy:       #0F3460;
    --navy-dark:  #16213e;
    --navy-light: #1a4a7a;
    --accent:     #e94560;
    --accent-dark:#c73652;
    --bg:         #f4f6fb;
    --card-bg:    #ffffff;
    --border:     #e5e7eb;
    --text:       #1a1a2e;
    --muted:      #6b7280;
    --success-bg: #ecfdf5;
    --success:    #065f46;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.6;
}

/* ── Shared navbar ── */
.navbar {
    background: var(--navy);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.navbar-brand {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-dark); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,52,96,0.25); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,69,96,0.3); }

.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; border-radius: 10px; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── Section layout ── */
section { padding: 5rem 1.5rem; }

.container {
    max-width: 1080px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.7;
}

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

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a5f 100%);
    color: #fff;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(233,69,96,0.2);
    border: 1px solid rgba(233,69,96,0.4);
    color: #f9a8b8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero h1 span { color: #f9a8b8; }

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ── How it works ── */
.how-it-works { background: var(--bg); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.step {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(15,52,96,0.07);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.step-arrow {
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--border);
    z-index: 1;
}

/* ── Sample report ── */
.sample-report { background: #fff; }

.sample-report-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.sample-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sample-report-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

.sample-badge {
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    border: 1px solid #6ee7b7;
}

.sample-summary {
    background: #fff;
    border-left: 4px solid var(--navy);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.sample-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sample-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.sample-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }

.sample-section ul li {
    background: #fff;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    line-height: 1.45;
    border-left: 3px solid var(--navy);
    color: var(--text);
}

.sample-section ul li.weakness { border-left-color: var(--accent); }
.sample-section ul li.opportunity { border-left-color: #f59e0b; }

.sample-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.sample-action {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #fff;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.priority-dot.high   { background: #ef4444; }
.priority-dot.medium { background: #f59e0b; }
.priority-dot.low    { background: #10b981; }

/* ── Pricing ── */
.pricing { background: var(--bg); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    border: 2px solid var(--border);
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 8px 32px rgba(15,52,96,0.12);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--navy);
    box-shadow: 0 8px 32px rgba(15,52,96,0.15);
}

.pricing-card.featured:hover { transform: translateY(-4px); }

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 99px;
    white-space: nowrap;
}

.pricing-plan { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 0.25rem; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.5; }

.pricing-features { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }

.pricing-features li {
    font-size: 0.875rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-features li.na { color: var(--muted); }
.pricing-features li.na::before { content: '–'; color: var(--border); }

.pricing-cta { width: 100%; text-align: center; }

/* ── Testimonials ── */
.testimonials { background: #fff; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg);
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid var(--border);
}

.testimonial-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 0.85rem; letter-spacing: 2px; }

.testimonial-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 1.1rem;
    font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.author-name { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.author-role { font-size: 0.78rem; color: var(--muted); }

/* ── FAQ ── */
.faq { background: var(--bg); }

.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.1rem 1.25rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.15s;
}

.faq-question:hover { background: var(--bg); }

.faq-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--muted);
    transition: transform 0.2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.1rem;
}

/* ── CTA banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 1.5rem;
}

.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem; }

/* ── Footer ── */
footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.6);
    padding: 2.5rem 1.5rem;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 0.82rem; }

/* ── Legal pages ── */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.legal-page h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.legal-date { font-size: 0.85rem; color: var(--muted); margin-bottom: 2.5rem; }

.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2rem 0 0.6rem;
}

.legal-page p, .legal-page li {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.legal-page ul { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.legal-page a { color: var(--navy); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .steps, .pricing-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .sample-grid { grid-template-columns: 1fr; }

    .step-arrow { display: none; }

    .navbar-links .nav-link:not(.nav-cta) { display: none; }

    .section-title { font-size: 1.6rem; }

    .hero h1 { font-size: 2rem; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
}
