/* 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; --hair: #e6e9ee; --subtle: #fafbfc; --accent-soft: #edf3fd; --accent-line: #c6d7f2;
  --ok-soft: #e9f5ec; --warn-soft: #fbf4e2; --bad-soft: #fdecec; --dots: rgba(27, 31, 36, .09);
  --glow: rgba(31, 95, 191, .12); --header: rgba(255, 255, 255, .82);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px -20px rgba(16, 24, 40, .22);
  --r-lg: 12px; --max: 70rem; --prose: 42rem;
  --sans: "Inter var", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  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: #14181d; --hair: #242a31; --subtle: #12161a; --accent-soft: #15233a; --accent-line: #2b4672;
    --ok-soft: #12251a; --warn-soft: #2a2312; --bad-soft: #2d1716; --dots: rgba(230, 233, 237, .07);
    --glow: rgba(110, 168, 255, .14); --header: rgba(15, 18, 22, .78);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .6); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.04; margin: 0 0 1.25rem; letter-spacing: -.04em; font-weight: 750; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); margin: 0 0 .75rem; letter-spacing: -.03em; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; text-wrap: pretty; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li + li { margin-top: .35rem; }
code { font: .88em var(--mono); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 38rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 2.75rem; font-size: 1.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: 30; border: 2px solid var(--accent); border-radius: var(--radius); }
.skip:focus { left: 1rem; }

/* Header: sticky, translucent */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; min-height: 3.75rem; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.brand img { width: 1.9rem; height: 1.9rem; }
.wordmark { font-weight: 800; font-size: 1.2rem; letter-spacing: -.035em; }
.topbar ul { display: flex; flex-wrap: wrap; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.topbar li + li { margin-top: 0; }
.topbar nav a { display: block; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 550; padding: .35rem .7rem; border-radius: 6px; }
.topbar nav a:hover { color: var(--fg); background: var(--card); }
.topbar nav a[aria-current="page"] { color: var(--fg); background: var(--card); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); background: var(--bg); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 0%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 46rem; height: 30rem; right: -12rem; top: -14rem;
  background: radial-gradient(closest-side, var(--glow), transparent); }
.hero .wrap { padding-top: clamp(3.25rem, 9vw, 6.5rem); padding-bottom: clamp(2.75rem, 7vw, 5.5rem); }
.hero.compact .wrap { padding-top: clamp(2.25rem, 5vw, 3.75rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 600 .78rem/1.4 var(--mono); letter-spacing: .02em; color: var(--muted);
  background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: .3rem .8rem .3rem .65rem; margin: 0 0 1.5rem; box-shadow: var(--shadow); }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hero h1 { max-width: 44rem; }
.hero .lead { margin-bottom: 2rem; }
.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: .65rem; align-items: center; }
.crumbs { font-size: .85rem; margin: 0 0 1.25rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* Example result in the hero */
.sample { margin: 0; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.sample-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid var(--hair); background: var(--subtle); }
.sample-bar span { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); }
.sample-bar b { margin-left: .6rem; font: 500 .75rem var(--mono); color: var(--muted); }
.sample-body { padding: 1.1rem 1.1rem .6rem; }
.sample-title { font-weight: 650; font-size: .95rem; margin-bottom: .75rem; }
.sample-title .muted { font-weight: 400; }
.sample ul { list-style: none; padding: 0; margin: 0; }
.sample li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--hair); font-size: .88rem; }
.sample li + li { margin-top: 0; }
.sample li span:last-child { color: var(--muted); font-size: .82rem; }
.sample figcaption { padding: .6rem 1.1rem; border-top: 1px solid var(--hair); font-size: .78rem; color: var(--muted); background: var(--subtle); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.05rem; border-radius: 8px; font-size: .95rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.2; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.btn svg { width: 1rem; height: 1rem; }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover { background: var(--accent); color: var(--accent-fg); }
.btn.ghost { color: var(--fg); border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.6; white-space: nowrap; border: 1px solid transparent; }
.badge.live { color: var(--ok); background: var(--ok-soft); }
.badge.live::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.badge.soon { color: var(--muted); background: var(--card); border-color: var(--hair); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--hair); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }
.alt { background: var(--subtle); }

