
[data-tool-landing] {
  --ink: color-mix(in srgb, var(--deep) 72%, #151820);
  --muted: color-mix(in srgb, var(--deep) 77%, #77808a);
  --line: color-mix(in srgb, var(--deep) 17%, #fff);
  --tint: var(--tool-tint);
  --stage: var(--hero-tint);
  --section-width: min(1180px, calc(100% - 64px));
  background: #fafbf8;
}

[data-tool-landing] .top > div,
[data-tool-landing] footer,
.tool-home .copy-section,
.tool-home .intro { width: var(--section-width); margin-inline: auto; }

[data-tool-landing] .brand { color: var(--deep); }
[data-tool-landing] .doc {
  margin-block: clamp(24px, 5vw, 64px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 50px);
}

main.tool-home { width: 100%; }

.copy-hero-band {
  background: #edf4ef;
  background-image:
    linear-gradient(90deg, transparent calc(50% - .5px), #244c3310 calc(50% - .5px), #244c3310 calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(150deg, #f6faf5 19%, #eaf2eb 64%, #dbeadf);
  border-bottom: 1px solid var(--line);
}
.tool-home .intro-with-example {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(40px, 7.4vw, 116px);
}
.tool-home h1 {
  color: var(--deep);
  font-size: clamp(37px, 4.65vw, 72px);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.copy-headline-accent { color: var(--accent); }
.tool-home .intro-with-example > div > p:not(.intro-price, .intro-assurance) { max-width: 49ch; font-size: clamp(16px, 1.5vw, 21px); }
.tool-home .intro-actions { margin-top: clamp(20px, 3vw, 32px); }
.tool-home .intro-actions .button { padding-inline: 20px; }

.copy-demo {
  min-width: 0;
  margin: 0;
  isolation: isolate;
}
.demo-board {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  align-items: start;
  padding: clamp(9px, 1.2vw, 18px) 0 0;
}
.demo-source, .demo-export {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.demo-source {
  grid-column: 1 / 11;
  grid-row: 1;
  padding-bottom: 24px;
  background: var(--tool-tint);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--deep) 15%, transparent);
}
.demo-export {
  grid-column: 3 / -1;
  grid-row: 2;
  z-index: 1;
  margin-top: -31px;
  box-shadow: 0 23px 48px color-mix(in srgb, var(--deep) 28%, transparent), 0 3px 8px color-mix(in srgb, var(--deep) 16%, transparent);
}
.demo-window-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(10px,1.35vw,19px);
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  color: var(--deep);
  background: var(--hero-tint);
}
.demo-export .demo-window-head { background: var(--deep); color: #fff; border-color: transparent; }
.demo-window-head > div { display: grid; gap: 1px; }
.demo-window-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(13px,1.18vw,17px);
  line-height: 1.28;
}
.demo-window-head > div > span { font-size: 12px; color: var(--muted); }
.demo-export .demo-window-head > div > span { color: color-mix(in srgb, var(--highlight) 50%, white); }
.demo-file-icon {
  width: 25px;
  height: 28px;
  color: var(--accent);
  background: currentColor;
  clip-path: polygon(0 0, 68% 0, 100% 28%, 100% 100%, 0 100%);
  border-radius: 3px;
  position: relative;
}
.demo-file-icon::before {
  content: "";
  position: absolute;
  width: 11px; height: 8px;
  left: 6px; bottom: 6px;
  border-block: 1px solid #fff;
}
.demo-export .demo-file-icon { color: var(--highlight); }
.demo-export .demo-file-icon::before { border-color: var(--deep); }
.demo-pill {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 670;
  white-space: nowrap;
}
.demo-source-fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--muted);
  padding: 11px clamp(10px, 1.4vw, 19px);
  font: 500 12px/1.3 ui-monospace, "Cascadia Mono", monospace;
}
.demo-source-fields span:not(:last-child) { padding-inline-end: 10px; border-inline-end: 1px solid #cadbd0; }
.demo-pages {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: clamp(11px, 1.6vw, 21px);
  background: var(--tool-tint);
}
.demo-sheet {
  min-width: 0;
  padding: clamp(8px, .95vw, 14px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}
.demo-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding-bottom: 8px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.3;
}
.demo-sheet label { display: block; font-size: 12px; line-height: 1.25; }
.demo-sheet input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  margin-top: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, white);
  border-radius: 5px;
  padding: 5px 8px;
  background: var(--tool-tint);
  color: var(--deep);
  font: 650 16px/1.2 ui-monospace, "Cascadia Mono", monospace;
}
.demo-sheet input:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fbfcfd; }
.intro .demo-instruction { margin: 0; border-top: 1px solid var(--line); padding: 10px clamp(10px,1.6vw,21px); color: var(--muted); font-size: 13px; }
.demo-instruction strong { color: var(--deep); }
.demo-summary {
  display: flex;
  flex-wrap: wrap;
  justify-self: start;
  gap: 3px 13px;
  grid-column: 2 / -1;
  grid-row: 3;
  margin-top: 15px;
  padding: 6px 11px;
  border: 1px solid #a7c7b4;
  border-radius: 7px;
  background: var(--tool-tint);
  color: var(--deep);
  font-size: 12px;
}
.demo-summary strong { color: var(--accent); font-size: 14px; }

