/* ==========================================================================
   Business Bullshit – "Enterprise-grade" stylesheet
   No external fonts (keeps the site GDPR-friendly and fast).
   ========================================================================== */

:root {
    --bg: #f6f6fb;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --ink: #0f1222;
    --ink-2: #454a63;
    --ink-3: #7a7f98;
    --line: #e4e5ef;
    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --accent-soft: #eef0ff;
    --warm: #b7864b;
    --danger: #c0262d;
    --danger-soft: #fdeced;
    --ok: #0f9d6b;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 18, 34, .04), 0 8px 24px -8px rgba(15, 18, 34, .12);
    --shadow-lg: 0 2px 4px rgba(15, 18, 34, .04), 0 24px 60px -20px rgba(49, 46, 129, .35);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0d18;
        --bg-alt: #10131f;
        --surface: #151928;
        --ink: #eef0fa;
        --ink-2: #b6bad0;
        --ink-3: #868aa3;
        --line: #262b40;
        --accent: #818cf8;
        --accent-2: #a78bfa;
        --accent-soft: #1d2140;
        --warm: #d9ad73;
        --danger: #ff7b82;
        --danger-soft: #2c1519;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px -20px rgba(0, 0, 0, .7);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 26px; height: auto; }
.brand sup { font-size: .55em; font-weight: 600; color: var(--ink-3); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--ink); background: var(--accent-soft); }

