/* Sections. One steel ground; each section has its own object, paper surface and scale:
   01 lock screen + blank pad · 02 thermal call log + worksheet · 03 pinned phone + ticket pad
   04 pegboard with four dispatch objects · 05 clipboard · 06 card file + lined answer sheet
   07 estimate in triplicate · 08 the next slip, then the pad's dark backing board. */

/* =====================================================================
   01 HERO
   ===================================================================== */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter) 36px;
  display: grid;
  gap: 40px;
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(2.625rem, 1.05rem + 4.1vw, 5.125rem);
  max-width: 6.3em;
}
.hero-lede {
  margin-top: 22px;
  max-width: 30ch;
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.4;
  font-weight: 500;
}
.hero-stakes {
  margin-top: 16px;
  max-width: 46ch;
  font-weight: 650;
  line-height: 1.45;
}
.hero-body { margin-top: 14px; max-width: 50ch; color: var(--ink-soft); }
.hero-actions { margin-top: 26px; }
.hero-status { margin-top: 18px; color: var(--ink-mute); }

/* The scene: the shop's lock screen in front of a blank message pad */
.hero-scene {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.lock {
  position: relative;
  z-index: 2;
  width: min(100%, 300px);
  height: 430px;
  padding: 9px;
  border-radius: 40px;
  background: var(--phone);
  box-shadow: 0 2px 2px rgba(15, 29, 40, 0.2), 0 36px 60px -26px rgba(15, 29, 40, 0.7);
}
.lock::before {
  /* the speaker notch */
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 70px;
  height: 18px;
  margin-left: -35px;
  border-radius: 10px;
  background: #05090C;
  z-index: 1;
}
.lock-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 12px 14px;
  border-radius: 32px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(220, 227, 230, 0.16), transparent 70%),
    linear-gradient(175deg, #2E3F4B 0%, #18252F 55%, #0F171D 100%);
  color: #FFFFFF;
  overflow: hidden;
}
.lock-time {
  font-family: var(--font-headline);
  font-weight: 600;
  font-variation-settings: "wdth" 78;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lock-date { margin-top: 4px; font-size: 0.9375rem; opacity: 0.85; }
.notes { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(243, 246, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.7);
  transition: transform 560ms var(--ease-out), opacity 320ms ease;
}
.note-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.875rem; line-height: 1.25; }
.note-body b { font-weight: 700; }
.note-body span { color: var(--ink-soft); }
.note-time { align-self: flex-start; font-size: 0.75rem; color: var(--ink-soft); }

/* hero.js: the three calls arrive one by one, once */
.hero-scene.is-armed .note:not(.is-in) { opacity: 0; transform: translateY(-22px) scale(0.95); }
.lock.is-buzz { animation: buzz 520ms linear; }
@keyframes buzz {
  0%, 100% { transform: rotate(0); }
  12% { transform: rotate(-1.6deg) translateX(-1px); }
  26% { transform: rotate(1.6deg) translateX(1px); }
  40% { transform: rotate(-1.1deg); }
  54% { transform: rotate(1.1deg); }
  70% { transform: rotate(-0.4deg); }
}
@media (hover: hover) and (pointer: fine) {
  .hero-scene:not(.is-armed) .note:hover,
  .hero-scene.is-armed .note.is-in:hover { transform: translateY(-3px); }
}

.hero-pad {
  position: absolute;
  z-index: 1;
  top: 34px;
  right: max(-8px, calc(50% - 250px));
  width: 230px;
  transform: rotate(5deg);
}
.hero-pad .slip { padding: 30px 16px 18px; }
.hero-pad .slip-serial { left: 16px; top: 10px; }
.hero-pad .slip-title { font-size: 1.5rem; }
.hero-scene .scene-note { justify-self: start; }

@media (min-width: 560px) {
  .lock { height: 470px; }
  .hero-pad { width: 280px; right: calc(50% - 300px); }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5.4fr);
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 52px;
    min-height: calc(100svh - 69px);
  }
  .hero-scene {
    grid-template-columns: 300px minmax(0, 1fr);
    justify-items: start;
    align-items: start;
  }
  /* The blank pad sits up and to the right, its title clear; the phone stands in front of its lower corner */
  .lock { grid-column: 1; grid-row: 1; width: 300px; height: 540px; margin-top: 120px; }
  .hero-pad {
    position: relative;
    grid-column: 1 / 3;
    grid-row: 1;
    top: auto;
    right: auto;
    justify-self: end;
    width: min(390px, 100%);
    margin-top: 0;
    transform: rotate(2.5deg);
  }
  .hero-pad .slip { padding: 34px 22px 22px; }
  .hero-pad .slip-title { font-size: 2rem; }
  .hero-scene .scene-note { grid-column: 1 / 3; }
}

/* =====================================================================
   02 PROBLEM + CALCULATOR
   ===================================================================== */

.opportunity { padding: 44px 0 96px; }
.opp-grid { margin-top: 44px; display: grid; gap: 28px; align-items: start; }

/* The worksheet */
.worksheet {
  position: relative;
  padding: 26px 20px 28px;
  background-color: var(--copy);
  background-image: url("../assets/paper-grain.svg");
  border-top: 6px solid var(--ink);
  box-shadow: var(--shadow-paper);
}
.ws-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--steel-dark);
}
.ws-form {
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ws-flag {
  padding: 3px 8px;
  border: 1.5px solid var(--print);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--print);
}
.ws-title {
  margin-top: 18px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 74;
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  line-height: 1;
  text-wrap: balance;
}
.ws-intro { margin-top: 12px; max-width: 60ch; color: var(--ink-soft); }

