/* ─────────────────────────────────────────────────────────────
   VulnX — Public pages stylesheet (pages/*)
   Loaded as an external file so the strict CSP (style-src 'self')
   allows it. Built on the app.css design tokens.

   Design language matches index.php exactly:
   - Brutalist shadows (6px 6px 0 var(--ink))
   - Grid background + glow radial gradients (from app.css)
   - Space Grotesk + DM Mono typography
   - Lime accent buttons, teal accent color
   - Feature cards, phase strips, eyebrow labels
   - Reveal animations, hover lifts
   ───────────────────────────────────────────────────────────── */

/* ── Layout ── */
.public-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 96px;
}

/* ── Page hero block (mirrors .hero from app.css) ── */
.page-hero {
    padding: clamp(48px, 8vw, 96px) 0 48px;
    max-width: 860px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 56px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: .95;
    letter-spacing: -.04em;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--ink);
}

.page-hero .eyebrow {
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 580px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.65;
    margin: 0;
}

.page-hero p strong {
    color: var(--ink);
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.page-hero-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-hero-meta strong {
    font-size: 1.4rem;
    letter-spacing: -.03em;
    color: var(--ink);
}

.page-hero-meta span {
    color: var(--muted);
    font: 500 11px var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── Section headers (mirrors .section-title from app.css) ── */
.section-header {
    margin: 60px 0 28px;
}

.section-header h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -.03em;
    margin: 8px 0 0;
    color: var(--ink);
}

.section-sub {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
    max-width: 620px;
}

/* ── Nav: reuse the SPA .nav/.nav-inner/.nav-links classes from app.css.
   The burger menu (hidden >768px, shown <=768px) is handled by the same
   .nav.open rules in app.css — pages.js only toggles the .open class.
   Active state now inherits the SPA lime treatment from app.css
   (.nav-link.active) — one consistent active style across all surfaces. ── */

/* Allow <a> elements to be used as .nav-link (pages use anchors, SPA uses buttons) */
a.nav-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-bottom: none;
}

a.nav-link:hover {
    border-bottom: none;
}

/* ── Feature/info card grid (mirrors .feature-grid + .feature-card from app.css) ── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.info-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 26px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.info-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow);
    border-color: var(--teal);
}

.info-card-icon {
    font-size: 1.4rem;
    color: var(--teal);
    margin-bottom: 14px;
    display: block;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink);
    letter-spacing: -.02em;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.65;
}

.info-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.info-card li {
    font-size: .86rem;
    margin: 5px 0;
    color: var(--muted);
    line-height: 1.55;
}

.info-card li strong {
    color: var(--ink);
}

/* ── Phase strip (mirrors .phase-strip from app.css) ── */
.phase-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.phase-step {
    background: var(--panel);
    padding: 22px;
    border-top: 2px solid var(--ink);
    transition: border-color .15s ease;
}
.phase-step:hover {
    border-top: 2px solid var(--teal);
}

.phase-step b {
    display: inline-grid;
    place-items: center;
    width: auto;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--ink);
    background: var(--lime);
    color: #15211f;
    font: 700 11px var(--font-mono);
    box-shadow: 3px 3px 0 var(--ink);
    letter-spacing: 0;
}

.phase-step span {
    display: block;
    margin: 10px 0 4px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
}

.phase-step small {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
    display: block;
}

/* ── Highlighted text block ── */
.highlight-block {
    border-left: 4px solid var(--teal);
    background: var(--teal-soft);
    padding: 18px 22px;
    margin: 28px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.highlight-block p {
    margin: 0;
    color: var(--ink);
    font-size: .92rem;
    line-height: 1.65;
}

.highlight-block p strong {
    color: var(--teal);
}

/* ── Rich typography for public text pages ── */
.public-page h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: -.04em;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--ink);
    line-height: .95;
}

.public-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 44px 0 14px;
    color: var(--teal);
    letter-spacing: -.02em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.public-page h3 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}

