/* =====================================================================================================================
 * True Rate, identity v2 "Name Patch" (docs/brand/TRUE-RATE.md, section 9). One stylesheet, no house base underneath.
 *
 *   Hickory #F2F0EA ground · Work Navy #1C2741 every word and number on light (13.0:1, 14.8:1 on the white pocket)
 *   Denim #2F4A78 units and seams only · Bartack Gold #F0A93B thread, stitches, focus halo (never text on light)
 *   Label Red #B5281F loss, the label's selvedge, error marks (graphic) · Thread #F4EBDA text on navy (12.5:1)
 *   Duck Canvas #B07A3F the app tile only · Pocket #FFFFFF inputs and results · Cloth Tape #F7E7B6 the year
 *
 * Sun rule: the working screens (the six numbers, Price a job, Was that job worth it) are light, and every word and
 * number on them is navy on white or hickory: 13:1 or better. Navy twill is for page headers, the footer and the
 * sticky bar, where the type is Thread (12.5:1). Gold on navy (7.4:1) is only ever a stitch or a figure 48px and up.
 * Two signature moves, used sparingly: the chain stitch (a fine dashed line) and the woven label.
 * ===================================================================================================================== */
@font-face { font-family: "Hepta Slab"; src: url("fonts/hepta-slab.woff") format("woff"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/commissioner.woff") format("woff"); font-weight: 400 800; font-display: swap; }

:root {
  --hickory: #F2F0EA; --navy: #1C2741; --denim: #2F4A78; --gold: #F0A93B; --red: #B5281F; --thread: #F4EBDA; --duck: #B07A3F;
  --pocket: #FFFFFF; --tape: #F7E7B6; --twill2: #24314F; --merrow: #B9AE98;
  --line: rgba(28, 39, 65, .2); --seam: rgba(28, 39, 65, .45);
  --slab: "Hepta Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --text: "Commissioner", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1200px; --gut: clamp(16px, 4vw, 40px);
  /* spacing scale, 4px base: tight inside a group, generous between groups */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --hair: rgba(28, 39, 65, .16); --hair2: rgba(28, 39, 65, .3);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* the stitch: a fine dashed line, drawn as a gradient so it can sit on any edge */
  --stitch-navy: linear-gradient(90deg, var(--seam) 0 7px, transparent 7px 12px);
  --stitch-gold: linear-gradient(90deg, rgba(240, 169, 59, .75) 0 7px, transparent 7px 12px);
  --twill: repeating-linear-gradient(-35deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 5px), var(--navy);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; background: var(--hickory); }
body {
  margin: 0; color: var(--navy); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip;
  /* hickory stripe: paired navy pinstripes, the railroad overall cloth. Faint: it's the ground, not a pattern */
  background: repeating-linear-gradient(90deg, transparent 0 11px, rgba(28, 39, 65, .045) 11px 12.5px, transparent 12.5px 14.5px,
    rgba(28, 39, 65, .045) 14.5px 16px, transparent 16px 26px), var(--hickory);
}
::selection { background: var(--gold); color: var(--navy); }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--denim); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--navy); color: var(--thread); padding: 12px 16px; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[id] { scroll-margin-top: 88px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--slab); color: inherit; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; }
/* one red running stitch on the page: under the hero's one word. Section heads carry weight and size, not a stitch */
h1 em, h2 em, h3 em { font-style: normal; }
h1 em { padding-bottom: .02em; background: linear-gradient(90deg, var(--red) 0 62%, transparent 62%) repeat-x 0 96% / .5em .09em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 46ch; }
.fineprint { font-size: 16px; line-height: 1.5; max-width: 64ch; }
.cta-meta { font-size: 16px; margin-top: 16px; }
.num, .slab { font-family: var(--slab); font-variant-numeric: tabular-nums lining-nums; }
/* ---- number setting. Every figure is Hepta Slab, lining and tabular so a column or a live number never jitters.
   The dollar sign is set, not typed: half size, lighter, raised to the cap line, tucked to the first figure.
   ::first-letter picks up the "$" whatever script writes the number, so no markup changes are needed. */
.fig, .rr-row dd, .pj-price, .price-num, .stat .v, .sticky .n, .rz-ledger dd .fig, .mc-shop .fig, .y-legend b, .pj-lines b,
.mc-card dd, .conv-out { font-family: var(--slab); font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum", "lnum"; }
/* only on figures big enough to carry it (48px and up); in a ledger column the sign stays put so the column reads */
.fig:not(.sm)::first-letter, .rr-row.big dd::first-letter, .pj-price::first-letter, .price-num::first-letter,
.stat.big .v::first-letter, .jc-out .stat:first-of-type .v::first-letter, .rz-ledger dd .fig::first-letter {
  font-size: .5em; font-weight: 600; vertical-align: .8em; line-height: 0; letter-spacing: 0; margin-right: .03em; }
.rr-row.big dd::first-letter, .fig.key::first-letter, .mc-shop .fig::first-letter, .pj-price::first-letter, .price-num::first-letter,
.stat.big .v::first-letter { font-size: .42em; vertical-align: 1.05em; margin-right: .05em; }
strong, b { font-weight: 700; }

/* ---------------------------------------------------------------- buttons and links */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--navy); color: var(--thread); font: 700 18px/1.1 var(--text); text-decoration: none;
  cursor: pointer; text-align: center; transition: background .2s var(--ease), transform .2s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1.5px dashed rgba(240, 169, 59, .7); pointer-events: none; }
