@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --desk: #18233a;
  --desk-edge: #2a3957;
  --on-desk: #e9edf6;
  --paper: #fdfdfb;
  --yellow: #f8e58a;
  --pink: #f6bcc6;
  --ink: #14213d;
  --rule: #2f50a1;
  --rule-soft: rgba(47, 80, 161, 0.28);
  --ball: #1a33ae;
  --red: #c4281b;
  --red-dark: #9f1d12;
  --placeholder: #5a6c9b;

  --print: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;

  --gutter: clamp(12px, 3vw, 28px);
  --sheet-pad: clamp(14px, 2.4vw, 30px);
  --step: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--print);
  font-size: var(--step);
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ball); color: #fff; }

p { margin: 0; }
h1, h2, h3 { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--ball);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.ink { font-family: var(--hand); color: var(--ball); font-weight: 400; }

/* ---------- desk bar ---------- */
.deskbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  padding: 8px var(--gutter);
  background: var(--desk);
  border-bottom: 1px solid var(--desk-edge);
  color: var(--on-desk);
}
.deskbar__mark {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}
.deskbar__nav { display: flex; gap: 22px; }
.deskbar__nav a {
  font-size: 0.95rem;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.deskbar__nav a:hover { border-bottom-color: var(--yellow); }
.deskbar__cta {
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.deskbar__cta:hover { background: var(--red-dark); }
.deskbar :focus-visible { outline-color: var(--yellow); }

/* ---------- sheets ---------- */
main {
  padding: clamp(14px, 2vw, 22px) var(--gutter) 24px;
}

.sheet {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 64px;
  padding: 0;
  background: var(--paper);
  border-radius: 2px;
}
.sheet:last-child { margin-bottom: 0; }
.sheet__in { padding: var(--sheet-pad); }
.sheet--white {
  box-shadow:
    0 12px 0 -3px var(--yellow),
    0 24px 0 -6px var(--pink),
    0 46px 40px -26px rgba(0, 0, 0, 0.65);
}
.sheet--yellow {
  background: var(--yellow);
  box-shadow:
    0 12px 0 -3px var(--pink),
    0 40px 36px -26px rgba(0, 0, 0, 0.6);
}
.sheet--pink {
  background: var(--pink);
  box-shadow: 0 30px 36px -24px rgba(0, 0, 0, 0.6);
}

/* printed header row */
.form-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "biz wo"
    "tag tag";
  align-items: end;
  gap: 8px 24px;
  padding-bottom: 10px;
}
.biz__name {
  font-stretch: 75%;
  font-weight: 850;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
}
.biz__line { font-size: 0.95rem; color: var(--rule); font-weight: 500; }
.biz { grid-area: biz; }
.wo { grid-area: wo; text-align: right; }
.wo__title {
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.wo__no {
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--red);
  margin-top: 8px;
}
.wo__no span {
  font-size: max(0.75rem, 0.55em);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-right: 4px;
}
.copytag {
  grid-area: tag;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rule);
  border-top: 1.5px solid var(--rule);
  padding-top: 8px;
}
.copytag--date { justify-content: flex-end; }
.copytag--foot { margin-top: 36px; border-top: 1.5px solid var(--rule); }
.copytag__date { text-transform: none; letter-spacing: 0.02em; font-weight: 500; }
.copytag__date .ink { font-size: 1.15rem; margin-left: 4px; }

.form-head--small { grid-template-areas: "biz wo"; padding-bottom: 8px; }
.form-head--small .biz__name { font-size: 1.1rem; }
.wo__no--small span { font-size: 0.8125rem; }
.wo__no--small { color: var(--red-dark); font-size: 1.05rem; margin-top: 0; grid-area: wo; text-align: right; }

