/* ============================================================================
   PDF Toolkit — design system

   DIRECTION: warm, saturated, dimensional. Deliberately NOT the ToolMint
   reference-manual look (flat white, mono datasheet, thin colour rails).
   Here: an indigo canvas melting into white, segment colours as full gradient
   chips, soft-shadowed tiles that lift, coral as the through-line accent.

   TYPE   Space Grotesk (display) / Inter (body)
   COLOUR --brand + --ink injected per page from the segment.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F5FB;
  --bg-card: #FFFFFF;
  --bg-sink: #EFEEF9;
  --ink-900: #17153B;   /* deepest indigo — display text */
  --fg: #1E1B33;
  --fg-soft: #55516E;
  --fg-mute: #6B6785;
  --line: #E6E4F2;
  --line-soft: #F0EFF8;

  --indigo: #4338CA;
  --indigo-deep: #1E1B4B;
  --coral: #F97316;
  --coral-ink: #C2410C;

  --shadow-sm: 0 1px 2px rgba(30,27,75,.06);
  --shadow: 0 4px 6px -2px rgba(30,27,75,.08), 0 12px 24px -8px rgba(30,27,75,.12);
  --shadow-lg: 0 24px 60px -18px rgba(30,27,75,.32);
  --shadow-color: 0 12px 32px -12px color-mix(in srgb, var(--brand) 55%, transparent);

  --ok: #047857;
  --err: #DC2626;
  --warn: #B45309;

  --brand: #4338CA;
  --ink: #4338CA;
  --accent: #F97316;

  --r: 18px;
  --r-md: 13px;
  --r-sm: 9px;
  --r-xs: 6px;
  --maxw: 1200px;

  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme='dark'] {
  --bg: #0F0E1C;
  --bg-soft: #16142A;
  --bg-card: #1A1832;
  --bg-sink: #201D3D;
  --ink-900: #F4F3FF;
  --fg: #ECEAFB;
  --fg-soft: #A8A4C8;
  --fg-mute: #8480A8;
  --line: #2A2748;
  --line-soft: #201E3A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 4px 6px -2px rgba(0,0,0,.4), 0 12px 24px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -18px rgba(0,0,0,.8);
  --ok: #10B981;
  --warn: #F59E0B;
  --err: #F87171;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); color: var(--ink-900); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .87em; background: var(--bg-sink); padding: 1px 6px; border-radius: var(--r-xs); }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--coral) 28%, transparent); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--indigo); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; }
.skip:focus { left: 0; }
.eyebrow { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--coral-ink); }

/* ============ HEADER ============ */
.hd { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 10px; height: 66px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink-900); letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo-m { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--indigo) 0%, #6D28D9 55%, var(--coral) 130%); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: -.01em; box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--indigo) 60%, transparent); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav > button { font: inherit; font-size: .92rem; font-weight: 500; font-family: var(--sans); color: var(--fg-soft); background: none; border: 0; padding: 9px 14px; border-radius: var(--r-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav > button:hover { background: var(--bg-soft); color: var(--ink-900); text-decoration: none; }
.nav .on { color: var(--ink-900); font-weight: 600; }
.nav-cta { background: linear-gradient(135deg, var(--indigo), #6D28D9) !important; color: #fff !important; font-weight: 600 !important; box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--indigo) 60%, transparent); }
.nav-cta:hover { filter: brightness(1.08); }
.mega-t::after { content: '▾'; font-size: .66em; opacity: .5; margin-left: 2px; transition: transform .2s; }
.mega-t[aria-expanded='true']::after { transform: rotate(180deg); }
.theme-t { padding: 9px 11px !important; font-size: 1.05rem !important; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 9px; color: var(--ink-900); }

/* SIGNATURE: full-directory mega-menu — every segment and tool on first click */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 30px 0 34px; display: none; }
.mega[data-open='1'] { display: block; animation: megaIn .18s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.mega-col { position: relative; }
.mega-col > a.mega-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding-bottom: 11px; border-bottom: 2px solid color-mix(in srgb, var(--c) 30%, transparent); }
.mega-head .mega-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 4px 10px -3px color-mix(in srgb, var(--c) 55%, transparent); }
.mega-head .mega-ic svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mega-head b { font-family: var(--display); font-size: .96rem; font-weight: 600; color: var(--ink-900); }
.mega-head:hover { text-decoration: none; }
.mega-head:hover b { color: var(--c); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 5px 0; font-size: .87rem; color: var(--fg-soft); line-height: 1.45; }
.mega-col li a:hover { color: var(--c); text-decoration: none; padding-left: 4px; transition: padding .15s; }
.mega-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .88rem; }
.mega-foot .mf-note { color: var(--fg-mute); display: inline-flex; align-items: center; gap: 8px; }
.mega-foot .mf-note svg { width: 15px; height: 15px; stroke: var(--ok); fill: none; stroke-width: 2; }