.btn:hover { background: #26355a; color: var(--thread); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 50px; padding: 0 20px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--pocket); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn.ghost::after { border-color: rgba(28, 39, 65, .3); }
.btn.ghost:hover { background: var(--thread); color: var(--navy); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.is-disabled, .btn[disabled], .btn[aria-disabled="true"] { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--seam); cursor: not-allowed; transform: none; }
.btn.is-disabled::after, .btn[disabled]::after { display: none; }
.link, button.as-link { display: inline-flex; align-items: center; min-height: 50px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 17px/1.35 var(--text); color: var(--navy); text-align: left;
  text-decoration: underline dashed var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover, button.as-link:hover { color: var(--denim); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 26px; }

/* ---------------------------------------------------------------- the woven label (signature 2) and its tab
   A label is woven, not printed: a fine weave in the ground, Label Red selvedge, the ends folded under and stitched
   down (the stitch is on the fold, where the needle really goes). Label lettering: Hepta Slab caps, tracked out. */
.label { position: relative; color: var(--navy); padding: var(--s5) clamp(24px, 3vw, 36px) var(--s5);
  background:
    repeating-linear-gradient(0deg, rgba(28, 39, 65, .022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 5px), var(--thread);
  border-top: 6px solid var(--red); border-bottom: 6px solid var(--red);
  box-shadow: 0 1px 0 rgba(28, 39, 65, .18), 0 16px 28px -20px rgba(28, 39, 65, .7); }
.label::before, .label::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, rgba(28, 39, 65, .1), transparent); }
.label::before { left: 0; border-right: 1.5px dashed var(--seam); }
.label::after { right: 0; transform: scaleX(-1); border-right: 1.5px dashed var(--seam); }
/* woven-label lettering, for the few section labels that name a moment in his day */
.tab, .rr-h, .mc-name, .pj-recent-k, .mc-sub { font: 700 16px/1.2 var(--slab); letter-spacing: .09em; text-transform: uppercase; }
.tab { position: relative; display: inline-block; margin: 0 0 var(--s4); padding: 8px 18px 7px 22px; color: var(--navy);
  background: repeating-linear-gradient(0deg, rgba(28, 39, 65, .04) 0 1px, transparent 1px 3px), var(--thread);
  box-shadow: inset 0 3px 0 var(--red), inset 0 -3px 0 var(--red), 0 6px 12px -9px rgba(28, 39, 65, .7);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%); padding-right: 28px; }
@media (max-width: 420px) { .tab { letter-spacing: .05em; padding-left: 18px; padding-right: 22px; } }
.tab::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; border-left: 1.5px dashed var(--seam); }
/* square tags (read, don't press): the cloth-tape strip */
.tag { display: inline-block; padding: 4px 10px; background: var(--tape); color: var(--navy); font: 700 16px/1.2 var(--text); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: var(--hickory); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--stitch-navy) repeat-x 0 0 / 12px 2px; }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.logo { display: block; padding: 6px 0; flex: none; }
.logo img { width: auto; height: 50px; }
.byline { font-size: 16px; font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap; padding: 14px 0; margin-right: auto; }
.byline:hover { text-decoration: underline; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px 22px; margin: 0; padding: 0; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 50px; font: 600 17px/1 var(--text); text-decoration: none; color: var(--navy); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline dashed var(--red); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu-btn { display: none; min-height: 50px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pocket); color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy); font: 700 16px/1 var(--text); cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: fixed; left: 0; right: 0; top: 74px; bottom: 0; background: var(--hickory); padding: 18px var(--gut) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
  .top.open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) { display: flex; min-height: 64px; font: 700 26px/1.1 var(--slab); border-bottom: 2px dashed var(--line); }
  .nav .btn { margin-top: 22px; width: 100%; min-height: 60px; font-size: 19px; }
}
@media (max-width: 420px) { .byline { display: none; } .logo img { height: 44px; } .top .wrap { justify-content: space-between; } }

/* ---------------------------------------------------------------- bands */
.band { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.band-tight { padding: clamp(40px, 6vw, 72px) 0; }
.band.paper { background: rgba(255, 255, 255, .55); }
.band.paper::before, .band.seam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--stitch-navy) repeat-x 0 0 / 12px 2px; }
.twill, .band.twill { background: var(--twill); color: var(--thread); }
.twill a, .twill .link { color: var(--thread); }
.twill .link { text-decoration-color: var(--gold); }
/* page header on every page that isn't a working tool: navy twill, a gold seam along the bottom */
.hero-page { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(44px, 6vw, 80px); background: var(--twill); color: var(--thread); }
.hero-page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: var(--stitch-gold) repeat-x 0 0 / 12px 2px; }
.hero-page h1 { max-width: 18ch; }
.hero-page.wide h1 { max-width: 24ch; font-size: clamp(36px, 5vw, 66px); }
.hero-page .lede { max-width: 56ch; }
.hero-page a { color: var(--thread); }
.hero-page h1 em { background-image: linear-gradient(90deg, var(--gold) 0 62%, transparent 62%); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split.even { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- fields: the white pocket */
.field { margin: 0 0 22px; min-width: 0; }
.field > label, .field .lab { display: flex; align-items: center; gap: 10px; font: 700 19px/1.3 var(--text); margin-bottom: 8px; }
.field .opt { font-weight: 400; }
.hint { display: block; font-size: 16px; line-height: 1.45; margin-top: 8px; max-width: 56ch; }
.fields-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
@media (max-width: 560px) { .fields-2 { grid-template-columns: minmax(0, 1fr); } }
.input-affix { display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 0 8px 0 18px; background: var(--pocket); border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 5px var(--pocket), inset 0 0 0 6.5px rgba(28, 39, 65, .28); }
.input-affix > span { flex: none; font: 600 22px/1 var(--slab); color: var(--navy); }
.input-affix input, .input-affix textarea { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: transparent; padding: 0;
  font: 700 30px/1 var(--slab); color: var(--navy); font-variant-numeric: tabular-nums lining-nums; }
.input-affix input[type="text"]:not([inputmode]), .input-affix input.words { font: 600 20px/1.2 var(--text); }
.input-affix input::placeholder { color: rgba(28, 39, 65, .62); font: 500 18px/1.2 var(--text); }
.input-affix:focus-within { box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px var(--pocket), inset 0 0 0 7.5px var(--navy); outline: 3px solid var(--navy); outline-offset: 2px; }
.input-affix:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 6px var(--pocket), inset 0 0 0 7.5px rgba(181, 40, 31, .4); }
/* the worked example's numbers say so until he types his own */
.sample-tag { flex: none; padding: 3px 9px 4px; background: var(--tape); color: var(--navy) !important; font: 700 16px/1.2 var(--text) !important;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.is-typed .sample-tag { display: none; }
/* -/+ for the small whole numbers: big enough for a gloved thumb */
.stepper { display: flex; gap: 6px; flex: none; }
.stepper button { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--navy); color: var(--thread); font: 700 26px/1 var(--text); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { background: #26355a; }
.field-err { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; background: var(--pocket); border-left: 5px solid var(--red);
  font: 700 16px/1.4 var(--text); color: var(--navy); }
.field-err::before { content: "!"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 800 16px/1 var(--text); }
.field-err[hidden] { display: none; }
.err { display: flex; gap: 10px; padding: 12px 14px; background: var(--pocket); border-left: 5px solid var(--red); font-weight: 700; color: var(--navy); }
.is-stale { opacity: .4; transition: opacity .2s var(--ease); }
select { min-height: 56px; font: 600 18px var(--text); color: var(--navy); }
textarea { font: 400 18px/1.5 var(--text); color: var(--navy); }
input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; accent-color: var(--navy); flex: none; }

/* ---------------------------------------------------------------- the rate tool: six numbers, one at a time */
.tool { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
.tool h1 { font-size: clamp(36px, 5.4vw, 70px); max-width: 15ch; }
.tool .lede { margin-bottom: 22px; }
.flow { position: relative; background: var(--pocket); border-radius: 3px 3px 26px 26px; padding: 30px clamp(18px, 3vw, 28px) clamp(20px, 3vw, 28px);
  max-width: 640px; box-shadow: 0 0 0 2px var(--navy); }
/* the pocket's hem: a folded top edge, topstitched. The one stitched edge on this screen */
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(28, 39, 65, .06), rgba(28, 39, 65, 0)); border-bottom: 1px solid var(--hair); pointer-events: none; }
.flow::after { content: ""; position: absolute; left: 10px; right: 10px; top: 18px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(28, 39, 65, .5) 0 6px, transparent 6px 10px) repeat-x 0 0 / 10px 2px; }
.flow-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-bottom: 14px; position: relative; }
.flow-count { font: 800 18px/1 var(--slab); }
.flow-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.flow-dots li { width: 22px; height: 4px; background: rgba(28, 39, 65, .16); }
.flow-dots li.on { background: var(--navy); }
.flow-dots li.done { background: var(--gold); }
.flow-free { font-size: 16px; font-weight: 600; }
.flow-list { list-style: none; margin: 0; padding: 0; position: relative; }
.flow .field { margin-bottom: 16px; }
.flow .field > label { font: 800 clamp(21px, 2.4vw, 26px)/1.2 var(--slab); }
.flow.is-steps .step:not(.is-on) { display: none; }
.flow-nav { display: none; gap: 12px; position: relative; }
.flow.is-steps .flow-nav { display: flex; }
.flow-nav .btn { flex: 1; min-height: 60px; font-size: 19px; }
.flow-nav #flow-back { flex: 0 0 auto; }
.flow-more { position: relative; margin: 10px 0 0; }
.flow-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s5); margin: var(--s4) 0 0; padding: 0; max-width: 640px; }
.flow-chips button { min-height: 50px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer;
  font: 500 16px/1.2 var(--text); text-align: left; border-bottom: 2px solid var(--hair2); }