.public-page p,
.public-page li {
    line-height: 1.75;
    color: var(--muted);
    font-size: .94rem;
}

.public-page ul,
.public-page ol {
    padding-left: 22px;
    margin: 10px 0 0;
}

.public-page li {
    margin: 6px 0;
}

.public-page a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
    transition: color .18s var(--ease), border-color .18s var(--ease);
}

.public-page a:hover {
    color: var(--lime-strong);
    border-bottom-color: var(--lime-strong);
}

.public-page .updated {
    color: var(--muted);
    font: 500 .8rem var(--font-mono);
    margin-bottom: 30px;
    display: block;
}

.public-page strong {
    color: var(--ink);
    font-weight: 700;
}

/* ── Legal / info notices ── */
.legal-note {
    background: color-mix(in srgb, var(--lime) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--lime) 28%, transparent);
    padding: 16px 20px;
    font-size: .88rem;
    margin: 24px 0;
    color: var(--muted);
    line-height: 1.65;
    border-radius: var(--radius);
    position: relative;
    padding-left: 20px;
}

.legal-note strong {
    color: var(--ink);
}

.legal-note.err {
    border-color: color-mix(in srgb, var(--orange) 45%, transparent);
    background: color-mix(in srgb, var(--orange) 8%, transparent);
}

.legal-note.ok {
    border-color: color-mix(in srgb, var(--teal) 45%, transparent);
    background: color-mix(in srgb, var(--teal) 8%, transparent);
}

/* ── Legal sections with numbered headings ── */
.legal-section {
    margin: 36px 0;
}

.legal-section-num {
    font: 700 11px var(--font-mono);
    color: var(--teal);
    letter-spacing: .12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* ── Forms (mirrors .auth-form on Login/Register exactly) ── */
.contact-box {
    width: min(560px, 100%);
    border: 1px solid var(--ink);
    background: var(--panel);
    padding: 36px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.contact-form {
    display: grid;
    gap: 4px;
    width: 100%;
}

.contact-form label {
    display: block;
    margin: 16px 0 7px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
}

.contact-form label small {
    font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select,
#tk-search {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 13px 15px;
    font: 500 .95rem var(--font-mono);
    outline: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
    border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
#tk-search:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 4px 4px 0 var(--lime);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    font-family: var(--font-mono);
    font-size: .84rem;
}

/* ── Math CAPTCHA (same component as Login/Register) ── */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding: 6px 10px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: rgba(148, 163, 184, .06);
    flex-wrap: nowrap;
}

.captcha-row .captcha-expr {
    font: 600 1rem var(--font-mono);
    color: var(--teal);
    white-space: nowrap;
    min-width: 84px;
    text-align: center;
}

.captcha-row input {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    font: 500 .9rem var(--font-mono);
    max-width: 100%;
}

.captcha-refresh {
    flex: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
    padding: 0;
    box-shadow: none;
    transform: none;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: none;
}

.captcha-refresh:active {
    transform: rotate(180deg) scale(.94);
}

.form-error {
    color: var(--orange);
    font: 500 .8rem var(--font-mono);
    min-height: 1.2em;
    margin-top: 10px;
}

/* Submit button wrapper */
.form-submit-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── Contact Form Container ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── Form Card (from external/site.css) ── */
.form-card {
    border: 1px solid var(--ink);
    background: var(--panel);
    padding: 30px;
    box-shadow: 8px 8px 0 var(--teal);
}

.form-card h1 {
    font-size: 1.7rem;
    letter-spacing: -.03em;
    margin-bottom: 4px;
}

.form-card .form-sub {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: .85rem;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 13px 15px;
    color: var(--ink);
    background: var(--paper);
    font: 500 .95rem var(--font-mono);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--teal);
    box-shadow: 4px 4px 0 var(--lime);
}

.field-row {
    display: flex;
    gap: 12px;
}

.field-row .field {
    flex: 1;
}

