:root {
  --ink: #1a1a1a;
  --paper: #fafaf7;
  --muted: #6b6b6b;
  --accent: #8b1c1c;
  --rule: #e5e2db;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
a:hover { border-bottom-color: var(--accent); }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 16px 24px;
  background: var(--paper);
}
header.site .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0;
  max-width: 1100px;
}
header.site .brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: none;
}
header.site nav a {
  font-size: 14px;
  color: var(--muted);
  margin-left: 24px;
  border-bottom: none;
}
header.site nav a:hover { color: var(--ink); }

h1 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--ink);
}
h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--ink);
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  font-style: italic;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 32px 0;
  border: 1px solid var(--rule);
}

.facts {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
}
.facts dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 6px 0; }

blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
}

.cta {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 24px;
  margin: 48px 0 0;
  text-align: center;
}
.cta h3 { margin-top: 0; }
.cta a.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 24px;
  margin-top: 8px;
  border-bottom: none;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.cta a.button:hover { background: var(--accent); }

.refs {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
.refs h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.refs ul { padding-left: 20px; }

.related {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.related h3 { margin-top: 0; }

footer.site {
  border-top: 1px solid var(--rule);
  padding: 32px 24px;
  margin-top: 80px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .container {
  padding: 0;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

@media (max-width: 600px) {
  .container { padding: 24px 16px 64px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .facts dl { grid-template-columns: 1fr; }
  header.site nav a { margin-left: 12px; }
}

/* ---------------------------------------------------------------------------
/* ===========================================================================
   ArtFX Tools — design system v2 (2026-09-11)
   Identity: paper, ink, one red rule. Serif for voice, sans for work.
   Every tool sets --tool on <body> (its material colour) and builds its bench
   from these components only. Page-level <style> is for stage internals.
   =========================================================================== */
:root {
  --paper: #faf8f3;
  --paper-2: #ffffff;
  --paper-3: #f2eee6;
  --ink: #171512;
  --ink-2: #4a463f;
  --muted: #7d776d;
  --rule: #e7e2d8;
  --rule-2: #d8d2c6;
  --accent: #8b1c1c;
  --accent-soft: #f7e9e6;
  --ok: #2f6b3a;
  --tool: var(--accent);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(23,21,18,.05), 0 1px 1px rgba(23,21,18,.03);
  --sh-2: 0 2px 6px rgba(23,21,18,.06), 0 12px 32px -12px rgba(23,21,18,.18);
  --sh-3: 0 24px 64px -24px rgba(23,21,18,.32), 0 8px 24px -12px rgba(23,21,18,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: 180ms var(--ease);
}
/* Derived tool tints are declared on every element so an inline --tool on a card/body re-derives them there. */
* { --tool-soft: color-mix(in srgb, var(--tool) 12%, white); --tool-ink: color-mix(in srgb, var(--tool) 78%, black); }
body { background: var(--paper); }
.container--wide { max-width: 1160px; }
header.site nav a.is-active { color: var(--ink); border-bottom: 1px solid var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--lg { width: 1.6em; height: 1.6em; }

/* ---------- Hero: title + one visual, tool colour as a quiet wash ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; margin: 8px 0 32px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--tool-ink); background: var(--tool-soft); padding: 6px 12px; border-radius: var(--r-pill); margin: 0 0 18px; }
.hero h1 { font-size: 46px; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 14px; }
.hero .lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 20px; max-width: 34em; }
.hero__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 0; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__visual { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--paper-3); overflow: hidden; box-shadow: var(--sh-2); }
.hero__visual > svg, .hero__visual > canvas, .hero__visual > img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- Bench: the working surface ---------- */
.bench { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 32px; margin: 0 0 56px; position: relative; }
.bench__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: -4px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.bench__title { font-family: var(--serif); font-size: 24px; margin: 0; }
.bench__hint { font-size: 14px; color: var(--muted); margin: 0; }
.bench-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 36px; align-items: start; }
.bench-layout--wide-out { grid-template-columns: 320px minmax(0, 1fr); }
.bench-layout--stack { grid-template-columns: 1fr; }
.bench__controls { display: flex; flex-direction: column; gap: 22px; }
.bench__output { min-height: 320px; }

/* Stepper (numbered stages of a flow) */
.stepper { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--paper-3); color: var(--muted); font-size: 14px; font-weight: 600; }
.stepper li .n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: var(--paper-2); border: 1px solid var(--rule-2); flex: none; }
.stepper li.is-active { background: var(--tool-soft); color: var(--tool-ink); }
.stepper li.is-active .n { background: var(--tool); color: #fff; border-color: var(--tool); }
.stepper li.is-done .n { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Group of controls with a small serif label */
.group { display: flex; flex-direction: column; gap: 10px; }
.group > .group__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--ink-2); }
.group > .group__label .val { font-family: var(--serif); font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.group .hint { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }

/* Dropzone */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px 20px; border: 1.5px dashed var(--rule-2); border-radius: var(--r-md); background: var(--paper); cursor: pointer; transition: border-color var(--t), background var(--t), transform var(--t); }
.dropzone:hover, .dropzone.is-over { border-color: var(--tool); background: var(--tool-soft); }
.dropzone.is-over { transform: scale(1.01); }
.dropzone .icon { width: 34px; height: 34px; color: var(--tool); stroke-width: 1.4; }
.dropzone strong { font-size: 15px; }
.dropzone span { font-size: 13px; color: var(--muted); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.has-file { padding: 12px; flex-direction: row; justify-content: flex-start; text-align: left; border-style: solid; }
.dropzone.has-file img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); }

/* Inputs */
input[type="text"], input[type="number"], input[type="email"], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: 12px 14px; width: 100%; min-height: 48px;
  transition: border-color var(--t), box-shadow var(--t);
}
input:hover, select:hover, textarea:hover { border-color: #c9c2b4; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--tool); box-shadow: 0 0 0 4px var(--tool-soft); }
button:focus-visible, .btn:focus-visible, .chip:focus-visible, .seg button:focus-visible, .card-choice:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23171512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { min-height: 96px; resize: vertical; }
input[type="file"] { font-size: 14px; }
input[type="color"] { width: 48px; height: 48px; padding: 3px; border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--paper-2); }
.input-lg { font-size: 18px; min-height: 58px; padding: 14px 18px; }
.input-row { display: flex; gap: 10px; align-items: stretch; }
.input-row > input { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); margin: 0; }
.field-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.field-row .field { flex: 1 1 120px; }

/* Range slider with a value bubble (set --p as percent via JS for the fill) */
.range { --p: 50%; position: relative; padding: 6px 0 2px; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0; border-radius: 3px; background: linear-gradient(90deg, var(--tool) 0 var(--p), var(--rule) var(--p) 100%); outline: none; }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--tool); box-shadow: var(--sh-1); cursor: grab; transition: transform var(--t); }
.range input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--tool); box-shadow: var(--sh-1); cursor: grab; }
.range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); cursor: grabbing; }
.range__ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
input[type="range"]:focus-visible { box-shadow: 0 0 0 4px var(--tool-soft); }

