/* MentalPros Tools — Clean, conversion-optimized design */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #fafbfc;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
    --shadow-lg: 0 4px 24px rgba(0,0,0,.1);
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { text-decoration: none; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo-accent { color: var(--primary); }
.main-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--text-muted); font-size: .875rem; font-weight: 500; transition: color .2s; }
.main-nav a:hover { color: var(--primary); }

/* Hero */
.hero { text-align: center; padding: 4rem 1rem 3rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .75rem; letter-spacing: -.02em; }
.hero-sub { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Tool Cards Grid */
.tools-grid-section { padding: 0 0 4rem; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-icon { font-size: 2rem; width: 3.5rem; height: 3.5rem; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.tool-card h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.tool-card p { color: var(--text-muted); font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.tool-cta { font-weight: 600; font-size: .9rem; }

/* Trust Section */
.trust-section { padding: 4rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-section h2 { text-align: center; font-size: 1.75rem; margin-bottom: 2rem; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.trust-item { text-align: center; }
.trust-item h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.trust-item p { color: var(--text-muted); font-size: .95rem; }

/* CTA Section */
.cta-section { text-align: center; padding: 4rem 1rem; }
.cta-section h2 { font-size: 1.75rem; margin-bottom: .75rem; }
.cta-section p { color: var(--text-muted); max-width: 550px; margin: 0 auto 1.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: .75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); margin-left: .75rem; }
.btn-secondary:hover { background: var(--border); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* Tool Hero */
.tool-hero { padding: 3rem 1rem 2rem; text-align: center; border-bottom: 3px solid var(--accent, var(--primary)); }
.tool-hero h1 { font-size: 2rem; margin-bottom: .75rem; }
.tool-description { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Quiz */
.quiz-section { padding: 2.5rem 0 4rem; }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: .5rem; }
.progress-fill { height: 100%; border-radius: 3px; transition: width .3s ease; }
.progress-text { font-size: .85rem; color: var(--text-muted); margin-bottom: 2rem; }
.question-text { font-size: 1.35rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.4; }
.options { display: flex; flex-direction: column; gap: .75rem; }
.option-btn {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.option-btn:hover { border-color: var(--primary); background: #f0f0ff; transform: translateX(4px); }

/* Results */
.result-card {
    background: var(--surface);
    border-radius: var(--radius);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.result-score-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.result-score-num { font-size: 2rem; font-weight: 800; }
.result-card h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.result-card p { color: var(--text-muted); font-size: 1.05rem; }

.result-disclaimer {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    font-size: .9rem;
}

.result-cta { text-align: center; padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 1rem; }
.result-cta h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.result-cta p { color: var(--text-muted); margin-bottom: 1.25rem; }

.other-tools { padding: 2rem 0 0; border-top: 1px solid var(--border); margin-top: 2rem; }
.other-tools h3 { text-align: center; margin-bottom: 1rem; }
.other-tools-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.other-tool-link {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1.25rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: .9rem;
    transition: all .2s;
}
.other-tool-link:hover { background: #f0f0ff; border-color: var(--primary); }

/* Calculator */
.calculator-section { padding: 2.5rem 0 4rem; }
.calc-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .5rem; }
.form-group select {
    width: 100%;
    padding: .85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.form-group select:focus { outline: none; border-color: var(--primary); }

.calc-result-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.calc-result-card h2 { text-align: center; margin-bottom: 2rem; }
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; margin-bottom: 2rem; }
.cost-item { padding: 1.5rem; background: var(--bg); border-radius: 10px; }
.cost-label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.cost-value { display: block; font-size: 1.35rem; font-weight: 700; color: var(--text); }

.online-comparison { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.online-comparison h3 { margin-bottom: .5rem; }
.comparison-note { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.online-option { background: var(--bg); padding: 1rem; border-radius: 8px; margin-bottom: .75rem; }
.online-option small { color: var(--text-muted); }
.savings { color: #16a34a; font-weight: 600; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--text); color: #d1d5db; padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #fff; margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; text-align: center; font-size: .85rem; }
.disclaimer { margin-top: .75rem; color: #6b7280; font-size: .8rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .main-nav { display: none; }
    .cost-grid { grid-template-columns: 1fr; }
    .tool-hero h1 { font-size: 1.5rem; }
}