@media (max-width: 640px) {
    .field-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ── Contact Card (Form Box) ── */
.contact-card {
    background: var(--panel);
    border: 1px solid var(--ink);
    box-shadow: 10px 10px 0 var(--teal);
    width: 100%;
    padding: 32px 40px;
    /* Reduced vertical padding */
}

.contact-card-header {
    margin-bottom: 24px;
    /* Reduced margin */
}

.contact-breadcrumbs {
    font: 600 .8rem var(--font-mono);
    color: var(--teal);
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.contact-card-header h1 {
    font-size: 2.2rem;
    color: var(--ink);
    margin: 0 0 8px 0;
    letter-spacing: -.03em;
}

.contact-card-header p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

.contact-card .contact-form label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}

.contact-card .contact-form>div,
.contact-card .contact-form .form-row {
    margin-bottom: 16px;
    /* Tighten up vertical spacing between form groups */
}

.contact-card .contact-form input:not([type="hidden"]),
.contact-card .contact-form textarea {
    background: var(--paper);
    border: 1px solid var(--line);
}

@media (max-width: 600px) {
    .contact-card {
        padding: 32px 24px;
        box-shadow: 6px 6px 0 var(--teal);
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-socials a {
    color: var(--ink);
    border-bottom: none;
    transition: color .2s;
    display: inline-flex;
}

.contact-socials a:hover {
    color: var(--teal);
    border-bottom: none;
}

.contact-bottom {
    padding: 80px 0 60px;
    text-align: center;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Toolkit search ── */
.tk-search-wrap {
    max-width: 560px;
    margin: 6px 0 4px;
    position: relative;
}

#tk-search {
    max-width: 100%;
    padding-left: 40px;
}

.tk-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
}

.tk-results {
    color: var(--muted);
    font: 500 .8rem var(--font-mono);
    min-height: 1.4em;
    margin: 6px 0 20px;
}

.tk-method {
    margin: 14px 0;
}

.tk-method ol {
    margin: 12px 0 0;
}

.tk-method li {
    font-size: .87rem;
    margin: 5px 0;
    color: var(--muted);
}

/* ── Toolkit stat cards ── */
.tk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin: 28px 0 10px;
}

.tk-grid .tk-card {
    text-align: center;
    padding: 22px 16px;
}

.tk-grid .tk-card h3 {
    font-size: .88rem;
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tk-grid .tk-card .count {
    float: none;
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.03em;
}

/* ── Toolkit category cards (brutalist style) ── */
.tk-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 22px 24px;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.tk-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow);
    border-color: var(--teal);
}

.tk-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.tk-card .count {
    color: var(--teal);
    font: 500 .75rem var(--font-mono);
    margin-left: auto;
    white-space: nowrap;
    background: color-mix(in srgb, var(--teal) 12%, transparent);
    padding: 2px 8px;
    border-radius: 20px;
}

.tk-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
}

.tk-card ol {
    margin: 14px 0 0;
    padding-left: 18px;
}

.tk-card li {
    font-size: .86rem;
    margin: 7px 0;
    color: var(--muted);
    line-height: 1.55;
}

.tk-card code {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--ink);
    background: var(--panel-2);
    padding: 3px 8px;
    border: 1px solid var(--line);
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .12s var(--ease);
}

.tk-card code:hover {
    border-color: var(--teal);
    background: color-mix(in srgb, var(--teal-soft) 65%, transparent);
    transform: translateX(2px);
}

/* Copy-to-clipboard affordance */
.tk-card li {
    position: relative;
    padding-right: 30px;
}

.tk-card .copy-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .7rem;
    padding: 3px 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
    font-family: var(--font-mono);
}

.tk-card li:hover .copy-btn {
    opacity: 1;
}

.tk-card .copy-btn:hover {
    color: var(--lime-strong);
    border-color: var(--teal);
}

.tk-card .copy-btn.copied {
    color: var(--lime-strong);
    border-color: var(--lime-strong);
}