/* Segmented control */
.seg { display: inline-flex; background: var(--paper-3); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); background: transparent; border: 0; border-radius: var(--r-pill); padding: 8px 16px; min-height: 40px; cursor: pointer; transition: background var(--t), color var(--t), box-shadow var(--t); }
.seg button[aria-pressed="true"], .seg button.is-active { background: var(--paper-2); color: var(--ink); box-shadow: var(--sh-1); }
.seg--block { display: flex; } .seg--block button { flex: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .1px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--r-md); padding: 12px 22px; min-height: 48px; cursor: pointer; text-decoration: none; box-shadow: var(--sh-1); transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t), color var(--t); }
.btn:hover { background: var(--tool-ink); border-color: var(--tool-ink); color: #fff; border-bottom-color: var(--tool-ink); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-1); }
.btn--primary { background: var(--tool); border-color: var(--tool); color: #fff; }
.btn--primary:hover { background: var(--tool-ink); border-color: var(--tool-ink); }
.btn--secondary { background: var(--paper-2); color: var(--ink); border-color: var(--rule-2); box-shadow: none; }
.btn--secondary:hover { background: var(--paper-3); color: var(--ink); border-color: var(--rule-2); transform: none; box-shadow: none; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--tool-ink); box-shadow: none; padding-left: 10px; padding-right: 10px; }
.btn--ghost:hover { background: var(--tool-soft); border-color: transparent; color: var(--tool-ink); transform: none; box-shadow: none; }
.btn--lg { font-size: 17px; min-height: 56px; padding: 14px 28px; border-radius: 16px; }
.btn--sm { font-size: 14px; min-height: 38px; padding: 7px 14px; border-radius: 10px; }
.btn--icon { padding: 0; width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn .icon { width: 18px; height: 18px; }

/* Chips (toggle) and choice cards (bigger, with icon + description) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: var(--r-pill); padding: 8px 14px; min-height: 40px; cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t); }
.chip:hover { border-color: var(--tool); color: var(--tool-ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--tool); color: #fff; border-color: var(--tool); }
.chip .icon { width: 16px; height: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.card-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; font: inherit; color: var(--ink); background: var(--paper-2); border: 1.5px solid var(--rule); border-radius: var(--r-md); padding: 14px; min-height: 96px; cursor: pointer; transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t); }
.card-choice:hover { border-color: var(--tool); transform: translateY(-1px); box-shadow: var(--sh-1); }
.card-choice[aria-pressed="true"], .card-choice.is-active { border-color: var(--tool); background: var(--tool-soft); box-shadow: inset 0 0 0 1px var(--tool); }
.card-choice .icon { width: 26px; height: 26px; color: var(--tool); stroke-width: 1.5; }
.card-choice strong { font-size: 15px; }
.card-choice span { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Swatches & legends */
.swatch { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); border: 1px solid rgba(0,0,0,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.swatch--dab { border-radius: 61% 39% 56% 44% / 45% 58% 42% 55%; box-shadow: inset -14px -16px 28px rgba(0,0,0,.18), inset 10px 12px 22px rgba(255,255,255,.22), inset 0 0 0 1px rgba(0,0,0,.06), 0 18px 30px -18px rgba(23,21,18,.45); border: 0; transform: rotate(-6deg); }
.swatch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.swatch-label { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; font-variant-numeric: tabular-nums; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.legend-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper-2); font-size: 14px; }
.legend-chip i { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(0,0,0,.08); flex: none; }
.legend-chip b { font-variant-numeric: tabular-nums; }
.legend-chip span { color: var(--muted); font-size: 13px; margin-left: auto; }

/* Output frames, empty states, results, status */
.frame { position: relative; background: var(--paper-3); border-radius: var(--r-md); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.frame--paper { background: #fff; box-shadow: var(--sh-2); border: 1px solid var(--rule); }
.frame canvas, .frame img { max-width: 100%; height: auto; display: block; }
.frame__label { position: absolute; top: 12px; left: 12px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 6px; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 32px 20px; color: var(--muted); font-size: 14px; }
.empty .icon { width: 44px; height: 44px; stroke-width: 1.2; color: var(--rule-2); }
.empty strong { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.result { margin-top: 16px; }
.result-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--sh-1); }
.result-title { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin: 0 0 4px; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.result-list li { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.result-list li:hover { border-color: var(--rule-2); box-shadow: var(--sh-1); }
.reveal { animation: reveal .45s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-height: 22px; margin: 10px 0 0; }
.status--error { color: var(--accent); }
.status--ok { color: var(--ok); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--rule-2); border-top-color: var(--tool); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; background: var(--paper-3); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--tool); border-radius: 3px; transition: width .3s var(--ease); }
.skeleton { background: linear-gradient(90deg, var(--paper-3) 25%, #f7f4ee 37%, var(--paper-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.notice { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); background: var(--paper-3); border-radius: var(--r-md); padding: 12px 14px; line-height: 1.45; }
.notice .icon { color: var(--muted); margin-top: 2px; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.kpi > div { background: var(--paper-3); border-radius: var(--r-md); padding: 12px 14px; }
.kpi .k { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.kpi .v { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin: 0; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.ring { --v: 0; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--tool) calc(var(--v) * 1%), var(--paper-3) 0); display: grid; place-items: center; }
.ring > span { width: 92px; height: 92px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: 0 0 22px; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; margin-bottom: -1px; cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tool); }
.sticky-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 10px; padding: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--sh-2); margin-top: 18px; }
.sticky-actions .btn { flex: 1; }

/* ---------- Below the bench ---------- */
.tool-prose { max-width: 720px; }
.how ol { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.how li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); }
.how li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--tool-soft); color: var(--tool-ink); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 20px 0 0; }
.tool-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; color: var(--ink); border-bottom: 1px solid var(--rule); transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.tool-card:hover { border-color: var(--rule-2); border-bottom-color: var(--rule-2); transform: translateY(-2px); box-shadow: var(--sh-2); }
.tool-card .tool-card__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin: 0; }
.tool-card .icon { width: 28px; height: 28px; color: var(--card-tool, var(--accent)); stroke-width: 1.5; }
.tool-card h3, .tool-card .tool-card__title { font-family: var(--serif); font-size: 19px; margin: 0; }
.tool-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.45; }
.made-by { margin: 64px 0 0; padding: 28px 30px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.made-by .made-by__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin: 0 0 8px; }
.made-by h3 { margin: 0 0 6px; font-size: 22px; }
.made-by p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Responsive & motion ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { aspect-ratio: 16 / 9; }
  .bench-layout, .bench-layout--wide-out { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 17px; }
  .bench { padding: 18px; border-radius: 18px; }
  .stepper { flex-direction: column; }
  .btn { width: 100%; }
  .btn-row .btn, .seg button, .btn--icon, .btn--sm { width: auto; }
  .btn-row .btn { flex: 1 1 auto; }
  .made-by { grid-template-columns: 1fr; padding: 22px; }
  .kpi { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  header.site, footer.site, .hero, .bench__controls, .how, .faq, .tool-grid, .made-by, .sticky-actions, nav { display: none !important; }
  .bench { border: 0; box-shadow: none; padding: 0; }
}