.flow-chips button b { font: 700 19px/1 var(--slab); font-variant-numeric: tabular-nums lining-nums; margin-right: 3px; }
.flow-chips button.is-sample { border-bottom: 2px dotted var(--hair2); }
.flow-chips button:hover { border-bottom-color: var(--navy); }
.flow-saved { font-size: 16px; margin: 14px 0 0; }

/* the answer: a woven label holding his three rates. Sticky beside the questions on a wide screen */
.tool-side { position: sticky; top: 92px; }
@media (max-width: 900px) { .tool-side { position: static; } }
.stamp { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 var(--s3); padding: 6px 14px 7px 12px; background: var(--tape);
  font: 700 16px/1.3 var(--text); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); padding-right: 22px; }
.stamp::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 2px var(--tape), 0 0 0 3.5px var(--navy); }
.stamp.is-yours { background: none; clip-path: none; padding-left: 0; }
.stamp.is-yours::before { width: 14px; height: 8px; border-radius: 0; background: none; box-shadow: none; border: solid var(--navy); border-width: 0 0 3px 3px; transform: rotate(-45deg) translateY(-2px); }
.rr-h { margin: 0 0 var(--s4); }
.rr { margin: 0; }
.rr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s4); align-items: baseline; padding: var(--s3) 0; border-top: 1px solid var(--hair2); }
.rr-row dt { font: 700 17px/1.3 var(--text); }
.rr-row dt small { display: block; font: 400 16px/1.35 var(--text); }
.rr-row dd { margin: 0; font: 700 clamp(28px, 2.6vw, 34px)/1 var(--slab); white-space: nowrap; }
.rr-row.big { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 var(--s4); border-top: 0; }
.rr-row.big dt { font: 600 18px/1.3 var(--text); }
.rr-row.big dd { font-size: clamp(88px, 9vw, 120px); font-weight: 800; letter-spacing: -.035em; line-height: .95; margin-top: var(--s2); }
.rr-row.big dd small { font: 700 19px/1 var(--text); letter-spacing: 0; margin-left: var(--s2); }
/* the one hand-drawn accent: a chain stitch sewn under the key number */
.fig.key { display: inline-block; padding-bottom: 18px; background: url("img/chain.svg") no-repeat 0 100% / 100% 26px; }
.rr-row.loss dt { font-weight: 600; }
.rr-row.loss dd { padding-bottom: 3px; background: linear-gradient(90deg, var(--red) 0 62%, transparent 62%) repeat-x 0 100% / 12px 3px; }
.rr-say { font-size: 17px; line-height: 1.5; margin: var(--s3) 0 0; }
.rr-margin { margin-top: var(--s1); }
.rr-margin summary { display: inline-flex; align-items: center; min-height: 50px; cursor: pointer; font-weight: 700; text-decoration: underline dashed var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.rr-margin .input-affix { max-width: 220px; }
.tool-side .actions { margin-top: var(--s5); }

/* phone: the answer rides along at the bottom while he types */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--twill); color: var(--thread);
  transform: translateY(110%); transition: transform .25s var(--ease); }
.sticky::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 13px) repeat-x 0 0 / 13px 3px; }
.sticky.is-on { transform: none; }
.sticky .n { font: 800 32px/1 var(--slab); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sticky .t { flex: 1; min-width: 0; font: 600 16px/1.3 var(--text); }
.sticky .btn { min-height: 50px; padding: 0 18px; font-size: 16px; background: transparent; color: var(--thread); box-shadow: inset 0 0 0 2px var(--thread); }
.sticky .btn::after { display: none; }
@media (min-width: 901px) { .sticky { display: none; } }
@media (max-width: 900px) { body.has-sticky { padding-bottom: 84px; } }

/* ---------------------------------------------------------------- the year, on a tailor's cloth tape */
.year-band { padding-top: clamp(40px, 6vw, 80px); }
.year-h { margin: 0; font-weight: 800; }
.year-h .y-pre, .year-h .y-post { display: block; font: 700 clamp(26px, 3.6vw, 46px)/1.1 var(--slab); }
.year-h .y-num { display: block; font: 800 clamp(128px, 26vw, 300px)/.86 var(--slab); letter-spacing: -.04em; margin: 6px 0 10px -.04em;
  font-variant-numeric: tabular-nums lining-nums; }
.year[data-tier="none"] .y-num { font-size: clamp(54px, 9vw, 110px); line-height: 1; }
.year-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
@media (max-width: 900px) { .year-grid { grid-template-columns: minmax(0, 1fr); } }
.y-tape { position: relative; margin: clamp(44px, 6vw, 64px) 14px 0 14px; --paid: 73.738%; --short: 6.262%; --w: 48; }
.y-blade { position: relative; height: 72px; border-radius: 2px; overflow: hidden; transform-origin: 0 50%;
  background:
    repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px calc(400% / var(--w))) 0 0 / 100% 26px no-repeat,
    repeating-linear-gradient(90deg, var(--navy) 0 1.5px, transparent 1.5px calc(100% / var(--w))) 0 0 / 100% 13px no-repeat,
    var(--tape);
  box-shadow: 0 2px 0 rgba(28, 39, 65, .25), 0 18px 24px -18px rgba(11, 16, 32, .6); transition: transform .65s var(--ease); }