/* Category jump list */
.jump { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 3rem; }
.jump li + li { margin-top: 0; }
.jump a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--hair); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 550; background: var(--surface); }
.jump a:hover { border-color: var(--fg); color: var(--fg); }
.category + .category { margin-top: 3.25rem; }
.category h3, .category h2 { font-size: .8rem; font-family: var(--mono); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.category > p { color: var(--muted); margin-bottom: 1.25rem; max-width: 40rem; font-size: .95rem; }

/* Tool cards */
.grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.grid > li + li { margin-top: 0; }
.tool { position: relative; display: flex; flex-direction: column; gap: .55rem; height: 100%; padding: 1.25rem 1.25rem 1.1rem; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.tool:hover, .tool:focus-within { border-color: var(--line); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.tool h3, .tool h4 { font-size: 1.05rem; margin: 0; }
.tool h3 a, .tool h4 a { color: var(--fg); text-decoration: none; }
.tool h3 a::after, .tool h4 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.tool h3 a:focus-visible, .tool h4 a:focus-visible { outline: none; }
.tool h3 a:focus-visible::after, .tool h4 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.tool p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.tool .more { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--fg); font-size: .86rem; opacity: .7; transition: opacity .15s ease; }
.tool:hover .more { opacity: 1; color: var(--accent); }
.icon { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 9px; color: var(--fg); background: var(--card); border: 1px solid var(--hair); }
.icon svg { width: 1.3rem; height: 1.3rem; }
.tool:hover .icon { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.icon.lg { width: 3.5rem; height: 3.5rem; border-radius: 12px; }
.icon.lg svg { width: 1.85rem; height: 1.85rem; }

/* Feature tiles and steps */
.tiles { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.tile { padding: 1.35rem; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--surface); }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }
.tile .icon { margin-bottom: 1rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li + li { margin-top: 0; }
.steps li { counter-increment: step; padding: 1.35rem; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--surface); }
.steps li::before { content: "0" counter(step); display: block; font: 600 .8rem var(--mono); color: var(--accent); margin-bottom: .9rem; letter-spacing: .04em; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Callout */
.callout { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--hair); background: var(--surface); }
.callout h2 { font-size: 1.15rem; letter-spacing: -.015em; }
.callout p { color: var(--muted); font-size: .95rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .icon { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }

/* Tool detail page */
.detail { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .detail { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } }
.detail article { max-width: var(--prose); }
.detail h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.detail h2:first-child { margin-top: 0; }
.checklist, .crosslist { list-style: none; padding: 0; }
.checklist li, .crosslist li { position: relative; padding-left: 1.85rem; }
.checklist li + li, .crosslist li + li { margin-top: .55rem; }
.checklist li::before, .crosslist li::before { position: absolute; left: 0; top: .2rem; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 6px; font-size: .72rem; 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(--muted); background: var(--card); border: 1px solid var(--hair); }
.aside { align-self: start; display: grid; gap: .85rem; }
@media (min-width: 60rem) { .aside { position: sticky; top: 5rem; } }
.panel { padding: 1.25rem; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--surface); }
.panel h2 { font: 600 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.panel p { font-size: .93rem; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel ul { padding-left: 1.1rem; font-size: .93rem; }
.panel .btn { width: 100%; justify-content: center; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); font-size: .92rem; }
.pager a { color: var(--muted); text-decoration: none; font-weight: 550; }
.pager a:hover { color: var(--fg); }

/* Pricing */
.price-card { max-width: 30rem; padding: 2rem; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--ok)); }
.price { font-size: 3.25rem; font-weight: 750; letter-spacing: -.045em; line-height: 1; margin: 1rem 0 .3rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--r-lg); margin: 0 0 1.5rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { text-align: left; padding: .85rem 1rem; font-weight: 650; border-bottom: 1px solid var(--hair); }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { font: 600 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--subtle); }
tbody th { font-weight: 650; white-space: nowrap; }
.wide { max-width: var(--max); }

/* FAQ */
.faq { display: grid; max-width: 46rem; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; padding: 1.1rem .25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.25rem/1 var(--mono); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 .25rem 1.1rem; color: var(--muted); max-width: 40rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Definition list (about page) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0 0 1.5rem; padding: 1.25rem; border: 1px solid var(--hair); border-radius: var(--r-lg); }
.facts dt { font-weight: 600; color: var(--muted); }
.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(--hair); background: var(--subtle); color: var(--muted); font-size: .88rem; }
.footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); padding-top: 3rem; padding-bottom: 2rem; }
.footer h2 { font: 600 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); margin: 0 0 .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: .35rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--fg); text-decoration: underline; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--hair); padding-top: 1.5rem; margin: 0; font-size: .8rem; }
.footer address { font-style: normal; }

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

/* Narrow screens: stack table rows into cards; labels come from data-label on each cell. */
@media (max-width: 40rem) {
  .topbar .wrap { gap: .1rem 1rem; }
  .topbar nav { width: 100%; margin: 0 -.7rem; }
  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(--hair); 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: .75rem; font-weight: 650; color: var(--muted); }
}