.ws-fields { margin-top: 26px; display: grid; gap: 22px; }
.ws-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  font-size: 1rem;
  line-height: 1.3;
}
.ws-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--print);
  border-radius: 50%;
  font-family: var(--font-data);
  font-size: 0.6875rem;
  color: var(--print);
  transform: translateY(-2px);
}
.ws-input {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  border-bottom: 2px solid var(--ink);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.ws-input:focus-within { border-bottom-color: var(--ballpoint); background: var(--ballpoint-soft); }
.ws-input input {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 1.5rem;
  color: var(--ballpoint);
  outline: none;
}
.ws-input input::placeholder { color: var(--ink-mute); font-size: 1rem; opacity: 1; }
.ws-prefix, .ws-unit {
  flex: none;
  font-family: var(--font-data);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.ws-prefix { font-size: 1.25rem; color: var(--ballpoint); padding-left: 4px; }
.ws-unit { padding-right: 4px; }
.ws-hint { margin-top: 8px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); }
.ws-msg { margin-top: 4px; font-size: 0.875rem; font-weight: 600; color: var(--print); }
.ws-msg:empty { display: none; }
.ws-field.is-invalid .ws-input { border-bottom-color: var(--print); }

/* Rate: a slider (0–25) plus an exact field (0–100); nothing is chosen until the visitor chooses */
.ws-rate { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; align-items: end; }
.ws-slider { position: relative; padding: 18px 0 22px; }
.ws-slider input {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.ws-slider input::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--steel-dark);
  border-radius: 2px;
}
.ws-slider input::-moz-range-track { height: 4px; background: var(--steel-dark); border-radius: 2px; }
.ws-slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 3px solid var(--copy);
  border-radius: 3px;
  background: var(--ballpoint);
  box-shadow: 0 0 0 1.5px var(--ballpoint), 0 4px 8px -3px rgba(15, 29, 40, 0.5);
  transform: rotate(45deg);
}
.ws-slider input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--copy);
  border-radius: 3px;
  background: var(--ballpoint);
  box-shadow: 0 0 0 1.5px var(--ballpoint);
  transform: rotate(45deg);
}
/* Scale under the track: each label centred on its tick (thumb travel is inset by half the thumb) */
.ws-scale {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 14px;
  font-family: var(--font-data);
  font-size: 0.6875rem;
  line-height: 14px;
  color: var(--ink-mute);
}
.ws-scale span { position: absolute; top: 0; transform: translateX(-50%); }
.ws-scale span:nth-child(1) { left: 0; }
.ws-scale span:nth-child(2) { left: 20%; }
.ws-scale span:nth-child(3) { left: 40%; }
.ws-scale span:nth-child(4) { left: 60%; }
.ws-scale span:nth-child(5) { left: 80%; }
.ws-scale span:nth-child(6) { left: 100%; }
.ws-unset-note {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translate(-50%, -50%);
  padding: 2px 10px;
  border: 1.5px dashed var(--print);
  background: var(--copy);
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--print);
  white-space: nowrap;
  pointer-events: none;
}
.ws-field-rate:not(.is-unset) .ws-unset-note { display: none; }
.ws-field-rate.is-unset .ws-slider input::-webkit-slider-thumb { opacity: 0; }
.ws-field-rate.is-unset .ws-slider input::-moz-range-thumb { opacity: 0; }
.ws-input-rate { margin-top: 0; }
.ws-input-rate input { text-align: right; }

/* Result */
.ws-result {
  margin-top: 28px;
  display: grid;
  border: 1.5px solid var(--ink);
}
.ws-scenario, .ws-measured { padding: 18px 18px 20px; }
.ws-measured { border-top: 1.5px solid var(--ink); background: rgba(206, 215, 219, 0.35); }
.ws-col-head {
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ws-out-label { margin-top: 8px; font-weight: 700; font-size: 0.9375rem; }
.ws-amount {
  margin-top: 4px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: clamp(3rem, 2rem + 3.4vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ballpoint);
}
.ws-scenario.is-empty .ws-amount { color: var(--steel-dark); }
.ws-empty { margin-top: 8px; font-weight: 600; color: var(--print); }
.ws-jobs { margin-top: 8px; color: var(--ink-soft); }
.ws-jobs strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.ws-measured-value {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px 4px;
  border: 2px dashed var(--ink-soft);
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 74;
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem);
  line-height: 1.1;
  color: var(--ink-soft);
}
.ws-measured-text { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }

.ws-disclosure {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--print);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* The calculation tape */
.tape {
  margin-top: 22px;
  padding: 16px 16px 14px;
  background: var(--copy-shade);
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.8125rem;
  -webkit-mask: radial-gradient(circle 3px at 50% 0, transparent 97%, #000) 0 0 / 10px 100% repeat-x;
  mask: radial-gradient(circle 3px at 50% 0, transparent 97%, #000) 0 0 / 10px 100% repeat-x;
}
.tape-head { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.tape-lines { margin-top: 6px; }
.tape-lines li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--steel-dark);
  color: var(--ink-soft);
}
.tape-lines b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tape-lines b.is-changed { animation: tick 520ms var(--ease-out); }
@keyframes tick {
  0% { color: var(--ballpoint); background: var(--ballpoint-soft); }
  100% { background: transparent; }
}
/* Gross, not net: stays visible next to the result while the tape is folded away */
.ws-net {
  margin-top: 10px;
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.8125rem;
  color: var(--print);
}

/* "Show the math": the tape and the formula, folded away until asked for */
.ws-explain { margin-top: 12px; }
.ws-explain .tape { margin-top: 6px; }
.ws-explain summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  list-style: none;
}
.ws-explain summary::-webkit-details-marker { display: none; }
.ws-explain summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-data);
  font-size: 0.875rem;
  transition: transform 200ms var(--ease-out);
}
.ws-explain[open] summary::before { content: "−"; }
.ws-explain > p { margin-top: 12px; max-width: 70ch; font-size: 0.9375rem; color: var(--ink-soft); }
.ws-explain code { font-family: var(--font-data); font-size: 0.8125rem; color: var(--ink); }
.ws-nojs { margin-top: 12px; font-size: 0.875rem; color: var(--print); }
html.js .ws-nojs { display: none; }
.ws-actions { margin-top: 24px; }