@media (max-width: 940px) {
  .nav > .desk { display: none; }
  .burger { display: block; }
  .mega { max-height: calc(100vh - 66px); overflow-y: auto; padding: 20px 0; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 560px) { .mega-grid { grid-template-columns: 1fr; } }

/* ============ HERO ============ */
.hero { position: relative; background: linear-gradient(180deg, var(--indigo-deep) 0%, #2E2A6E 42%, #4C46A8 76%, transparent 100%); padding: 66px 0 130px; margin-bottom: -70px; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 0; opacity: .5; background: radial-gradient(680px 340px at 82% 8%, color-mix(in srgb, var(--coral) 40%, transparent), transparent 60%), radial-gradient(560px 320px at 12% 90%, color-mix(in srgb, #7C3AED 55%, transparent), transparent 62%); }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: #FDBA74; }
.hero h1 { color: #fff; max-width: 17ch; margin: 12px 0 .35em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #FDBA74, #FB923C 45%, #F97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.12rem; color: #C7C3F0; max-width: 56ch; margin-bottom: 30px; }
.search-w { position: relative; max-width: 620px; }
.search-w input { width: 100%; padding: 17px 20px; font: inherit; font-size: 1rem; border: 1px solid transparent; border-radius: var(--r-md); background: #fff; color: var(--fg); box-shadow: var(--shadow-lg); }
.search-w input:focus { outline: none; box-shadow: var(--shadow-lg), 0 0 0 3px var(--coral); }
.sr { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; padding: 6px; }
.sr:empty { display: none; }
.sr a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 13px; border-radius: var(--r-sm); color: var(--fg); font-size: .92rem; }
.sr a:hover, .sr a.sel { background: var(--bg-soft); text-decoration: none; }
.sr .tag { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 20px; color: #fff; white-space: nowrap; }
.sr .none { padding: 15px; color: var(--fg-mute); font-size: .9rem; }
.hero-pop { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.hero-pop span { color: #A9A4D8; font-size: .82rem; margin-right: 2px; }
.hero-pop a { padding: 6px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; color: #E8E6FA; background: rgba(255,255,255,.06); font-size: .82rem; backdrop-filter: blur(4px); }
.hero-pop a:hover { border-color: var(--coral); color: #fff; background: rgba(249,115,22,.18); text-decoration: none; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.hero-trust div { color: #fff; }
.hero-trust strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.hero-trust span { font-size: .76rem; color: #A9A4D8; text-transform: uppercase; letter-spacing: .1em; }

/* ============ SEGMENT SECTIONS ============ */
.seg-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 54px; }
@media (max-width: 900px) { .seg-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .seg-strip { grid-template-columns: 1fr; } }
.seg-chip { display: block; padding: 20px; border-radius: var(--r); background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s; }
.seg-chip:hover { transform: translateY(-4px); text-decoration: none; box-shadow: var(--shadow-lg); }
.seg-chip .si { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 13px; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--c) 60%, transparent); }
.seg-chip .si svg { width: 23px; height: 23px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg-chip b { font-family: var(--display); font-size: 1.06rem; color: var(--ink-900); display: block; margin-bottom: 3px; }
.seg-chip span { font-size: .82rem; color: var(--fg-mute); }
.seg-chip .si-count { display: inline-block; margin-top: 11px; font-size: .72rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 3px 10px; border-radius: 20px; }

.cat-sec { padding: 20px 0 8px; scroll-margin-top: 90px; }
.cat-hd { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-bottom: 6px; }
.cat-hd .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--c) 55%, transparent); flex: none; }
.cat-hd .ico svg { width: 21px; height: 21px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat-hd h2 { margin: 0; color: var(--ink-900); }
.cat-hd .cnt { font-size: .82rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 3px 11px; border-radius: 20px; }
.cat-hd .more { margin-left: auto; font-size: .88rem; color: var(--ink); font-weight: 600; }
.cat-tag { color: var(--fg-soft); margin-bottom: 20px; font-size: .96rem; max-width: 74ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 15px; }

/* SIGNATURE: dimensional tiles with a gradient cap that lift on hover */
.card { display: block; position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-card); color: var(--fg); box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c), var(--c2)); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.card:hover { transform: translateY(-4px); text-decoration: none; border-color: color-mix(in srgb, var(--c) 30%, var(--line)); box-shadow: var(--shadow-color), var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card .ci { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 13px; background: color-mix(in srgb, var(--c) 12%, transparent); transition: background .18s; }
.card .ci svg { width: 19px; height: 19px; stroke: var(--c); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .ci { background: linear-gradient(135deg, var(--c), var(--c2)); }
.card:hover .ci svg { stroke: #fff; }
.card h3 { font-size: 1.02rem; margin: 0 0 5px; color: var(--ink-900); }
.card p { margin: 0; font-size: .87rem; color: var(--fg-soft); line-height: 1.5; }
.card .hot { position: absolute; top: 17px; right: 16px; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--c), var(--c2)); padding: 3px 8px; border-radius: 20px; }

/* ============ TOOL PAGE ============ */
.crumb { font-size: .82rem; color: var(--fg-mute); padding: 22px 0 0; }
.crumb a { color: var(--fg-soft); }
.crumb span { margin: 0 8px; opacity: .4; }
.tool-hd { padding: 18px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tool-hd .th-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tool-hd .th-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--brand) 55%, transparent); flex: none; }
.tool-hd .th-ic svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-hd h1 { margin: 0; }
.spec { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.spec span { font-size: .74rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; background: var(--bg-soft); color: var(--fg-soft); border: 1px solid var(--line); }
.spec .local { color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, transparent); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.answer { font-size: 1.06rem; color: var(--fg-soft); max-width: 74ch; }
.tool-app { position: relative; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); margin-bottom: 32px; }
.tool-app::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.privacy-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 22%, transparent); padding: 6px 13px; border-radius: 20px; margin-bottom: 18px; }
.tool-body { max-width: 74ch; }
.tool-body h2 { margin-top: 2em; scroll-margin-top: 90px; }
.tool-body ul, .tool-body ol { padding-left: 1.3em; }
.tool-body li { margin-bottom: .45em; }
.tool-body ol li::marker { font-weight: 700; color: var(--brand); }
.method { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 6%, var(--bg-soft)), var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; font-size: .9rem; color: var(--fg-soft); margin: 0 0 24px; }
.method b { color: var(--ink-900); }
.reviewed { font-size: .78rem; color: var(--fg-mute); margin-top: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: var(--bg-card); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { padding: 15px 17px; font-weight: 600; cursor: pointer; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--coral); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq .a { padding: 15px 17px 17px; color: var(--fg-soft); font-size: .92rem; }
.faq .a p { margin: 0; }
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ============ TOOL UI (kept from working batch 1, restyled to match) ============ */
.tm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 15px; }
.tm-grid-2.tm-tight { gap: 11px; }
@media (max-width: 620px) { .tm-grid-2 { grid-template-columns: 1fr; } }
.tm-span2 { grid-column: 1 / -1; }
.tm-field { display: flex; flex-direction: column; gap: 6px; }
.tm-field > span { font-size: .8rem; font-weight: 500; color: var(--fg-soft); }
.tm-field > span b { color: var(--brand); font-weight: 600; }
.tm-field input, .tm-field select, .tm-field textarea, .tm-row input, .tm-stop input, .tm-block input, .tm-block textarea {
  font: inherit; font-size: .94rem; padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; transition: border-color .14s, box-shadow .14s; }
