:root {
  --canary: #f5e8a3;
  --canary-edge: #e6d47f;
  --sheet: #fffdf6;
  --sheet-pink: #f2c5cb;
  --ink: #14504a; /* pre-printed form ink; set per client in config.js */
  --text: #211f18;
  --text-2: #4a4430;
  --carbon: #2c389a;
  --stamp: #c22c24;
  --graphite: #67624f;
  --rule: color-mix(in srgb, var(--ink) 78%, transparent);
  --rule-soft: color-mix(in srgb, var(--ink) 28%, transparent);

  --font-form: "Archivo", system-ui, sans-serif;
  --font-type: "Courier Prime", ui-monospace, "Courier New", monospace;
  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --pw: 300px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canary);
  color: var(--text);
  font-family: var(--font-form);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--carbon); color: #fff; }
:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; border-radius: 2px; }
h1, h2, p { margin: 0; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------- Masthead: the glued binding strip of the pad ---------- */
.masthead { background: var(--ink); color: var(--canary); }
.masthead-inner {
  max-width: 1360px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: baseline;
}
.masthead-name { font-weight: 800; font-stretch: 80%; font-size: 18px; letter-spacing: .01em; }
.masthead-note { font-size: 14px; opacity: .88; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 750 17px/1 var(--font-form); font-stretch: 88%;
  border: 0; border-radius: 6px; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary {
  background: var(--ink); color: var(--sheet);
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 8px 18px -10px color-mix(in srgb, var(--ink) 80%, black);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 14px 24px -12px color-mix(in srgb, var(--ink) 85%, black); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1360px; margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) var(--pw) minmax(360px, 1.1fr);
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
}
.hero-copy { padding-top: 12px; }
h1 {
  font-weight: 860; font-stretch: 66%;
  font-size: clamp(2.7rem, 4.6vw, 4.5rem);
  line-height: .93; letter-spacing: -.012em;
  text-transform: uppercase; color: var(--ink);
  text-wrap: balance;
}
.lede { margin-top: 22px; max-width: 36ch; font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.autoplay { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.autoplay input {
  appearance: none; margin: 0; width: 20px; height: 20px; flex: none;
  border: 1.5px solid var(--ink); border-radius: 3px; background: var(--sheet); cursor: pointer;
  display: grid; place-items: center;
}
.autoplay input::after {
  content: ""; width: 10px; height: 6px; border: solid var(--carbon); border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-out);
}
.autoplay input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }

.trail { list-style: none; margin: 38px 0 0; padding: 0; max-width: 380px; border-top: 1px solid var(--rule); }
.trail li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 15.5px; color: var(--text-2);
  transition: color .3s;
}
.trail-mark { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.trail-time { font-family: var(--font-type); font-size: 14px; color: var(--carbon); }
.trail li.is-active { color: var(--text); }
.trail li.is-active .trail-mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--carbon);
  animation: blink 1s steps(2, jump-none) infinite;
}
.trail li.is-done { color: var(--text); }
.trail li.is-done .trail-mark { background: var(--ink); border-color: var(--ink); }
.trail li.is-done .trail-mark::after {
  content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 7.5px;
  border: solid var(--sheet); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Phone ---------- */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative; width: var(--pw); height: calc(var(--pw) * 2.1);
  padding: 11px; border-radius: 52px;
  background: linear-gradient(145deg, #2a2a2e, #0c0c0e 40%);
  box-shadow:
    inset 0 0 0 1.5px #3c3c42,
    0 2px 3px rgba(0, 0, 0, .22),
    0 40px 60px -28px rgba(0, 0, 0, .42);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: #1b1b1e; border-radius: 2px; }
.phone::before { left: -3px; top: 132px; height: 52px; box-shadow: 0 66px 0 #1b1b1e; }
.phone::after { right: -3px; top: 160px; height: 78px; }
.phone-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 41px;
  background: #fff; color: #000; font-family: var(--font-ios); font-size: 15px; line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

.statusbar {
  position: absolute; z-index: 5; inset: 0 0 auto; height: 46px; padding: 0 22px 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; color: #000; transition: color .3s;
}
.island { position: absolute; left: 50%; top: 10px; width: 90px; height: 27px; margin-left: -45px; border-radius: 20px; background: #000; }
.statusbar-icons { display: flex; align-items: center; gap: 5px; }
.statusbar-icons svg { height: 11px; width: auto; fill: currentColor; }
.phone.is-dark .statusbar { color: #fff; }

.home-bar { position: absolute; z-index: 6; left: 50%; bottom: 7px; width: 118px; height: 5px; margin-left: -59px; border-radius: 3px; background: #000; transition: background .3s; }
.phone.is-dark .home-bar { background: #fff; }

.scr {
  position: absolute; inset: 0; padding-top: 46px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s .35s;
}
.scr.is-active { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out), visibility 0s; }

/* contact */
.scr-contact { align-items: center; justify-content: center; padding-bottom: 40px; background: linear-gradient(#f4f4f6, #e8e8ec); text-align: center; }
.contact-avatar, .msg-avatar {
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(#a7abb4, #868a93); color: #fff; font-weight: 600;
}
.contact-avatar { width: 92px; height: 92px; font-size: 36px; }
.contact-name { margin-top: 14px; padding: 0 20px; font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.contact-sub { margin-top: 4px; color: #5c5c61; font-size: 15px; }
.contact-call {
  margin-top: 30px; width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer;
  background: #34c759; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .3);
  transition: transform .18s var(--ease-out);
}
.contact-call:hover { transform: scale(1.05); }
.contact-call:active { transform: scale(.96); }
.contact-call svg { width: 30px; height: 30px; fill: currentColor; }
.contact-call:focus-visible { outline-color: #000; outline-offset: 4px; border-radius: 50%; }
.contact-hint { margin-top: 10px; font-size: 13px; color: #5c5c61; }

/* call */
.scr-call { align-items: center; padding: 96px 28px 46px; background: linear-gradient(170deg, #4a4f58, #24272d 55%, #17181c); color: #fff; text-align: center; }
.call-status { font-size: 16px; color: rgba(255,255,255,.72); min-height: 21px; }
.call-status.is-failed { color: #ff9f97; }
.call-name { margin-top: 4px; font-size: 27px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.call-grid { margin-top: auto; display: flex; gap: 22px; }
.call-grid span { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.85); }
.call-grid i { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.17); }
.call-grid svg { width: 26px; height: 26px; fill: #fff; }
.call-end {
  margin-top: 34px; width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer;
  background: #ff3b30; display: grid; place-items: center; color: #fff;
}
.call-end svg { width: 32px; height: 32px; fill: currentColor; }
.call-end:focus-visible { outline-color: #fff; border-radius: 50%; }
.scr-call.is-ringing .call-status { animation: ring 1.3s ease-in-out infinite; }
@keyframes ring { 50% { opacity: .35; } }

/* messages */
.scr-messages { background: #fff; padding-top: 0; }
.msg-head {
  position: relative; flex: none; padding: 50px 14px 8px;
  display: flex; justify-content: center;
  background: rgba(247, 247, 248, .96); border-bottom: .5px solid #d4d4d8;
}
.msg-back { position: absolute; left: 14px; top: 66px; width: 11px; height: 19px; color: #007aff; }
.msg-who { display: grid; justify-items: center; gap: 3px; max-width: 200px; }
.msg-avatar { width: 40px; height: 40px; font-size: 16px; }
.msg-name { font-size: 11.5px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.thread {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px;
  scrollbar-width: none;
}
.thread::-webkit-scrollbar { display: none; }
.thread > * { flex: none; }
.stamp-time { align-self: center; margin: 6px 0 8px; font-size: 11px; color: #8a8a8e; text-align: center; line-height: 1.35; }
.stamp-time b { font-weight: 600; }
.bubble {
  max-width: 80%; padding: 7px 12px 8px; border-radius: 18px; font-size: 15px; line-height: 1.3;
  overflow-wrap: anywhere; animation: bubble-in .38s var(--ease-out) both;
  transform-origin: bottom left;
}
.bubble.in { align-self: flex-start; background: #e9e9eb; color: #000; border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: #34c759; color: #fff; border-bottom-right-radius: 6px; transform-origin: bottom right; }
.bubble.in + .bubble.out, .bubble.out + .bubble.in, .card + .bubble, .bubble + .card { margin-top: 8px; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }

.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 13px; border-radius: 18px; border-bottom-left-radius: 6px; background: #e9e9eb; animation: bubble-in .3s var(--ease-out) both; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: dots 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.card {
  align-self: flex-start; width: 78%; border-radius: 16px; overflow: hidden; background: #fff;
  border: .5px solid #d1d1d6; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  animation: bubble-in .38s var(--ease-out) both; transform-origin: bottom left;
}
.card-main { display: flex; gap: 11px; padding: 10px 12px; align-items: center; }
.card-date { flex: none; width: 44px; text-align: center; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 .5px #d1d1d6; overflow: hidden; }
.card-date b { display: block; font-size: 9.5px; font-weight: 600; color: #fff; background: #ff3b30; padding: 2px 0; text-transform: uppercase; }
.card-date span { display: block; font-size: 20px; font-weight: 500; padding: 1px 0 3px; }
.card-title { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.card-sub { font-size: 12px; color: #6c6c70; margin-top: 1px; }
.card-act { display: block; padding: 8px 12px; border-top: .5px solid #e1e1e6; color: #007aff; font-size: 14px; text-align: center; background: #fafafa; }

.replies { flex: none; padding: 8px 10px 4px; background: #f6f6f8; border-top: .5px solid #dcdce0; }
.replies[hidden] { display: none; }
.replies-label { font-size: 11.5px; color: #6c6c70; margin: 0 2px 6px; }
.replies-list { display: flex; flex-wrap: wrap; gap: 6px; }
.reply {
  font: 500 14px/1.2 var(--font-ios); padding: 8px 12px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed var(--carbon); background: #fff; color: var(--carbon); text-align: left;
  transition: background-color .15s, color .15s, transform .15s var(--ease-out);
  animation: bubble-in .35s var(--ease-out) both;
}
.reply:nth-child(2) { animation-delay: .06s; }
.reply:nth-child(3) { animation-delay: .12s; }
.reply:hover { background: var(--carbon); color: #fff; }
.reply:active { transform: scale(.97); }

.composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 10px 26px; background: #f6f6f8; }
.replies:not([hidden]) + .composer { padding-top: 6px; }
.composer-plus { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #e4e4e8; color: #6c6c70; display: grid; place-items: center; }
.composer-plus svg { width: 15px; height: 15px; }
.composer-field {
  flex: 1; min-width: 0; min-height: 32px; display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 17px; border: .5px solid #c7c7cc; background: #fff;
  font-size: 14.5px; line-height: 1.25; overflow: hidden;
}
.composer-placeholder { color: #a1a1a6; }
.composer-send { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #c7c7cc; color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.composer-send svg { width: 16px; height: 16px; }
.composer.has-text .composer-send { background: #34c759; }

.banner {
  position: absolute; z-index: 7; top: 50px; left: 9px; right: 9px;
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 20px;
  background: rgba(246, 246, 248, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
  transform: translateY(calc(-100% - 64px)); visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s .5s;
  cursor: pointer;
}
.banner.is-shown { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }
.banner-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; background: linear-gradient(#5fe07c, #2fbe4f); display: grid; place-items: center; }
.banner-icon svg { width: 22px; height: 22px; fill: #fff; }
.banner-body { min-width: 0; display: grid; gap: 1px; font-size: 13.5px; line-height: 1.28; }
.banner-top { display: flex; justify-content: space-between; gap: 8px; }
.banner-top strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-top span { color: #6c6c70; font-size: 12px; flex: none; }
.banner-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Work order pad ---------- */
.pad { position: relative; padding: 6px 10px 18px 0; }
.sheet {
  background: var(--sheet); border-radius: 3px;
  box-shadow: 0 1px 1px rgba(60, 48, 0, .18), 0 18px 34px -22px rgba(60, 48, 0, .5);
}
.sheet-back {
  position: absolute; inset: 22px 0 0 12px; background: var(--sheet-pink);
  transform: rotate(1.6deg); display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 14px 6px;
}
.sheet-back span { font-weight: 700; font-stretch: 75%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8f2420; }
.sheet-front { position: relative; padding: 20px 22px 22px; transform: rotate(-.5deg); }
.sheet-front::before {
  /* binding perforation along the top edge */
  content: ""; position: absolute; left: 14px; right: 14px; top: 8px; border-top: 1.5px dotted var(--rule-soft);
}

.wo-head { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0 14px; border-bottom: 2.5px solid var(--ink); color: var(--ink); }
.wo-company { font-weight: 850; font-stretch: 72%; font-size: 21px; line-height: 1.05; text-transform: uppercase; letter-spacing: .005em; }
.wo-meta { font-size: 12.5px; line-height: 1.4; margin-top: 3px; }
.wo-meta:first-of-type { margin-top: 6px; }
.wo-title { text-align: right; flex: none; }
.wo-title p:first-child { font-weight: 850; font-stretch: 62%; font-size: 30px; line-height: .95; text-transform: uppercase; }
.wo-no { margin-top: 6px; font-weight: 700; font-size: 13px; color: var(--ink); }
.wo-no span { font-family: var(--font-type); font-size: 16px; color: var(--stamp); letter-spacing: .04em; }

.wo-grid { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--rule); }
.f {
  min-width: 0; min-height: 50px; padding: 5px 9px 6px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 2px;
}
.f-wide { grid-column: 1 / -1; }
.f-label { font-weight: 700; font-stretch: 75%; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.f-val { font-family: var(--font-type); font-size: 15px; line-height: 1.3; color: var(--carbon); min-height: 1.3em; overflow-wrap: anywhere; }
.f-val.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--carbon); }
.f-stamp { min-height: 62px; }

.stamp {
  align-self: flex-start; margin-top: 3px;
  display: inline-block; padding: 3px 10px 2px;
  font-family: var(--font-form); font-weight: 850; font-stretch: 72%; font-size: 17px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid currentColor; border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--sheet), inset 0 0 0 3.5px currentColor;
  transform: rotate(-4deg); opacity: 0; mix-blend-mode: multiply;
}
.stamp.is-set { opacity: .9; animation: thud .42s var(--ease-out) both; }
.stamp[data-tone="routine"] { color: var(--ink); }
@keyframes thud {
  0% { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  55% { opacity: .95; transform: rotate(-4deg) scale(.95); }
  100% { opacity: .9; transform: rotate(-4deg) scale(1); }
}

.board { margin-top: 16px; }
.board-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 6px; color: var(--ink); }
.board-title > span:first-child { font-weight: 800; font-stretch: 72%; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.board-day { font-family: var(--font-type); font-size: 14px; color: var(--carbon); }
.board-grid {
  display: grid; grid-template-columns: 62px repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
  font-size: 11.5px;
}
.board-grid > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-height: 28px; padding: 4px 5px; min-width: 0; }
.bh { font-weight: 700; font-stretch: 75%; color: var(--ink); text-align: center; font-size: 11px; letter-spacing: .03em; }
.bt { font-weight: 700; font-stretch: 80%; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc { position: relative; }
.bc.busy { color: var(--graphite); font-family: var(--font-type); font-size: 11.5px; background: color-mix(in srgb, var(--graphite) 10%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc.booked {
  color: var(--carbon); font-family: var(--font-type); font-weight: 700; font-size: 11.5px;
  box-shadow: inset 0 0 0 2px var(--carbon); background: color-mix(in srgb, var(--carbon) 9%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: booked-in .6s var(--ease-out) both;
}
.bc.booked.is-urgent { color: var(--stamp); box-shadow: inset 0 0 0 2px var(--stamp); background: color-mix(in srgb, var(--stamp) 8%, transparent); }
@keyframes booked-in { from { box-shadow: inset 0 0 0 7px transparent; background: transparent; } }

/* ---------- ROI ---------- */
.roi {
  max-width: 1360px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter);
  border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: minmax(260px, .8fr) 2fr; gap: clamp(32px, 5vw, 72px);
}
h2 {
  font-weight: 860; font-stretch: 66%; font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: .95; letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); text-wrap: balance;
}
.roi-intro p, .stub-copy p { margin-top: 16px; max-width: 34ch; color: var(--text-2); text-wrap: pretty; }
.roi-body { display: grid; grid-template-columns: 1fr minmax(340px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.ctl { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px; padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.ctl:last-child { border-bottom: 1px solid var(--rule); }
.ctl label { font-weight: 700; font-size: 17px; }
.ctl output { font-family: var(--font-type); font-weight: 700; font-size: 22px; color: var(--carbon); font-variant-numeric: tabular-nums; }
.ctl input { grid-column: 1 / -1; }
.ctl-help { grid-column: 1 / -1; font-size: 14.5px; color: var(--text-2); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 6px 0 2px; background: transparent; cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--ink) var(--fill), color-mix(in srgb, var(--ink) 22%, transparent) var(--fill));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 28px; margin-top: -12px; border-radius: 3px;
  background: var(--sheet); border: 2px solid var(--ink); box-shadow: 0 2px 4px -1px rgba(40, 30, 0, .35);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 24px; border-radius: 3px; background: var(--sheet); border: 2px solid var(--ink); box-shadow: 0 2px 4px -1px rgba(40, 30, 0, .35);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--carbon); outline-offset: 2px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--carbon); outline-offset: 2px; }

.totals { padding: 22px 24px 20px; transform: rotate(.4deg); }
.totals-title { font-weight: 850; font-stretch: 66%; font-size: 24px; text-transform: uppercase; color: var(--ink); padding-bottom: 10px; border-bottom: 2.5px solid var(--ink); }
.totals-table { width: 100%; border-collapse: collapse; }
.totals-table th { text-align: left; font-weight: 600; font-size: 15px; padding: 9px 0; color: var(--text); border-bottom: 1px solid var(--rule-soft); }
.totals-table td { text-align: right; font-family: var(--font-type); font-size: 17px; color: var(--carbon); padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.op { font-family: var(--font-type); font-weight: 400; color: var(--graphite); margin-left: 4px; }
.t-sub th { font-weight: 750; }
.t-sub td { font-weight: 700; }
.totals-year { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding: 16px 0 6px; border-bottom: 2.5px solid var(--ink); }
.totals-year-label { font-weight: 800; font-stretch: 75%; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.totals-year-val { grid-column: 1 / -1; font-family: var(--font-type); font-weight: 700; font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1; color: var(--carbon); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stamp-static { position: absolute; right: 2px; top: 12px; opacity: .9; transform: rotate(-7deg); }
.totals-note { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }

/* ---------- Close: tear-off stub ---------- */
.close { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.stub {
  position: relative; background: var(--sheet-pink); border-radius: 3px; padding: clamp(28px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between;
  box-shadow: 0 1px 1px rgba(60, 48, 0, .16), 0 18px 34px -24px rgba(60, 48, 0, .45);
}
.stub::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; border-top: 2px dashed color-mix(in srgb, var(--ink) 45%, transparent); }
.stub-copy p { color: color-mix(in srgb, var(--text) 82%, var(--stamp)); }
.stub-actions { display: grid; gap: 12px; justify-items: start; }
.stub-alt { font-size: 15.5px; }
.stub-alt a { font-weight: 700; }

.foot { border-top: 1px solid var(--rule-soft); }
.foot p { max-width: 1360px; margin: 0 auto; padding: 18px var(--gutter) 28px; font-size: 13.5px; color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: var(--pw) minmax(0, 1fr); }
  .hero-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .hero-copy h1, .hero-copy .lede, .hero-copy .actions { grid-column: 1; }
  .hero-copy .trail { grid-column: 2; grid-row: 1 / span 3; margin-top: 8px; align-self: start; }
  .roi { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .roi-body { grid-template-columns: 1fr; }
  .totals { transform: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { display: block; }
  .hero-copy .trail { margin-top: 30px; }
  .lede { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .actions { gap: 16px; }
  .pad { padding-right: 6px; }
  .sheet-front { padding: 18px 14px 18px; transform: none; }
  .wo-title p:first-child { font-size: 24px; }
  .wo-company { font-size: 18px; }
  .board-grid { grid-template-columns: 48px repeat(5, minmax(0, 1fr)); font-size: 10.5px; }
  .board-grid > * { padding: 4px 3px; }
  .bc.busy, .bc.booked { font-size: 10.5px; }
  .totals { padding: 18px 16px; }
  .stub-actions { width: 100%; justify-items: stretch; }
}
@media (max-width: 350px) {
  .phone { zoom: .9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