@media (min-width: 720px) {
  .worksheet { padding: 32px 36px 36px; }
  .ws-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
  .ws-field-rate { grid-column: 1 / -1; }
  .ws-result { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .ws-measured { border-top: 0; border-left: 1.5px solid var(--ink); }
  .ws-scenario, .ws-measured { padding: 22px 24px 24px; }
}

/* =====================================================================
   03 HOW IT WORKS (scroll story; engine from scroll-story-v1)
   ===================================================================== */

.story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.story .intro { padding-bottom: 32px; }

.chapter {
  position: relative;
  padding: 24px 0 24px 22px;
  border-left: 2px solid var(--steel-line);
  transition: border-color 300ms ease;
}
.chapter::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--steel);
  border: 2px solid var(--steel-line);
  transition: background-color 300ms ease, border-color 300ms ease;
}
.chapter.is-active,
.chapter.is-past { border-left-color: var(--ballpoint); }
.chapter.is-active::before,
.chapter.is-past::before { background: var(--ballpoint); border-color: var(--ballpoint); }
.chapter-num {
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.chapter-num span { color: var(--print); font-weight: 600; }
.chapter-title {
  margin-top: 8px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 74;
  font-size: clamp(1.75rem, 1.15rem + 1.5vw, 2.5rem);
  line-height: 1.02;
  text-wrap: balance;
  max-width: 14em;
}
.chapter-text { margin-top: 12px; max-width: 40ch; color: var(--ink-soft); }
.chapter-cta { margin-top: 22px; }

.phone-block { position: relative; z-index: 2; width: 100%; max-width: 420px; margin: 4px 0 30px; }

.story .thread {
  --thread-h: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: var(--thread-h);
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  background: var(--screen);
}
.thread-list {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px 16px;
  transition: transform 420ms var(--ease-out);
}
.story.is-running .thread { justify-content: flex-start; }

/* The missed call, already seen in the hero: shown still, then put away */
.call-card { display: none; }
.story.is-running .call-card:not(.is-done) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: calc(var(--thread-h) - 30px);
  text-align: center;
}
.call-card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--print);
  color: #FFFFFF;
}
.call-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.call-card-title { font-weight: 750; font-size: 1.125rem; color: var(--print); }
.call-card-sub { font-size: 0.875rem; color: var(--ink-soft); }
.story.is-running .call-card:not(.is-done) ~ li { display: none !important; }

.story.is-running .thread [data-beat]:not(.is-on) { visibility: hidden; }
.story.is-running .thread .is-new { animation: msg-in 380ms var(--ease-out) both; }
.story.is-typing .typing { display: flex; animation: msg-in 260ms var(--ease-out) both; }

.phone-step { display: none; }
.story.is-running .phone-step {
  display: inline-flex;
  margin: 12px 0 0 6px;
  padding: 4px 10px;
  border: 1.5px solid var(--ballpoint);
  border-radius: 2px;
  background: var(--copy);
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.8125rem;
  color: var(--ballpoint);
}
.phone-step.is-changed { animation: label-swap 320ms var(--ease-out); }
@keyframes label-swap { from { transform: translateY(4px); opacity: 0.3; } }

.handoff-line {
  position: relative;
  margin: 4px 0 18px 22px;
  padding: 26px 0 26px 26px;
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.8125rem;
  color: var(--ballpoint);
}
.handoff-line::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px dashed var(--ballpoint); }
.handoff-line::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: -2px;
  border: 6px solid transparent;
  border-top: 8px solid var(--ballpoint);
  border-bottom: 0;
}
.handoff-line span { display: inline-block; padding: 3px 8px; background: var(--copy); border-radius: 2px; }

.pad-block { position: relative; z-index: 1; margin-bottom: 30px; }
.pad { position: relative; }
.story-note { margin-top: 18px; }
.rail { display: none; }

/* Story motion states */
.story.is-running .slip .ink[data-beat] { clip-path: inset(0 100% 0 0); transition: clip-path 620ms var(--ease-out); }
.story.is-running .slip .ink[data-beat].is-on { clip-path: inset(0 0 0 0); }
.story.is-running .slip-checks [data-beat] .box svg { stroke-dashoffset: 16; transition: stroke-dashoffset 320ms var(--ease-out); }
.story.is-running .slip-checks [data-beat].is-on .box svg { stroke-dashoffset: 0; }
.story.is-running .stamp:not(.is-on) { opacity: 0; transform: rotate(-7deg) scale(1.2); }
.story.is-running .stamp.is-new { animation: stamp-in 460ms var(--ease-out) both; }
.story.is-running .stamp.is-new::after { animation: ink-spread 620ms 180ms var(--ease-out) both; }
.pad.is-thud { animation: thud 260ms 230ms ease-out both; }
@keyframes thud { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(3px) scale(0.997); } }

/* The end of the story: the ticket is torn off and comes forward; the phone steps back */
.pad.is-torn .slip,
.pad.is-torn .tag-team { transform: translate(26px, -18px) rotate(2deg) scale(1.03); }
.story .phone { transition: opacity 600ms ease, translate 700ms var(--ease-paper); }
.story.is-final .phone { opacity: 0.4; translate: -18px 0; }

.story.is-instant *,
.story.is-instant *::before,
.story.is-instant *::after { transition: none !important; animation: none !important; }

@media (min-width: 560px) {
  .stamp { position: absolute; margin: 0; right: 26px; bottom: 20px; font-size: 1.625rem; }
  .slip-foot { padding-right: 170px; }
  .phone-block, .pad-block, .handoff-line { max-width: 560px; }
}