.lang-toggle {
    position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
    margin-left: auto;
}
.main-nav + .lang-toggle { margin-left: 8px; }
.lang-toggle a {
    position: relative; z-index: 1; text-decoration: none; color: var(--ink-3);
    font-size: .8rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; text-align: center; border-radius: 999px;
    transition: color .2s;
}
.lang-toggle a[aria-pressed="true"] { color: #fff; }
.lang-pill {
    position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2);
    border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: transform .28s cubic-bezier(.3, .7, .2, 1);
}
html[lang="en"] .lang-pill { transform: translateX(100%); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 650; font-size: .95rem;
    cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .2s, background .2s, opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-dark { color: var(--bg); background: var(--ink); white-space: nowrap; padding-left: 18px; padding-right: 18px; }
.btn-dark:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn[disabled] { cursor: progress; opacity: .85; }

.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
    display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line);
    color: var(--ink-2); border-radius: 999px; padding: 7px 13px; font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.icon-only { padding: 0; width: 38px; height: 38px; justify-content: center; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: -64px 0 0; z-index: -1;
    background:
        radial-gradient(600px 380px at 12% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(520px 360px at 88% 30%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%),
        radial-gradient(420px 300px at 60% 100%, color-mix(in srgb, var(--warm) 18%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 850; margin: 22px 0 18px; letter-spacing: -.035em; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin: 0 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 500; }
.checks li::before {
    content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- AI card ---------- */
.ai-card { padding: 28px; box-shadow: var(--shadow-lg); }
.ai-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ai-head h2 { font-size: 1.35rem; }
.ai-tag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.field-label { display: block; font-size: .82rem; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.textarea-wrap { position: relative; }
textarea {
    width: 100%; min-height: 120px; resize: vertical; padding: 14px 16px 30px; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
textarea::placeholder { color: var(--ink-3); }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.counter { position: absolute; right: 12px; bottom: 10px; font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.counter.warn { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 20px; }
.chips-label { font-size: .82rem; color: var(--ink-3); margin-right: 2px; }
.chip { border: 1px dashed var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: .85rem; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }
.ai-submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kbd-hint { font-size: .78rem; color: var(--ink-3); }
.ai-result {
    margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), color-mix(in srgb, var(--accent-2) 8%, var(--surface)));
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
    animation: pop .35s cubic-bezier(.3, .7, .2, 1.2);
}
.result-label { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.result-label img { width: 16px; }
.ai-result.is-fallback { background: var(--bg); border-style: dashed; }
.ai-result.is-fallback .result-label { color: var(--ink-3); }
.result-text { font-size: 1.05rem; margin: 8px 0 14px; white-space: pre-line; }
.ai-error { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-weight: 550; font-size: .93rem; }
.fineprint { margin: 18px 0 0; font-size: .75rem; color: var(--ink-3); line-height: 1.5; }
.actions { display: flex; gap: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Logo strip ---------- */
.logos { padding: 8px 0 40px; text-align: center; }
.logos p { margin: 0 0 16px; font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.logos ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.logos li { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink-3); opacity: .75; filter: grayscale(1); }
.logos li:nth-child(2n) { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; }
.logos li:nth-child(3n) { letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
section[id], .phrase-card { scroll-margin-top: 84px; }
#portfolio { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 12px 0 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }

/* ---------- Phrase cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phrase-card { display: flex; flex-direction: column; padding: 24px; transition: transform .2s, box-shadow .2s; }
.phrase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.phrase-card.is-shared { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow-lg); }
.phrase-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.phrase-icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 12px; background: var(--accent-soft); }
.phrase-num { font-size: .8rem; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.phrase-card h3 { font-size: 1.25rem; font-weight: 750; }
.phrase-desc { color: var(--ink-3); font-size: .92rem; margin: 6px 0 18px; }
.phrase-box {
    flex: 1; margin: 0 0 18px; padding: 18px; min-height: 150px; border-radius: var(--radius-sm);
    background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; position: relative;
}
.phrase-box::before { content: "“"; position: absolute; top: -6px; left: 12px; font: 800 3rem/1 Georgia, serif; color: color-mix(in srgb, var(--accent) 30%, transparent); }
.phrase-text { margin: 0; font-size: 1.05rem; font-weight: 550; line-height: 1.5; }
.phrase-text.flash { animation: pop .35s cubic-bezier(.3, .7, .2, 1.2); }
.phrase-empty { margin: 0; color: var(--ink-3); font-style: italic; font-size: .93rem; }
.phrase-card:not(.has-phrase) .phrase-text,
.phrase-card.has-phrase .phrase-empty { display: none; }
.phrase-card:not(.has-phrase) [data-copy],
.phrase-card:not(.has-phrase) [data-share] { opacity: .35; pointer-events: none; }
.phrase-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-3); font-size: .9rem; font-weight: 500; }

/* ---------- About ---------- */
#about { padding-top: 24px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-grid p { color: var(--ink-2); font-size: 1.05rem; }
.about-grid h2 { margin-bottom: 18px; }
.tech-card { padding: 28px; background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 6%, var(--surface))); }
.tech-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.tech-card p { margin: 0; font-size: .97rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .88rem; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: inherit; text-underline-offset: 3px; }
.footer-links a:hover, .linklike:hover { color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
    box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed; z-index: 80; left: 20px; bottom: 20px; width: min(420px, calc(100% - 40px));
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 20px 22px; animation: pop .35s ease;
}
.cookie-title { margin: 0 0 6px; font-weight: 750; }
.cookie-text { margin: 0 0 16px; font-size: .9rem; color: var(--ink-2); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Privacy page ---------- */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .meta { color: var(--ink-3); font-size: .9rem; margin-bottom: 32px; }
.legal .back { display: inline-flex; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 28px; }
.legal [data-lang-block]:not(.active) { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .hero { padding: 48px 0 48px; }
}
@media (max-width: 720px) {
    .main-nav { display: none; }
    .section { padding: 56px 0; }
    .ai-card { padding: 20px; }
    .kbd-hint { display: none; }
    .ai-submit-row .btn { width: 100%; }
    .logos ul { gap: 10px 24px; }
    .logos li { font-size: .95rem; }
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (hover: none) { .kbd-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   v1.1 – Tools: share as image, Buzzword Bingo, Bullshit Index
   ========================================================================== */
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.page-bingo .footer-links a, .page-index .footer-links a { white-space: nowrap; }

/* ---------- Tools teaser (home) ---------- */
.tools { padding-bottom: 24px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.tool-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tool-card h3 { font-size: 1.3rem; }
.tool-card p { margin: 0; color: var(--ink-2); flex: 1; }
.tool-cta { font-weight: 700; color: var(--accent); }

/* ---------- Image dialog ---------- */
.img-modal {
    width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 22px; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.img-modal::backdrop { background: rgba(10, 12, 28, .55); backdrop-filter: blur(4px); }
.img-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.img-modal-head h2 { font-size: 1.2rem; }
.img-modal-head .icon-btn svg { width: 18px; height: 18px; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 650; color: var(--ink-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.img-preview { display: grid; place-items: center; background: var(--bg); border-radius: var(--radius-sm); padding: 10px; min-height: 200px; }
.img-preview img { display: block; max-width: 100%; max-height: min(52dvh, 520px); border-radius: 8px; box-shadow: var(--shadow); transition: opacity .2s; }
.img-modal.is-rendering .img-preview img { opacity: .4; }
.img-modal .fineprint { margin-top: 10px; }
.img-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.img-actions .btn { flex: 1 1 160px; }

/* ---------- Tool pages (shared) ---------- */
.tool-page { padding: 48px 0 72px; position: relative; isolation: isolate; }
.tool-page::before {
    content: ""; position: absolute; inset: -64px 0 auto; height: 520px; z-index: -1;
    background:
        radial-gradient(520px 320px at 10% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
        radial-gradient(480px 300px at 90% 20%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%);
}
.tool-head { max-width: 720px; margin-bottom: 32px; }
.tool-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 850; letter-spacing: -.035em; margin-bottom: 12px; }
.tool-head .lead { margin: 0; }

/* ---------- Bingo ---------- */
.bingo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.bingo-board { padding: 22px; }
.bingo-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; font-weight: 650; color: var(--ink-3); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.bingo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bingo-board, .bingo-how, .index-input, .index-result { min-width: 0; }
.bingo-cell {
    aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    font-weight: 650; font-size: clamp(.62rem, 1.7vw, .95rem); line-height: 1.2; text-align: center; cursor: pointer;
    hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; transition: background .15s, transform .12s, border-color .15s;
    -webkit-tap-highlight-color: transparent; user-select: none;
}
.bingo-cell.is-long { font-size: clamp(.56rem, 1.45vw, .82rem); }
.bingo-cell:hover { border-color: var(--accent); }
.bingo-cell:active { transform: scale(.95); }
.bingo-cell.is-ticked { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.bingo-cell.is-win { background: linear-gradient(135deg, #f59e0b, #ef4444); animation: pulse 1.2s ease-in-out 2; }
.bingo-cell.is-free { cursor: default; background: var(--accent-soft); color: var(--accent); font-size: clamp(.55rem, 1.3vw, .75rem); text-transform: uppercase; letter-spacing: .05em; }
.bingo-cell.is-free.is-win { color: #fff; }
.bingo-cell .free-icon { font-size: clamp(1.1rem, 3.5vw, 1.8rem); }
@keyframes pulse { 50% { transform: scale(1.06); } }
.bingo-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bingo-how { padding: 24px; }
.bingo-how h2 { font-size: 1.1rem; margin-bottom: 10px; }
.bingo-how ol { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 10px; font-size: .95rem; }
.bingo-win {
    position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 95; text-align: center;
    background: var(--surface); border: 2px solid #f59e0b; border-radius: 22px; padding: 26px 34px; box-shadow: var(--shadow-lg);
    animation: pop .4s cubic-bezier(.3, .7, .2, 1.3); max-width: calc(100% - 32px);
}
.bingo-win strong { display: block; font-size: clamp(2.6rem, 9vw, 4.2rem); font-weight: 900; letter-spacing: -.03em;
    background: linear-gradient(120deg, #f59e0b, #ef4444, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bingo-win span { color: var(--ink-2); font-weight: 550; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 96; display: none; }
.confetti.is-active { display: block; }
.print-only { display: none; }

/* ---------- Bullshit Index ---------- */
.index-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.index-input, .index-result, .index-highlight { padding: 24px; }
.index-input-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.index-input-head .field-label { margin: 0; }
.index-input textarea { min-height: 300px; padding-bottom: 14px; }
.index-result { position: sticky; top: 84px; min-height: 200px; }
.index-empty, .index-short { color: var(--ink-3); margin: 0; display: grid; place-items: center; min-height: 160px; text-align: center; }
.score-label { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.score-big { font-size: clamp(4rem, 10vw, 5.6rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.score-big small { font-size: .32em; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.meter { height: 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #fde68a, #f59e0b, #ef4444); transition: width .5s cubic-bezier(.3, .7, .2, 1); }
.verdict { font-size: 1.6rem; font-weight: 850; margin: 20px 0 6px; }
.verdict-desc { color: var(--ink-2); margin: 0 0 18px; }
.index-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.index-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.index-stats dt { font-size: .72rem; color: var(--ink-3); font-weight: 650; }
.index-stats dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.index-result h3, .index-highlight h3 { font-size: .9rem; margin-bottom: 10px; }
.index-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.bw-chip { font-size: .83rem; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.bw-chip.w2 { background: #fde68a; }
.bw-chip.w3 { background: #fca5a5; color: #7f1d1d; }
.index-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.index-highlight { margin-top: 24px; }
.index-highlight-text { white-space: pre-wrap; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.index-highlight-text mark { background: #fef3c7; color: #78350f; border-radius: 4px; padding: 1px 3px; }
.index-highlight-text mark.w2 { background: #fde68a; }
.index-highlight-text mark.w3 { background: #fca5a5; color: #7f1d1d; }
@media (prefers-color-scheme: dark) {
    .bw-chip, .index-highlight-text mark { background: #4a3a12; color: #fde68a; }
    .bw-chip.w2, .index-highlight-text mark.w2 { background: #5c4410; }
    .bw-chip.w3, .index-highlight-text mark.w3 { background: #5f1d1d; color: #fecaca; }
}

/* ---------- Responsive (tools) ---------- */
@media (max-width: 960px) {
    .bingo-layout, .index-layout { grid-template-columns: minmax(0, 1fr); }
    .index-result { position: static; }
    .tool-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 720px) {
    .tool-page { padding-top: 32px; }
    .bingo-board { padding: 12px; }
    .bingo-grid { gap: 5px; }
    .bingo-cell { border-radius: 9px; padding: 3px; }
    .bingo-toolbar .btn { flex: 1 1 calc(50% - 10px); padding-left: 10px; padding-right: 10px; }
    .index-input textarea { min-height: 200px; }
}

/* ---------- Print (bingo card) ---------- */
@media print {
    @page { size: A4 portrait; margin: 14mm; }
    body { background: #fff !important; color: #000; }
    .site-header, .site-footer, .cookie-banner, .toast, .no-print, .skip, .bingo-win, .confetti, .tool-page::before { display: none !important; }
    .tool-page { padding: 0; }
    .tool-head { margin-bottom: 8mm; max-width: none; }
    .tool-head .eyebrow, .tool-head .lead { display: none; }
    .tool-head h1 { font-size: 30pt; color: #000; }
    .bingo-layout { display: block; }
    .bingo-board { border: 0; box-shadow: none; padding: 0; }
    .bingo-meta { color: #000; font-size: 11pt; }
    .bingo-grid { gap: 0; border: 2px solid #000; }
    .bingo-cell { border: 1px solid #000; border-radius: 0; background: #fff !important; color: #000 !important; font-size: 11pt !important; font-weight: 600; aspect-ratio: auto; height: 34mm; }
    .bingo-cell.is-free { background: #eee !important; }
    .print-only { display: block; }
    .print-note { margin-top: 6mm; font-size: 10pt; color: #333; word-break: break-all; }
}