/* Collapse indicator */
.tk-card.collapsed ul,
.tk-card.collapsed ol {
    display: none;
}

/* ── "About" page specifics: feature pills ── */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.feature-pill {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    padding: 6px 14px;
    font: 500 .82rem var(--font-mono);
    border-radius: 999px;
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
}

.feature-pill:hover {
    border-color: var(--teal);
    background: var(--teal-soft);
    transform: translateY(-1px);
}

.feature-pill.accent {
    border-color: var(--teal);
    background: var(--teal-soft);
    color: var(--teal);
}

/* ── Two-column "spec" layout used on About ── */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 14px 0;
}

.spec-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .15s ease;
}

.spec-row:hover {
    border-color: var(--teal);
}

.spec-icon {
    color: var(--teal);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.spec-content {
    min-width: 0;
}

.spec-title {
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
    margin-bottom: 2px;
}

.spec-desc {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
}

/* ── Footer (uses .landing-footer from app.css; centered for standalone pages) ── */
.landing-footer {
    text-align: center;
}

.landing-footer a {
    color: inherit;
    border-bottom: none;
}

.landing-footer a:hover {
    color: var(--teal);
    border-bottom: none;
}

.page-footer {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 20px 40px;
    text-align: center;
}

.page-footer-links {
    margin-top: 10px;
    font-size: .78rem;
    opacity: .75;
}

.page-footer-links a {
    color: inherit;
    border-bottom: none;
}

.page-footer-links a:hover {
    color: var(--teal);
    border-bottom: none;
}

.tk-guides-head {
    margin-top: 52px;
}

.about-toolkit-link {
    margin-top: 20px;
}

/* ── Reveal-on-load (uses app.css @keyframes reveal) ── */
.page-reveal {
    animation: reveal .6s cubic-bezier(.2, .7, .3, 1) backwards;
}

.page-reveal:nth-child(2) {
    animation-delay: .06s;
}

.page-reveal:nth-child(3) {
    animation-delay: .12s;
}

.page-reveal:nth-child(4) {
    animation-delay: .18s;
}

.page-reveal:nth-child(5) {
    animation-delay: .24s;
}

.page-reveal:nth-child(6) {
    animation-delay: .30s;
}

/* Section reveal on scroll - progressive stagger within groups */
.stagger>* {
    animation: reveal .55s cubic-bezier(.2, .7, .3, 1) backwards;
}

.stagger>*:nth-child(1) {
    animation-delay: .04s;
}

.stagger>*:nth-child(2) {
    animation-delay: .10s;
}

.stagger>*:nth-child(3) {
    animation-delay: .16s;
}

.stagger>*:nth-child(4) {
    animation-delay: .22s;
}

.stagger>*:nth-child(5) {
    animation-delay: .28s;
}

.stagger>*:nth-child(6) {
    animation-delay: .34s;
}

/* ── Contact: success/error decorative banner ── */
.msg-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    margin: 24px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.msg-banner-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.msg-banner.ok {
    border-color: color-mix(in srgb, var(--teal) 45%, transparent);
    background: color-mix(in srgb, var(--teal) 6%, transparent);
}

.msg-banner.err {
    border-color: color-mix(in srgb, var(--orange) 45%, transparent);
    background: color-mix(in srgb, var(--orange) 6%, transparent);
}

/* ── Responsive ──
   The navbar burger collapse is handled by app.css @media (max-width:768px)
   (.nav-links hides, .nav-burger shows, .nav.open expands). We only add
   page-specific tweaks below. */
@media (max-width: 768px) {
    .public-page {
        padding: 0 18px 72px;
    }

    .page-hero {
        padding: 36px 0 36px;
        margin-bottom: 36px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .phase-strip {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .public-page {
        padding: 0 14px 64px;
    }

    .page-hero {
        padding: 28px 0 28px;
    }

    .public-page h1 {
        font-size: 1.8rem;
    }

    .tk-card .count {
        float: none;
        display: block;
        margin-top: 4px;
    }

    .tk-card {
        padding: 16px;
    }

    .tk-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form,
    #tk-search {
        max-width: 100%;
    }

    .captcha-row .captcha-expr {
        font-size: .8rem;
    }

    .page-hero-meta {
        gap: 18px;
    }
}

/* ══════════════════════════════════════════════════════════
   Bug Bounty Toolkit
   Built entirely from audited app.css tokens/components:
   - .cat-accordion/.acc-head (dashboard accordions) for categories
   - .btn solid/ghost, .launch-row inputs (dashboard launch panel)
   - .status-pill, .method eyebrow, .phase-strip
   - Toolbar chips reuse the dashboard .chip pattern (999px radius
     pill chips already in the system)
   ══════════════════════════════════════════════════════════ */

/* ── Hero target box (auth-card surface: hard sticker shadow) ── */
.tk-target-box {
    background: var(--panel);
    border: 1px solid var(--ink);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-top: 40px;
    max-width: 640px;
    text-align: left;
}

.tk-target-box label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.tk-target-box .tk-target-hint {
    display: block;
    margin-bottom: 20px;
    color: var(--muted);
    font: 500 11px var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tk-target-box input {
    width: 100%;
    padding: 15px 17px;
    font: 500 .95rem var(--font-mono);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    outline: none;
    margin-bottom: 20px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.tk-target-box input:focus {
    border-color: var(--teal);
    box-shadow: 4px 4px 0 var(--lime);
}

.tk-target-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Toolkit toolbar (search + filter chips) ── */
.tk-toolbar {
    margin-bottom: 20px;
}

.tk-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 6px 0 14px;
}

#tk-search {
    max-width: 100%;
    padding-left: 40px;
    font: 500 .95rem var(--font-mono);
}

.tk-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
}

.tk-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tk-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tk-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    font: 600 .82rem var(--font-display);
    transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .12s ease;
}

