/* Fjorra interior pages (the copilot, prices, free scan, 404): the page-specific parts of The Work Order.
   Loaded after /styles.css on those four pages only. It reuses that file's vocabulary (.sheet .perf .form .fields .cell
   .no .lab .pen .print .btn .chk .box .tick .rubber .cols .does .items .terms .est* .faq .write .copies) and adds only
   what these pages need. */

/* ---------- Shared ---------- */
.sheet--page { padding-top: 36px; }
.perf--wp { --from: var(--paper); --to: var(--pink); }
.form__head > :first-child { flex: 1 1 22rem; min-width: 0; }
.form--canary { background: var(--canary); }
.fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tick--on { stroke-dashoffset: 0; }
.print--23 img { aspect-ratio: 2 / 3; }
.does--first { border-top: 0; }
.terms__lede { max-width: 60ch; font: 500 1.0625rem/1.45 var(--body); }
.print__credit a, .write__intro p a { padding-block: 13px; }  /* inline links: the tap area reaches 44px without moving the lines */
.print__credit a { text-underline-offset: .2em; }
.write__note { font: 500 1.0625rem/1.45 var(--body); color: var(--ink); }

/* ---------- The copilot: scope of work (two setups as two printed columns) ---------- */
.setups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup { min-width: 0; display: flex; flex-direction: column; }
.setup + .setup { border-left: var(--rule-2); }
.setup__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; padding: 20px 30px 16px; background: var(--tint); border-bottom: var(--rule-2); }
.setup__name { font: 700 clamp(3rem, 5vw, 4.5rem)/.95 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
.setup__price .pen { padding-top: 8px; font: 700 clamp(3.25rem, 5vw, 4.25rem)/1 var(--hand); }
.setup__what { max-width: 52ch; padding: 20px 30px 8px; font: 500 1.1875rem/1.5 var(--body); }
.setup__list { margin-top: 12px; border-top: var(--rule); }
.setup__list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 30px; border-bottom: var(--rule); font: 600 1.0625rem/1.4 var(--body); }
.setup__list li:last-child { border-bottom: 0; }
.setup__list svg { margin-top: -2px; }
.setups__care { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; padding: 10px 30px; border-top: var(--rule-2); }
.setups__care p { font: 500 1.1875rem/1.45 var(--body); }

/* ---------- Prices: what every setup includes ---------- */
.incl__head { padding: 14px 24px 12px; background: var(--tint); border-bottom: var(--rule-2); }
.incl__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.incl__list li { display: grid; align-content: start; gap: 4px; padding: 18px 24px 26px; border-right: var(--rule); }
.incl__list li:last-child { border-right: 0; }
.incl__no { font: 700 clamp(4.25rem, 6vw, 5.5rem)/.85 var(--cond); }
.incl__list h3 { margin-top: 10px; font: 700 1.875rem/1.2 var(--hand); color: var(--pen); text-wrap: pretty; }
.incl__list p { max-width: 40ch; font: 400 1.0625rem/1.5 var(--body); }