/* ===========================================================================
   v3 (2026-09-12): real imagery, store banners, two-column page body.
   =========================================================================== */
/* Hero visual holds a real image (JPG) with an optional caption/overlay card */
.hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__visual .cap { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hero__visual .cap em { font-style: italic; }
.hero__visual .overlay { position: absolute; right: 16px; bottom: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--sh-2); font-size: 13px; color: var(--ink-2); max-width: 70%; }
.hero__visual .overlay b { font-family: var(--serif); font-size: 16px; color: var(--ink); display: block; margin-bottom: 4px; }

/* "Free tools" strip: image cards, the first is always the store */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 40px; }
.strip a { display: grid; grid-template-rows: 96px auto; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; color: var(--ink); border-bottom-color: var(--rule); transition: transform var(--t), box-shadow var(--t); }
.strip a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.strip img { width: 100%; height: 96px; object-fit: cover; display: block; }
.strip span { padding: 10px 12px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.strip a.strip--store { border-color: var(--accent); }
.strip a.strip--store span { color: var(--accent); }

/* Page body: prose + sticky rail */
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.rail-links { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 6px 0; }
.rail-links h4 { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 10px 16px 6px; }
.rail-links a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); font-size: 14px; font-weight: 600; border-bottom: 0; }
.rail-links a img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.rail-links a:hover { background: var(--paper-3); }