.tk-toolbar-btn:hover {
    border-color: var(--teal);
    background: var(--panel-2);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--ink);
}

.tk-toolbar-btn:active {
    transform: translate(0, 1px) scale(.97);
    box-shadow: none;
}

.tk-toolbar-btn.active {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--teal);
}

.tk-results {
    color: var(--muted);
    font: 500 .8rem var(--font-mono);
    min-height: 1.4em;
    margin: 6px 0 20px;
}

/* ── Category cards (dashboard .cat-accordion pattern) ── */
.tk-category-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.tk-category-card:hover {
    border-color: var(--teal);
    box-shadow: var(--card-glow);
}

.tk-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 16px;
    min-height: 52px;
    background: transparent;
    transition: background .15s ease;
}

.tk-card-header:hover {
    background: var(--panel-2);
}

.tk-cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tk-fav-cat {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .15s ease, border-color .15s ease;
}

.tk-fav-cat:hover {
    color: var(--wait-amber);
    border-color: var(--line);
}

.tk-fav-cat.active {
    color: var(--wait-amber);
}

.tk-cat-icon {
    font-size: 1.15rem;
}

.tk-cat-eyebrow {
    font: 500 10px var(--font-mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tk-cat-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.tk-cat-main:focus-visible {
    outline-offset: 2px;
}

.tk-cat-title {
    font: 600 .9rem var(--font-display);
    color: var(--ink);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tk-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 7px;
    border-radius: 9px;
    background: var(--teal);
    color: var(--panel);
    font: 600 10px var(--font-mono);
    flex-shrink: 0;
}

.tk-chevron {
    margin-left: auto;
    color: var(--muted);
    display: inline-flex;
    transition: transform 250ms var(--ease);
}

.tk-category-card.open .tk-chevron {
    transform: rotate(90deg);
}

.tk-card-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms var(--ease);
    overflow: hidden;
    visibility: hidden;
}

.tk-category-card.open .tk-card-body {
    grid-template-rows: 1fr;
    visibility: visible;
}

.tk-card-body>.tk-body-inner {
    overflow: hidden;
    min-height: 0;
}

.tk-body-inner {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--line);
}

