/* ============================================================================
   ChangeThisFile v2 — /change
   Proof-room aesthetic: bright paper, blue-black ink, and the editor's
   red-blue pencil. Red = the change (marks, CTAs). Blue = annotation (links,
   info). Mono = file chrome. Everything quiet except the proof plate.
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-800-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --paper: #FAFAF8;
  --paper-2: #F1F1EB;
  --ink: #1B1D22;
  --ink-soft: #565962;
  --line: #DDDDD5;
  --line-soft: #E8E8E1;
  --red: #C9302B;
  --red-soft: #F7E4E2;
  --blue: #2B5BD7;
  --blue-soft: #E6ECFA;
  --font-display: 'Bricolage Grotesque', 'DM Sans', sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 6px;
  --shadow-plate: 0 1px 2px rgba(27, 29, 34, .06), 0 12px 32px -12px rgba(27, 29, 34, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red-soft); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ------------------------------------------------------------ */
.site-head {
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--ink); letter-spacing: -.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark .tf { color: var(--red); }
.head-nav { display: flex; gap: 22px; font-size: .92rem; }
.head-nav a { color: var(--ink-soft); }
.head-nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- Worktable (hero) --------------------------------------------------- */
.worktable {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 64px;
}
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: '¶ '; color: var(--ink-soft); }
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.04; letter-spacing: -.025em; margin-bottom: 18px;
}
h1 em {
  font-style: normal; position: relative; white-space: nowrap;
}
/* the red proof underline on "change" */
h1 em::after {
  content: ''; position: absolute; left: -1%; right: -1%; bottom: .04em;
  height: .09em; background: var(--red); border-radius: 2px;
  transform: skewY(-.6deg);
}
.lede {
  font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* ---- Intake (dropzone + instruction) ------------------------------------ */
.intake {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .15s, background .15s;
}
.intake.dragover { border-color: var(--blue); background: var(--blue-soft); }
.intake-file {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 14px; cursor: pointer;
}
.intake-file .doc-ic { flex: none; width: 30px; height: 38px; position: relative;
  border: 1.5px solid var(--ink-soft); border-radius: 3px; background: #fff; }
.intake-file .doc-ic::after { content: ''; position: absolute; top: -1.5px; right: -1.5px;
  width: 10px; height: 10px; background: var(--paper-2);
  border-left: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); }
.intake-file .prompt { color: var(--ink-soft); font-size: .98rem; }
.intake-file .prompt strong { color: var(--blue); font-weight: 600; }
.intake-file .file-chip {
  display: none; font-family: var(--font-mono); font-size: .82rem;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 4px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.intake.has-file .prompt { display: none; }
.intake.has-file .file-chip { display: inline-block; }
.intake-say {
  display: flex; gap: 10px; border-top: 1px solid var(--line-soft); padding: 12px 18px 16px;
}
.intake-say input {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: 1rem;
  color: var(--ink); outline: none; min-width: 0;
}
.intake-say input::placeholder { color: #9a9da5; }
.btn {
  font: inherit; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer;
  border-radius: var(--radius); padding: 10px 20px; transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #B02722; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: default; }

.intake-trust {
  font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft);
  margin-top: 12px; letter-spacing: .02em;
}
.or-chips { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.or-chips .lbl { font-size: .85rem; color: var(--ink-soft); }
.chip {
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip .p { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-soft); margin-left: 6px; }

/* ---- Proof plate (signature) -------------------------------------------- */
.plate-zone { position: relative; }
.plate {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; box-shadow: var(--shadow-plate);
  padding: 40px 34px 30px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
}
/* crop marks */
.plate .crop { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.plate .crop::before, .plate .crop::after { content: ''; position: absolute; background: var(--ink-soft); opacity: .55; }
.plate .crop::before { width: 14px; height: 1px; }
.plate .crop::after { width: 1px; height: 14px; }
.plate .crop.tl { top: -7px; left: -7px; }
.plate .crop.tr { top: -7px; right: -7px; transform: scaleX(-1); }
.plate .crop.bl { bottom: -7px; left: -7px; transform: scaleY(-1); }
.plate .crop.br { bottom: -7px; right: -7px; transform: scale(-1); }
.plate-label {
  position: absolute; top: 12px; left: 34px; right: 34px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.plate-label .job { color: var(--red); transition: opacity .3s; }

.scene { display: none; padding-top: 22px; }
.plate[data-scene="1"] .scene-1, .plate[data-scene="2"] .scene-2, .plate[data-scene="3"] .scene-3 { display: block; }

/* scene 1: translate — EN line pairs become ES with a margin change-bar */
.tl-line { position: relative; margin: 0 0 14px; padding-left: 16px; font-size: .95rem; line-height: 1.5; }
.tl-line::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: transparent; transition: background .4s; }
.tl-line .en, .tl-line .es { display: block; transition: opacity .5s; }
.tl-line .es { color: var(--ink); position: absolute; top: 0; left: 16px; right: 0; opacity: 0; }
.plate.flip .tl-line .en { opacity: 0; }
.plate.flip .tl-line .es { opacity: 1; }
.plate.flip .tl-line::before { background: var(--red); }
.tl-head { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 16px; }

/* scene 2: tables — wobbly rows snap into a clean grid */
.tb { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .78rem; }
.tb td, .tb th { border: 1px solid var(--line); padding: 7px 10px; text-align: left; transition: transform .5s, border-color .5s; }
.tb th { background: var(--blue-soft); color: var(--ink); font-weight: 700; }
.tb .num { text-align: right; }
.plate:not(.flip) .tb tr:nth-child(2) td { transform: rotate(-.8deg) translateX(3px); border-color: #cfcfc6; }
.plate:not(.flip) .tb tr:nth-child(3) td { transform: rotate(.5deg) translateX(-4px); border-color: #cfcfc6; }
.plate:not(.flip) .tb tr:nth-child(4) td { transform: rotate(-.4deg) translateX(2px); border-color: #cfcfc6; }
.tb-caption { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft); margin-top: 12px; }
.tb-caption .x { color: var(--blue); font-weight: 700; }

/* scene 3: compress — struck size, stamped result */
.cp { text-align: center; padding: 30px 0 10px; }
.cp .was {
  font-family: var(--font-mono); font-size: 2.2rem; color: var(--ink-soft);
  position: relative; display: inline-block;
}
.cp .was::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 52%;
  height: 3px; background: var(--red); transform: rotate(-4deg) scaleX(0);
  transform-origin: left; transition: transform .45s .1s;
}
.plate.flip .cp .was::after { transform: rotate(-4deg) scaleX(1); }
.cp .now {
  display: inline-block; margin: 26px auto 0;
  font-family: var(--font-mono); font-size: 2.6rem; font-weight: 700; color: var(--red);
  border: 3px solid var(--red); border-radius: 6px; padding: 6px 22px;
  transform: rotate(-3deg) scale(1.25); opacity: 0;
  transition: transform .3s .5s cubic-bezier(.2, 2, .4, 1), opacity .25s .5s;
}
.plate.flip .cp .now { opacity: 1; transform: rotate(-3deg) scale(1); }
.cp .cap { margin-top: 22px; font-size: .85rem; color: var(--ink-soft); }

/* ---- Job panel (live flow) ---------------------------------------------- */
.job-panel { display: none; padding: 26px 0 60px; }
.job-panel.on { display: block; }
.panel-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-plate); padding: 30px 34px; max-width: 780px;
}
.panel-file {
  font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft);
  margin-bottom: 18px; word-break: break-all;
}
.panel-file .arrow { color: var(--red); }
.param-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 14px 0 20px; }
.param-row label { font-size: .92rem; color: var(--ink-soft); }
.param-row input, .param-row select {
  font: inherit; font-size: .95rem; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); min-width: 0;
}
.size-presets { display: flex; gap: 8px; flex-wrap: wrap; }

.status-line { font-family: var(--font-mono); font-size: .86rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.status-line .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.preview-grid { display: flex; gap: 22px; flex-wrap: wrap; margin: 22px 0 8px; }
/* the money moment gets the proof-sheet treatment: crop marks + label strip */
.proof-frame { position: relative; padding: 20px 6px 6px; }
.proof-frame .pf-label {
  position: absolute; top: 0; left: 6px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red);
}
.proof-frame .crop { position: absolute; width: 12px; height: 12px; pointer-events: none; }
.proof-frame .crop::before, .proof-frame .crop::after { content: ''; position: absolute; background: var(--ink-soft); opacity: .5; }
.proof-frame .crop::before { width: 12px; height: 1px; }
.proof-frame .crop::after { width: 1px; height: 12px; }
.proof-frame .crop.tl { top: 14px; left: 0; }
.proof-frame .crop.tr { top: 14px; right: 0; transform: scaleX(-1); }
.proof-frame .crop.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.proof-frame .crop.br { bottom: 0; right: 0; transform: scale(-1); }
.preview-grid img {
  display: block; max-width: 100%; width: 300px; border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 4px 14px -6px rgba(27, 29, 34, .25);
}
.preview-note { font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; }
.preview-note .mk { color: var(--red); font-weight: 600; }

.ptable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; }
.ptable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ptable th { background: var(--blue-soft); font-weight: 600; text-align: left; }
.ptable th, .ptable td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }

.unlock-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line-soft); margin-top: 22px; padding-top: 22px; flex-wrap: wrap;
}
.unlock-bar .sum { font-size: .95rem; }
.unlock-bar .sum .price { font-family: var(--font-mono); font-weight: 700; }
.unlock-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pack-hint { width: 100%; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }
.upsell-card { margin-top: 16px; }
.result-big {
  font-family: var(--font-mono); font-size: 1.5rem; margin: 18px 0 6px;
}
.result-big .to { color: var(--red); }
.err-box {
  background: var(--red-soft); border: 1px solid #E5B5B2; border-radius: var(--radius);
  padding: 14px 18px; font-size: .95rem; margin-top: 16px;
}

/* ---- Job cards ----------------------------------------------------------- */
.jobs { padding: 30px 0 20px; }
.sect-head { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 8px; }
.sect-sub { color: var(--ink-soft); margin-bottom: 30px; max-width: 44em; }
.job-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.job-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s; cursor: pointer;
}
.job-card:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-plate); }
.job-card .mono-tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.job-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; }
.job-card p { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.job-card .price { font-family: var(--font-mono); font-size: .95rem; font-weight: 700; }
.job-card .price.free { color: var(--blue); }
.job-card .price small { font-weight: 400; color: var(--ink-soft); }

/* ---- How + trust + FAQ --------------------------------------------------- */
.how { padding: 56px 0 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 20px 22px; border-left: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-mono); font-weight: 700; color: var(--red);
  display: block; margin-bottom: 8px;
}
.step h4 { font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.step p { font-size: .9rem; color: var(--ink-soft); }

.trust { margin: 60px 0 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust .wrap { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; padding: 20px 24px; }
.trust span { font-size: .87rem; color: var(--ink-soft); }
.trust b { color: var(--ink); font-weight: 600; }

.faq { padding: 56px 0 30px; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--red); font-family: var(--font-mono); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line-soft); margin-top: 40px; }
.site-foot .wrap {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 24px; font-size: .85rem; color: var(--ink-soft);
}
.site-foot a { color: var(--ink-soft); margin-right: 18px; }

/* ---- Responsive + a11y --------------------------------------------------- */
@media (max-width: 900px) {
  .worktable { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .plate-zone { order: 2; }
  .job-cards, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .intake-say { flex-direction: column; }
  .intake-say .btn { width: 100%; }
  .panel-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-line .dot { animation: none; }
  .plate .tl-line .en, .plate .tl-line .es, .cp .was::after, .cp .now,
  .tb td, .tb th { transition: none; }
}