/* Store banner (Art & See): image + copy + button. Variants: --tall (rail), --wide (in prose / footer) */
.banner { display: grid; grid-template-columns: 1fr; overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-1); color: var(--ink); }
.banner img { width: 100%; height: 200px; object-fit: cover; display: block; }
.banner__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.banner__kicker { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin: 0; }
.banner h3 { font-size: 20px; margin: 0; line-height: 1.25; }
.banner p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.banner .btn { align-self: flex-start; margin-top: 6px; }
.banner--wide { grid-template-columns: 260px 1fr; margin: 40px 0; }
.banner--wide img { height: 100%; min-height: 200px; }
.banner--wide .banner__body { padding: 24px 28px; justify-content: center; }
.banner--wide h3 { font-size: 24px; }
.banner--foot { grid-template-columns: 42% 1fr; margin: 64px 0 0; }
.banner--foot .btn-row .btn { padding: 11px 18px; font-size: 15px; }
.banner--foot img { height: 100%; min-height: 240px; max-height: 360px; object-position: center 30%; }
.banner--foot .banner__body { padding: 30px 32px; justify-content: center; }
.banner--foot h3 { font-size: 26px; }
.banner--foot .btn-row { margin-top: 8px; }

/* Empty-state replacement: a sample result badge */
.sample-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(23,21,18,.78); color: #fff; padding: 5px 9px; border-radius: 6px; }

/* Mobile compaction */
.scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex: none; }
.readmore[data-collapsed="true"] > :nth-child(n+4) { display: none; }
.readmore__btn { margin-top: 8px; }

@media (max-width: 980px) {
  .body-grid { grid-template-columns: 1fr; }
  .rail { position: static; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .banner--wide, .banner--foot { grid-template-columns: 1fr; }
  .banner--wide img, .banner--foot img { height: 180px; min-height: 0; }
}
@media (max-width: 600px) {
  .strip { display: flex; overflow-x: auto; scrollbar-width: none; gap: 10px; margin-bottom: 28px; }
  .strip a { flex: 0 0 150px; grid-template-rows: 84px auto; }
  .strip img { height: 84px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .card-choice { min-height: 0; padding: 12px; }
}