.y-tape::before { content: ""; position: absolute; left: -14px; top: -3px; bottom: -3px; width: 16px; border-radius: 3px 0 0 3px; z-index: 1;
  background: linear-gradient(90deg, #8b8e93, #d5d7da 50%, #8b8e93); }
.y-short, .y-free { position: absolute; top: 0; bottom: 0; transition: left .9s var(--ease), width .9s var(--ease); }
.y-short { left: var(--paid); width: var(--short); background: var(--red); }
.y-free { left: calc(var(--paid) + var(--short)); right: 0; background: repeating-linear-gradient(-35deg, rgba(240, 169, 59, .95) 0 4px, rgba(240, 169, 59, .55) 4px 8px); }
.y-free::after { content: ""; position: absolute; inset: 6px 6px 6px 0; border: 2.5px dashed var(--navy); border-left: 0; border-radius: 0 3px 3px 0; }
.y-scale { position: absolute; left: 0; right: 0; top: 34px; height: 30px; }
.y-scale span { position: absolute; transform: translateX(-50%); font: 700 22px/1 var(--slab); color: var(--navy); }
.y-mark { position: absolute; bottom: calc(100% + 8px); left: var(--paid); display: flex; align-items: flex-end; gap: 6px; transform: translateX(-12px);
  font: 700 19px/1.1 var(--slab); white-space: nowrap; transition: left .9s var(--ease), opacity .4s var(--ease) .5s; }
.y-mark svg { width: 22px; height: 30px; flex: none; color: var(--red); }
.y-tape.is-right .y-mark { transform: translateX(calc(-100% + 12px)); flex-direction: row-reverse; }
.y-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; }
.y-legend li { display: flex; align-items: center; gap: 10px; font: 600 17px/1.3 var(--text); }
.y-legend li::before { content: ""; width: 28px; height: 16px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px rgba(28, 39, 65, .4); }
.y-legend .k-paid::before { background: var(--tape); }
.y-legend .k-short::before { background: var(--red); }
.y-legend .k-profit::before { background: repeating-linear-gradient(-35deg, var(--gold) 0 3px, rgba(240, 169, 59, .55) 3px 6px); }
.y-legend b { font: 800 24px/1 var(--slab); }
.y-say { font-size: 19px; line-height: 1.55; max-width: 44ch; margin: 0; }
.y-share { margin-top: 18px; }
.y-share p { margin: 4px 0 0; font-size: 16px; }
/* first look: the tape pulls out, then the free weeks stitch in from the end */
.year.is-waiting .y-blade { transform: scaleX(.06); }
.year.is-waiting .y-short, .year.is-waiting .y-free, .year.is-pulling .y-short, .year.is-pulling .y-free { left: 100%; width: 0; }
.year.is-waiting .y-mark, .year.is-pulling .y-mark, .year.is-waiting .y-scale { opacity: 0; }
.y-scale { transition: opacity .5s var(--ease) .4s; }
@media (max-width: 600px) { .y-blade { height: 64px; } .y-scale { top: 30px; } .y-scale span { font-size: 20px; } .y-mark { font-size: 17px; } }

/* ---------------------------------------------------------------- the estimate pad (Price a job, the price pages)
   A slip off an estimate pad: square, white, a perforated tear edge on top (perforation, not a stitch: the one
   punched edge here), figures in one right-aligned tabular column, the total on a double rule. */
.results, .pj-out { position: relative; background: var(--pocket); color: var(--navy); padding: 30px clamp(20px, 3vw, 32px) clamp(22px, 3vw, 30px);
  box-shadow: 0 0 0 1.5px rgba(28, 39, 65, .55), 0 2px 0 rgba(28, 39, 65, .12), 0 22px 36px -26px rgba(28, 39, 65, .75); }
.results::before, .pj-out::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; pointer-events: none;
  background: radial-gradient(circle at 7px 7px, #D9D5CA 0 3.2px, transparent 3.8px) repeat-x 3px 0 / 14px 14px;
  border-bottom: 1.5px dashed var(--hair2); height: 14px; }
.results > *, .pj-out > * { position: relative; }
.results h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: var(--s2); }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s4); align-items: baseline; padding: var(--s3) 0; border-top: 1px solid var(--hair); }
.stat .k { display: block; font: 700 17px/1.35 var(--text); }
.stat .v { grid-column: 2; grid-row: 1; margin: 0; font: 700 clamp(24px, 2.4vw, 30px)/1.05 var(--slab); text-align: right; white-space: nowrap; }
.stat .s { grid-column: 1 / -1; display: block; font-size: 16px; line-height: 1.45; }
.stat.big { display: block; padding: var(--s2) 0 var(--s4); border-top: 0; }
.stat.big .k { font-weight: 600; font-size: 18px; }
.stat.big .v { display: block; text-align: left; font-size: clamp(72px, 8vw, 104px); font-weight: 800; letter-spacing: -.035em; line-height: .95; margin: var(--s2) 0 var(--s2); }
.calc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-form h2 { font-size: clamp(28px, 3vw, 40px); }

/* ---------------------------------------------------------------- Price a job */
.pj { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .pj { grid-template-columns: minmax(0, 1fr); } }
.pj h2 { margin-bottom: var(--s3); }
.pj .lede { margin-bottom: var(--s5); }
.pj-task { position: relative; }
.pj-task .input-affix input { font: 600 21px/1.2 var(--text); }
.pj-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(64px + 36px); margin: 6px 0 0; padding: 6px; list-style: none; background: var(--pocket);
  border-radius: 4px; box-shadow: 0 0 0 2px var(--navy), 0 22px 40px -18px rgba(28, 39, 65, .7); max-height: 360px; overflow-y: auto; }