@media (min-width: 1024px) {
  .story {
    --lap: 140px;
    --phone-w: 254px;
    --margin: calc(var(--phone-w) - var(--lap));
    padding-top: 96px;
    grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
    grid-template-areas:
      "intro stage"
      "ch1   stage"
      "ch2   stage"
      "ch3   stage"
      "ch4   stage";
    column-gap: 56px;
  }
  .story .intro { grid-area: intro; min-height: 46svh; padding: 0 0 48px; }
  #ch-1 { grid-area: ch1; }
  #ch-2 { grid-area: ch2; }
  #ch-3 { grid-area: ch3; }
  #ch-4 { grid-area: ch4; }
  .chapter { min-height: 58svh; padding: 28px 0 48px 28px; align-self: start; }
  .chapter-last { min-height: 76svh; }

  .phone-block,
  .pad-block {
    grid-area: stage;
    align-self: start;
    position: sticky;
    top: max(24px, calc(50svh - 340px));
    margin: 0;
    max-width: none;
    transform: scale(var(--stage-scale, 1));
  }
  .phone-block { z-index: 3; justify-self: start; width: var(--phone-w); margin-top: 58px; transform-origin: 0 0; }
  .pad-block { justify-self: end; width: calc(100% - var(--lap)); transform-origin: calc(-1 * var(--lap)) 0; }
  .story .thread { --thread-h: 392px; }
  .story.is-running .phone-step { display: none; }
  .handoff-line { display: none; }

  .story .slip {
    padding-left: calc(var(--margin) + 28px);
    min-height: 560px;
    background-image: url("../assets/paper-grain.svg"), linear-gradient(to right, transparent calc(var(--margin) + 12px), var(--print-soft) calc(var(--margin) + 12px), var(--print-soft) calc(var(--margin) + 13px), transparent calc(var(--margin) + 13px));
  }
  .story .slip-serial { left: calc(var(--margin) + 28px); }
  .story .sheet-print { padding-left: calc(var(--margin) + 28px); }
  .story .tag-team { right: 24px; }
  .story-note { margin-left: var(--margin); max-width: 46ch; font-size: 0.875rem; }

  .rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
    padding-left: var(--margin);
  }
  .rail-track {
    position: absolute;
    top: 7px;
    left: calc(var(--margin) + (100% - var(--margin)) / 8);
    right: calc((100% - var(--margin)) / 8);
    height: 2px;
    background: repeating-linear-gradient(to right, var(--steel-dark) 0 6px, transparent 6px 11px);
  }
  .rail-fill { position: absolute; inset: 0; background: var(--ballpoint); transform-origin: 0 50%; transform: scaleX(0); }
  .rail-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-data);
    font-variation-settings: "wdth" 85;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--ink-soft);
    text-decoration: none;
  }
  .rail-stop:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .hole {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--steel);
    border: 2px solid var(--steel-dark);
    transition: background-color 250ms ease, border-color 250ms ease, transform 200ms var(--ease-out);
  }
  .rail-stop:hover .hole { transform: scale(1.15); }
  .rail-stop.is-done .hole { background: var(--ballpoint); border-color: var(--ballpoint); }
  .rail-stop.is-current { color: var(--ballpoint); font-weight: 600; }
  .rail-stop.is-current .hole { border-color: var(--ballpoint); box-shadow: 0 0 0 4px rgba(44, 62, 158, 0.18); }
}
@media (min-width: 1280px) {
  .story { --phone-w: 268px; }
}
@media (min-width: 1024px) and (max-height: 820px) { .story { --stage-scale: 0.92; } }
@media (min-width: 1024px) and (max-height: 740px) { .story { --stage-scale: 0.86; } }

/* =====================================================================
   04 WHY SAVERCALL — a pegboard with four dispatch objects
   ===================================================================== */

.why { padding: 96px 0 110px; }

.board {
  margin-top: 44px;
  display: grid;
  gap: 22px;
  padding: 22px 16px;
  border-radius: 10px;
  background-color: var(--steel-deep);
  background-image: radial-gradient(circle 2.2px at 12px 12px, rgba(27, 28, 30, 0.17) 97%, transparent);
  background-size: 24px 24px;
  box-shadow: inset 0 2px 8px rgba(15, 29, 40, 0.16), 0 1px 0 rgba(255, 255, 255, 0.7);
}

.reason { display: grid; gap: 18px; align-content: start; padding: 10px 4px 14px; }
.reason-text p:last-child { color: var(--ink-soft); }
.reason-num {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--print);
}
.reason-title {
  margin-top: 4px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 76;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  line-height: 1.04;
  text-wrap: balance;
}
.reason-sub { margin: 8px 0 8px; font-weight: 650; }

.artifact {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
/* the magnet holding each object to the board */
.artifact::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -8px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5A6A75, var(--ink) 70%);
  box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .artifact:hover { box-shadow: 0 1px 1px rgba(15, 29, 40, 0.12), 0 26px 40px -22px rgba(15, 29, 40, 0.55); }
}

/* 01 job tag */
.job-tag {
  max-width: 300px;
  padding: 40px 22px 20px;
  background-color: var(--copy);
  background-image: url("../assets/paper-grain.svg");
  clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  transform: rotate(-2.5deg);
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
}
.job-tag::before { display: none; }
.tag-hole {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--steel-deep);
  box-shadow: 0 0 0 5px rgba(165, 15, 57, 0.18);
}
.jt-kicker { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.jt-type {
  margin-top: 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--print);
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--print);
}
.jt-list li {
  padding: 9px 0 7px;
  border-bottom: 1px solid var(--steel-dark);
  font-size: 0.875rem;
  color: var(--ballpoint);
}
.jt-list li::before { content: "✓ "; color: var(--ballpoint); }
.jt-foot { margin-top: 12px; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }

/* 02 compare */
.compare {
  max-width: 420px;
  padding: 16px;
  background-color: var(--copy);
  background-image: url("../assets/paper-grain.svg");
  border-radius: 4px;
}
.compare-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}
.cmp-btn {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font-weight: 650;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.cmp-btn[aria-pressed="true"] { background: var(--ink); color: var(--copy); }
.cmp-btn[data-view="context"][aria-pressed="true"] { background: var(--ballpoint); }
.compare-stage { margin-top: 14px; display: grid; gap: 16px; }
.cmp-caption {
  margin-bottom: 8px;
  font-family: var(--font-data);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cmp-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 1px 0 #D3DBDF, 0 10px 18px -14px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
}
.cmp-notice span:not(.note-icon) { flex: 1; }
.cmp-notice time { font-size: 0.75rem; color: var(--ink-soft); }
.cmp-unknowns { margin-top: 10px; }
.cmp-unknowns div { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px dashed var(--steel-dark); }
.cmp-unknowns dt { font-size: 0.875rem; color: var(--ink-soft); }
.cmp-unknowns dd { font-family: var(--font-headline); font-weight: 800; font-size: 1.25rem; line-height: 1; color: var(--print); }
.mini-slip {
  padding: 20px 16px 14px;
  background-color: var(--paper);
  background-image: url("../assets/paper-grain.svg");
  -webkit-mask: radial-gradient(circle 3px at 50% 0, transparent 97%, #000) 0 0 / 11px 100% repeat-x;
  mask: radial-gradient(circle 3px at 50% 0, transparent 97%, #000) 0 0 / 11px 100% repeat-x;
}
.mini-title {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--print);
  font-family: var(--font-slip);
  font-weight: 850;
  font-variation-settings: "wdth" 66;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--print);
}
.mini-slip dl div { display: flex; gap: 10px; padding: 7px 0 5px; border-bottom: 1px solid var(--print-soft); }
.mini-slip dt { flex: none; width: 74px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--print); }
.mini-slip dd { font-family: var(--font-data); font-variation-settings: "wdth" 85; font-size: 0.8125rem; color: var(--ballpoint); }
.mini-foot { margin-top: 8px; font-size: 0.75rem; color: var(--print); }

/* site.js: one view at a time, switched by the visitor */
.compare.is-enhanced .compare-stage { display: grid; }
.compare.is-enhanced .cmp-panel { grid-area: 1 / 1; transition: opacity 280ms ease, transform 380ms var(--ease-out), visibility 0s linear 0s; }
.compare.is-enhanced .cmp-panel.is-off { opacity: 0; visibility: hidden; transform: translateY(10px) rotate(-1deg); transition: opacity 200ms ease, transform 300ms var(--ease-out), visibility 0s linear 300ms; }
.compare.is-enhanced .cmp-context:not(.is-off) .mini-slip dd { animation: write 560ms var(--ease-out) both; }
.compare.is-enhanced .cmp-context:not(.is-off) div:nth-child(2) dd { animation-delay: 90ms; }
.compare.is-enhanced .cmp-context:not(.is-off) div:nth-child(3) dd { animation-delay: 180ms; }
.compare.is-enhanced .cmp-context:not(.is-off) div:nth-child(4) dd { animation-delay: 270ms; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* 03 dispatch card */
.dispatch-card {
  max-width: 340px;
  padding: 30px 22px 22px;
  background-color: var(--copy);
  background-image: url("../assets/paper-grain.svg");
  border-top: 6px solid var(--ballpoint);
  transform: rotate(1.6deg);
}
.dc-kicker { font-family: var(--font-data); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.dc-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 8px; border-bottom: 1px solid var(--steel-dark); }
.dc-row span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.dc-row b { font-family: var(--font-data); font-variation-settings: "wdth" 85; font-weight: 500; font-size: 0.9375rem; color: var(--ballpoint); }
.dc-wont-label { margin-top: 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--print); }
.dc-wont li {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.dc-wont li::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 52%;
  height: 2px;
  background: var(--print);
  transform-origin: 0 50%;
  transform: rotate(-1.4deg);
}
.dispatch-card.is-armed li::after { transform: scaleX(0) rotate(-1.4deg); transition: transform 420ms var(--ease-paper); }
.dispatch-card.is-armed.is-in li::after { transform: scaleX(1) rotate(-1.4deg); }
.dispatch-card.is-armed.is-in li:nth-child(2)::after { transition-delay: 160ms; }
.dispatch-card.is-armed.is-in li:nth-child(3)::after { transition-delay: 320ms; }

/* 04 work order */
.work-order {
  max-width: 340px;
  padding: 30px 22px 20px;
  background-color: #FFFFFF;
  background-image: url("../assets/paper-grain.svg");
  border-top: 6px solid var(--ink);
  transform: rotate(-1.2deg);
}
.wo-kicker { font-family: var(--font-data); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.wo-for { margin-top: 6px; font-weight: 700; font-variation-settings: "wdth" 85; font-size: 1.0625rem; }
.wo-list { margin-top: 10px; }
.wo-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--steel-dark); font-size: 0.9375rem; }
.wo-foot { margin-top: 12px; font-family: var(--font-data); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--print); }

.trust {
  margin-top: 64px;
  display: grid;
  gap: 24px;
  justify-items: start;
  max-width: 900px;
}
.trust-quote {
  position: relative;
  padding-left: 36px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-variation-settings: "wdth" 84;
  font-size: clamp(1.5rem, 1.05rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  text-wrap: balance;
}
.trust-quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.18em;
  font-size: 2.6em;
  line-height: 1;
  color: var(--print);
}