/* ---------- Prices: the estimate, grouped ---------- */
.est__grp { padding: 9px 16px; background: rgba(255, 255, 255, .42); border-bottom: var(--rule); }
.est__grp h3 { font: 700 1rem/1.2 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.est--pg .est__row:last-child { border-bottom: 0; }

/* ---------- Prices: the admin-cost slip (canary = your move) ---------- */
.calc__title { padding: 14px 24px; border-bottom: var(--rule-2); font: 700 1.75rem/1.1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.calc .cell { padding: 12px 24px 14px; }
.calc input { display: block; width: 7ch; min-height: 60px; padding: 0; background: transparent; border: 0; border-bottom: 3px dotted var(--ink); font: 700 clamp(2.25rem, 4vw, 3rem)/1.1 var(--hand); color: var(--pen); -moz-appearance: textfield; appearance: textfield; }
.calc input::-webkit-inner-spin-button, .calc input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc input:focus-visible { outline-offset: 4px; }
.calc__usd { display: flex; align-items: center; gap: 2px; width: max-content; border-bottom: 3px dotted var(--ink); }
.calc__usd input { border-bottom: 0; }
.calc__usd::before { content: "$"; flex: none; font: 700 clamp(2.25rem, 4vw, 3rem)/1.1 var(--hand); color: var(--pen); }
.calc__result { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-bottom: var(--rule); }
.calc__out { padding: 18px 24px 20px; border-right: var(--rule); font: 700 1.875rem/1.2 var(--hand); color: var(--pen); }
.calc__out b { display: block; font-size: clamp(3.25rem, 7vw, 5.5rem); line-height: 1; overflow-wrap: anywhere; }
.calc__result .reply__note { align-self: center; margin: 0; padding: 18px 24px; }

/* ---------- Free scan: the quiz as a form sheet ---------- */
.reply { display: flex; flex-direction: column; }
.reply__card { flex: 1; display: flex; flex-direction: column; }
.reply__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 30px; background: var(--tint); border-bottom: var(--rule-2); }
.reply__head h2 { font: 700 1.625rem/1.1 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.reply__head h2 span { font-weight: 500; }
.reply__ticks { display: flex; gap: 6px; }
.reply__ticks li { position: relative; width: 18px; height: 18px; background: var(--paper); border: 2px solid var(--ink); }
.reply__ticks .is-done { border-color: var(--pen); }
.reply__ticks .is-done::after { content: ""; position: absolute; left: 3px; top: -2px; width: 5px; height: 11px; border: solid var(--pen); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.reply__ticks .is-now { background: var(--canary); outline: 2px solid var(--ink); outline-offset: 2px; }
.reply__body { flex: 1; padding: 22px 30px 0; }
.reply__body.is-turning { animation: turn .28s var(--ease) both; }
@keyframes turn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reply__q { max-width: 30em; margin: 4px 0 18px; font: 700 clamp(1.75rem, 2.4vw, 2.125rem)/1.22 var(--hand); color: var(--pen); }
.reply__opts { margin-inline: -30px; border-top: var(--rule); }
.reply__opts li { border-bottom: var(--rule); }
.reply__opts:last-child li:last-child { border-bottom: 0; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 60px; padding: 8px 30px; background: transparent; border: 0; text-align: left; cursor: pointer; font: 500 1.1875rem/1.35 var(--body); color: var(--ink); }
.opt:hover { background: var(--tint); }
.opt:focus-visible { outline-offset: -3px; }
.opt__box { display: inline-flex; flex: none; }
.opt.is-picked { font-weight: 700; color: var(--pen); }
.opt.is-picked .tick { stroke-dashoffset: 0; animation: draw .3s var(--ease) both; }
.reply__text { display: block; width: 100%; min-height: 140px; padding: 12px 16px; background: transparent; border: var(--rule-2); font: 400 1.5rem/1.35 var(--hand); color: var(--pen); resize: vertical; }
.reply__text::placeholder { color: #414FA4; opacity: 1; font-size: 1.25rem; }
.reply__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 16px 0 20px; }
.reply__body > :last-child:not(.reply__row):not(.reply__opts) { margin-bottom: 22px; }
.linkbtn { display: inline-flex; align-items: center; min-height: 48px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink); font: 600 1.25rem/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.linkbtn:hover { color: var(--pen); }
.score { display: flex; align-items: center; gap: 22px; margin: 4px 0 14px; }
.score b { display: grid; place-items: center; flex: none; min-width: 124px; height: 108px; padding: 0 14px; border: 3px solid var(--pen); border-radius: 52% 46% 54% 48% / 56% 50% 46% 52%; transform: rotate(-4deg); font: 700 4.25rem/1 var(--hand); color: var(--pen); }
.score span { font: 600 1.375rem/1.15 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.reply__note { max-width: 62ch; margin-top: 12px; font: 500 1.125rem/1.5 var(--body); }
.score + .reply__note { margin-top: 4px; font-weight: 600; font-size: 1.25rem; }
.cands { counter-reset: cand; margin: 16px -30px 6px; border-top: var(--rule-2); }
.cands li { counter-increment: cand; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 0; padding: 14px 30px 16px 30px; border-bottom: var(--rule); }
.cands li::before { content: counter(cand); grid-row: 1 / span 3; font: 700 1.875rem/1.1 var(--cond); }
.cands li > * { grid-column: 2; }
.cands strong { font: 700 1.875rem/1.2 var(--hand); color: var(--pen); }
.cands p { font: 400 1.0625rem/1.5 var(--body); }
.cands .hrs { display: inline-block; justify-self: start; margin-top: 4px; padding: 2px 10px; border: 1.5px dashed var(--ink); font-weight: 600; }
.reply__fine { padding: 12px 30px 14px; border-top: var(--rule-2); font: 500 1rem/1.4 var(--body); }
.calc .reply__fine { padding-inline: 24px; border-top: 0; }

/* ---------- 404: the order marked void ---------- */
.nf__void { padding: 34px 30px 30px; border-bottom: var(--rule-2); }
.rubber--void b { font-size: clamp(4.5rem, 11vw, 9.5rem); }
.rubber--void span { font-size: 1.375rem; }
.nf__lede { padding: 16px 30px 12px; font: 500 1.1875rem/1.45 var(--body); }
.nf__links { border-top: var(--rule); }
.nf__links .chk { display: flex; width: 100%; min-height: 58px; padding: 6px 30px; border-bottom: var(--rule); }
.nf__links .chk:last-child { border-bottom: 0; }
.nf__links .chk:hover { background: var(--tint); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .incl__list { grid-template-columns: minmax(0, 1fr); }
  .incl__list li { grid-template-columns: 72px minmax(0, 1fr); gap: 2px 16px; padding: 16px 24px 20px; border-right: 0; border-top: var(--rule); }
  .incl__list li:first-child { border-top: 0; }
  .incl__no { grid-row: 1 / span 2; }
  .incl__list h3 { margin-top: 0; }
  .calc__result { grid-template-columns: minmax(0, 1fr); }
  .calc__out { border-right: 0; border-bottom: var(--rule); }
}

@media (max-width: 860px) {
  .setups { grid-template-columns: minmax(0, 1fr); }
  .setup + .setup { border-left: 0; border-top: var(--rule-2); }
}

@media (max-width: 640px) {
  .sheet--page { padding-top: 24px; }
  .fields--2 { grid-template-columns: minmax(0, 1fr); }
  .fields--2 .cell { border-right: 0; }
  .fields--2 .cell + .cell { border-top: var(--rule); }
  .setup__top, .setup__what, .setup__list li, .setups__care { padding-inline: 16px; }
  .setup__top { flex-wrap: nowrap; gap: 12px; }
  .setup__name { font-size: 2.75rem; }
  .setup__price .pen { font-size: 3rem; }
  .incl__head, .incl__list li, .calc__title, .calc .cell, .calc__out, .calc__result .reply__note, .calc .reply__fine { padding-inline: 16px; }
  .incl__list li { grid-template-columns: 56px minmax(0, 1fr); }
  .incl__list h3 { font-size: 1.625rem; }
  .calc__out b { font-size: 3.25rem; }
  .reply__head, .reply__fine { padding-inline: 16px; }
  .reply__body { padding: 18px 16px 0; }
  .reply__opts { margin-inline: -16px; }
  .opt { padding-inline: 16px; gap: 14px; }
  .cands { margin-inline: -16px; }
  .cands li { grid-template-columns: 40px minmax(0, 1fr); padding-inline: 16px; }
  .cands strong { font-size: 1.5rem; }
  .score b { min-width: 104px; height: 92px; font-size: 3.5rem; }
  .reply__row .btn { width: 100%; text-align: center; }
  .nf__void, .nf__lede { padding-inline: 16px; }
  .nf__links .chk { padding-inline: 16px; }
  .rubber--void b { font-size: 4.5rem; }
}

@media (max-width: 380px) {
  .setup__name { font-size: 2.25rem; }
  .setup__price .pen { font-size: 2.5rem; }
}
