/* toolparlor.com product site. Base colour tokens copied from packages/ui/src/styles.css: keep them in sync.
   No web fonts, no external resources, no inline styles (the CSP only allows style-src 'self'). */
:root {
  --bg: #ffffff; --fg: #1b1f24; --muted: #5b6470; --line: #d8dde3; --card: #f6f8fa;
  --accent: #1f5fbf; --accent-fg: #ffffff; --ok: #1a7f37; --warn: #9a6700; --bad: #c62828;
  --radius: 8px; --gap: 1rem;
  /* Site-only tokens */
  --surface: #ffffff; --accent-soft: #e8f0fc; --accent-line: #b9cdee; --ok-soft: #e6f4ea; --warn-soft: #fbf3e0;
  --glow-1: rgba(31, 95, 191, .14); --glow-2: rgba(26, 127, 55, .08);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --r-lg: 14px; --max: 72rem; --prose: 44rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1216; --fg: #e6e9ed; --muted: #9aa4b1; --line: #2c333b; --card: #171b21;
    --accent: #6ea8ff; --accent-fg: #0f1216; --ok: #4ac26b; --warn: #d4a72c; --bad: #ff7b72;
    --surface: #13171c; --accent-soft: #16243a; --accent-line: #2b4672; --ok-soft: #13261a; --warn-soft: #2a2312;
    --glow-1: rgba(110, 168, 255, .16); --glow-2: rgba(74, 194, 107, .07);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); margin: 0 0 1rem; letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 0 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li + li { margin-top: .35rem; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Skip link */
.skip { position: absolute; left: -999px; top: .5rem; background: var(--bg); color: var(--accent); padding: .5rem .75rem; z-index: 20; border: 2px solid var(--accent); border-radius: var(--radius); }
.skip:focus { left: 1rem; }

/* Header */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; color: var(--fg); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 1.75rem; height: 1.75rem; }
.topbar ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.topbar li + li { margin-top: 0; }
.topbar nav a { color: var(--fg); text-decoration: none; font-weight: 550; padding: .25rem 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover { border-bottom-color: var(--line); }
.topbar nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 28rem at 85% -10%, var(--glow-1), transparent 70%),
    radial-gradient(40rem 22rem at -10% 110%, var(--glow-2), transparent 70%),
    var(--bg); }
.hero .wrap { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero.compact .wrap { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 650; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: .2rem .75rem; margin: 0 0 1.25rem; }
.hero h1 { max-width: 46rem; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-title h1 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.crumbs { font-size: .9rem; margin: 0 0 1.25rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 10px; font-weight: 650; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { color: var(--fg); border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 650; line-height: 1.5; white-space: nowrap; border: 1px solid currentColor; }
.badge.live { color: var(--ok); background: var(--ok-soft); }
.badge.live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.badge.soon { color: var(--warn); background: var(--warn-soft); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.alt { background: var(--card); }

/* Category jump list */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.jump li + li { margin-top: 0; }
.jump a { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg); font-size: .92rem; background: var(--surface); }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.category { scroll-margin-top: 1rem; }
.category + .category { margin-top: 2.75rem; }
.category h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.category > p { color: var(--muted); margin-bottom: 1.1rem; }

/* Tool cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.grid > li + li { margin-top: 0; }
.tool { position: relative; display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.tool:hover, .tool:focus-within { border-color: var(--accent-line); transform: translateY(-2px); }
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tool h4 { font-size: 1.1rem; margin: 0; }
.tool h4 a { color: var(--fg); text-decoration: none; }
.tool h4 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.tool h4 a:focus-visible { outline: none; }
.tool h4 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.tool p { margin: 0; color: var(--muted); font-size: .97rem; }
.tool .more { margin-top: auto; padding-top: .5rem; font-weight: 600; color: var(--accent); font-size: .92rem; }
.icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.icon svg { width: 1.5rem; height: 1.5rem; }
.icon.lg { width: 3.75rem; height: 3.75rem; border-radius: 16px; }
.icon.lg svg { width: 2rem; height: 2rem; }

/* Feature tiles and steps */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.tile { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tile p { margin: 0; color: var(--muted); }
.tile .icon { margin-bottom: .85rem; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li + li { margin-top: 0; }
.steps li { counter-increment: step; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: .75rem; }
.steps p { margin: 0; color: var(--muted); }

/* Callout */
.callout { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.4rem; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout .icon { background: var(--surface); }

/* Tool detail page */
.detail { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .detail { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; } }
.detail h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.detail h2:first-child { margin-top: 0; }
.checklist, .crosslist { list-style: none; padding: 0; }
.checklist li, .crosslist li { position: relative; padding-left: 1.9rem; }
.checklist li::before, .crosslist li::before { position: absolute; left: 0; top: .1rem; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; font-size: .8rem; font-weight: 800; line-height: 1; }
.checklist li::before { content: "\2713"; color: var(--ok); background: var(--ok-soft); }
.crosslist li::before { content: "\2715"; color: var(--bad); background: var(--card); border: 1px solid var(--line); }
.aside { align-self: start; display: grid; gap: 1rem; }
@media (min-width: 60rem) { .aside { position: sticky; top: 1rem; } }
.panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel ul { padding-left: 1.1rem; font-size: .95rem; }
.panel .btn { width: 100%; justify-content: center; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Pricing */
.price-card { max-width: 34rem; padding: 2rem; border: 2px solid var(--accent); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.price { font-size: 2.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: .5rem 0 .25rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: .85rem 1rem; font-weight: 650; border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { font-size: .85rem; color: var(--muted); font-weight: 650; background: var(--card); }
tbody th { font-weight: 650; white-space: nowrap; }
.wide { max-width: var(--max); }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 48rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.25rem 1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Definition list (about page) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1.5rem; }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .92rem; margin-top: 0; }
.footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); padding-top: 2.5rem; padding-bottom: 2rem; }
.footer h2 { font-size: .95rem; color: var(--fg); margin: 0 0 .6rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: .3rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--fg); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; margin: 0; font-size: .85rem; }
.footer address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .tool:hover, .tool:focus-within { transform: none; }
}
@media print {
  .topbar nav, .skip, .footer, .aside .btn, .pager { display: none; }
  .hero { background: none; }
  a { color: inherit; }
}

/* Narrow screens: stack table rows into cards; labels come from data-label on each cell. */
@media (max-width: 40rem) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack th, table.stack td { border-bottom: 0; padding: .35rem 1rem; white-space: normal; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 650; color: var(--muted); }
}
