:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --paper-deep: #e9e4d9;
  --ink: #171916;
  --muted: #696b63;
  --line: rgba(23, 25, 22, 0.15);
  --panel: #fffdf8;
  --night: #1d221f;
  --acid: #d4fb58;
  --accent-ink: #171916;
  --blue: #5552e8;
  --blue-soft: #e8e6ff;
  --good: #176347;
  --good-soft: #e2f5ea;
  --warn: #8b5700;
  --warn-soft: #fff0cf;
  --bad: #a13834;
  --bad-soft: #ffe6e1;
  --shadow: 0 26px 90px rgba(39, 34, 24, 0.10);
  --radius-xl: 32px;
  --radius-lg: 23px;
  --radius-md: 15px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper); }

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(85, 82, 232, 0.08), transparent 28rem),
    linear-gradient(180deg, #faf8f3 0, var(--paper) 46rem, #ebe6db 100%);
  color: var(--ink);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.shell { width: min(1460px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  padding: 0;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 10px 14px;
}
:focus-visible { outline: 3px solid #2f6bf5; outline-offset: 3px; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; letter-spacing: -0.04em; text-decoration: none; }
.brand > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--night); color: var(--acid); font-size: 0.85rem; letter-spacing: 0; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a { border-radius: 999px; padding: 8px 13px; color: var(--muted); font-size: 0.84rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover { background: rgba(23, 25, 22, 0.06); color: var(--ink); }

.hero {
  min-height: 390px;
  padding-block: clamp(54px, 6vw, 96px) clamp(48px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: clamp(36px, 7vw, 110px);
}

.eyebrow, .step-label {
  margin: 0 0 13px;
  color: var(--muted);
  font: 850 0.69rem/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.13em;
}

.hero h1 {
  max-width: 17ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.7vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.068em;
  line-height: 0.88;
}

.hero h1 em { display: block; color: var(--blue); font-weight: 500; }
.hero__lede { max-width: 64ch; margin: 25px 0 0; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.65; }
.trust-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust-list li { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); padding: 6px 10px; color: var(--muted); font-size: .71rem; font-weight: 800; }

.hero__note { display: grid; grid-template-columns: auto 1fr; gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; }
.hero__note-number { color: var(--blue); font: 850 .73rem/1 ui-monospace, monospace; }
.hero__note strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.38rem; font-weight: 500; letter-spacing: -.03em; }
.hero__note p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }

.studio {
  overflow: hidden;
  border: 1px solid rgba(23,25,22,.12);
  border-radius: var(--radius-xl);
  background: rgba(255,253,248,.9);
  box-shadow: var(--shadow);
}

.studio__head { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 26px clamp(22px, 3vw, 42px); }
.studio__head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.7vw, 3.8rem); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.local-proof { display: inline-flex; align-items: center; gap: 9px; margin: 0; border: 1px solid rgba(23,99,71,.2); border-radius: 999px; background: var(--good-soft); padding: 8px 12px; color: var(--good); font-size: .76rem; font-weight: 800; }
.local-proof span { width: 8px; height: 8px; border-radius: 50%; background: #32a66f; box-shadow: 0 0 0 4px rgba(50,166,111,.12); }

.studio-grid { display: grid; grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr); }
.control-panel { border-right: 1px solid var(--line); background: #faf8f2; }
.panel-block { min-width: 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); padding: 24px clamp(19px, 2.5vw, 34px); }
.panel-block[disabled] { opacity: .48; }
.block-heading { width: 100%; display: flex; align-items: flex-start; gap: 13px; margin: 0 0 18px; padding: 0; color: var(--ink); }
.block-index { flex: 0 0 auto; color: var(--blue); font: 850 .72rem/1.7 ui-monospace, monospace; }
.block-heading h3, .block-heading strong { display: block; margin: 0; font-size: .93rem; font-weight: 850; }
.block-heading p, .block-heading small { display: block; margin: 3px 0 0; color: var(--muted); font-size: .75rem; font-weight: 550; }

.drop-zone { position: relative; min-height: 98px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px dashed rgba(23,25,22,.30); border-radius: var(--radius-md); background: white; padding: 16px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.drop-zone:hover, .drop-zone[data-dragging="true"] { border-color: var(--blue); background: #f6f5ff; transform: translateY(-1px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.drop-zone__icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; background: var(--night); color: var(--acid); font-size: 1.45rem; }
.drop-zone__copy { min-width: 0; }
.drop-zone__copy strong, .drop-zone__copy small { display: block; }
.drop-zone__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .87rem; }
.drop-zone__copy small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.drop-zone__button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: .72rem; font-weight: 850; }