.pj-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 54px; padding: 8px 12px; cursor: pointer; font-size: 17px; line-height: 1.3; }
.pj-list li b { font: 700 19px/1 var(--slab); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.pj-list li small { display: block; font-size: 16px; }
.pj-list li[aria-selected="true"], .pj-list li:hover { background: var(--tape); }
.pj-list li.own { border-top: 1px solid var(--hair2); font-weight: 700; }
/* the jobs already on this visit: a short ruled list above the fields */
.pj-ticket { list-style: none; margin: 0 0 var(--s5); padding: 0; counter-reset: j; border-top: 2px solid var(--navy); }
.pj-ticket li { counter-increment: j; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 0 var(--s3); align-items: center;
  min-height: 60px; padding: 6px 0; border-bottom: 1px solid var(--hair2); }
.pj-ticket li::before { content: counter(j); font: 800 22px/1 var(--slab); }
.pj-tk-n { font: 700 18px/1.3 var(--text); min-width: 0; }
.pj-tk-n small { display: block; font: 400 16px/1.3 var(--text); }
.pj-tk-b { min-height: 50px; padding: 0 6px; border: 0; background: none; color: var(--navy); cursor: pointer; font: 700 16px/1 var(--text);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.pj-line-k { margin: 0 0 var(--s3); font: 700 16px/1.2 var(--slab); letter-spacing: .09em; text-transform: uppercase; }
.pj-more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s2); }
@media (min-width: 901px) { .pj-out { position: sticky; top: 92px; } }
.pj-k { margin: var(--s2) 0 0; font: 600 18px/1.3 var(--text); }
.pj-price { margin: var(--s1) 0 var(--s4); font: 800 clamp(80px, 9vw, 116px)/.95 var(--slab); letter-spacing: -.035em; }
/* the estimate lines: name left, one tabular column right, adders quieter, the total on a double rule */
.pj-lines { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.pj-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: 9px 0; border-top: 1px solid var(--hair); font: 600 17px/1.3 var(--text); }
.pj-lines li small { display: block; font: 400 16px/1.35 var(--text); }
.pj-lines li b { font: 700 19px/1.3 var(--slab); white-space: nowrap; text-align: right; min-width: 4.2em; }
.pj-lines li.add { font-weight: 400; }
.pj-lines li.add b { font-weight: 600; }
.pj-lines li.total { border-top: 3px double var(--navy); margin-top: 2px; padding-top: 10px; font-weight: 700; }
.pj-lines li.total b { font-size: 22px; font-weight: 800; }
.pj-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 var(--s3); padding: 0; font: 700 16px/1.45 var(--text); }
.pj-check::before { content: ""; flex: none; width: 16px; height: 9px; margin: 4px 4px 0 2px; border: solid var(--navy); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.pj-check[data-v="below"]::before, .pj-check[data-v="loss"]::before { content: "!"; width: 24px; height: 22px; margin: 0; border: 0; transform: none;
  display: grid; place-items: end center; background: var(--red); color: #fff; font: 800 16px/1 var(--text); clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-bottom: 1px; }
.pj-check[data-v="none"] { display: none; }
.pj-dep { display: flex; gap: 12px; align-items: center; min-height: 50px; font-weight: 600; cursor: pointer; }
.pj-tl { display: block; margin: var(--s3) 0 var(--s2); font: 700 18px/1.3 var(--text); }
/* the text, shown as the message it will be: a bubble, not a form field */
.bubble { display: block; width: 100%; min-height: 150px; padding: 14px 18px; border: 0; resize: vertical; background: #EDF0F6; color: var(--navy);
  border-radius: 20px 20px 20px 4px; box-shadow: inset 0 0 0 1.5px rgba(28, 39, 65, .35); font: 500 18px/1.5 var(--text); }
.bubble:focus { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: inset 0 0 0 3px var(--gold); }
.pj-out .actions { margin-top: var(--s4); }
.pj-out .actions .btn { flex: 1 1 200px; }
.pj-note { min-height: 1.5em; margin: var(--s3) 0 0; font-weight: 700; }
.pj-fine { font-size: 16px; margin: var(--s4) 0 0; }
.pj-recent { margin-top: var(--s5); padding-top: var(--s4); border-top: 1.5px dashed var(--hair2); }
.pj-recent-k { margin: 0 0 var(--s2); }
.pj-recent ul { list-style: none; margin: 0 0 var(--s2); padding: 0; }
.pj-recent li button { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; width: 100%; min-height: 50px; padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--hair); background: none; color: var(--navy); cursor: pointer; text-align: left; font: 500 16px/1.3 var(--text); }
.pj-recent li button:hover { background: rgba(247, 231, 182, .5); }
.pj-recent li small { font: 600 16px/1.3 var(--text); }
.pj-recent li b { font: 700 19px/1.3 var(--slab); font-variant-numeric: tabular-nums lining-nums; }

/* ---------------------------------------------------------------- raise your rate: kind, specific, one step */
/* sits right after the year: the bad news, then the fix. A rule across the top, not a box */
.raise-band { padding: 0 0 clamp(64px, 8vw, 112px); background: rgba(255, 255, 255, .55); }
.raise { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start;
  padding-top: var(--s6); background: linear-gradient(var(--navy), var(--navy)) var(--gut) 0 / calc(100% - 2 * var(--gut)) 3px no-repeat; }
.year-band:has(+ .raise-band:not([hidden])) { padding-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .raise { grid-template-columns: minmax(0, 1fr); } }
.raise h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: var(--s4); }
.raise h2 .fig { white-space: nowrap; }
.rz-say > p:not(.fineprint) { font-size: 19px; max-width: 52ch; }
.raise h2 .fig { display: inline-block; }
.rz-ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); margin: var(--s5) 0 var(--s4); }
@media (max-width: 560px) { .rz-ledger { grid-template-columns: minmax(0, 1fr); } }
.rz-ledger > div { display: flex; flex-direction: column; justify-content: space-between; padding-top: var(--s3); border-top: 1px solid var(--hair2); }
.rz-ledger dt { font: 700 17px/1.35 var(--text); }
.rz-ledger dt small, .rz-ledger dd small { display: block; font: 400 16px/1.35 var(--text); }
.rz-ledger dd { margin: var(--s2) 0 0; }
.rz-ledger dd .fig { display: inline-block; font: 800 clamp(48px, 5vw, 64px)/1 var(--slab); letter-spacing: -.03em; }
.rz-send .bubble { min-height: 214px; }

/* ---------------------------------------------------------------- My numbers: a card to screenshot */
.mc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .mc { grid-template-columns: minmax(0, 1fr); } }
.mc-card { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; padding: 26px 28px 22px; border-radius: 22px;
  background: var(--twill); color: var(--thread); box-shadow: 0 0 0 5px var(--merrow), 0 0 0 7px rgba(28, 39, 65, .55), 0 26px 40px -24px rgba(28, 39, 65, .9); }