/* ---------- form grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1.5px solid var(--rule);
  border-left: 1.5px solid var(--rule);
}
.cell {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.cell__label {
  display: block;
  padding: 7px 10px 0;
  font-stretch: 75%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rule);
}
.cell:focus-within {
  background: rgba(26, 51, 174, 0.06);
  outline: 3px solid var(--ball);
  outline-offset: -3px;
}
.cell--hero { grid-column: span 8; padding-bottom: 12px; }
.cell--stamp { grid-column: span 4; justify-content: center; padding: 16px; }
.cell--customer { grid-column: span 5; }
.cell--town { grid-column: span 4; }
.cell--service { grid-column: span 3; }
.cell--types { grid-column: span 12; flex-direction: row; flex-wrap: wrap; align-items: stretch; position: relative; padding-top: 28px; }
.cell--types .cell__label { position: absolute; top: 0; left: 0; padding-top: 7px; }
.cell--email { grid-column: span 5; }
.cell--cell { grid-column: span 3; }
.cell--send { grid-column: span 4; }

.ink-input {
  width: 100%;
  flex: 1;
  min-height: 52px;
  padding: 2px 10px 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ball);
  appearance: none;
  -webkit-appearance: none;
}
.ink-input::placeholder { color: var(--placeholder); font-family: var(--print); font-size: 1.05rem; font-style: normal; opacity: 1; }
select.ink-input {
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5 8 8l6.5-6.5' fill='none' stroke='%232f50a1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select.ink-input:invalid { color: var(--placeholder); font-family: var(--print); font-size: 1.05rem; }
.ink-input[aria-invalid="true"] { background-color: rgba(196, 40, 27, 0.08); }
.cell:has(.ink-input[aria-invalid="true"]) .cell__label { color: var(--red); }

/* headline written on ruled lines */
.hand-title {
  --size: clamp(2.1rem, 3.9vw, 3.35rem);
  --lh: calc(var(--size) * 1.34);
  margin: 20px 14px 4px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--size);
  line-height: var(--lh);
  color: var(--ball);
  text-wrap: balance;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1.5px), rgba(47, 80, 161, 0.4) calc(var(--lh) - 1.5px), rgba(47, 80, 161, 0.4) var(--lh));
}
.hero-print {
  margin: 8px 14px 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  font-weight: 500;
}

/* guarantee stamp */
.gstamp {
  padding: 14px 16px 12px;
  color: var(--red);
  transform: rotate(-2.2deg);
  position: relative;
  text-align: center;
  background: var(--paper);
}
.gstamp::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 4px double var(--red);
  filter: url(#rough);
  pointer-events: none;
}
.gstamp__top {
  filter: url(#rough);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.gstamp__body { margin-top: 8px; font-size: 0.95rem; line-height: 1.4; font-weight: 600; color: var(--red-dark); }
.gstamp__link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red-dark);
  text-underline-offset: 3px;
}
.gstamp__link:hover { color: var(--red); }

/* order type checkboxes */
.opt {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px 12px;
  cursor: pointer;
  min-height: 56px;
}
.opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.opt__box {
  flex: none;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border: 2px solid var(--rule);
  background: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}