.tk-cmd-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.tk-cmd-item {
    margin: 0;
}

.tk-cmd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.tk-cmd-header h4 {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    min-width: 0;
    overflow-wrap: anywhere;
}

.copy-icon-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .12s ease;
}

.copy-icon-btn:hover {
    color: var(--teal);
    border-color: var(--teal);
    background: var(--panel-2);
}

.copy-icon-btn:active {
    transform: scale(.92);
}

.copy-icon-btn.copied {
    color: var(--lime-strong);
    border-color: var(--lime-strong);
}

.tk-cmd-desc {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.tk-cmd-code-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.prompt {
    color: var(--teal);
    font: 500 .9rem var(--font-mono);
    user-select: none;
    flex-shrink: 0;
}

.tk-cmd-text {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: .86rem;
    line-height: 1.55;
    word-break: break-all;
    min-width: 0;
}

/* ── Guides (phase-strip cards + rich deep-dive accordion) ── */

/* Compact guide cards in the phase strip */
.tk-method {
    margin: 0;
    position: relative;
}

.tk-method .tk-method-icon {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.tk-method ol {
    margin: 12px 0 0;
    padding-left: 20px;
}

.tk-method li {
    font-size: .86rem;
    margin: 6px 0;
    color: var(--muted);
    line-height: 1.55;
}

.tk-step-count {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 7px;
    border-radius: 9px;
    background: var(--teal);
    color: var(--panel);
    font: 600 10px var(--font-mono);
}

.tk-method>b {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    padding-right: 44px;
    /* clear the step-count badge */
}

/* Rich deep-dive guide card (reuses .tk-category-card accordion) */
.tk-guide-card {
    margin-top: 16px;
}

.tk-guide-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.tk-guide-step {
    margin: 0;
}

.tk-guide-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.tk-guide-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--teal);
    font: 600 11px var(--font-mono);
}

.tk-guide-step-head h4 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
}

.tk-guide-step-desc {
    margin: 0 0 10px 40px;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
}

.tk-guide-cmds {
    display: grid;
    gap: 8px;
    margin-left: 40px;
}

.tk-guide-cmds .tk-cmd-code-wrap {
    padding: 10px 12px;
}

.tk-guide-cmds .copy-icon-btn {
    margin-left: auto;
}

.tk-guide-cmds .tk-cmd-text {
    flex: 1;
}

@media (max-width: 600px) {
    .tk-target-box {
        padding: 20px 16px;
    }

    .tk-cat-left {
        gap: 8px;
    }

    .tk-cat-main h3 {
        white-space: normal;
    }

    .tk-guide-step-desc,
    .tk-guide-cmds {
        margin-left: 0;
    }

    .tk-guide-step-head {
        align-items: flex-start;
    }

    .tk-guide-step-num {
        margin-top: 2px;
    }
}

/* ─────────────────────────────────────────────────────────────
   CSP-safe utility classes — replace inline style="" attributes
   (strict CSP style-src 'self' drops inline styles).
   ───────────────────────────────────────────────────────────── */

.contact-info-card { margin-bottom: 30px; box-shadow: none; }

.contact-info-title { font-size: 1.2rem; margin-bottom: 12px; }

.contact-info-text { font-size: 1.05rem; line-height: 1.6; }

.accent-text { color: var(--teal); }

.contact-meta { margin-top: 0; padding-top: 10px; border-top: none; }

.form-block-gap { margin-bottom: 24px; }

.captcha-gap { margin-bottom: 18px; }

.captcha-input {
    width: 100px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    background: var(--paper);
    font: 500 .95rem var(--font-mono);
    outline: none;
}

.btn-full { width: 100%; }

.mobile-menu-actions { display: flex; gap: 8px; }