/* the merrowed edge of a patch: the thread wraps the edge. This card is a patch, so this is its one stitched border */
.mc-card::before { content: ""; position: absolute; inset: 9px; border-radius: 15px; border: 1.5px dashed rgba(240, 169, 59, .7); pointer-events: none; }
.mc-card > * { position: relative; }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.mc-top img { height: 42px; width: auto; }
.mc-name { color: var(--thread); }
.mc-k { margin: 0; font: 600 18px/1.3 var(--text); }
.mc-shop { margin: var(--s1) 0 var(--s5); }
.mc-shop .fig { display: inline-block; font: 800 clamp(84px, 9vw, 112px)/.95 var(--slab); letter-spacing: -.035em; padding-bottom: 12px;
  background: url("img/chain-gold.svg") no-repeat 0 100% / 100% 24px; padding-bottom: 16px; }
.mc-shop small { font: 700 19px/1 var(--text); margin-left: var(--s2); }
.mc-card dl { margin: 0; }
.mc-card dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: 7px 0; border-top: 1px solid rgba(244, 235, 218, .22); }
.mc-card dt { font: 500 17px/1.3 var(--text); }
.mc-card dd { margin: 0; font: 700 22px/1.2 var(--slab); white-space: nowrap; }
.mc-sub { margin: var(--s5) 0 var(--s1); color: var(--thread); }
.mc-kit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s5); }
.mc-card figcaption { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgba(244, 235, 218, .22); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 500 16px/1.35 var(--text); }
@media (max-width: 420px) { .mc-card { padding: 20px 20px 16px; } .mc-top { margin-bottom: var(--s3); } .mc-shop { margin-bottom: var(--s3); }
  .mc-kit { column-gap: var(--s4); } .mc-card dd { font-size: 20px; } .mc-card dt { font-size: 16px; } .mc-sub { margin-top: var(--s4); } }

/* ---------------------------------------------------------------- Was that job worth it? */
.jc-tag { display: inline-block; margin: 0 0 6px; padding: 7px 14px; border-radius: 999px; font: 800 16px/1 var(--text); background: var(--navy); color: var(--thread); }
.jc-out[data-tone="loss"] .jc-tag { background: var(--red); color: #fff; }
.jc-out[data-tone="thin"] .jc-tag { background: var(--tape); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.jc-tape { position: relative; margin: 8px 0 6px; padding: 30px 0 30px; --be: 53.33%; --tg: 66.67%; --job: 57.43%; --w: 24; }
.jc-tape .y-blade { height: 30px; background:
    repeating-linear-gradient(90deg, var(--navy) 0 1.5px, transparent 1.5px calc(100% / var(--w))) 0 0 / 100% 10px no-repeat, var(--tape); box-shadow: 0 2px 0 rgba(28, 39, 65, .25); }
.jc-pin { position: absolute; bottom: 0; font: 700 16px/1 var(--text); white-space: nowrap; transition: left .4s var(--ease); }
.jc-pin::before { content: ""; position: absolute; bottom: 18px; width: 2.5px; height: 40px; background: var(--navy); }
.jc-pin-be { left: var(--be); transform: translateX(calc(-100% + 1px)); padding-right: 6px; }
.jc-pin-be::before { right: 0; }
.jc-pin-tg { left: var(--tg); transform: translateX(-1px); padding-left: 6px; }
.jc-pin-tg::before { left: 0; background: var(--denim); }
.jc-job { position: absolute; top: 0; left: var(--job); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left .4s var(--ease); }
.jc-job svg { width: 18px; height: 13px; order: 2; color: var(--red); }
.jc-job span { order: 1; font: 700 16px/1 var(--slab); white-space: nowrap; margin-bottom: 2px; }
.jc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.jc-say { font-size: 17px; line-height: 1.5; margin: 14px 0 0; }
.jc-out.is-stale .stat, .jc-out.is-stale .jc-tape, .jc-out.is-stale .jc-two { opacity: .35; }

/* ---------------------------------------------------------------- markup converter, starter prices, sign-up */
.mini-conv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; align-items: end; }
.mini-conv > * { min-width: 0; }
.mini-conv .k { display: block; font: 700 17px/1.3 var(--text); margin-bottom: 8px; }
.conv-out { font: 800 clamp(44px, 5vw, 60px)/1 var(--slab); padding-bottom: 22px; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .mini-conv { grid-template-columns: minmax(0, 1fr); } }
.starter-table { min-width: 0; }
.starter-table table { width: 100%; border-collapse: collapse; background: var(--pocket); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px var(--navy); }
.starter-table th, .starter-table td { text-align: left; padding: 12px 14px; border-bottom: 1.5px dashed rgba(28, 39, 65, .2); vertical-align: top; font-size: 16px; }
.starter-table thead th { background: var(--navy); color: var(--thread); font-weight: 700; border: 0; }
.starter-table .num { text-align: right; white-space: nowrap; font: 700 18px/1.3 var(--slab); }
.starter-table thead .num { font: 700 16px/1.3 var(--text); }
.starter-table .btn { margin-top: 16px; }
.optin { max-width: 620px; }
.optin.zs { margin-top: 30px; padding: 22px; }
.optin h3 { margin: 0 0 4px; font-size: 24px; }
.optin .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: end; margin-top: 14px; }
.optin .row .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 560px) { .optin .row { grid-template-columns: minmax(0, 1fr); } .optin .row .btn { justify-self: stretch; } }
.optin label { display: block; font: 700 17px/1.3 var(--text); margin-bottom: 6px; }
.optin input[type="email"], .optin input[type="text"] { width: 100%; min-height: 56px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--pocket);
  box-shadow: inset 0 0 0 2px var(--navy); font: 500 18px/1.2 var(--text); color: var(--navy); }
.optin input:focus { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: inset 0 0 0 3px var(--gold); }
.optin input[aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--red); }
form[data-zoho-signup] [hidden] { display: none !important; }
.zs-consent { margin: 14px 0 0; font-size: 16px; }
.zs-msg { margin: 10px 0 0; min-height: 1.4em; font-weight: 700; }
.zs-msg[data-bad] { border-left: 5px solid var(--red); padding-left: 10px; }
.zs-msg:empty { min-height: 0; margin: 0; }
.zs-done { margin-top: 16px; padding: 16px 18px; background: var(--pocket); border-left: 5px solid var(--navy); }
.zs-done:focus { outline: none; }
.zs-done p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- the kit, buy block, lists, FAQ */
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled > li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 24px; padding: 22px 0; align-items: baseline;
  border-bottom: 2px dashed var(--line); }