.copy-tool-band {
  padding-block: clamp(28px, 5vw, 55px);
  background: var(--tool-tint);
  border-block: 1px solid #d6e5db;
}
.copy-tool-band h2, .tool-home .reader h2 { color: var(--deep); }
#copy-tool-title, .tool-home .reader h2 {
  font-size: clamp(24px,2.5vw,34px);
  line-height: 1.18;
  letter-spacing: -.045em;
  margin-block: 0 16px;
}
.tool-home .workbench { border-color: var(--line); box-shadow: 0 10px 30px color-mix(in srgb, var(--deep) 11%, transparent); }
.tool-home .source { border-color: var(--line); }
.tool-home .result { background: var(--tool-tint); border-radius: 0 15px 15px 0; }
.tool-home .proof { background: #fff; border-color: var(--line); }
.tool-home .proof[data-empty] { background: var(--tool-tint); border-style: dashed; }
.tool-home #download { margin-top: 12px; }
.tool-home .reader {
  border: 0;
  width: min(845px, calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
  padding-block: clamp(30px,5vw,55px);
}
.tool-home .reader p, .tool-home .reader li { max-width: 76ch; }
.tool-home .reader ol { margin-block: 0 16px; }
.tool-home .reader.pricing { padding-bottom: clamp(30px,5vw,55px); }
.tool-home .pricing-grid { gap: 12px; }
.tool-home .pricing-grid > div { padding: 20px; border-radius: 12px; }
.tool-home .pricing-grid > div + div { background: var(--tool-tint); border-color: var(--line); }
.tool-home .pricing .copy-price { font-size: 30px; font-weight: 750; letter-spacing: -.035em; color: var(--deep); line-height: 1.2; margin: 4px 0 9px; }
.tool-home .copy-price small { font-size: 13px; font-weight: 650; letter-spacing: 0; }
.copy-faq-band { background: #fff; border-block: 1px solid var(--line); }
.tool-home #faq details { border-top: 1px solid var(--line); border-bottom: 0; }
.tool-home #faq details:last-child { border-bottom: 1px solid var(--line); }
.tool-home #faq details[open] summary { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .copy-demo[data-scroll-entered] .demo-export { animation: show-export 830ms 160ms cubic-bezier(.17,.81,.26,1) both; }
  .copy-demo[data-scroll-entered] .demo-summary { animation: show-pdf-preview 420ms 550ms ease-out both; }
  .tool-home .workbench[data-scroll-entered] { animation: lift-workbench 480ms cubic-bezier(.18,.76,.27,1); }
  .tool-home .pricing-grid[data-scroll-entered] > div { animation: settle-price 410ms cubic-bezier(.18,.76,.27,1); }
  .tool-home .pricing-grid[data-scroll-entered] > div + div { animation-delay: 95ms; animation-fill-mode: backwards; }
  .tool-home .proof:not([data-empty]) { animation: show-pdf-preview 320ms ease-out; }
}
@keyframes show-export {
  from { transform: translate3d(-12px,20px,0) scale(.975); opacity: .75; }
  to { transform: translate3d(0,0,0) scale(1); opacity: 1; }
}
@keyframes lift-workbench {
  from { transform: translateY(16px); opacity: .74; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes settle-price {
  from { transform: translateY(12px); opacity: .72; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes show-pdf-preview {
  from { transform: translateY(5px); opacity: .78; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 870px) {
  .tool-home .intro-with-example { grid-template-columns: 1fr; }
  .tool-home .intro-with-example h1 { max-width: 20ch; }
  .copy-demo { width: min(100%,550px); }
}
@media (max-width: 700px) {
  [data-tool-landing] { --section-width: calc(100% - 32px); }
  .tool-home .reader { width: var(--section-width); }
  .tool-home .result { border-radius: 0 0 11px 11px; }
}

@media (max-width: 460px) {
  .tool-home .intro-with-example { gap: 22px; }
  .demo-source { grid-column: 1 / 12; padding-bottom: 18px; }
  .demo-export { grid-column: 2 / -1; margin-top: -18px; }
  .demo-sheet-head { margin-bottom: 8px; }
  .demo-file-icon { width: 17px; height: 21px; }
  .demo-file-icon::before { width: 8px; left: 4px; bottom: 4px; height: 6px; }
  .demo-summary { margin-top: 11px; }
}

[data-tool-landing] {
  --copy-band-pad: clamp(36px, 6vw, 78px);
  --copy-anchor: 80px;
}
[data-tool-landing] .top {
  position: sticky;
  top: 0;
  z-index: 2;
}
.copy-skip {
  position: fixed;
  top: 8px;
  inset-inline-start: 10px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 6px;
  background: white;
  transform: translateY(-200%);
}
.copy-skip:focus { transform: translateY(0); }
.tool-home [id], [data-tool-landing] .doc { scroll-margin-top: var(--copy-anchor); }
.tool-home h2 {
  color: var(--deep);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.13;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.tool-home .section-heading h2 { font-size: 20px; letter-spacing: -.026em; }
.tool-home h3 {
  color: inherit;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.018em;
  margin: 0 0 6px;
}
.tool-home h2 + p,
.tool-home .copy-problem-list p,
.tool-home .copy-card-grid p,
.tool-home .copy-output-grid p,
.tool-home .copy-reading-grid p { color: var(--muted); }
.copy-specs { background: #fff; border-block: 1px solid var(--line); }
.copy-spec-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.copy-spec-grid p { display: grid; align-content: center; gap: 1px; padding: 19px 20px; }
.copy-spec-grid p:first-child { padding-inline-start: 0; }
.copy-spec-grid p + p { border-inline-start: 1px solid var(--line); }
.copy-spec-grid strong { color: var(--deep); font-size: clamp(16px, 2.1vw, 24px); letter-spacing: -.03em; }
.copy-spec-grid span { color: var(--muted); font-size: 13px; }

.copy-problem, .copy-steps, .copy-outputs, .copy-compare, .copy-reading { padding-block: var(--copy-band-pad); }
.copy-problem { background: #fafbf8; }
.copy-split { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); align-items: start; gap: clamp(20px,5vw,68px); }
.copy-split h2 { max-width: 18ch; }
.copy-problem-list { border-top: 1px solid #b8cdc0; }
.copy-problem-list article { border-bottom: 1px solid var(--line); padding: 15px 0; }
.copy-problem-list p, .copy-proof-band p { max-width: 60ch; }
.copy-steps { border-top: 1px solid var(--line); background: #fff; }
.copy-card-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  counter-reset: copy-step;
  list-style: none;
  padding: 0;
  margin: 20px 0 14px;
  gap: 12px;
}
.copy-card-grid li {
  counter-increment: copy-step;
  padding: 18px;
  border: 1px solid #d1e0d7;
  border-radius: 12px;
  background: var(--tool-tint);
}
.copy-card-grid li::before {
  content: counter(copy-step);
  display: grid;
  place-items: center;
  width: 29px;
  aspect-ratio: 1;
  margin-bottom: 11px;
  border-radius: 50%;
  background: var(--hero-tint);
  color: var(--deep);
  font-size: 14px;
  font-weight: 740;
}
.copy-steps a { font-size: 14px; font-weight: 650; }
.tool-home #copy-tool-title { margin-bottom: 7px; }
.copy-tool-note { margin-bottom: 17px; }

.copy-proof-band { padding-block: var(--copy-band-pad); background: #183b31; color: #fff; }
.copy-proof-band h2 { color: #fff; margin-bottom: 12px; }
.copy-proof-band h2 + p { color: #d5e6dc; }
.copy-field-report {
  background: #fff;
  color: var(--ink);
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid #7ea891;
  border-radius: 16px;
  box-shadow: 0 15px 35px #091c1759;
}
.copy-field-report dl { margin: 12px 0 0; }
.copy-field-report dl > div { padding: 9px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: 8px; align-items: baseline; }
.copy-field-report dt { color: var(--muted); font-size: 13px; }
.copy-field-report dd { margin: 0; }
.copy-field-report code { color: var(--deep); background: var(--tool-tint); padding: 3px 5px; border-radius: 4px; font-size: 12px; overflow-wrap: anywhere; }

.copy-outputs { background: #fff; }
.copy-output-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.copy-output-grid article { border: 1px solid var(--line); border-radius: 10px; padding: 17px 18px; }
.copy-compare { background: #f1f6f1; border-block: 1px solid var(--line); }
.copy-table-shell { margin-top: 19px; border: 1px solid #c5d8cb; border-radius: 12px; overflow: hidden; background: #fff; }
.copy-table-shell table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.copy-table-shell th, .copy-table-shell td { padding: 11px 12px; text-align: start; overflow-wrap: anywhere; line-height: 1.3; font-size: 14px; }
.copy-table-shell th { font-weight: 700; }
.copy-table-shell tr > :nth-child(2) { background: var(--tool-tint); color: var(--deep); font-weight: 650; }
.copy-table-shell tbody tr { border-top: 1px solid var(--line); }
.copy-alternative-table th:first-child { width: 32%; }
.copy-alternative-table tr > :nth-child(2) { background: transparent; color: inherit; font-weight: inherit; }
.copy-alternative-table :is(th,td) { font-size: .925rem; }
.copy-comparison-note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.copy-related { padding-block: clamp(22px,4vw,42px); }
.copy-related h2 { font-size: clamp(1.2rem,2.2vw,1.65rem); }
.copy-related ul { margin-bottom: 0; padding-left: 1.2rem; line-height: 1.6; }
.copy-related li + li { margin-top: 8px; }
.copy-related li a { font-weight: 680; }
.copy-related li span { display: block; color: var(--muted); font-size: .9rem; }
.copy-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.copy-pricing-restore { margin-top: 16px; }
.copy-reading { background: #f4f7f2; }
.copy-reading-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.copy-reading-grid article { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.copy-reading-grid a { display: inline-block; }
.copy-finish { background: var(--hero-tint); border-block: 1px solid #c6ddce; padding-block: clamp(24px,4.7vw,54px); }
.copy-finish .copy-section { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.copy-finish p { margin-top: 6px; }
.copy-footer > span { display: grid; }
.copy-footer strong { font-size: 19px; color: var(--deep); }
.copy-footer small { font-size: 12px; }
.copy-footer nav { column-gap: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .tool-home [data-scroll-reveal][data-scroll-entered]:not(.workbench, .pricing-grid) { animation: lift-workbench 510ms cubic-bezier(.18,.76,.27,1); }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-tool-landing] body:has(.tool-home) .top::after {
      content: "";
      position: absolute;
      bottom: 0;
      inset-inline: 0;
      height: 2px;
      background: var(--accent);
      transform-origin: left;
      animation: copy-reading-progress auto linear both;
      animation-timeline: scroll(root block);
      pointer-events: none;
    }
  }
}
@keyframes copy-reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 760px) {
  .copy-split { grid-template-columns: 1fr; }
  .copy-split h2 { max-width: 25ch; }
}
@media (max-width: 570px) {
  [data-tool-landing] { --copy-anchor: 113px; }
  [data-tool-landing] .top > div { gap: 1px 11px; }
  [data-tool-landing] .top nav { gap: 0 10px; }
  [data-tool-landing] .top nav a { font-size: 13px; }
  .copy-spec-grid p { padding: 11px 6px; }
  .copy-spec-grid strong { font-size: 14px; line-height: 1.22; }
  .copy-spec-grid span { font-size: 11px; line-height: 1.3; }
  .copy-card-grid, .copy-output-grid, .copy-reading-grid { grid-template-columns: 1fr; }
  .copy-table-shell th, .copy-table-shell td { padding: 8px 5px; font-size: 11px; }
}

[data-tool-landing] .brand { display: inline-flex; align-items: center; gap: 8px; }
[data-tool-landing] .brand::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(var(--highlight),var(--highlight)) 12px 8px / 9px 12px no-repeat,
    linear-gradient(#fff,#fff) 7px 11px / 9px 12px no-repeat,
    var(--accent);
}
[data-tool-landing] .top .copy-nav-primary {
  min-height: 38px;
  border-radius: 7px;
  padding-inline: 13px;
  background: var(--accent);
  color: white;
}
[data-tool-landing] .top .copy-nav-primary:hover { background: var(--deep); text-decoration: none; }
[data-tool-landing] .top .language-switch {
  display: inline-grid;
  min-width: 40px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-inline: 8px;
  font-weight: 700;
}
[data-tool-landing] .top .language-switch:hover { background: var(--tool-tint); }
@media (max-width: 720px) {
  [data-tool-landing] .top .copy-nav-primary { display: none; }
}


.demo-page-picker {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.demo-page-picker label { min-width: 0; cursor: pointer; position: relative; }
.demo-page-picker input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.demo-page-picker label > span {
  min-height: 40px; display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px;
  color: var(--muted); font-size: 12px; font-weight: 690; background: #fff;
}
.demo-page-picker small { margin-inline-start: auto; font-size: 10px; font-weight: 550; }
.demo-page-picker input:checked + span { color: var(--deep); background: var(--hero-tint); border-color: color-mix(in srgb, var(--accent) 48%, white); }
.demo-page-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-page-mark { width: 8px; height: 11px; border: 1px solid currentColor; border-radius: 1px; flex: 0 0 auto; }
.demo-view { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: stretch; gap: 9px; }
.demo-view[data-demo-page="2"],
.demo-pages:has(#demo-page-two:checked) .demo-view[data-demo-page="1"] { display: none; }
.demo-pages:has(#demo-page-two:checked) .demo-view[data-demo-page="2"] { display: grid; }
.demo-sheet { box-shadow: 0 3px 8px color-mix(in srgb, var(--deep) 12%, transparent); }
.demo-sheet-head strong { color: var(--deep); line-height: 1.25; }
.demo-sheet-head > span { white-space: nowrap; }
.demo-blank-field { display: grid; grid-template-columns: 49px minmax(0,1fr); align-items: center; margin-top: 7px; gap: 6px; font-size: 10px; }
.demo-blank-field span + span { height: 17px; border: 1px solid #d8e5dc; border-radius: 3px; background: #fcfdff; }
.demo-inspector { padding: clamp(8px, 1vw, 15px); min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--tool-tint); }
.intro .demo-inspector p { margin: 0 0 6px; color: var(--deep); font-weight: 740; font-size: 12px; }
.demo-inspector ul { list-style: none; margin: 0; padding: 0; }
.demo-inspector li { padding: 5px 0; border-top: 1px solid var(--line); color: var(--deep); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.demo-inspector code { font-family: ui-monospace, "Cascadia Mono", monospace; }
@media (max-width: 400px) {
  .demo-page-picker label > span { padding-inline: 5px; gap: 4px; }
  .demo-page-picker small { display: none; }
  .demo-view { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 6px; }
  .demo-sheet-head { flex-wrap: wrap; }
  .demo-inspector { padding-inline: 6px; }
}


[data-tool="formcopy"] { --deep: #183b31; --accent: #155f4c; --highlight: #a6e9cb; --hero-tint: #e4f1e8; --tool-tint: #edf6f0; }
[data-tool="quizrelay"] { --deep: #33234f; --accent: #644199; --highlight: #e3c2ff; --hero-tint: #eee7f8; --tool-tint: #f5effb; }
[data-tool="textplate"] { --deep: #202b49; --accent: #204e85; --highlight: #ffc58e; --hero-tint: #e6ecfb; --tool-tint: #eef2fc; }
[data-tool="rtfdword"] { --deep: #1b2b55; --accent: #2b5eaa; --highlight: #b0ddff; --hero-tint: #e2edfc; --tool-tint: #eef5ff; }
[data-tool="comicproof"] { --deep: #47262a; --accent: #983d27; --highlight: #ffbc9e; --hero-tint: #f9e7df; --tool-tint: #fff1e8; }
[data-tool="losslessrescue"] { --deep: #193845; --accent: #166353; --highlight: #8bdfc8; --hero-tint: #def0eb; --tool-tint: #eaf6f2; }
[data-tool="accessattachments"] { --deep: #45243e; --accent: #8d2d5e; --highlight: #f8bbdc; --hero-tint: #f6e5f0; --tool-tint: #fbf0f6; }
[data-tool="mattestack"] { --deep: #303a26; --accent: #536525; --highlight: #d8efa7; --hero-tint: #eaf0df; --tool-tint: #f3f7ec; }
[data-tool="taggedoutline"] { --deep: #243c4c; --accent: #336180; --highlight: #aee4ff; --hero-tint: #e3eff5; --tool-tint: #eef5fa; }
[data-tool="storyaudio"] { --deep: #46311f; --accent: #7e4d21; --highlight: #ffd99e; --hero-tint: #f9ead5; --tool-tint: #fcf4e8; }
[data-tool="sonardepth"] { --deep: #173847; --accent: #1b6073; --highlight: #a0e8eb; --hero-tint: #dceff0; --tool-tint: #edf6f7; }
[data-tool="patterndxf"] { --deep: #392b44; --accent: #765070; --highlight: #e5c8ea; --hero-tint: #efe4f3; --tool-tint: #f7f0f8; }
[data-tool="waveformbridge"] { --deep: #223953; --accent: #355782; --highlight: #aacaff; --hero-tint: #e5ecf9; --tool-tint: #f0f4fb; }
[data-tool="edittransfer"] { --deep: #1b3438; --accent: #28596a; --highlight: #ace9d8; --hero-tint: #e0eeec; --tool-tint: #edf6f2; }
[data-tool="layoutrescue"] { --deep: #482e24; --accent: #854c3b; --highlight: #ffd2b2; --hero-tint: #f4e6dc; --tool-tint: #f9f0e9; }

[data-tool-landing] {
  --cut: clamp(14px, 2.35vw, 45px);
  --tint: var(--tool-tint);
  --line: color-mix(in srgb, var(--deep) 16%, #fff);
  --ink: color-mix(in srgb, var(--deep) 76%, #141823);
  --muted: color-mix(in srgb, var(--deep) 75%, #77808a);
}
.copy-hero-band, .copy-proof-band { position: relative; isolation: isolate; }
.copy-hero-band {
  background: #fff;
  border-bottom: 0;
}
.copy-hero-band::before, .copy-proof-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.copy-hero-band::before {
  background: linear-gradient(152deg, #fbf9f7 0%, var(--hero-tint) 68%, color-mix(in srgb, var(--hero-tint) 80%, var(--accent)));
  clip-path: polygon(0 0,100% 0,100% 100%,0 calc(100% - var(--cut)));
}
.tool-home .intro-with-example { padding-bottom: calc(clamp(38px, 5.6vw, 92px) + var(--cut)); }
.copy-tool-band {
  background: var(--tool-tint);
  border-bottom: 0;
}
.copy-proof-band {
  padding-block: calc(var(--copy-band-pad) + var(--cut));
  background: linear-gradient(var(--tool-tint) 49%, #fff 50%);
}
.copy-proof-band::before {
  background: var(--deep);
  clip-path: polygon(0 0,100% var(--cut),100% 100%,0 calc(100% - var(--cut)));
}
.copy-proof-band h2 + p { color: color-mix(in srgb, var(--highlight) 33%, white); }
.copy-proof-band .copy-field-report {
  background: color-mix(in srgb, var(--deep) 83%, white);
  border-color: color-mix(in srgb, var(--highlight) 30%, var(--deep));
  color: white;
}
.copy-proof-band .copy-field-report :is(dl > div, .sample-rows > div) {
  border-color: color-mix(in srgb, var(--highlight) 22%, var(--deep));
}
.copy-proof-band .copy-field-report :is(dt,.sample-rows dt) { color: color-mix(in srgb, var(--highlight) 30%, white); }
.copy-proof-band .copy-field-report :is(dd,code) { color: var(--highlight); }
.copy-proof-band .copy-field-report code { background: #ffffff12; }
.copy-compare, .copy-reading { background: var(--tool-tint); }
.copy-compare + .pricing { background: #fff; }
.copy-finish { background: var(--hero-tint); }
.tool-home .copy-output-grid article { background: #fff; }
.tool-home .copy-output-grid article:first-child { border-top: 3px solid var(--accent); }

.catalog-demo .demo-source, .catalog-demo .demo-export { border-color: var(--line); }
.catalog-demo .demo-export { grid-column: 2 / -1; }
.catalog-demo .demo-summary {
  grid-column: 3 / -1;
  border-color: var(--line);
  background: var(--deep);
  color: #fff;
  font-weight: 620;
  gap: 6px 10px;
}
.catalog-demo .demo-summary span + span { border-inline-start: 1px solid #ffffff47; padding-inline-start: 9px; }
.sample-rows { margin: 0; min-width: 0; }
.sample-rows > div {
  display: grid;
  grid-template-columns: minmax(0,.81fr) minmax(0,1.19fr);
  gap: 6px 12px;
  align-items: baseline;
  padding: 8px 0;
}
.sample-rows > div + div { border-top: 1px solid var(--line); }
.sample-rows dt { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.sample-rows dd { margin: 0; color: var(--deep); font-weight: 690; font-size: 13px; overflow-wrap: anywhere; }
.demo-source .sample-rows { padding: 7px 13px; }
.demo-source .sample-rows > div { padding: 4px 0; }
/* Show the output at the size of the result window. Field-level data lives in the proof band. */
.sample-result { padding: 12px; background: var(--tool-tint); border-radius: 0 0 16px 16px; }
.sample-art {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--hero-tint);
}
.sample-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1.69;
  object-fit: contain;
}
.sample-art:focus-visible { outline-offset: -3px; }
.copy-field-report > .sample-rows { margin-top: 11px; }
.demo-interactive {
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
}
.demo-interactive summary { padding-inline: 12px; color: var(--accent); font-size: 13px; }
.demo-interactive .demo-instruction { border: 0; margin: 0; }
.demo-interactive[open] summary { background: var(--tool-tint); }
.tool-home .intro-with-example .copy-demo { width: 100%; }
@media (max-width: 570px) {
  .catalog-demo .demo-export { grid-column: 2 / -1; }
  .catalog-demo .demo-summary { grid-column: 2 / -1; }
  .sample-result { padding: 7px; }
  .sample-art img { aspect-ratio: 1.65; }
  .sample-rows dt { font-size: 11px; }
  .sample-rows dd { font-size: 12px; }
}

:is([data-tool="losslessrescue"], [data-tool="mattestack"], [data-tool="storyaudio"]) .sample-art img { aspect-ratio: 2.5; }
@media (max-width: 460px) {
  .catalog-demo .demo-source .sample-rows { display: none; }
  .catalog-demo .demo-source { padding-bottom: 22px; }
}