.tm-field input:focus, .tm-field select:focus, .tm-field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent); }
.tm-field input[type='range'] { padding: 0; height: 26px; accent-color: var(--coral); border: 0; background: none; box-shadow: none; }
.tm-inline > div { display: flex; gap: 8px; }
.tm-check { display: inline-flex; align-items: center; gap: 8px; font-size: .89rem; color: var(--fg-soft); cursor: pointer; margin: 0 16px 8px 0; }
.tm-check input { accent-color: var(--coral); width: 16px; height: 16px; }
.tm-btnrow { display: flex; gap: 9px; flex-wrap: wrap; margin: 16px 0; }
.tm-btn { font: inherit; font-size: .9rem; font-weight: 600; padding: 11px 21px; border-radius: var(--r-sm); border: 0; cursor: pointer; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 78%, var(--accent))); color: #fff; box-shadow: var(--shadow-color); transition: filter .14s, transform .08s; }
.tm-btn:hover { filter: brightness(1.08); text-decoration: none; }
.tm-btn:active { transform: translateY(1px); }
.tm-btn-ghost { background: var(--bg-soft); color: var(--ink-900); border: 1px solid var(--line); box-shadow: none; }
.tm-btn-ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.tm-x { background: none; border: 0; color: var(--fg-mute); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: var(--r-xs); flex: none; }
.tm-x:hover { background: color-mix(in srgb, var(--err) 11%, transparent); color: var(--err); }
.tm-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.tm-stat { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 13px 15px; }
.tm-stat span { display: block; font-size: .68rem; color: var(--fg-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; font-weight: 600; }
.tm-stat strong { font-size: 1.12rem; font-weight: 700; font-family: var(--display); color: var(--ink-900); }
.tm-stat-hero { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--bg-soft)), var(--bg-soft)); border-color: color-mix(in srgb, var(--brand) 28%, transparent); }
.tm-stat-hero strong { font-size: 1.9rem; color: var(--brand); }
.tm-hint { font-size: .82rem; color: var(--fg-mute); margin: 8px 0 0; }
.tm-warn { color: var(--warn); font-size: .82rem; }
.tm-note { font-size: .82rem; color: var(--fg-soft); background: var(--bg-soft); padding: 13px 15px; border-radius: var(--r-sm); margin-top: 15px; border: 1px solid var(--line-soft); }
.tm-status { font-size: .86rem; margin: 11px 0; min-height: 1.3em; color: var(--fg-mute); font-weight: 500; }
.tm-status.tm-ok { color: var(--ok); }
.tm-status.tm-err { color: var(--err); }
.tm-sub { font-size: .82rem; margin: 22px 0 11px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tm-drop { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 40px 22px; text-align: center; cursor: pointer; background: linear-gradient(135deg, var(--bg-soft), color-mix(in srgb, var(--brand) 3%, var(--bg-soft))); transition: border-color .16s, background .16s; }
.tm-drop:hover, .tm-drop.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg-soft)); }
.tm-drop p { margin: 0; }
.tm-drop p + p { margin-top: 6px; }
.tm-drop strong { color: var(--ink-900); }
.tm-pdflist { display: flex; flex-direction: column; gap: 9px; margin: 16px 0; }
.tm-pdfitem { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.tm-pdfitem img { width: 46px; height: 60px; object-fit: cover; border-radius: var(--r-xs); flex: none; background: var(--bg-soft); border: 1px solid var(--line-soft); }
.tm-fileinfo { flex: 1; min-width: 0; font-size: .84rem; }
.tm-fileinfo b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-900); }
.tm-fileinfo span { color: var(--fg-mute); font-size: .78rem; }
.tm-grip { color: var(--fg-mute); cursor: grab; font-size: 1.1rem; }
.tm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 16px 0; }
.tm-thumb { position: relative; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; cursor: pointer; aspect-ratio: 3/4; background: var(--bg-soft); padding: 0; box-shadow: var(--shadow-sm); transition: transform .14s; }
.tm-thumb:hover { transform: translateY(-2px); }
.tm-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.tm-thumb .tm-num { position: absolute; bottom: 6px; left: 6px; background: rgba(23,21,59,.82); color: #fff; font-size: .64rem; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.tm-thumb.tm-sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.tm-thumb.tm-sel .tm-num { background: var(--brand); }
.tm-thumb.tm-del { border-color: var(--err); opacity: .5; }
.tm-thumb.tm-del .tm-num { background: var(--err); }
.tm-thumb.tm-del::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; color: var(--err); font-weight: 700; }
.tm-nothumb { display: grid; place-items: center; height: 100%; color: var(--fg-mute); font-size: .95rem; font-weight: 600; }

