@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/static/fonts/bricolage-grotesque-var.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
    --bg: #f7f7f5;
    --surface: #ffffff;
    --text: #15211a;
    --muted: #5f6b64;
    --border: #e3e6e2;
    --border-hover: #c8cec9;
    --accent: #1e6b34;
    --accent-dark: #165428;
    --accent-light: #e9f4ec;
    --ok: #1e6b34;
    --bad: #b3261e;
    --tag-bg: #e9f4ec;
    --tag-border: transparent;
    --tag-text: #1e6b34;
    --shadow-sm: 0 1px 2px rgba(21, 33, 26, 0.05);
    --shadow-md: 0 2px 8px rgba(21, 33, 26, 0.07), 0 1px 2px rgba(21, 33, 26, 0.05);
    --shadow-lg: 0 8px 24px rgba(21, 33, 26, 0.10), 0 2px 6px rgba(21, 33, 26, 0.06);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

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

.container {
    width: min(860px, 92vw);
    margin: 0 auto;
}

/* Top accent bar */
.accent-bar {
    height: 3px;
    background: var(--accent);
}

/* Header */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 28px;
    font-size: 15px;
    font-weight: 500;
}

.nav a:hover {
    color: var(--accent);
}

/* Main */
.main {
    padding: 40px 0 72px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    padding: 24px 0;
    text-align: center;
}

.footer-disclaimer {
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 8px;
    color: var(--muted);
}

.footer-links {
    font-size: 13px;
    margin: 0;
}

.muted {
    color: var(--muted);
}

/* Hero / tagline */
.hero {
    margin: 8px 0 36px;
    max-width: 640px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0 0 12px;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

.tagline {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 32px;
    max-width: 620px;
}

/* Trust strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: var(--muted);
}

.trust-strip li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    margin-right: 6px;
}

/* Tool cards */
.tool-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.tool-card:first-child,
.tool-card:last-child,
.tool-card:only-child {
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
}

.tool-card:hover {
    border-color: var(--border-hover);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.tool-card:hover + .tool-card {
    border-top-color: var(--border);
}

.tool-card-body {
    flex: 1;
}

.tool-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin: 10px 0 0;
}

.tool-card-desc {
    color: var(--muted);
    margin: 6px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.tag {
    display: inline-block;
    margin-top: 0;
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.tool-card-action {
    color: var(--accent);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    padding-top: 14px;
}

.tool-card-action::after {
    content: " →";
    transition: margin-left 0.15s ease;
}

.tool-card:hover .tool-card-action {
    color: var(--accent-dark);
}

.tool-card:hover .tool-card-action::after {
    margin-left: 3px;
}

/* About page */
.about-content {
    max-width: 720px;
}

.about-content h1 {
    font-family: var(--font-display);
    font-size: 36px;
    margin: 0 0 24px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 26px;
    margin: 40px 0 16px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.about-content p {
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 16px;
}

/* Tool form panel */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 40px 32px;
    box-shadow: var(--shadow-md);
    max-width: 680px;
    margin: 0 auto;
}

.panel-head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.h1 {
    font-family: var(--font-display);
    margin: 10px 0 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.panel-desc {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 15px;
}

/* Status */
.status {
    margin: 12px 0 0;
}

.status-good,
.status-bad {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.status-good {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.status-good strong {
    color: var(--ok);
}

.status-bad {
    background: #fef2f2;
    border-color: #fecaca;
}

.status-bad strong {
    color: var(--bad);
}

/* Form */
.form {
    margin-top: 8px;
}

.form-section {
    margin: 20px 0;
}

.form-section-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 28px 0 4px;
}

.row {
    display: grid;
    gap: 8px;
    margin: 22px 0;
}

.label {
    font-size: 15.5px;
    font-weight: 650;
    color: var(--text);
    line-height: 1.4;
}

.label-hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 13px;
}

.input,
.select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15.5px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235f6b64' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.input:hover,
.select:hover {
    border-color: var(--border-hover);
}

.input:focus,
.select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Radio groups rendered as selectable chips */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 15px;
    font-weight: 550;
    cursor: pointer;
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.radio-label:hover {
    border-color: var(--border-hover);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent);
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-dark);
    box-shadow: 0 0 0 1px var(--accent);
}

.radio-label:has(input[type="radio"]:focus-visible) {
    box-shadow: 0 0 0 3px var(--accent-light);
}

.button {
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 28px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 16.5px;
    text-decoration: none;
    font-family: inherit;
    margin-top: 20px;
    box-shadow: var(--shadow-md);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.button:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-lg);
}

.button:active {
    transform: translateY(1px);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button.outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    width: auto;
    box-shadow: none;
}

.button.outline:hover {
    border-color: var(--border-hover);
    background: var(--bg);
}

.hint {
    margin-top: 12px;
    font-size: 13px;
}

/* Results */
.result-banner {
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border-left-width: 5px;
}

.result-banner.positive {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid var(--ok);
}

.result-banner.negative {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 5px solid var(--bad);
}

.result-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.02em;
    margin: 0;
}