@media (min-width: 720px) {
  .board { padding: 34px 30px; gap: 30px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason-2, .reason-4 { margin-top: 70px; }
}
@media (min-width: 1100px) {
  .board { padding: 44px 40px 48px; gap: 36px 48px; }
  .reason { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   05 DEMO — a clipboard the visitor operates
   ===================================================================== */

.demo { padding: 40px 0 110px; }

.clipboard {
  position: relative;
  max-width: 1080px;
  margin: 64px auto 0;
  padding: 40px 10px 10px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%),
    var(--ink);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25), 0 44px 80px -36px rgba(15, 29, 40, 0.75);
}
.clip {
  position: absolute;
  z-index: 2;
  top: -20px;
  left: 50%;
  width: 190px;
  height: 52px;
  margin-left: -95px;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(180deg, #EEF2F4 0%, #C1CCD2 55%, #9DABB3 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -2px 3px rgba(0, 0, 0, 0.25), 0 6px 10px -4px rgba(0, 0, 0, 0.5);
}
.clip::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 44px;
  height: 12px;
  margin-left: -22px;
  border-radius: 6px;
  background: var(--ink);
}
.clip-paper {
  position: relative;
  padding: 26px 16px 18px;
  border-radius: 4px;
  background-color: var(--copy);
  background-image: url("../assets/paper-grain.svg");
}
.demo-top { display: grid; gap: 14px; }
.demo-case { color: var(--ink-soft); text-transform: none; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-controls[hidden] { display: none; }
.demo-count { flex-basis: 100%; color: var(--ink-soft); text-transform: none; }

.demo-grid { margin-top: 20px; display: grid; gap: 20px; }
.demo-phone .phone { max-width: 380px; margin: 0 auto; }
.demo-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 380px;
  padding: 14px 12px 16px;
  overflow-y: auto;
  border-radius: 0 0 22px 22px;
  background: var(--screen);
  scroll-behavior: smooth;
}
.demo-thread [hidden] { display: none !important; }
.demo-thread .is-entering { animation: msg-in 360ms var(--ease-out) both; }

/* The opening card: the visitor starts the sample */
.start-card {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 8px;
  text-align: center;
}
.start-card .call-card-icon { margin-bottom: 4px; }
.start-kicker { font-family: var(--font-data); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--print); }
.start-issue { max-width: 26ch; font-size: 0.9375rem; color: var(--ink-soft); }
.start-card .btn { margin-top: 10px; }
.start-alt { font-size: 0.8125rem; color: var(--ink-soft); }

.dispatch {
  padding: 22px 18px 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--steel-deep);
}
.dispatch-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.dispatch-kicker { color: var(--ink-soft); }
.dstamp {
  padding: 3px 9px 4px;
  border: 2px solid var(--ink-soft);
  border-radius: 3px;
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transform: rotate(-2deg);
  transition: color 200ms ease, border-color 200ms ease;
}
.dstamp.is-ready { color: var(--ballpoint); border-color: var(--ballpoint); border-style: double; border-width: 3px; }
.dstamp.is-handled { color: #FFFFFF; background: var(--ballpoint); border-color: var(--ballpoint); }
.dstamp.is-pop { animation: pop 360ms var(--ease-out); }
@keyframes pop { 0% { transform: rotate(-2deg) scale(1.35); } 100% { transform: rotate(-2deg) scale(1); } }
.dispatch-title {
  margin-top: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--print);
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 74;
  font-size: 1.75rem;
  line-height: 1;
}
.dispatch-fields { display: grid; grid-template-columns: minmax(0, 1fr); }
.dfield { padding: 10px 0 8px; border-bottom: 1px solid var(--print-soft); }
.dfield dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--print); }
.dfield dd {
  margin-top: 3px;
  font-family: var(--font-data);
  font-variation-settings: "wdth" 85;
  font-size: 0.875rem;
  color: var(--ballpoint);
}
.dfield dd.is-pending { color: var(--ink-mute); }
.dfield dd.is-fresh { animation: fresh 900ms var(--ease-out); }
@keyframes fresh {
  0% { background: var(--ballpoint-soft); clip-path: inset(0 100% 0 0); }
  45% { clip-path: inset(0 0 0 0); }
  100% { background: transparent; }
}
.pending-dash { letter-spacing: 0.2em; }

.dispatch-prompt {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1.5px dashed var(--ballpoint);
  background: var(--ballpoint-soft);
  animation: msg-in 420ms var(--ease-out) both;
}
.prompt-label { color: var(--ballpoint); }
.prompt-text { margin-top: 4px; font-weight: 700; font-variation-settings: "wdth" 88; font-size: 1.125rem; line-height: 1.3; }

.demo-disclosure { margin-top: 18px; }
.demo-disclosure { display: flex; gap: 10px; font-size: 0.875rem; color: var(--ink-soft); }
.demo-disclosure svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* Phones: controls follow the reader down the clipboard */
@media (max-width: 899px) {
  .demo-top { display: contents; }
  .clip-paper { display: flex; flex-direction: column; }
  .demo-case { order: 0; }
  .demo-grid { order: 1; }
  .demo-controls {
    order: 2;
    position: sticky;
    bottom: 10px;
    z-index: 3;
    margin-top: 16px;
    padding: 10px;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    background: var(--copy);
    box-shadow: 0 10px 24px -12px rgba(15, 29, 40, 0.6);
  }
  .demo-disclosure { order: 3; }
}

@media (min-width: 560px) {
  .clipboard { padding: 44px 16px 16px; }
  .clip-paper { padding: 30px 26px 24px; }
  .dispatch-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .dfield-wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .clipboard { padding: 52px 22px 22px; }
  .clip-paper { padding: 32px 34px 28px; }
  .demo-top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .demo-count { flex-basis: auto; margin-left: 8px; }
  .demo-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
  .demo-thread { height: 470px; }
}

/* =====================================================================
   06 COMMON CONCERNS — a card file and a lined answer sheet
   ===================================================================== */

.concerns { padding: 40px 0 110px; }
.concern-file { margin-top: 40px; display: grid; gap: 12px; }

.concern-q button {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 0;
  border-left: 4px solid transparent;
  background: var(--copy);
  box-shadow: var(--shadow-card);
  text-align: left;
  cursor: pointer;
  transition: transform 260ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.cq-num {
  flex: none;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--print);
}
.cq-text {
  font-family: var(--font-headline);
  font-weight: 750;
  font-variation-settings: "wdth" 84;
  font-size: 1.125rem;
  line-height: 1.22;
}
.concern-q button[aria-expanded="true"] { border-left-color: var(--print); }
.concern-a {
  padding: 16px 18px 20px;
  background-color: #FFFFFF;
  font-size: 1.0625rem;
  line-height: 32px;
}
/* Ruled lines sit under each line of the written answer */
.concern-a p { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(44, 62, 158, 0.14) 31px 32px); }
.concern-a[hidden] { display: none; }
.concern-a.is-writing p { animation: write-down 520ms var(--ease-out) both; }
@keyframes write-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.ca-q {
  display: none;
  margin-bottom: 14px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 76;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  line-height: 1.08;
  color: var(--print);
}
.concerns-actions { margin-top: 40px; }