.tk-step-plain { font-weight: normal; }
/* ══════════════════════════════════════════════════════════
   PAGES POLISH LAYER v3.1 — SVG icon chips, claim list, form
   heading, toolkit category icons. Appended last (cascade win).
   ══════════════════════════════════════════════════════════ */

/* ── Icon chips (About / Contact / Privacy cards) ── */
.info-card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--teal);
    margin-bottom: 14px;
    font-size: inherit;
}

.info-card-icon .ic { width: 20px; height: 20px; }

.spec-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--teal);
    margin-top: 0;
}

.spec-icon .ic { width: 17px; height: 17px; }

/* ── Claim list (About — “what we do not claim”) ── */
.claim-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.claim-list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 18px 20px;
    transition: border-color .15s ease, transform .15s var(--ease);
}

.claim-list li:hover {
    border-color: var(--teal);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .12);
}

.claim-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ink);
    background: var(--lime);
    color: #15211f;
    font: 700 11px var(--font-mono);
    box-shadow: 3px 3px 0 var(--ink);
}

.claim-list h3 {
    margin: 4px 0 6px;
    font-size: 1rem;
}

.claim-list p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .claim-list li { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 14px; }
    .claim-num { width: 34px; height: 34px; }
}

/* ── Contact form card heading (now h2 — single H1 per page) ── */
.form-card h2 {
    font-size: 1.7rem;
    letter-spacing: -.03em;
    margin-bottom: 4px;
}

/* ── Toolkit category icons (SVG) ── */
.tk-cat-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--teal);
}

.tk-cat-icon .ic { width: 17px; height: 17px; }

.tk-search-icon { color: var(--muted); display: inline-grid; place-items: center; }

/* ══════════════════════════════════════════════════════════
   PAGES POLISH LAYER v3.2 — Toolkit card redesign
   Group accents, sticky toolbar, group chips, tool badges,
   guide step rail, copy-all, empty state. Appended last
   (cascade win). All colors from app.css tokens — both themes.
   ══════════════════════════════════════════════════════════ */

/* ── Group accent identities ── */
.tk-g-recon     { --tk-accent: var(--teal); }
.tk-g-injection { --tk-accent: var(--orange); }
.tk-g-discovery { --tk-accent: var(--wait-amber, #b07d2b); }
.tk-g-config    { --tk-accent: var(--teal); }
.tk-g-cms       { --tk-accent: var(--orange); }
.tk-g-payloads  { --tk-accent: var(--wait-amber, #b07d2b); }
.tk-g-guides    { --tk-accent: var(--orange); }

mark {
    background: var(--lime);
    color: #15211f;
    padding: 0 2px;
    border-radius: 2px;
}

/* ── Sticky toolbar (search + chips travel with you) ── */
.tk-toolbar {
    position: sticky;
    top: 70px;
    z-index: 30;
    background: var(--paper);
    padding: 12px 0 10px;
    border-bottom: 1px solid var(--line);
}

/* ── Group filter chips ── */
.tk-group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tk-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    font: 600 .8rem var(--font-display);
    transition: border-color .15s ease, color .15s ease, background .15s ease, transform .12s ease, box-shadow .12s ease;
}

.tk-group-chip .ic { width: 14px; height: 14px; }

.tk-group-chip:hover {
    border-color: var(--teal);
    color: var(--ink);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .12);
}

.tk-group-chip:active { transform: translate(0, 1px); box-shadow: none; }

.tk-group-chip.active {
    border-color: var(--teal);
    background: var(--teal-soft);
    color: var(--teal);
}

/* ── Group section heads ── */
.tk-group-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 38px 0 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--tk-accent, var(--teal));
    background: var(--panel);
}

.tk-group-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--tk-accent, var(--teal));
}

.tk-group-icon .ic { width: 20px; height: 20px; }

.tk-group-text { display: grid; gap: 2px; min-width: 0; }

.tk-group-title {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

.tk-group-desc {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.5;
}

.tk-group-line { flex: 1; height: 1px; background: var(--line); }

/* ── Category cards: accent edge + lift ── */
.tk-category-card {
    position: relative;
    border-left: 3px solid var(--tk-accent, var(--line));
}

.tk-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--tk-accent, var(--teal));
    box-shadow: var(--card-glow);
}