.ruled > li:first-child { border-top: 2px dashed var(--line); }
.ruled .num { font: 800 34px/1 var(--slab); }
.ruled h3 { margin: 0; font-size: clamp(21px, 2vw, 25px); }
.ruled p { margin: 0; }
.ruled.two > li { grid-template-columns: 56px minmax(0, 1fr); }
.ruled.two > li > p { grid-column: 2; }
@media (max-width: 760px) { .ruled > li { grid-template-columns: 44px minmax(0, 1fr); } .ruled > li > :last-child { grid-column: 2; } }
.plain { list-style: none; margin: 16px 0 0; padding: 0; }
.plain li { position: relative; padding: 10px 0 10px 30px; }
.plain li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 16px; height: 0; border-top: 3px dashed var(--navy); }
.plain.x li::before { width: 14px; height: 14px; top: 16px; border: 0; background:
  linear-gradient(45deg, transparent 43%, var(--red) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--red) 43% 57%, transparent 57%); }
.quotes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.quotes li { margin: 0; padding: 16px 18px; background: var(--pocket); border-left: 5px solid var(--denim); border-radius: 0 12px 12px 0; }
.quotes blockquote { margin: 0; font: 600 clamp(19px, 1.8vw, 23px)/1.35 var(--slab); }
.quotes blockquote::before { content: "\201C"; } .quotes blockquote::after { content: "\201D"; }
.inside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .inside { grid-template-columns: minmax(0, 1fr); } }
.buy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .buy { grid-template-columns: minmax(0, 1fr); } }
.buy .label { text-align: center; padding: 30px 24px; }
/* what you get: the kit's own tabs (img/kit, products/true-rate/build/kit_shots.py) */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; align-items: start; }
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--pocket); box-shadow: 0 0 0 1.5px var(--hair2), 0 8px 22px -14px rgba(28, 39, 65, .45); }
.shot figcaption { margin-top: 10px; font-size: 16px; line-height: 1.45; max-width: 60ch; }
@media (max-width: 700px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.file-facts { margin: 28px 0 0; max-width: 900px; }
.file-facts > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 22px; padding: 14px 0; border-top: 2px dashed var(--line); }
.file-facts dt { font: 700 19px/1.3 var(--slab); }
.file-facts dd { margin: 0; }
@media (max-width: 640px) { .file-facts > div { grid-template-columns: minmax(0, 1fr); } }
.pay-steps { list-style: none; counter-reset: p; margin: 18px 0 12px; padding: 0; }
.pay-steps li { counter-increment: p; position: relative; padding: 8px 0 8px 40px; font-size: 16px; line-height: 1.45; }
.pay-steps li::before { content: counter(p); position: absolute; left: 0; top: 7px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--thread); font: 700 16px/1 var(--text); }
.pay-steps b { display: block; }
.price-num { display: block; font: 800 clamp(110px, 16vw, 190px)/.9 var(--slab); letter-spacing: -.04em; }
.price-sub { font: 700 20px/1.3 var(--text); margin: 8px 0 0; max-width: none; }
.faq { margin-top: 26px; max-width: 900px; border-top: 2px dashed var(--line); }
.faq details { border-bottom: 2px dashed var(--line); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 56px 14px 0; cursor: pointer; list-style: none;
  font: 700 clamp(19px, 1.9vw, 23px)/1.3 var(--slab); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--thread); font: 700 24px/1 var(--text); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 20px; }
.faq .ans p { margin: 0; }
.notice { margin-top: 26px; padding: 14px 18px; max-width: 70ch; border: 2px dashed currentColor; border-radius: 12px; font-size: 17px; }

/* compare */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 26px; border-radius: 14px; box-shadow: 0 0 0 2px var(--navy); background: var(--pocket); }
.cmp { border-collapse: collapse; width: 100%; min-width: 700px; font-size: 16px; line-height: 1.45; }
.cmp caption { text-align: left; caption-side: bottom; padding: 14px 16px; font-size: 16px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1.5px dashed rgba(28, 39, 65, .2); }
.cmp thead th { background: var(--navy); color: var(--thread); font-weight: 700; }
.cmp thead th.us { background: #26355a; }
.cmp tbody th { font: 700 17px/1.3 var(--slab); width: 22%; }
.cmp td.us { background: rgba(247, 231, 182, .45); font-weight: 600; }

/* thanks */
.dl-list { list-style: none; margin: 26px 0 0; padding: 0; }
.dl { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 22px 0; border-bottom: 2px dashed var(--line); }
.dl:first-child { border-top: 2px dashed var(--line); }
.dl .num { font: 800 38px/1 var(--slab); }
.dl h3 { margin: 0 0 4px; }
.dl p { margin: 0; font-size: 17px; }
@media (max-width: 640px) { .dl { grid-template-columns: 44px minmax(0, 1fr); } .dl .btn { grid-column: 2; justify-self: start; } }
.steps { list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0; max-width: 900px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 2px dashed var(--line); }
.steps li::before { content: counter(s); font: 800 44px/.9 var(--slab); }
.steps strong { display: block; font: 700 21px/1.25 var(--slab); margin-bottom: 4px; }
/* thanks: one primary (Make my copy), the rest step back; the status line sits above the files */
.dl-status { margin: 18px 0 0; font-weight: 600; }
.dl-main h3 { font-size: clamp(24px, 2.4vw, 30px); }
.dl .btn.ghost.small { min-height: 48px; }
.keep { margin-top: 26px; padding: 18px 20px; max-width: 70ch; border-radius: 14px; background: var(--pocket); box-shadow: inset 0 0 0 1.5px var(--hair2); }
.keep .fineprint { margin: 0; }
.keep .actions { margin-top: 12px; }
.keep #keep-note:empty { display: none; }
.keep #keep-note { margin-top: 8px; word-break: break-all; }
.first-steps li > div > p, .first-steps .carry { margin-top: 10px; }
.carry-t { width: 100%; max-width: 760px; border-collapse: collapse; margin-top: 10px; font-size: 16px; line-height: 1.45; background: var(--pocket); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--hair2); }
.carry-t th, .carry-t td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1.5px dashed var(--line); }
.carry-t thead th { background: var(--navy); color: var(--thread); font-weight: 700; }
.carry-t tr:last-child td { border-bottom: 0; }
.carry-t td:first-child { width: 42%; }
.carry-t b { font-family: var(--slab); font-variant-numeric: tabular-nums lining-nums; }
.carry-check { margin: 12px 0 0; font-size: 17px; }
.payback { margin: 12px 0 0; padding: 12px 16px; max-width: 70ch; border-left: 4px solid var(--gold); background: rgba(247, 231, 182, .45); font-size: 17px; }
@media (max-width: 640px) {
  .carry-t thead { display: none; }
  .carry-t tr { display: block; padding: 10px 14px; border-bottom: 1.5px dashed var(--line); }
  .carry-t tr:last-child { border-bottom: 0; }
  .carry-t td { display: block; width: auto !important; padding: 0; border: 0; }
  .carry-t td:first-child { font-size: 16px; color: var(--denim); }
}