@media (hover: hover) and (pointer: fine) {
  .concern-q button:hover { transform: translateX(6px); }
}

/* Desktop, with JS: the list on the left, one open answer on a large sheet on the right */
@media (min-width: 1024px) {
  .concern-file.is-tabs {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-auto-rows: min-content;
    column-gap: 40px;
    row-gap: 10px;
    align-items: start;
  }
  .concern-file.is-tabs .concern { display: contents; }
  .concern-file.is-tabs .concern-q { grid-column: 1; }
  .concern-file.is-tabs .concern-a {
    grid-column: 2;
    grid-row: 1 / span 8;
    position: sticky;
    top: 32px;
    min-height: 420px;
    padding: 30px 36px 36px;
    box-shadow: var(--shadow-paper);
    font-size: 1.1875rem;
    line-height: 34px;
  }
  .concern-file.is-tabs .concern-a p { background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(44, 62, 158, 0.14) 33px 34px); }
  .concern-file.is-tabs .ca-q { display: block; }
  .concern-file.is-tabs .concern-q button[aria-expanded="true"] { transform: translateX(14px); background: #FFFFFF; }
}

/* =====================================================================
   07 PRICING — an estimate in triplicate
   ===================================================================== */

.pricing { padding: 40px 0 120px; }
.estimate-stack { position: relative; max-width: 1020px; margin: 48px auto 0; }
.estimate-copy { position: absolute; inset: 0; box-shadow: var(--shadow-card); }
.estimate-copy-1 { background: var(--paper); transform: translate(10px, 12px) rotate(0.8deg); }
.estimate-copy-2 { background: var(--steel-dark); transform: translate(18px, 22px) rotate(1.5deg); }
.estimate {
  position: relative;
  padding: 26px 18px 26px;
  background-color: var(--copy);
  background-image: url("../assets/paper-grain.svg");
  border-top: 10px solid var(--ink);
  box-shadow: var(--shadow-paper);
}
.est-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.est-form { color: var(--ink-soft); }
.est-badge {
  padding: 4px 10px;
  border: 1.5px solid var(--print);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--print);
}
.est-stamp {
  position: absolute;
  top: 92px;
  right: 16px;
  padding: 4px 14px 6px;
  border: 4px double var(--print);
  border-radius: 4px;
  font-weight: 850;
  font-variation-settings: "wdth" 70;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--print);
  opacity: 0.8;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.estimate.is-armed:not(.is-in) .est-stamp { opacity: 0; transform: rotate(-9deg) scale(1.4); }
.estimate.is-armed.is-in .est-stamp { animation: plan-stamp 480ms 200ms var(--ease-out) both; }
@keyframes plan-stamp {
  0% { opacity: 0; transform: rotate(-4deg) scale(1.7); filter: blur(3px); }
  55% { opacity: 0.9; transform: rotate(-9deg) scale(0.96); filter: blur(0); }
  100% { opacity: 0.8; transform: rotate(-9deg) scale(1); }
}

.est-lines { margin-top: 28px; display: grid; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.est-line { padding: 18px 4px; }
.est-line + .est-line { border-top: 1px solid var(--steel-dark); }
.est-amount {
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: clamp(3.25rem, 2.2rem + 3.6vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.est-cur { font-size: 0.5em; vertical-align: 0.6em; margin-right: 2px; }
.est-per { font-size: 0.32em; font-variation-settings: "wdth" 90; letter-spacing: 0; color: var(--ink-soft); }
.est-what { margin-top: 6px; font-family: var(--font-data); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.est-text { margin-top: 20px; max-width: 70ch; color: var(--ink-soft); }
.est-text strong { color: var(--ink); }

.est-grid { margin-top: 30px; display: grid; gap: 30px; }
.est-h {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--print);
  font-family: var(--font-headline);
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  font-size: 1.375rem;
  line-height: 1.1;
}
.est-steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--steel-dark); }
.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-data);
  font-size: 0.8125rem;
}
.est-steps p { font-size: 0.9375rem; color: var(--ink-soft); }
.est-steps strong { color: var(--ink); }
.est-tbd-intro { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-soft); }
.tbd-lines div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--steel-dark);
}
.tbd-lines dt { flex: 1 1 200px; font-weight: 650; font-size: 0.9375rem; }
.tbd-lines dd {
  flex: 1 1 140px;
  margin: 0;
  padding-bottom: 2px;
  border-bottom: 1.5px dashed var(--ink-mute);
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.est-actions { margin-top: 30px; }
.est-small { margin-top: 18px; max-width: 70ch; font-size: 0.8125rem; color: var(--ink-soft); }

@media (min-width: 720px) {
  .estimate { padding: 34px 40px 38px; }
  .est-stamp { top: 26px; right: 40%; font-size: 2.25rem; }
  .est-lines { grid-template-columns: 1fr 1fr; }
  .est-line + .est-line { border-top: 0; border-left: 1px solid var(--steel-dark); padding-left: 28px; }
}
@media (min-width: 960px) {
  .est-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

/* =====================================================================
   08 FINAL CTA
   ===================================================================== */

.final { padding: 60px 0 120px; overflow: hidden; }
.final-grid { display: grid; gap: 56px; align-items: center; }
.final-title { margin-top: 14px; font-size: clamp(2.5rem, 1.35rem + 3.6vw, 4.75rem); max-width: 11em; }
.final-text { margin-top: 20px; max-width: 54ch; font-size: 1.125rem; color: var(--ink-soft); }
.final-copy .actions { margin-top: 28px; }
.final-close {
  margin-top: 34px;
  max-width: 50ch;
  font-weight: 600;
  font-variation-settings: "wdth" 90;
  font-size: 1.125rem;
  line-height: 1.45;
}

.final-slip { position: relative; justify-self: center; width: min(100%, 400px); transform: rotate(3deg); transition: transform 500ms var(--ease-out); }
.final-slip .sheet-2 { transform: translate(10px, 12px) rotate(1deg); }
.slip-yours .yours { font-family: var(--font-data); font-variation-settings: "wdth" 85; font-size: 1rem; color: var(--ballpoint); }
.slip-question {
  margin-top: 20px;
  font-family: var(--font-slip);
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--print);
}
@media (hover: hover) and (pointer: fine) {
  .final-slip:hover { transform: rotate(1deg) translateY(-6px); }
}
@media (min-width: 1024px) {
  .final-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 72px; }
}