.opt input:checked + .opt__box {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M5 6c5 6 12 14 20 19M25 5C19 11 12 19 6 26' fill='none' stroke='%231a33ae' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.opt input:focus-visible + .opt__box { outline: 3px solid var(--ball); outline-offset: 3px; }
.opt__text { display: flex; flex-direction: column; min-width: 0; }
.opt__text strong { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.opt__text small { font-size: 0.9375rem; color: #2b3a63; line-height: 1.4; margin-top: 2px; }
.opt:hover .opt__box { border-color: var(--ball); }

/* send button */
.cell--send { background: var(--red); }
.cell--send:focus-within { outline-color: var(--ink); background: var(--red); }
.send {
  flex: 1;
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--print);
}
.send__main {
  font-stretch: 75%;
  font-weight: 850;
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
}
.send__sub { font-size: 0.875rem; font-weight: 500; opacity: 0.95; }
.cell--send:hover { background: var(--red-dark); }
.send:active { transform: translateY(1px); }
.send:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
.send[disabled] { cursor: progress; opacity: 0.85; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  padding: 0 10px;
  font-weight: 600;
  color: var(--red-dark);
  border-right: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}
.status:not(:empty) { padding: 10px; }
.status.is-ok { color: #14532d; }

/* received stamp */
.stamp-received {
  position: absolute;
  left: 30%;
  top: 2.5%;
  pointer-events: none;
  opacity: 0;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  filter: url(#rough);
}
.stamp-received span {
  display: block;
  padding: 6px 28px 2px;
  border: 7px double var(--red);
  color: var(--red);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.sheet--white.is-sent .stamp-received {
  opacity: 0.92;
  animation: stamp-down 0.32s var(--ease) both;
}
@keyframes stamp-down {
  from { opacity: 0; transform: rotate(-9deg) scale(1.9); }
  to { opacity: 0.92; transform: rotate(-9deg) scale(1); }
}
.sheet--white.is-sent .grid { opacity: 0.55; }
.sheet--white.is-sent .grid * { pointer-events: none; }

/* ---------- yellow & pink sheet content ---------- */
.prepared {
  margin: 0 0 22px;
  font-weight: 600;
  font-size: 1.0625rem;
}
.echo {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--ball);
  opacity: 0.9;
  text-shadow: 0 0 1.5px rgba(26, 51, 174, 0.35);
  padding: 0 4px;
  border-bottom: 1.5px solid var(--rule-soft);
}
.echo:empty::before { content: attr(data-empty); font-family: var(--print); font-size: 1rem; color: #2b3a63; opacity: 1; text-shadow: none; }

.rule-head {
  font-stretch: 75%;
  font-weight: 850;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 14px;
}
.rule-head--gap { margin-top: 44px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.lines p { max-width: 58ch; }

.fineprint { margin-top: 14px; font-size: 0.9375rem; max-width: 64ch; color: #2b3a63; }

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1.5px solid var(--rule-soft);
  align-items: baseline;
}
.steps__n { font-size: 2rem; font-weight: 700; line-height: 1; text-align: center; }
.steps p { max-width: 46ch; }

.lines li {
  position: relative;
  padding: 12px 0 12px 38px;
  border-bottom: 1.5px solid var(--rule-soft);
}
.lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M4 16c4 3 7 6 9 10C16 15 21 8 27 4' fill='none' stroke='%231a33ae' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* sample job */
.lede { max-width: 60ch; margin-bottom: 22px; font-weight: 500; }
.demo {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.site { display: flex; flex-direction: column; }
.site__page { flex: 1; }
.demo figure { margin: 0; position: relative; }
.demo figcaption { margin-top: 10px; font-size: 0.9375rem; max-width: 50ch; color: #3a2a30; font-weight: 500; }

.site__tape {
  position: absolute;
  top: -12px;
  left: 14px;
  z-index: 2;
  padding: 4px 12px;
  background: var(--ink);
  color: #fff;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.site__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #e3e5ea;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
}
.site__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #9aa0ad; }
.site__chrome span { margin-left: 8px; font-size: 0.8125rem; color: #3c4252; }
.site__page {
  border: 1.5px solid var(--ink);
  background: #fff;
  overflow: hidden;
  font-family: var(--print);
}
.site__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #2c3a2f;
  color: #f2efe4;
  font-size: 0.9375rem;
}
.site__top strong { font-stretch: 80%; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.site__hero { padding: 22px 18px 20px; background: #e9e4d2; }
.site__hero h3 {
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.12;
  color: #1f2b21;
  max-width: 24ch;
  text-wrap: balance;
}
.site__btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  background: #b3470d;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}
.site__towns { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 4px; }
.site__towns span {
  padding: 4px 10px;
  border: 1.5px solid #2c3a2f;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2c3a2f;
}
.site__pages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 16px 18px; font-size: 0.875rem; line-height: 1.4; color: #2a2f2a; }
.site__pages b { font-size: 0.9375rem; color: #1f2b21; }

.serp { background: #fff; border: 1.5px solid var(--ink); padding: 18px 16px 16px; }
.site__tape--serp { background: var(--rule); }
.serp__bar {
  padding: 9px 14px;
  border: 1.5px solid #c9ced9;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: #2d3347;
}
.serp__ai { margin-top: 12px; padding: 10px 12px; background: #eef1f8; border-radius: 8px; font-size: 0.9375rem; line-height: 1.4; }
.serp__ai small { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rule); margin-bottom: 2px; }
.serp__ai b { font-weight: 700; }
.gstamp__body--sub { margin-top: 4px; font-weight: 500; }
.serp__web { margin-top: 14px; padding-top: 12px; border-top: 1.5px solid #dde1ea; display: grid; gap: 10px; }
.serp__web li { font-size: 0.9375rem; line-height: 1.3; }
.serp__web small { display: block; font-size: 0.8125rem; color: #4b5368; }
.serp__web b { color: #1b3fa6; font-weight: 600; }
.serp__web .dim b { color: #6a7388; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
}
.facts p { font-size: 1rem; line-height: 1.45; max-width: 36ch; }
.facts strong { display: block; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1.1; margin-bottom: 4px; }

/* signature block */
.signed {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.signed__photo { margin: 0; padding: 8px; background: var(--paper); box-shadow: 0 14px 22px -14px rgba(0, 0, 0, 0.5); }
.signed__photo img { display: block; width: 100%; height: auto; }
.signed__body { display: grid; gap: 22px; min-width: 0; }
.signed__line { display: flex; align-items: flex-end; gap: 14px; max-width: 520px; }
.signed__label {
  margin: 0;
  padding-bottom: 6px;
  font-stretch: 75%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rule);
}
.signed__rule { flex: 1; min-width: 0; border-bottom: 2px solid var(--ink); padding: 0 8px; }
.signed__sig { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1.05; margin-bottom: -4px; transform: rotate(-1.5deg); transform-origin: left bottom; white-space: nowrap; }
.signed__text { display: grid; gap: 10px; max-width: 58ch; }
.back {
  justify-self: start;
  margin-top: 6px;
  padding: 14px 24px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-stretch: 75%;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.2rem;
}
.back:hover { background: var(--red-dark); }

/* ---------- footer ---------- */
.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  color: var(--on-desk);
  font-size: 0.9375rem;
  display: grid;
  gap: 6px;
}
.foot .addr { font-style: normal; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .demo { grid-template-columns: minmax(0, 1fr); }
  .cell--hero { grid-column: span 12; }
  .cell--stamp { grid-column: span 12; padding: 18px 14px; }
  .cell--stamp .gstamp { max-width: 440px; margin: 0 auto; }
  .cell--customer, .cell--town { grid-column: span 6; }
  .cell--service { grid-column: span 12; }
  .cell--email { grid-column: span 7; }
  .cell--cell { grid-column: span 5; }
  .cell--send { grid-column: span 12; }
  .cell--hero { order: 1; } .cell--customer { order: 2; } .cell--town { order: 3; } .cell--service { order: 4; }
  .cell--stamp { order: 5; } .cell--types { order: 6; } .cell--email { order: 7; } .cell--cell { order: 8; } .cell--send { order: 9; } .status { order: 10; }
}

@media (max-width: 640px) {
  .deskbar { gap: 12px; }
  .deskbar__nav { display: none; }
  .deskbar__mark { font-size: 1.05rem; }
  .form-head { grid-template-columns: 1fr; grid-template-areas: "wo" "biz" "tag"; }
  .wo { text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .wo__no { margin-top: 0; }
  .wo__no--small { text-align: left; }
  .form-head--small { grid-template-areas: "biz" "wo"; }
  .cell--customer, .cell--town, .cell--email, .cell--cell { grid-column: span 12; }
  .copytag { flex-direction: column; gap: 2px; }
  .hand-title { margin-left: 10px; margin-right: 10px; }
  .hero-print { margin-left: 10px; margin-right: 10px; }
  .site__pages { grid-template-columns: 1fr; }
  .signed { grid-template-columns: minmax(0, 1fr); }
  .signed__photo { max-width: 260px; }
  .stamp-received { left: auto; right: 4%; top: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet--white.is-sent .stamp-received { animation: none; }
}


/* ---------- pad: flip-book on large screens, set up by script.js ---------- */
.pad__head { display: none; }

body.is-flip main { padding-top: 8px; padding-bottom: 0; }
body.is-flip .pad__stage {
  position: sticky;
  top: var(--bar, 64px);
  height: var(--stage-h);
  clip-path: inset(0 -80px -30px -80px);
}
body.is-flip .pad__head {
  display: block;
  position: absolute;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  width: min(1120px, 100%);
  margin: 0 auto;
  height: 26px;
  background: #8f1d13;
  border-bottom: 3px solid #5e130c;
  box-shadow: 0 8px 12px -8px rgba(0, 0, 0, 0.7);
}
body.is-flip .sheet {
  position: absolute;
  top: var(--sheet-top, 14px);
  left: 0;
  right: 0;
  width: min(1120px, 100%);
  height: var(--page-h);
  margin: 0 auto;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform, opacity;
  box-shadow: 0 14px 22px -16px rgba(0, 0, 0, 0.7);
}
body.is-flip .sheet__in { transform-origin: 0 0; }
body.is-flip .foot { padding-top: 24px; }

html, body, .pad { overflow-x: clip; }
@media (max-width: 959px) { body:not(.is-flip) .sheet:not(:last-child) { margin-bottom: 18px; } }

/* ---------- phones: every sheet fits one screen ---------- */
@media (max-width: 640px) {
  body.is-flip main { padding-left: 10px; padding-right: 10px; }
  body.is-flip .pad__head { height: 16px; border-bottom-width: 2px; }
  :root { --sheet-pad: 14px; }
  .form-head { gap: 4px; padding-bottom: 8px; }
  .biz__line, .copytag--date { display: none; }
  .wo__title { font-size: 2.1rem; }
  .wo__no { font-size: 1.3rem; }
  .biz__name { font-size: 1.05rem; }
  .hand-title { --size: 1.8rem; margin: 8px 10px 2px; }
  .hero-print { font-size: 0.95rem; margin-top: 4px; }
  .cell--hero { padding-bottom: 8px; }
  .cell--stamp { padding: 10px 12px 12px; }
  .gstamp { padding: 8px 10px; }
  .gstamp__top { font-size: 1.35rem; }
  .gstamp__body { margin-top: 4px; font-size: 0.85rem; line-height: 1.3; }
  .cell--customer, .cell--town { grid-column: span 6; }
  .cell--email { grid-column: span 7; }
  .cell--cell { grid-column: span 5; }
  .cell__label { padding: 5px 8px 0; font-size: 0.72rem; }
  .ink-input { min-height: 38px; padding: 0 8px 4px; font-size: 1.25rem; }
  .ink-input::placeholder, select.ink-input:invalid { font-size: 0.95rem; }
  .cell--types { padding-top: 22px; flex-wrap: nowrap; }
  .opt { flex: 1 1 50%; gap: 8px; padding: 6px 8px 8px; min-height: 44px; align-items: center; }
  .opt__box { width: 26px; height: 26px; background-size: 22px 22px; margin-top: 0; }
  .opt__text strong { font-size: 0.95rem; }
  .opt__text small { display: none; }
  .send { min-height: 54px; }
  .send__main { font-size: 1.45rem; }

  .split { gap: 18px; }
  .rule-head { font-size: 1.3rem; }
  .lines li { padding: 8px 0 8px 32px; }
  .lines li::before { top: 8px; width: 20px; height: 20px; }
  .steps li { padding-top: 8px; padding-bottom: 8px; }
  .prepared { margin-bottom: 12px; font-size: 0.95rem; }

  .demo { gap: 14px; }
  .site__pages { display: none; }
  .serp__web li:nth-child(n+2) { display: none; }

  .signed { gap: 18px; grid-template-columns: minmax(0, 1fr); }
  .signed__photo { padding: 5px; width: 58%; max-width: 230px; }
  .signed__sig { font-size: 2.1rem; }
}

/* ---------- short, wide screens (phones on their side): desktop columns, tight spacing ---------- */
@media (max-height: 520px) and (min-width: 600px) {
  body.is-flip main { padding-left: 12px; padding-right: 12px; }
  body.is-flip .pad__head { height: 14px; border-bottom-width: 2px; }
  :root { --sheet-pad: 12px; }
  .deskbar { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
  .deskbar__cta { padding-top: 6px; padding-bottom: 6px; }
  .split, .demo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .cell--hero { grid-column: span 8; order: 0; }
  .cell--stamp { grid-column: span 4; order: 0; padding: 8px; }
  .cell--customer { grid-column: span 5; order: 0; }
  .cell--town { grid-column: span 4; order: 0; }
  .cell--service { grid-column: span 3; order: 0; }
  .cell--types { order: 0; padding-top: 20px; }
  .cell--email { grid-column: span 5; order: 0; }
  .cell--cell { grid-column: span 3; order: 0; }
  .cell--send { grid-column: span 4; order: 0; }
  .status { order: 0; }
  .form-head { padding-bottom: 6px; }
  .biz__line, .copytag--date { display: none; }
  .wo__title { font-size: 1.9rem; }
  .wo__no { font-size: 1.2rem; margin-top: 2px; }
  .hand-title { --size: 1.7rem; margin: 6px 10px 2px; }
  .hero-print { font-size: 0.9rem; margin-top: 2px; }
  .gstamp { padding: 6px 8px; }
  .gstamp__top { font-size: 1.25rem; }
  .gstamp__body { font-size: 0.8rem; margin-top: 2px; line-height: 1.25; }
  .cell__label { padding: 4px 8px 0; font-size: 0.7rem; }
  .ink-input { min-height: 34px; padding: 0 8px 3px; font-size: 1.15rem; }
  .opt { min-height: 38px; padding: 4px 10px 6px; align-items: center; }
  .opt__box { width: 24px; height: 24px; background-size: 20px 20px; margin-top: 0; }
  .opt__text small { display: none; }
  .send { min-height: 44px; }
  .send__main { font-size: 1.35rem; }
  .rule-head { font-size: 1.2rem; }
  .lines li { padding: 6px 0 6px 30px; }
  .lines li::before { top: 6px; width: 20px; height: 20px; }
  .steps li { padding-top: 6px; padding-bottom: 6px; }
  .prepared { margin-bottom: 10px; }
  .site__pages { display: none; }
  .serp__web li:nth-child(n+2) { display: none; }
  .signed { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
}

/* ---------- pen hint on the first blank ---------- */
.pen-hint {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  cursor: text;
  z-index: 2;
  transition: opacity 0.25s ease;
}
.pen-hint__pen { display: block; width: 100%; height: 100%; transform-origin: 8% 92%; }
.pen-hint__tip {
  position: absolute;
  right: -2px;
  bottom: calc(100% + 8px);
  padding: 4px 9px 5px;
  border-radius: 6px;
  background: var(--ball);
  color: #fff;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.pen-hint__tip::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--ball);
}
.cell--customer .ink-input { padding-right: 46px; }
@media (prefers-reduced-motion: no-preference) {
  .pen-hint__pen { animation: pen-wiggle 1.8s ease-in-out infinite; }
  .pen-hint__tip { animation: tip-bob 1.8s ease-in-out infinite; }
}
@keyframes pen-wiggle {
  0%, 55%, 100% { transform: rotate(0deg) translate(0, 0); }
  62% { transform: rotate(-9deg) translate(-2px, 1px); }
  69% { transform: rotate(7deg) translate(2px, -1px); }
  76% { transform: rotate(-6deg) translate(-1px, 1px); }
  83% { transform: rotate(4deg) translate(1px, 0); }
  90% { transform: rotate(-2deg); }
}
@keyframes tip-bob {
  0%, 55%, 100% { transform: translateY(0); }
  68% { transform: translateY(-3px); }
}
.grid.is-started .pen-hint,
.cell--customer:has(.ink-input:not(:placeholder-shown)) .pen-hint { opacity: 0; pointer-events: none; }
.grid.is-started .pen-hint__pen, .grid.is-started .pen-hint__tip { animation: none; }
@media (max-width: 640px) {
  .pen-hint { width: 28px; height: 28px; right: 6px; bottom: 5px; }
  .pen-hint__tip { font-size: 0.9rem; padding: 3px 7px 4px; bottom: calc(100% + 6px); }
  .pen-hint__tip::after { right: 10px; border-width: 5px; }
  .cell--customer .ink-input { padding-right: 38px; }
}

/* ---------- printed header repeated on the yellow and pink copies, in carbon grey tinted to each paper ---------- */
.sheet--yellow .form-head--copy { --copy-ink: #545039; }
.sheet--pink .form-head--copy { --copy-ink: #5a4248; }
.form-head--copy .biz__name,
.form-head--copy .wo__title,
.form-head--copy .biz__line,
.form-head--copy .copytag,
.form-head--copy .wo__no,
.form-head--copy .copytag__date .ink { color: var(--copy-ink); }
.form-head--copy .copytag { border-top-color: var(--copy-ink); }
.form-head--copy { margin-bottom: 14px; }

/* ---------- sample job: typed address, page load, pointer, typed search ---------- */
.site__chrome { position: relative; }
.site__chrome .url {
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  padding: 3px 8px;
  background: #fff;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: #3c4252;
  white-space: nowrap;
  overflow: hidden;
}
.site__chrome .url span { margin: 0; }
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.15em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: middle;
  opacity: 0;
}
.demo .is-caret .caret { opacity: 1; animation: caret-blink 1s steps(1) infinite; }
.demo .is-caret.is-typing .caret { animation: none; opacity: 1; }
@keyframes caret-blink { 50% { opacity: 0; } }
.site__load {
  position: absolute;
  left: 0;
  bottom: -1.5px;
  height: 2.5px;
  width: 0;
  background: var(--rule);
  opacity: 0;
}
.serp { display: flex; flex-direction: column; }
.serp__bar { display: flex; align-items: center; }
.mouse {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
  transition: transform 0.85s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s ease;
}
.mouse path { transform-box: fill-box; transform-origin: 0 0; transition: transform 0.12s ease; }
.mouse.is-down path { transform: scale(0.85); }
.js-chip, .js-btn { transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.js-chip.is-hit { background: #2c3a2f; color: #fff; }
.js-btn.is-hit { background: #8e3609; transform: translateY(1px); }

/* hidden until the animation reveals them; only when script has armed the demo */
.demo.is-armed .site__page > *,
.demo.is-armed .serp__ai,
.demo.is-armed .serp__web li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo.is-armed .serp__web { border-top-color: transparent; transition: border-color 0.4s ease; }
.demo.is-armed .serp__web.is-in { border-top-color: #dde1ea; }
.demo.is-armed .is-in { opacity: 1 !important; transform: none !important; }

/* ---------- kind of work: type or pick ---------- */
.ink-input--combo {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5 8 8l6.5-6.5' fill='none' stroke='%232f50a1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.cell--service { z-index: 5; }
.combo {
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: 100%;
  z-index: 10;
  max-height: 228px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.35);
}
.combo li {
  padding: 9px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.combo li mark { background: none; color: var(--ball); font-weight: 700; }
.combo li[aria-selected="true"], .combo li:hover { background: rgba(26, 51, 174, 0.08); }
.combo__own { color: var(--rule) !important; font-style: italic; }
@media (max-width: 640px) {
  .combo li { padding: 10px 10px; }
  .combo { max-height: 200px; }
}

/* ---------- what you get: title plus one plain line ---------- */
.lines p { max-width: 60ch; }
.lines b { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.lines p span { display: block; margin-top: 2px; font-size: 0.975rem; line-height: 1.45; color: #2b3044; }
@media (max-width: 640px) {
  .lines b { font-size: 0.98rem; }
  .lines p span { font-size: 0.9rem; line-height: 1.4; }
  .steps p { font-size: 0.95rem; line-height: 1.4; }
}
.prepared .echo { white-space: nowrap; }

/* ---------- last card: a plain white note from the two of us ---------- */
.sheet--note { background: var(--paper); box-shadow: 0 14px 22px -16px rgba(0, 0, 0, 0.7); }
.why__title {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--ball);
}
.signed__text { display: grid; gap: 12px; max-width: 58ch; }
.signed__text p { font-size: 1.0625rem; line-height: 1.55; }
.signed__body .back { justify-self: start; }
@media (max-width: 640px) {
  .why__title { font-size: 2rem; }
  .signed__text { gap: 8px; }
  .signed__text p { font-size: 0.95rem; line-height: 1.45; }
  .signed__photo { width: 44%; max-width: 180px; }
}
@media (max-height: 520px) and (min-width: 600px) {
  .why__title { font-size: 1.8rem; }
  .signed__body { gap: 12px; }
  .signed__text { gap: 6px; }
  .signed__text p { font-size: 0.9rem; line-height: 1.4; }
}
.sheet--note .signed { align-items: start; }
.sheet--note .signed__photo { margin-top: 8px; }
.sheet--note .signed { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); max-width: 1000px; margin: 0 auto; }
.sheet--note .signed__photo { margin-top: 6px; transform: rotate(-2deg); }
.sheet--note .signed__body { gap: 18px; }
.sheet--note .why__title { margin-bottom: -4px; }
@media (max-width: 640px) {
  .sheet--note .signed { grid-template-columns: 140px minmax(0, 1fr); gap: 16px 18px; align-items: end; }
  .sheet--note .signed__photo { width: auto; max-width: none; margin-top: 0; padding: 4px; }
  .sheet--note .signed__body { display: contents; }
  .sheet--note .why__title { align-self: end; margin: 0 0 4px; }
  .sheet--note .signed__text, .sheet--note .signed__line, .sheet--note .back { grid-column: 1 / -1; }
  .sheet--note .back { justify-self: start; }
}