.file-card { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 76px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; padding: 9px; }
.file-card__preview { width: 56px; height: 56px; overflow: hidden; border-radius: 10px; background: #e6e3da; }
.file-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.file-card__copy { min-width: 0; }
.file-card__copy strong, .file-card__copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card__copy strong { font-size: .83rem; }
.file-card__copy span { margin-top: 3px; color: var(--muted); font-size: .71rem; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.45rem; cursor: pointer; }
.icon-button:hover { background: #f0eee8; color: var(--ink); }

.preset-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.preset-grid button { min-width: 0; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 7px 4px; font-size: .72rem; font-weight: 800; cursor: pointer; }
.preset-grid button:hover { border-color: rgba(85,82,232,.45); }
.preset-grid button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: white; }

.field--target { margin-top: 13px; }
.field { min-width: 0; display: grid; gap: 7px; }
.field > span:first-child { color: var(--muted); font-size: .71rem; font-weight: 800; }
.field input[type="number"], .field select { min-width: 0; width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 0 11px; color: var(--ink); }
.input-suffix { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
.input-suffix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(85,82,232,.12); }
.input-suffix input[type="number"] { border: 0; background: transparent; }
.input-suffix input[type="number"]:focus { outline: 0; }
.input-suffix b { padding-right: 11px; color: var(--muted); font-size: .7rem; }
.field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.field-row + .field-row { margin-top: 12px; }
.color-field { height: 42px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.color-field input { width: 38px; height: 42px; border: 0; padding: 4px; background: transparent; cursor: pointer; }
.color-field output { padding-left: 8px; color: var(--muted); font: 750 .72rem/1 ui-monospace, monospace; }
.format-note { margin: 13px 0 0; color: var(--muted); font-size: .72rem; }

.primary-button { width: calc(100% - clamp(38px,5vw,68px)); min-height: 58px; margin: 20px clamp(19px,2.5vw,34px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-radius: 15px; background: var(--night); color: white; padding: 10px 14px 10px 19px; font-weight: 850; cursor: pointer; }
.primary-button:not(:disabled):hover { background: #2a302c; }
.primary-button:disabled { cursor: not-allowed; opacity: .42; }
.primary-button[data-running="true"] { background: #382f2e; }
.button-arrow { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: var(--acid); color: var(--accent-ink); font-size: 1.1rem; }

.progress-panel { margin: -6px clamp(19px,2.5vw,34px) 22px; }
.progress-panel > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: .72rem; }
.progress-panel strong { color: var(--ink); }
.progress-panel progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; background: #e0ddd6; }
.progress-panel progress::-webkit-progress-bar { background: #e0ddd6; }
.progress-panel progress::-webkit-progress-value { border-radius: 99px; background: var(--blue); }
.progress-panel progress::-moz-progress-bar { border-radius: 99px; background: var(--blue); }

.preview-panel { min-width: 0; display: flex; flex-direction: column; background: var(--night); color: white; padding: clamp(24px,3vw,42px); }
.preview-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.preview-panel .step-label { color: rgba(255,255,255,.48); }
.preview-panel h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem,3vw,3rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.state-pill { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 10px; color: rgba(255,255,255,.62); font: 800 .64rem/1 ui-monospace, monospace; letter-spacing: .04em; }
.state-pill[data-state="ready"] { border-color: rgba(212,251,88,.4); background: rgba(212,251,88,.1); color: var(--acid); }
.state-pill[data-state="working"] { border-color: rgba(132,176,255,.45); background: rgba(85,82,232,.18); color: #c9d9ff; }
.state-pill[data-state="done"] { border-color: rgba(94,222,164,.4); background: rgba(94,222,164,.11); color: #87efc1; }
.state-pill[data-state="stale"] { border-color: rgba(255,203,112,.45); background: rgba(255,190,77,.1); color: #ffd38a; }

.empty-preview { flex: 1; min-height: 500px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 42px; }
.empty-preview__art { position: relative; width: 170px; height: 130px; margin-bottom: 27px; }
.empty-preview__art span { position: absolute; inset: 5px 26px 29px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; transform: rotate(-8deg); }
.empty-preview__art span:nth-child(2) { inset: 16px 13px 17px 39px; border-color: rgba(212,251,88,.45); transform: rotate(9deg); }
.empty-preview__art i { position: absolute; right: 14px; bottom: 9px; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--acid); color: var(--accent-ink); font: 900 .75rem/1 ui-monospace, monospace; }
.empty-preview strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; }
.empty-preview p { max-width: 43ch; margin: 9px 0 0; color: rgba(255,255,255,.55); font-size: .86rem; }

.preview-workspace { flex: 1; display: flex; flex-direction: column; margin-top: 27px; }
.image-stage { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.image-stage figure { min-width: 0; margin: 0; }
.image-frame { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: #131614; }
.image-frame::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(45deg,rgba(255,255,255,.045) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.045) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.045) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.045) 75%); background-size: 22px 22px; background-position: 0 0,0 11px,11px -11px,-11px 0; }
.image-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.image-stage figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 9px 3px 0; font-size: .69rem; }
.image-stage figcaption span { color: #b9bdbb; font-weight: 800; text-transform: uppercase; }
.image-stage figcaption strong { overflow: hidden; color: rgba(255,255,255,.82); text-overflow: ellipsis; white-space: nowrap; }
.result-placeholder { position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,.45); }
.result-placeholder span { display: grid; width: 42px; height: 42px; margin: 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.result-placeholder p { margin: 8px 0 0; font-size: .7rem; }

.stats-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 19px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; }
.stats-panel article { min-width: 0; padding: 15px; }
.stats-panel article + article { border-left: 1px solid rgba(255,255,255,.12); }
.stats-panel span, .stats-panel strong, .stats-panel small { display: block; }
.stats-panel span { color: #b9bdbb; font: 800 .61rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.stats-panel strong { margin-top: 8px; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem,2vw,2rem); font-weight: 500; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.stats-panel small { margin-top: 3px; overflow: hidden; color: #b9bdbb; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.stats-panel__result { background: rgba(212,251,88,.07); }
.stats-panel__result strong { color: var(--acid); }

.message { margin-top: 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.06); padding: 11px 13px; color: rgba(255,255,255,.76); font-size: .75rem; }
.message[data-tone="success"] { border-color: rgba(94,222,164,.28); background: rgba(94,222,164,.08); color: #a6f3ce; }
.message[data-tone="warning"] { border-color: rgba(255,194,85,.32); background: rgba(255,194,85,.08); color: #ffda98; }
.message--error { border-color: rgba(161,56,52,.24); background: var(--bad-soft); color: var(--bad); }
.panel-block .message { margin-top: 12px; }

.result-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; margin-top: 15px; }
.download-button, .quiet-button { min-height: 51px; border-radius: 13px; cursor: pointer; }
.download-button { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; background: var(--acid); color: var(--accent-ink); padding: 9px 15px; font-weight: 900; text-align: left; text-decoration: none; }
.download-button span, .download-button small { display: block; }
.download-button small { color: #323a20; font-size: .68rem; font-weight: 750; }
.download-button[aria-disabled="true"] { cursor: not-allowed; opacity: .34; }
.quiet-button { border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(255,255,255,.8); padding: 0 16px; font-size: .76rem; font-weight: 800; }
.quiet-button:disabled { cursor: not-allowed; opacity: .34; }
.preview-boundary { margin: auto 0 0; padding-top: 19px; color: #929693; font-size: .69rem; }
.preview-boundary strong { color: rgba(255,255,255,.65); }

.explain { display: grid; grid-template-columns: minmax(240px,.65fr) minmax(520px,1.35fr); gap: clamp(35px,7vw,110px); padding-block: clamp(70px,8vw,120px); }
.explain h2 { max-width: 10ch; margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(2.5rem,5vw,5.2rem); font-weight: 500; letter-spacing: -.06em; line-height: .92; }
.explain ol { margin: 0; padding: 0; list-style: none; }
.explain li { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 17px; border-top: 1px solid var(--line); padding: 18px 0; }
.explain li > span { color: var(--blue); font: 850 .7rem/1.5 ui-monospace,monospace; }
.explain li strong { display: block; font-size: .92rem; }
.explain li p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.metadata-note { grid-column: 2; margin: 5px 0 0; border-radius: 13px; background: rgba(85,82,232,.07); padding: 14px 16px; color: var(--muted); font-size: .76rem; }
.metadata-note strong { color: var(--ink); }

.intent-guide,
.proof-section,
.faq-section,
.related-tools { padding-block: clamp(64px, 8vw, 118px); }

.intent-guide { border-top: 1px solid var(--line); }
.intent-guide__intro { max-width: 880px; }
.intent-guide h2,
.proof-section h2,
.faq-section h2,
.related-tools h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.8vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -.058em;
  line-height: .94;
}
.intent-guide__intro > p:last-child,
.faq-section__intro > p:last-child { max-width: 70ch; margin: 20px 0 0; color: var(--muted); line-height: 1.7; }

.target-table { margin-top: 38px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.78); box-shadow: 0 18px 55px rgba(39,34,24,.06); }
.target-table table { width: 100%; min-width: 720px; border-collapse: collapse; }
.target-table th,
.target-table td { border-bottom: 1px solid var(--line); padding: 18px 20px; text-align: left; vertical-align: top; }
.target-table tr:last-child th,
.target-table tr:last-child td { border-bottom: 0; }
.target-table thead th { background: var(--night); color: rgba(255,255,255,.72); font: 800 .68rem/1.35 ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }
.target-table tbody th { width: 128px; font-size: 1rem; }
.target-table tbody th a { display: inline-flex; border-radius: 999px; background: var(--blue-soft); color: #3531b8; padding: 6px 10px; text-decoration: none; }
.target-table tbody th a:hover { background: var(--blue); color: white; }
.target-table td { color: var(--muted); font-size: .86rem; }
.target-table td:nth-child(2) { color: var(--ink); font-weight: 700; }
.table-boundary { margin: 16px 0 0; border-left: 3px solid var(--blue); padding-left: 14px; color: var(--muted); font-size: .8rem; }
.table-boundary strong { color: var(--ink); }

.proof-section { border-top: 1px solid var(--line); }
.proof-section__head { max-width: 830px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 38px; }
.proof-grid article { min-height: 245px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.72); padding: 24px; }
.proof-grid article:nth-child(2) { background: var(--night); color: white; }
.proof-grid article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font: 850 .68rem/1 ui-monospace, monospace; }
.proof-grid article:nth-child(2) > span { background: var(--acid); color: var(--accent-ink); }
.proof-grid h3 { margin: 52px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 500; letter-spacing: -.035em; }
.proof-grid p { margin: 10px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.proof-grid article:nth-child(2) p { color: rgba(255,255,255,.58); }

.faq-section { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(520px,1.28fr); gap: clamp(40px,8vw,120px); border-top: 1px solid var(--line); }
.faq-section__intro { align-self: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; cursor: pointer; list-style: none; padding: 21px 48px 21px 0; font-weight: 820; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 17px; right: 4px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(23,25,22,.06); font-size: 1.15rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 72ch; margin: -4px 0 22px; color: var(--muted); font-size: .86rem; line-height: 1.7; }

.related-tools { display: grid; grid-template-columns: minmax(260px,.75fr) repeat(2,minmax(260px,.625fr)); gap: 12px; border-top: 1px solid var(--line); }
.related-tools h2 { max-width: 8ch; font-size: clamp(2.2rem,4vw,4.3rem); }
.related-tools > a { position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.8); padding: 24px; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.related-tools > a:hover { transform: translateY(-3px); border-color: rgba(85,82,232,.45); }
.related-tools > a span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.related-tools > a strong { max-width: 20ch; margin-top: 8px; font-family: Georgia,"Times New Roman",serif; font-size: 1.5rem; font-weight: 500; line-height: 1.05; }
.related-tools > a b { position: absolute; top: 18px; right: 18px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--night); color: var(--acid); }

.footer { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.footer p { margin: 0; }
.footer > a:last-child { font-weight: 800; }
.noscript { margin: 0; background: #fee8e4; color: var(--bad); padding: 12px; text-align: center; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__note { max-width: 620px; }
  .studio-grid { grid-template-columns: 1fr; }
  .control-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .empty-preview { min-height: 380px; }
  .explain { grid-template-columns: 1fr; }
  .metadata-note { grid-column: 1; }
  .proof-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .faq-section { grid-template-columns: 1fr; }
  .related-tools { grid-template-columns: 1fr 1fr; }
  .related-tools > div { grid-column: 1 / -1; }
  .related-tools h2 { max-width: 12ch; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1460px); }
  .site-header__inner { min-height: 62px; }
  .site-nav a:not(:last-child) { display: none; }
  .hero { padding-block: 42px 40px; gap: 31px; }
  .hero h1 { font-size: clamp(2.75rem,15vw,4.6rem); }
  .hero__lede { margin-top: 20px; }
  .studio { width: 100%; border-right: 0; border-left: 0; border-radius: 0; }
  .studio__head { min-height: 100px; align-items: flex-start; padding: 22px 16px; }
  .local-proof { max-width: 136px; border-radius: 12px; font-size: .65rem; }
  .panel-block { padding: 21px 16px; }
  .primary-button { width: calc(100% - 32px); margin: 18px 16px; }
  .progress-panel { margin-inline: 16px; }
  .preview-panel { padding: 24px 16px; }
  .image-stage { grid-template-columns: 1fr 1fr; gap: 8px; }
  .image-stage figcaption { display: block; }
  .image-stage figcaption strong { display: block; margin-top: 3px; }
  .stats-panel article { padding: 12px 9px; }
  .result-actions { grid-template-columns: 1fr; }
  .quiet-button { min-height: 43px; }
  .empty-preview { min-height: 340px; padding-inline: 20px; }
  .explain { padding-block: 65px; }
  .intent-guide, .proof-section, .faq-section, .related-tools { padding-block: 60px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid article { min-height: 210px; }
  .proof-grid h3 { margin-top: 36px; }
  .related-tools { grid-template-columns: 1fr; }
  .related-tools > div { grid-column: 1; }
  .related-tools > a { min-height: 190px; }
  .footer { padding-block: 25px; flex-wrap: wrap; }
  .footer p { order: 3; flex-basis: 100%; }
}

@media (max-width: 390px) {
  .shell { width: min(100% - 20px, 1460px); }
  .hero h1 { font-size: 2.9rem; }
  .trust-list li { font-size: .66rem; }
  .studio__head { display: grid; }
  .local-proof { max-width: none; width: fit-content; }
  .drop-zone { grid-template-columns: auto minmax(0,1fr); }
  .drop-zone__button { display: none; }
  .preset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .field-row { grid-template-columns: 1fr; }
  .image-stage { grid-template-columns: 1fr; }
  .image-frame { aspect-ratio: 16 / 10; }
  .stats-panel { grid-template-columns: 1fr 1fr; }
  .stats-panel article + article { border-left: 1px solid rgba(255,255,255,.12); }
  .stats-panel article:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .preview-panel__head { display: grid; }
  .state-pill { width: fit-content; }
}

@media (max-width: 330px) {
  .hero h1 { font-size: 2.55rem; }
  .hero__note { gap: 11px; }
  .panel-block, .preview-panel { padding-inline: 12px; }
  .primary-button { width: calc(100% - 24px); margin-inline: 12px; }
  .preset-grid { gap: 4px; }
  .preset-grid button { font-size: .67rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0f1512;
    --paper-deep: #0a0f0d;
    --ink: #f2f5ef;
    --muted: #aeb9b0;
    --line: rgba(238, 245, 239, 0.16);
    --panel: #18201c;
    --night: #090d0b;
    --blue: #aaa7ff;
    --blue-soft: #282643;
    --good: #82e3b8;
    --good-soft: #17382a;
    --warn: #ffd28a;
    --warn-soft: #3b2d14;
    --bad: #ffaaa2;
    --bad-soft: #442421;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  }

  body {
    background:
      radial-gradient(circle at 92% 2%, rgba(138, 134, 255, 0.13), transparent 28rem),
      linear-gradient(180deg, #121a16 0, var(--paper) 46rem, #090e0c 100%);
  }

  .site-nav a:hover,
  .faq-list summary::after { background: rgba(255,255,255,.08); }
  .trust-list li { background: rgba(255,255,255,.055); }
  .studio { border-color: var(--line); background: rgba(24,32,28,.94); }
  .control-panel { background: #121915; }
  .target-table,
  .proof-grid article { background: #1a241f; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
  .target-table tbody th a { color: #d0ceff; }
  .target-table tbody th a:hover,
  .preset-grid button[aria-pressed="true"] { color: var(--accent-ink); }
  .drop-zone,
  .file-card,
  .preset-grid button,
  .field input[type="number"],
  .field select,
  .input-suffix,
  .color-field,
  .related-tools > a { background: #1a241f; }
  .drop-zone { border-color: rgba(238,245,239,.28); }
  .drop-zone:hover,
  .drop-zone[data-dragging="true"] { background: #25243b; }
  .file-card__preview { background: #303a34; }
  .icon-button:hover { background: #263029; }
  .progress-panel progress,
  .progress-panel progress::-webkit-progress-bar { background: #303934; }
  .message--error,
  .noscript { background: var(--bad-soft); color: var(--bad); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