/* =====================================================================
   FOOTER — the pad's dark backing board
   ===================================================================== */

.footer {
  position: relative;
  padding: 72px 0 56px;
  background: var(--ink);
  color: var(--copy);
}
.footer::before {
  /* the torn edge where the last slip came off */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: radial-gradient(circle 3.5px at 7px 0, var(--steel) 96%, transparent) 0 0 / 14px 7px repeat-x;
}
.footer-inner { display: grid; gap: 36px; }
.footer .wordmark img { height: 32px; width: auto; }
.footer-disclosure { margin-top: 18px; max-width: 52ch; font-size: 0.9375rem; line-height: 1.55; color: #C9D2D7; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; align-content: start; }
.footer-nav a, .footer-contact a { color: var(--copy); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-contact .mono { color: #AEBAC1; }
.footer-contact a { font-size: 1.125rem; font-weight: 600; }
.footer-meta { margin-top: 12px; }
.footer :focus-visible { outline-color: var(--copy); }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr); gap: 48px; }
}

/* =====================================================================
   404
   ===================================================================== */

.lost {
  min-height: calc(100svh - 69px);
  display: grid;
  gap: 48px;
  align-content: center;
  padding-top: 48px;
  padding-bottom: 72px;
}
.lost-slip { justify-self: start; width: min(100%, 340px); }
.lost-actions { margin-top: 26px; }
@media (min-width: 1024px) {
  .lost { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
}

/* =====================================================================
   Narrow screens: single-column grids may shrink below their content's
   natural width (form inputs otherwise hold the column wider than a 320 px phone)
   ===================================================================== */

.hero,
.opp-grid,
.board,
.reason,
.demo-grid,
.est-grid,
.final-grid,
.footer-inner { grid-template-columns: minmax(0, 1fr); }
.ws-input input { width: 100%; }
.cmp-notice span:not(.note-icon) { min-width: 0; }

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5.4fr); }
  .final-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}
@media (min-width: 720px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .demo-grid { grid-template-columns: 340px minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr); }
}
@media (min-width: 960px) {
  .est-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Phones: keep rotated and offset paper inside the screen edge */
@media (max-width: 719px) {
  .hero-pad { right: 6px; }
  .estimate-stack { margin-right: 12px; }
  .estimate-copy-1 { transform: translate(5px, 7px) rotate(0.6deg); }
  .estimate-copy-2 { transform: translate(10px, 13px) rotate(1deg); }
  .final-slip { width: min(calc(100% - 24px), 400px); }
}

/* Phones and tablets: the lock screen comes right after the headline and first line,
   so the first screen carries the missed-call visual; the rest of the hero copy follows it */
@media (max-width: 1023px) {
  .hero { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-eyebrow { order: 1; }
  .hero-title { order: 2; }
  .hero-lede { order: 3; }
  .hero-scene { order: 4; margin: 26px 0 10px; }
  .hero-stakes { order: 5; margin-top: 22px; }
  .hero-body { order: 6; }
  .hero-actions { order: 7; }
  .hero-status { order: 8; }
}
@media (max-width: 559px) {
  .lock { height: 360px; }
  .lock-time { font-size: 3.25rem; }
  .lock-screen { padding-top: 44px; }
}

/* Demo on phones: the sticky controls appear once the sample has started */
@media (max-width: 899px) {
  .clipboard.is-idle .demo-controls { display: none; }
}

/* Keyboard focus on worksheet fields: a full ballpoint outline, not only the underline colour */
.ws-input:has(input:focus-visible) { outline: 2px solid var(--ballpoint); outline-offset: 3px; }

/* Phones: the blank pad peeks out on the left, its printed title visible; the phone stands on the right */
@media (max-width: 1023px) {
  .hero-scene { justify-items: end; }
  .hero-pad { right: auto; left: 0; top: 22px; width: min(230px, 62%); transform: rotate(-4deg); }
  .lock { width: min(76%, 290px); }
  .hero-scene .scene-note { justify-self: start; }
}
@media (min-width: 560px) and (max-width: 1023px) {
  .hero-pad { width: 280px; left: max(0px, calc(50% - 300px)); }
  .lock { width: 300px; margin-right: max(0px, calc(50% - 280px)); }
}

/* Phones: keep each notification on two lines (label, number) */
.note-body span, .note-body b { white-space: nowrap; }
@media (max-width: 1023px) {
  .lock { width: min(82%, 300px); }
}
@media (max-width: 359px) {
  .lock { width: 88%; }
  .note { gap: 8px; padding: 9px 10px; }
  .note-icon { width: 28px; height: 28px; }
  .note-body { font-size: 0.8125rem; }
  .note-time { font-size: 0.6875rem; }
  .hero-pad { width: 56%; }
}

/* Phones: a shorter blank pad, so it never reaches the disclosure under the scene */
@media (max-width: 1023px) {
  .hero-pad .blank-lines div:nth-child(n+4) { display: none; }
  .hero-scene .scene-note { position: relative; z-index: 3; }
}

/* Accents without side stripes: a short ballpoint rule above the closing line; the staff message is marked by its name */
.final-close::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 14px; background: var(--ballpoint); }
.msg-staff { box-shadow: 0 1px 0 #D3DBDF; }
.msg-staff .msg-from { color: var(--ballpoint); }

/* 320 px: the first line wraps to 3 lines in the fallback font and 4 in Archivo (measured).
   Reserve 4 lines so the phone below does not move when the web font arrives. */
@media (max-width: 359px) {
  .hero-lede { min-height: calc(4 * 1.4em); }
}