.result-banner.positive .result-title {
    color: var(--ok);
}

.result-banner.negative .result-title {
    color: var(--bad);
}

.result-subtitle {
    color: var(--text);
    opacity: 0.75;
    margin: 8px 0 0;
    font-size: 15.5px;
    line-height: 1.55;
}

.result-explanation {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Factors */
.factors {
    margin: 20px 0;
}

.factors-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.factor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.factor:last-child {
    border-bottom: none;
}

.factor-label {
    color: var(--text);
}

.factor-value {
    font-weight: 650;
}

.factor-value.positive {
    color: var(--ok);
}

.factor-value.negative {
    color: var(--bad);
}

.factor-value.neutral {
    color: var(--muted);
}

/* Input echo */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.kv {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.k {
    color: var(--muted);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.v {
    margin-top: 4px;
    font-size: 16.5px;
    font-weight: 700;
}

.substatus {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.cta-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Note / free use */
.note {
    margin-top: 28px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.note-title {
    font-weight: 800;
}

.note-text {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 720px) {
    .tool-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .input,
    .select {
        font-size: 16px; /* prevents iOS auto-zoom on focus */
    }

    .topbar-inner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .nav a:first-child {
        margin-left: 0;
    }

    .footer-inner {
        padding: 16px 0;
    }

    .panel {
        padding: 22px 18px;
    }

    .main {
        padding: 20px 0 48px;
    }

    .radio-group {
        gap: 8px;
    }

    .radio-label {
        padding: 10px 14px;
    }
}


/* Hero layout with sample verdict visual */
.hero-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 8px 0 20px;
}

.hero-wrap .hero {
    margin: 0;
    flex: 1;
}

.sample-verdict {
    width: 300px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px;
    transform: rotate(1.5deg);
    font-size: 13.5px;
}

.sample-verdict .sv-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
}

.sample-verdict .sv-verdict {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--ok);
    margin: 4px 0 10px;
}

.sample-verdict .sv-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.sample-verdict .sv-row strong {
    color: var(--text);
    font-weight: 600;
}

.sv-pts-neg { color: var(--bad); font-weight: 700; }
.sv-pts-pos { color: var(--ok); font-weight: 700; }

/* How it works strip */
.how-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin: 0 0 32px;
}

.how-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}

.how-step .num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
}

.how-step strong {
    color: var(--text);
}

/* Category tag colors */
.tag[data-cat="AUTO"] { background: #e8f0fb; color: #1d4f91; }
.tag[data-cat="HOME"] { background: #e9f4ec; color: #1e6b34; }
.tag[data-cat="REAL ESTATE"] { background: #f3ecfb; color: #5b2d8e; }
.tag[data-cat="FITNESS"] { background: #fbeee8; color: #a14d1b; }
.tag[data-cat="FINANCE"] { background: #e7f4f4; color: #0f5e5e; }
.tag[data-cat="CAREER"] { background: #fdf2e3; color: #8a5a00; }
.tag[data-cat="EDUCATION"] { background: #eef0fb; color: #34418f; }
.tag[data-cat="ENTREPRENEURSHIP"] { background: #fbecf1; color: #94274e; }

@media (max-width: 860px) {
    .sample-verdict { display: none; }
    .hero-wrap { gap: 0; }
}

@media (max-width: 720px) {
    .how-strip { grid-template-columns: 1fr; gap: 10px; }
}