/* legal prose */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.effective { font-size: 16px; margin-top: 14px; }

/* ---------------------------------------------------------------- footer: navy twill, the knockout script */
.foot { position: relative; background: var(--twill); color: var(--thread); padding: 64px 0 36px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--stitch-gold) repeat-x 0 0 / 12px 2px; }
.foot a { color: var(--thread); }
.foot a:hover { color: #fff; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: minmax(0, 1fr); } }
.foot-mark img { width: 190px; height: auto; }
.foot-line { margin: 14px 0 6px; font: 700 20px/1.3 var(--slab); }
.foot-by { font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-bottom: 14px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 50px; font: 700 19px/1 var(--text); text-decoration: underline dashed var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.foot-links a[aria-current="page"] { text-decoration-style: solid; }
.foot-legal { font-size: 16px; max-width: 70ch; }
.foot .small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; margin-top: 30px; padding-top: 18px; border-top: 2px dashed rgba(244, 235, 218, .3); font-size: 16px; }

/* reveal on scroll: only when JS runs (site.js adds .js), so content never hides without it */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .year.is-waiting .y-blade { transform: none; }
  .year.is-waiting .y-mark, .year.is-waiting .y-scale { opacity: 1; }
}
@media print {
  body { background: #fff; }
  .top, .sticky, .foot, .flow-nav, .actions { display: none !important; }
  .hero-page, .twill { background: #fff; color: var(--navy); }
}
.y-scale span.on-red { color: #fff; }
.rr-row.big { grid-template-columns: minmax(0, 1fr); gap: 0; }
.tool h1 { font-size: clamp(34px, 4.6vw, 62px); }
@media (max-width: 600px) { .tool h1 { font-size: 34px; } .tool .lede { font-size: 18px; } .flow-free { display: none; } }
.y-legend b { font-size: 21px; white-space: nowrap; }
.year-grid { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 900px) { .year-grid { grid-template-columns: minmax(0, 1fr); } }
.is-buyer .nav .btn { display: none; }

/* ---------------------------------------------------------------- craft pass (v2.1): composition
   Three materials so the three tools don't look alike: the pocket (the six numbers), the estimate pad (Price a job),
   the open page (Was that job worth it: no container at all, the cloth tape carries it). */
.jc-out { background: none; box-shadow: none; padding: 0; }
.jc-out::before { display: none; }
.jc-out .stat:first-of-type { display: block; border-top: 0; padding-top: 0; }
.jc-out .stat:first-of-type .v { text-align: left; font-size: clamp(64px, 7vw, 92px); font-weight: 800; letter-spacing: -.035em; line-height: .95; margin: var(--s2) 0; }
.jc-out .stat:first-of-type .s { margin-top: var(--s2); }
.jc-two { gap: 0 var(--s6); }
.jc-two .stat { display: block; }
.jc-two .stat .v { display: block; text-align: left; font-size: clamp(34px, 3.6vw, 44px); font-weight: 800; }
.jc-tag { display: inline-block; margin: 0 0 var(--s3); padding: 6px 14px; border-radius: 0; font: 700 16px/1.2 var(--slab); letter-spacing: .09em; text-transform: uppercase; background: var(--navy); color: var(--thread); }
.jc-out[data-tone="thin"] .jc-tag { background: var(--tape); box-shadow: none; }
.jc-tape { margin: var(--s4) 0 var(--s3); }

/* the kit: the tabs are really numbered in the workbook, so the numbers stay, set as sheet tabs, quiet */
.ruled > li { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr); padding: var(--s4) 0; border-bottom: 1px solid var(--hair2); }
.ruled > li:first-child { border-top: 2px solid var(--navy); }
.ruled .num { font: 700 20px/1.2 var(--slab); display: inline-grid; place-items: center; width: 34px; height: 30px; background: var(--thread);
  box-shadow: inset 0 -2px 0 var(--red); }
@media (max-width: 760px) { .ruled > li { grid-template-columns: 44px minmax(0, 1fr); } }

/* what contractors say: set as quotes, hanging into the margin. No boxes, no coloured bar */
.quotes { gap: var(--s5); margin-top: var(--s5); }
.quotes li { padding: 0 0 0 .5em; background: none; border: 0; border-radius: 0; text-indent: -.5em; }
.quotes blockquote { font: 600 clamp(24px, 2.4vw, 32px)/1.25 var(--slab); }
.quotes blockquote::before { color: var(--red); }
.quotes li:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); }
.quotes li:nth-child(3) { margin-left: clamp(0px, 8vw, 96px); }

/* FAQ: hairlines and a drawn plus, not a column of navy circles */
.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--hair2); }
.faq summary::after { content: ""; width: 18px; height: 18px; border-radius: 0; right: 10px; background:
  linear-gradient(var(--navy), var(--navy)) center / 18px 3px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 3px 18px no-repeat; }
.faq details[open] summary::after { content: ""; background: linear-gradient(var(--navy), var(--navy)) center / 18px 3px no-repeat; }

/* bands: one seam where the page changes subject, varied air instead of one value everywhere */
.band.paper::before, .band.seam::before { display: none; }
.band { padding: clamp(56px, 8vw, 112px) 0; }
.band + .band { border-top: 1px solid var(--hair); }
.year-band { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 10vw, 136px); background: none; }
.pj-band { padding-top: clamp(48px, 6vw, 80px); background: rgba(255, 255, 255, .5); }
.pj-band::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--stitch-navy) repeat-x 0 0 / 12px 2px; }
.mc-band { padding: clamp(56px, 7vw, 96px) 0; }
#job-check { background: none; }
#kit, #buy { background: rgba(255, 255, 255, .5); }
#faq { padding-bottom: clamp(72px, 10vw, 136px); }
.inside h2, .split h2 { max-width: 14ch; }

/* the menu button and other round things: round means "press it". The stamp, tags, verdicts and chips are cut, not round */
.btn.ghost { box-shadow: inset 0 0 0 2px var(--navy); }