.tk-category-card.open {
    border-color: var(--tk-accent, var(--teal));
    box-shadow: var(--shadow);
}

.tk-cat-icon {
    width: 38px;
    height: 38px;
    color: var(--tk-accent, var(--teal));
}

.tk-cat-main { gap: 12px; }

.tk-cat-text {
    display: grid;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.tk-cat-eyebrow { color: var(--tk-accent, var(--muted)); }

.tk-count-pill {
    border: 1px solid var(--tk-accent, var(--teal));
    background: transparent;
    color: var(--tk-accent, var(--teal));
}

.tk-chevron {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .7rem;
    margin-left: 4px;
}

.tk-category-card.open .tk-chevron {
    color: var(--tk-accent, var(--teal));
    border-color: var(--tk-accent, var(--teal));
}
/* ── Command items: tool badge + accent code block ── */
.tk-cmd-item {
    border-left: 2px solid var(--line);
    padding-left: 14px;
    transition: border-color .15s ease;
}

.tk-cmd-item:hover { border-left-color: var(--tk-accent, var(--teal)); }

.tk-tool-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px 8px;
    border: 1px solid var(--tk-accent, var(--teal));
    color: var(--tk-accent, var(--teal));
    font: 500 10px var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tk-cmd-header h4 { flex: 1; min-width: 0; }

.tk-cmd-code-wrap {
    background: var(--panel-2);
    border-left: 2px solid var(--tk-accent, var(--teal));
}

/* ── Copy-all footer ── */
.tk-card-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.tk-copy-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    font: 600 .78rem var(--font-display);
    transition: border-color .15s ease, color .15s ease, background .15s ease, transform .12s ease, box-shadow .12s ease;
}

.tk-copy-all:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .12);
}

.tk-copy-all:active { transform: translate(0, 1px); box-shadow: none; }

.tk-copy-all.copied {
    border-color: var(--teal);
    background: var(--teal-soft);
    color: var(--teal);
}

/* ── Guide cards: distinct methodology treatment ── */
.tk-guide-card { border-top: 3px solid var(--tk-accent, var(--orange)); }

.tk-guide-steps { display: grid; }

.tk-guide-step {
    position: relative;
    margin-left: 17px;
    padding: 0 0 22px 36px;
    border-left: 2px solid var(--line);
    list-style: none;
}

.tk-guide-step:last-child {
    border-left-color: transparent;
    padding-bottom: 4px;
}

.tk-guide-step-num {
    position: absolute;
    left: -17px;
    top: 0;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--lime);
    border: 1px solid var(--ink);
    color: #15211f;
    font: 700 11px var(--font-mono);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .25);
}

.tk-guide-step-head { display: grid; gap: 4px; }

/* ── Empty state ── */
.tk-empty {
    margin: 30px 0;
    padding: 44px 24px;
    border: 1px dashed var(--line);
    background: var(--panel);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 6px;
}

.tk-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--muted);
}

.tk-empty-title { margin: 0; font-weight: 600; }

.tk-empty-sub { margin: 0; color: var(--muted); font-size: .88rem; }

.tk-empty .tk-toolbar-btn { margin-top: 10px; }

/* ── Motion & responsive ── */
@media (prefers-reduced-motion: reduce) {
    .tk-category-card,
    .tk-category-card:hover,
    .tk-group-chip,
    .tk-copy-all,
    .tk-toolbar-btn { transform: none !important; transition: none !important; }
}

@media (max-width: 640px) {
    .tk-toolbar { top: 60px; padding-top: 10px; }
    .tk-group-head { gap: 12px; padding: 14px; margin-top: 28px; }
    .tk-group-line { display: none; }
    .tk-group-title { font-size: 1.02rem; }
    .tk-group-desc { font-size: .8rem; }
}