/* ============ FOOTER ============ */
.ft { position: relative; background: var(--indigo-deep); color: #C7C3F0; padding: 56px 0 26px; margin-top: 80px; overflow: hidden; }
.ft::before { content: ''; position: absolute; inset: 0; opacity: .4; background: radial-gradient(600px 300px at 88% 0%, color-mix(in srgb, var(--coral) 30%, transparent), transparent 60%), radial-gradient(500px 260px at 6% 100%, color-mix(in srgb, #7C3AED 45%, transparent), transparent 60%); }
.ft .wrap { position: relative; z-index: 1; }
.ft-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr; } }
.ft-about .logo { color: #fff; margin-bottom: 14px; }
.ft-about p { font-size: .88rem; color: #A9A4D8; max-width: 36ch; }
.ft-privacy { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .8rem; color: #86EFAC; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); padding: 7px 13px; border-radius: 20px; }
.ft-privacy svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.ft h4 { font-family: var(--display); font-size: .82rem; font-weight: 600; color: #fff; margin-bottom: 13px; letter-spacing: -.01em; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li a { font-size: .86rem; color: #A9A4D8; line-height: 1.95; }
.ft li a:hover { color: #fff; }
.ft-btm { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #8480A8; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.ft-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.ft-legal a { color: #A9A4D8; font-size: .82rem; }
.ft-legal a:hover { color: #fff; }
@media (max-width: 640px) { .ft-btm { flex-direction: column; align-items: flex-start; } }

/* ============ STATIC PAGES ============ */
.page { max-width: 74ch; padding: 38px 0 20px; }
.page h1 { margin-bottom: .5em; }
.page h2 { margin-top: 1.9em; }
.page ul li { margin-bottom: .45em; }
.page .answer { margin-bottom: 1.4em; }
.legal-date { font-size: .82rem; color: var(--fg-mute); font-weight: 500; }
.hub-intro { max-width: 74ch; font-size: 1.02rem; color: var(--fg-soft); }
.ad-slot { min-height: 100px; margin: 32px 0; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--fg-mute); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; background: var(--bg-soft); }

/* ============================================================================
   THE WORKBENCH — header, nav, footer.
   A deliberate departure from ToolMint's quiet reference-manual look:
   filled colour blocks instead of hairline rails, Space Grotesk display,
   and a full instrument panel where all 33 tools are reachable from screen one.
   ========================================================================== */

:root {
  --wb-ink: #16161D;
  --wb-c1: #DC2626;  /* organise */
  --wb-c2: #7C3AED;  /* secure   */
  --wb-c3: #0891B2;  /* edit     */
  --wb-c4: #059669;  /* convert  */
  --wb-c5: #DB2777;  /* extract  */
  --wb-display: 'Space Grotesk', 'Inter', sans-serif;
}
body { font-family: var(--sans); }
h1, h2, h3, .wb-display { font-family: var(--wb-display); letter-spacing: -.02em; }

/* ---------- top bar ---------- */
.wb-hd { position: sticky; top: 0; z-index: 100; }
.wb-top { background: var(--wb-ink); color: #fff; }
[data-theme='dark'] .wb-top { background: #000; border-bottom: 1px solid #23232E; }
.wb-top-in { display: flex; align-items: center; gap: 20px; height: 66px; }

.wb-logo { display: flex; align-items: center; gap: 11px; color: #fff; flex: none; }
.wb-logo:hover { text-decoration: none; }
.wb-logo-mark { width: 34px; height: 34px; display: block; }
.wb-logo-mark svg { width: 100%; height: 100%; }
.wb-logo-txt { font-family: var(--wb-display); font-weight: 700; font-size: 1.32rem; line-height: 1; letter-spacing: -.03em; }
.wb-logo-txt b { font-weight: 700; }
.wb-logo-txt span { font-weight: 500; opacity: .62; margin-left: 5px; }

/* search — pill on the dark bar */
.wb-search { position: relative; flex: 1; max-width: 460px; display: flex; align-items: center; }
.wb-search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: #8A8A9A; pointer-events: none; }
.wb-search input {
  width: 100%; height: 42px; padding: 0 16px 0 40px; font: inherit; font-size: .92rem;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; color: #fff;
}
.wb-search input::placeholder { color: #9A9AA8; }
.wb-search input:focus { outline: none; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.wb-search .sr { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-3); max-height: 400px; overflow-y: auto; padding: 6px; }
.wb-search .sr:empty { display: none; }
.wb-search .sr a { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; color: var(--fg); font-size: .9rem; }
.wb-search .sr a:hover, .wb-search .sr a.sel { background: var(--bg-soft); text-decoration: none; }
.wb-search .sr .tag { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 5px; color: #fff; white-space: nowrap; }
.wb-search .sr .none { padding: 14px; color: var(--fg-mute); font-size: .88rem; }

.wb-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.wb-links a { color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; padding: 8px 13px; border-radius: 8px; }
.wb-links a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.wb-links a.on { color: #fff; background: rgba(255,255,255,.16); }
.wb-theme { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 4px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 9px;
  color: #fff; cursor: pointer; }
.wb-theme svg { width: 18px; height: 18px; }
.wb-theme:hover { background: rgba(255,255,255,.18); }

.wb-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 9px;
  cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }
.wb-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.wb-burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wb-burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.wb-burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- the colour bar: signature element ---------- */
.wb-bar { background: var(--bg-card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
.wb-bar-in { display: flex; gap: 0; align-items: stretch; }
.wb-tab { position: relative; flex: 1; }
.wb-tab-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 12px; font: inherit; font-family: var(--wb-display); font-size: .95rem; font-weight: 600;
  background: none; border: 0; border-bottom: 3px solid transparent; color: var(--fg-soft);
  cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.wb-tab-btn .wb-ico { width: 20px; height: 20px; display: grid; place-items: center; }
.wb-tab-btn .wb-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-tab-count { font-family: var(--sans); font-size: .68rem; font-weight: 700; color: #fff; background: var(--c);
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; }
.wb-tab:hover .wb-tab-btn, .wb-tab.open .wb-tab-btn { color: var(--ci); background: color-mix(in srgb, var(--c) 7%, transparent); border-bottom-color: var(--c); }
.wb-tab.on .wb-tab-btn { color: var(--ci); border-bottom-color: var(--c); }
/* the coloured spectrum strip under the whole bar */
.wb-bar-in::after { content: none; }
.wb-tab::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); opacity: .18; }

/* panel */
.wb-panel { position: absolute; top: 100%; left: 0; z-index: 90; min-width: 320px; max-width: 460px;
  background: var(--bg-card); border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: 0 0 14px 14px; box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.wb-tab:hover .wb-panel, .wb-tab.open .wb-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.wb-tab:nth-child(n+4) .wb-panel { left: auto; right: 0; }
.wb-panel-in { padding: 14px; }
.wb-panel-head { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 9%, transparent); margin-bottom: 8px; color: var(--fg); }
.wb-panel-head:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 15%, transparent); }
.wb-panel-head .wb-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--c); }
.wb-panel-head .wb-ico svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-panel-head b { display: block; font-family: var(--wb-display); font-size: .98rem; color: var(--fg); }
.wb-panel-head em { display: block; font-style: normal; font-size: .78rem; color: var(--fg-mute); line-height: 1.4; margin-top: 2px; }
.wb-panel-head .wb-arrow { margin-left: auto; color: var(--ci); font-weight: 700; flex: none; }
.wb-panel-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 8px; }
.wb-panel-tools a { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px;
  font-size: .86rem; color: var(--fg-soft); }
.wb-panel-tools a:hover { background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--ci); text-decoration: none; }
.wb-hot { font-size: .56rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--c); padding: 1px 5px; border-radius: 4px; }
.wb-soon { font-size: .8rem; color: var(--fg-mute); font-style: italic; padding: 7px 10px; }

/* ---------- footer ---------- */
.wb-ft { background: var(--wb-ink); color: rgba(255,255,255,.72); margin-top: 72px; }
.wb-ft-cta { background: linear-gradient(100deg, var(--wb-c1), var(--wb-c2) 32%, var(--wb-c3) 55%, var(--wb-c4) 78%, var(--wb-c5)); }
.wb-ft-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px 0; flex-wrap: wrap; }
.wb-ft-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; }
.wb-ft-cta p { color: rgba(255,255,255,.92); margin: 0; max-width: 60ch; font-size: .95rem; }
.wb-ft-btn { flex: none; background: #fff; color: var(--wb-ink); font-family: var(--wb-display); font-weight: 600;
  font-size: 1rem; padding: 14px 26px; border-radius: 11px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.3); }
.wb-ft-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(0,0,0,.4); }
.wb-ft-main { padding: 50px 0 34px; }
.wb-ft-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 22px; }
.wb-ft-h { display: flex; align-items: center; gap: 8px; font-family: var(--wb-display); font-weight: 600; font-size: .92rem; color: #fff; margin-bottom: 13px; }
.wb-ft-h:hover { text-decoration: none; color: color-mix(in srgb, var(--c) 60%, #fff); }
.wb-ft-h .wb-ico { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--c); }
.wb-ft-h .wb-ico svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-ft-col ul { list-style: none; margin: 0; padding: 0; }
.wb-ft-col li { margin-bottom: 6px; }
.wb-ft-col li a { color: rgba(255,255,255,.66); font-size: .83rem; }
.wb-ft-col li a:hover { color: #fff; }
.wb-ft-site .wb-ft-h { color: #fff; }
.wb-ft-btm { border-top: 1px solid rgba(255,255,255,.12); }
.wb-ft-btm-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; font-size: .8rem; }
.wb-ft-tag { color: rgba(255,255,255,.5); }
.wb-ft-legal { display: flex; gap: 18px; }
.wb-ft-legal a { color: rgba(255,255,255,.66); font-size: .8rem; }
.wb-ft-legal a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wb-links, .wb-search { display: none; }
  .wb-burger { display: flex; }
  .wb-top-in { gap: 12px; }
  .wb-bar { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; overflow-y: auto;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: none; }
  .wb-bar.wb-open { transform: translateX(0); }
  .wb-bar-in { flex-direction: column; }
  .wb-tab { flex: none; border-bottom: 1px solid var(--line); }
  .wb-tab::before { display: none; }
  .wb-tab-btn { justify-content: flex-start; border-bottom: 0; border-left: 4px solid var(--c); }
  .wb-tab-count { margin-left: auto; }
  .wb-panel { position: static; min-width: 0; max-width: none; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0; border-radius: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .wb-tab.open .wb-panel { max-height: 640px; }
  .wb-tab:hover .wb-panel { max-height: 0; }
  .wb-tab.open:hover .wb-panel { max-height: 640px; }
  .wb-panel-tools { grid-template-columns: 1fr; }
  .wb-ft-grid { grid-template-columns: 1fr 1fr; }
  body.wb-lock { overflow: hidden; }
}
@media (max-width: 560px) {
  .wb-ft-grid { grid-template-columns: 1fr; }
  .wb-ft-cta-in { flex-direction: column; align-items: flex-start; }
}
