/* getrollmap.com: RollMap Pro's site. Tokens are the app's own (docs/design/tokens.json, light theme).
   Rules are 2 px, never hairlines (ruling 230). One blue (chalk) for act and seams; canary only for "this one". */

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations"),
       url("/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

:root {
  --graphite: #1D2329;
  --graphite-2: #56606B;
  --lead: #7A838D;
  --pencil: #5E6873;
  --chalk: #1F5C99;
  --chalk-hover: #1A4F84;
  --chalk-pressed: #15416D;
  --chalk-tint: #DCE6EE;
  --canary: #E3B341;
  --canary-edge: #8A6A00;
  --carpet: #ECE3CC;            /* carpet #DDCBA0 at 50% over the sheet */
  --hard: #DDE4EB;
  --ground: #E4E7EA;
  --panel: #F7F8F9;
  --sheet: #FBFBF8;
  --subtle: #EEF0F2;
  --rule: #7A838D;              /* field-edge: structure rules, 2 px */
  --rule-row: #B4BBC3;          /* row rules, 2 px */
  --grid: #EDEEEA;
  --grid-5: #DFE2DF;
  --ok: #2E6B45;
  --rust: #7E3A12;
  --rust-tint: #FBEEDF;

  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --measure: 66ch;
  --gutter: clamp(20px, 4vw, 48px);
  --wide: 1240px;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--sheet);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;    /* a word wider than its column (big text on a phone, a translated page) breaks; it never pushes the page sideways */
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--chalk); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--chalk-hover); }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.25; }
p, li { text-wrap: pretty; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--graphite); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--sheet) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 2px solid var(--rule-row);
  view-transition-name: top;
}
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--graphite); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand span { font-weight: 500; color: var(--graphite-2); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--graphite); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule-row); color: var(--graphite); }
.nav a[aria-current="page"] { border-bottom-color: var(--chalk); }
@media (max-width: 760px) { .nav a.text { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font: 700 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--chalk); background: var(--chalk); color: #fff;
  transition: background-color .15s, border-color .15s, transform .15s var(--ease);
}
.btn:hover { background: var(--chalk-hover); border-color: var(--chalk-hover); color: #fff; }
.btn:active { background: var(--chalk-pressed); transform: translateY(1px); }
.btn.plain { background: transparent; color: var(--chalk); border-color: var(--graphite-2); }
.btn.plain:hover { border-color: var(--chalk); background: var(--chalk-tint); color: var(--chalk-hover); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Dimension line: the drafting mark used as the site's signature ---------- */
.dim { display: flex; align-items: center; gap: 12px; color: var(--graphite-2); font-size: 15px; font-weight: 600; }
.dim::before, .dim::after { content: ""; flex: 1; height: 2px; background: var(--graphite); }
.dim::before { background: linear-gradient(var(--graphite), var(--graphite)) left center / 2px 14px no-repeat, linear-gradient(var(--graphite), var(--graphite)) center / 100% 2px no-repeat; height: 14px; }
.dim::after { background: linear-gradient(var(--graphite), var(--graphite)) right center / 2px 14px no-repeat, linear-gradient(var(--graphite), var(--graphite)) center / 100% 2px no-repeat; height: 14px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 4.7vw, 68px); font-weight: 850; letter-spacing: -0.03em; line-height: .98; }
.hero h1 span { display: block; }
@media (min-width: 600px) { .hero h1 span { white-space: nowrap; } }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--graphite); max-width: 34em; margin: 26px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { margin-top: 18px; font-size: 15px; color: var(--graphite-2); line-height: 1.5; }
.fine a { color: var(--graphite-2); }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* The live plan board */
.board { background: var(--panel); border: 2px solid var(--rule); border-radius: var(--r); box-shadow: 0 24px 48px -28px rgb(29 35 41 / .35); }
.board-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 2px solid var(--rule-row); background: var(--subtle); }
.board-bar .hint { margin-left: auto; font-size: 14px; color: var(--graphite-2); }
.board-bar .hint b { color: var(--graphite); font-weight: 700; }
.seg { display: inline-flex; border: 2px solid var(--graphite-2); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.seg button { font: 700 15px/1 var(--sans); padding: 9px 14px; border: 0; background: transparent; color: var(--graphite); cursor: pointer; }
.seg button + button { border-left: 2px solid var(--graphite-2); }
.seg button[aria-pressed="true"] { background: var(--chalk); color: #fff; }
.seg button:focus-visible { outline-offset: -4px; outline-color: var(--chalk); }
.seg button[aria-pressed="true"]:focus-visible { outline-color: var(--canary); }
.plan-wrap { position: relative; background: var(--sheet); }
.plan { width: 100%; height: auto; touch-action: manipulation; }

/* plan drawing */
.plan .g1 { stroke: var(--grid); stroke-width: 1; }
.plan .g5 { stroke: var(--grid-5); stroke-width: 1.4; }
.plan .floor { fill: #EEEFEC; }
.plan .wallband { fill: url(#wallhatch); stroke: var(--pencil); stroke-width: 1.3; stroke-linejoin: miter; }
.plan .name { font: 700 9.5px var(--sans); fill: var(--graphite); text-anchor: middle; }
.plan .sf { font: 500 7.5px var(--sans); fill: var(--graphite-2); text-anchor: middle; }
.plan .num { font: 700 9.5px var(--sans); fill: var(--graphite); dominant-baseline: central; text-anchor: middle; font-variant-numeric: tabular-nums; }
.plan .start circle { fill: var(--sheet); stroke: var(--graphite); stroke-width: 1.6; }
.plan .start path { stroke: var(--graphite); stroke-width: 1.6; fill: none; }
.plan .start .head { fill: var(--graphite); stroke: none; }
.plan .corner { fill: transparent; stroke: none; cursor: pointer; outline: none; }
.plan .corner-ring { fill: none; stroke: var(--canary-edge); stroke-width: 2; opacity: 0; transition: opacity .15s; pointer-events: none; }
.plan .corner-dot { fill: var(--canary); opacity: 0; transition: opacity .15s; pointer-events: none; }
.plan .cg:hover .corner-ring, .plan .cg:focus-within .corner-ring, .plan .cg:hover .corner-dot, .plan .cg:focus-within .corner-dot { opacity: 1; }
.plan .scale { stroke: var(--graphite); stroke-width: 1.5; }
.plan .labels { transition: opacity .18s; }
.plan.swap .labels { opacity: 0; }

@keyframes fade { to { opacity: 1; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.band { background: var(--panel); border-top: 2px solid var(--rule-row); border-bottom: 2px solid var(--rule-row); }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { font-size: 20px; color: var(--graphite-2); margin-top: 18px; max-width: 36em; }

/* sheet beside the plan */
.paper { background: #fff; border: 2px solid var(--rule); border-radius: var(--r); padding: 10px; box-shadow: 0 18px 36px -24px rgb(29 35 41 / .4); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin-top: 40px; }
.point { padding: 18px 0 6px; border-top: 2px solid var(--rule-row); }
.point h3 { margin-bottom: 8px; }
.point p { color: var(--graphite-2); font-size: 17px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* screenshots */
.shot { border: 2px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px -36px rgb(29 35 41 / .45); }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--graphite-2); margin-top: 12px; }
.shot figcaption { margin: 0; padding: 12px 16px 14px; }   /* inside the frame, clear of its edge */

/* roll */
.roll-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 8px 0 40px; border-top: 2px solid var(--graphite); }
.stat { padding: 16px 18px 0 0; }
.stat + .stat { padding-left: 18px; border-left: 2px solid var(--rule-row); }
.stat b { display: block; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.stat span { font-size: 15px; color: var(--graphite-2); }
@media (max-width: 760px) { .roll-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
.roll { width: 100%; overflow-x: auto; }
.roll svg { min-width: 760px; }
.roll .cut rect { fill: var(--chalk); fill-opacity: .9; stroke: #fff; stroke-width: 2; }
.roll .cut text { font: 700 14px var(--sans); fill: #fff; }
.roll .cut .room { font: 600 12px var(--sans); fill: var(--graphite); }
.roll .waste { fill: url(#hatch); stroke: var(--pencil); stroke-width: 2; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .roll .cut { animation: drop linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
    .roll .cut:nth-of-type(2) { animation-range: entry 38% cover 50%; }
    .roll .cut:nth-of-type(3) { animation-range: entry 46% cover 55%; }
    .roll .cut:nth-of-type(4) { animation-range: entry 54% cover 60%; }
    .roll .cut:nth-of-type(5) { animation-range: entry 62% cover 65%; }
  }
}
@keyframes drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }

/* price strip */
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--graphite); border-radius: var(--r); background: #fff; }
.price > div { padding: clamp(22px, 3vw, 36px); }
.price > div + div { border-left: 2px solid var(--graphite); background: var(--sheet); }
.price .amt { font-size: clamp(44px, 5vw, 64px); font-weight: 850; letter-spacing: -0.03em; line-height: 1; margin: 10px 0 6px; }
.price .amt small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--graphite-2); }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.price li { padding: 7px 0 7px 28px; position: relative; border-top: 2px solid var(--subtle); }
.price li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2.5px solid var(--chalk); border-bottom: 2.5px solid var(--chalk); rotate: -45deg; }
.early { margin-top: 16px; padding: 14px 18px; background: var(--chalk-tint); border-left: 4px solid var(--chalk); border-radius: 0 var(--r) var(--r) 0; font-size: 16px; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } .price > div + div { border-left: 0; border-top: 2px solid var(--graphite); } }

/* the facts under the hero's board: what each is, then anything more there is to say */
.tf { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.tf li { padding: 14px 0 18px; border-top: 2px solid var(--rule-row); font-size: 16px; line-height: 1.45; color: var(--graphite-2); }
.tf li:nth-child(-n+3) { border-top-color: var(--graphite); }
.tf b { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--graphite); text-wrap: balance; }
.tf li > span { display: block; margin-top: 4px; }
.nb { white-space: nowrap; }   /* a hyphenated word stays on one line */
.tf, .founder, .foot { overflow-wrap: anywhere; }   /* a word longer than its column breaks rather than push the page sideways */
@media (max-width: 900px) {
  .tf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf li:nth-child(3) { border-top-color: var(--rule-row); }
}
@media (max-width: 600px) {
  .tf { grid-template-columns: minmax(0, 1fr); }
  .tf li { padding: 12px 0 14px; }
  .tf li:nth-child(2) { border-top-color: var(--rule-row); }
}

/* the founder's note: one statement, the five jobs in order, the letter in the site's own type */
.founder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.founder h2 { max-width: 12.5em; }
.jobs { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: job; font-size: 18px; color: var(--graphite-2); }
.jobs li { display: grid; grid-template-columns: 1.3em minmax(0, 1fr); padding: 3px 0; counter-increment: job; }
.jobs li::before { content: counter(job) "."; }
.letter { max-width: 520px; font-size: 19px; line-height: 1.6; }
.letter h3 { margin: 0 0 14px; }
.letter p { margin: 0 0 .75em; }
.letter .sig { margin: 1.5em 0 0; line-height: 1.4; }
.sig-name { font-weight: 700; }
.sig-role { font-size: 16px; color: var(--graphite-2); }
/* side by side, the note's title starts level with the top of the statement's capitals */
@media (min-width: 981px) { .letter { padding-top: calc((min(4.2vw, 52px) - 40px) / 3); } }
/* stacked (phones, small tablets): the five jobs are left out, because the note's first sentence, now directly below, says them */
@media (max-width: 980px) { .founder-grid { grid-template-columns: minmax(0, 1fr); } .founder .jobs { display: none; } }
@media (max-width: 600px) { .letter { font-size: 18px; } }

/* install */
.install { padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; counter-reset: inst; margin-top: 32px; }
.install li { list-style: none; border-top: 4px solid var(--chalk); padding-top: 16px; }
.install li::before { counter-increment: inst; content: counter(inst); font-weight: 800; color: var(--chalk); font-size: 15px; }
.install h3 { font-size: 19px; margin: 6px 0 8px; }
.install p { color: var(--graphite-2); font-size: 16px; }
.install kbd { font: inherit; font-weight: 700; color: var(--graphite); }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; gap: 24px; padding: 0; } }

/* closing */
.closing { background: var(--graphite); color: #fff; }
.closing h2 { color: #fff; }
.closing p { color: #C9D0D7; font-size: 20px; max-width: 34em; margin-top: 16px; }
.closing .cta { margin-top: 28px; }
.closing .btn.plain { color: #fff; border-color: #9AA3AE; }
.closing .btn.plain:hover { background: rgb(255 255 255 / .08); border-color: #fff; }
.closing a:not(.btn) { color: #A6C0EC; }

/* footer: the company, the site's links, the copyright line */
.foot { padding: 36px 0 40px; font-size: 15px; color: #C9D0D7; background: var(--graphite); border-top: 2px solid #3A434C; }
.foot .wrap { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; margin-top: -5px; }
.foot nav a { padding: 5px 0; }
.foot a { color: #C9D0D7; }
.foot a:hover { color: #fff; }
.co p { margin: 0; }
.co .co-name { color: #fff; font-weight: 800; letter-spacing: .02em; }
.co-c { grid-column: 1 / -1; padding-top: 14px; border-top: 2px solid #3A434C; font-size: 14px; color: #9AA3AE; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: minmax(0, 1fr); } .foot nav { justify-content: flex-start; } }
/* on the two dark bands the blue ring doesn't show: the focus ring is canary there, as on the blue segment */
.closing :focus-visible, .foot :focus-visible { outline-color: var(--canary); }

/* inner pages */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 2px solid var(--rule-row); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 850; letter-spacing: -0.03em; }
.page-head p { font-size: 20px; color: var(--graphite-2); margin-top: 14px; max-width: 36em; }
.prose { max-width: var(--measure); padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.prose h2 { font-size: 26px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose .updated { color: var(--graphite-2); font-size: 15px; }
.qa { border-top: 2px solid var(--rule-row); padding: 16px 0; }
.qa summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-weight: 800; color: var(--chalk); font-size: 22px; line-height: 1; transition: rotate .2s var(--ease); }
.qa[open] summary::after { rotate: 45deg; }
.qa p { color: var(--graphite-2); margin: 10px 0 0; }

/* two pictures side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.pair figure.shot { padding: 0; }
.pair figcaption { padding: 12px 16px 14px; margin: 0; border-top: 2px solid var(--rule-row); background: var(--panel); font-weight: 700; color: var(--graphite); }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

/* the roll strip unrolls as it comes into view (scroll-driven; a still strip where that isn't supported) */
.unroll .roll-shot { background: var(--sheet); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .unroll .roll-shot img { animation: unroll linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
  }
}
@keyframes unroll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* a picture beside its words */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: 26px; }
.feature p { color: var(--graphite-2); margin-top: 12px; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

/* pictures open full size */
a.zoomable { display: block; cursor: zoom-in; }
a.zoomable:focus-visible { outline-offset: -3px; }
dialog.zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.zoom::backdrop { background: rgb(29 35 41 / .82); backdrop-filter: blur(3px); }
dialog.zoom img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; border: 2px solid var(--rule); border-radius: var(--r); background: var(--panel); }
dialog.zoom .zoom-cap { color: #E3E6EA; font-size: 15px; margin: 10px 4px 0; max-width: 80ch; }
dialog.zoom .zoom-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: var(--graphite); color: #fff; font: 700 24px/1 var(--sans); cursor: pointer; }
::view-transition-group(zoom) { animation-duration: .32s; animation-timing-function: var(--ease); }

/* pricing page */
.pricing { padding-top: clamp(32px, 4vw, 48px); }
.price .for { color: var(--graphite-2); margin: 2px 0 0; }
.price .per { color: var(--graphite-2); margin: 0; font-size: 16px; }
.price .soon { color: var(--graphite-2); font-size: 15px; margin-top: 8px; }
.price .fine { margin-top: 14px; }
.price .pro { box-shadow: inset 0 0 0 2px var(--chalk); }
.qas { max-width: 760px; margin-top: clamp(56px, 7vw, 88px); }
.qas h2 { font-size: 32px; margin-bottom: 12px; }
.qa p { margin-top: 10px; }
.nav a.btn, .nav a.btn:hover { color: #fff; border-bottom: 2px solid var(--chalk); padding: 0 16px; }
.nav a.btn:hover { border-bottom-color: var(--chalk-hover); }
.coarse-ptr { display: none; }
@media (pointer: coarse) { .fine-ptr { display: none; } .coarse-ptr { display: inline; } }

/* download page */
.download { padding-top: clamp(32px, 4vw, 48px); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.platform { border: 2px solid var(--rule); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); background: #fff; }
.platform.mine { border-color: var(--chalk); box-shadow: inset 0 0 0 2px var(--chalk); }
.platform h2 { font-size: 30px; margin-bottom: 16px; }
.platform:not(.mine) .btn { background: transparent; color: var(--chalk); border-color: var(--graphite-2); }
.platform:not(.mine) .btn:hover { background: var(--chalk-tint); border-color: var(--chalk); }
.platform .file { color: var(--graphite-2); font-size: 15px; margin: 12px 0 0; }
.heads-up { margin-top: 18px; padding: 14px 16px; background: var(--rust-tint); border-left: 4px solid #C9762E; border-radius: 0 var(--r) var(--r) 0; font-size: 16px; }
.ok-note { margin-top: 18px; padding: 14px 16px; background: #E4EFE8; border-left: 4px solid var(--ok); border-radius: 0 var(--r) var(--r) 0; font-size: 16px; }
.walk { margin: 28px 0 0; font-size: 18px; }
.walk a { font-weight: 700; }
.sub { font-size: 28px; margin: clamp(48px, 6vw, 72px) 0 18px; }
.steps2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps2 h3 { padding-bottom: 8px; border-bottom: 2px solid var(--graphite); }
.steps2 ol { padding-left: 1.3em; }
.steps2 li { margin: 10px 0; }
.whatsnew ul { padding-left: 1.2em; max-width: 72ch; }
.whatsnew li { margin: 10px 0; }
.sums { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; align-items: center; }
.sums dt { font-weight: 700; }
.sums dd { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sums code { font: 500 14px ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break: break-all; background: var(--subtle); padding: 4px 8px; border-radius: 2px; }
.copy { font: 700 14px var(--sans); padding: 6px 12px; border: 2px solid var(--graphite-2); background: #fff; border-radius: var(--r); cursor: pointer; }
.copy:hover { border-color: var(--chalk); color: var(--chalk); }
.shop-note { margin-top: 40px; }
@media (max-width: 760px) { .platforms, .steps2 { grid-template-columns: 1fr; } .sums { grid-template-columns: 1fr; } }

/* ---------- The house (hero): one job in six chapters (Sheet, Plan, Products, Seams, Cuts, Quote and work order).
   The board rests on the finished job (build.py writes that frame into the page); house.js plays the chapters over
   it and ends on the same frame. A chapter is one or more scenes (data-scene). On a phone (a narrow, tall window:
   PHONE below, and the same query in house.js) the stage is tall, the words sit under it, and the camera moves in
   on what is happening. ---------- */
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-sub.woff2") format("woff2"); font-weight: 600; font-display: swap; }
.hero { padding-top: clamp(26px, 3.2vw, 44px); }
.hero .wrap { display: block; }
.hero-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-bottom: clamp(22px, 2.4vw, 30px); }
.hero-head .lede { margin: 4px 0 22px; max-width: 36em; }
.hero-head .fine { margin: 14px 0 0; }
@media (max-width: 900px) { .hero-head { grid-template-columns: 1fr; } }
/* a phone's first screen: a little less air above the board, so the top of the stage is on it */
@media (max-width: 600px) {
  .hero { padding-top: 18px; }
  .hero-head { gap: 16px; margin-bottom: 16px; }
  .hero-head .lede { margin: 0 0 16px; }
  .hero-head .fine { margin-top: 12px; }
}
.skip-demo { position: absolute; left: -9999px; z-index: 6; margin: 8px; background: var(--graphite); color: #fff; padding: 8px 14px; }
.skip-demo:focus { left: auto; color: #fff; }

.board { --ease-move: cubic-bezier(.77, 0, .175, 1); --ease-quick: cubic-bezier(.23, 1, .32, 1); display: flex; flex-direction: column; }
.board-bar { flex-wrap: nowrap; gap: 8px; padding: 4px 12px 4px 6px; }
/* the strip scrolls sideways, so it clips: 6 px of its own padding keeps a button's focus ring (3 px, 3 px out) whole */
.board-bar .chapters { display: flex; gap: 2px; list-style: none; margin: 0; padding: 6px; scroll-padding-inline: 10px; counter-reset: ch; overflow-x: auto; scrollbar-width: none; flex: 1; }
.board-bar .chapters::-webkit-scrollbar { display: none; }
.chapters button { position: relative; overflow: hidden; white-space: nowrap; font: 700 15px/1 var(--sans); padding: 9px 11px 11px; border: 2px solid transparent; border-radius: var(--r); background: transparent; color: var(--graphite-2); cursor: pointer; }
.chapters button::before { counter-increment: ch; content: counter(ch); display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 7px; border-radius: 50%; border: 2px solid currentColor; font-size: 11px; vertical-align: 1px; }
.chapters button:hover { color: var(--graphite); background: var(--sheet); }
.chapters button[aria-current="true"] { color: var(--graphite); background: var(--sheet); border-color: var(--graphite-2); }
.chapters button[aria-current="true"]::before { background: var(--chalk); border-color: var(--chalk); color: #fff; }
.chapters button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--canary); transform: scaleX(0); transform-origin: left; }
.board.playing .chapters button[aria-current="true"]::after { animation: progress var(--chapter-ms, 5s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.replay { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); border: 2px solid var(--graphite-2); background: var(--sheet); color: var(--graphite); cursor: pointer; }
.replay svg { width: 20px; height: 20px; }
.replay:hover { border-color: var(--chalk); color: var(--chalk); }
.pause .i-pause, .board.playing:not(.paused) .pause .i-play { display: none; }
.board.playing:not(.paused) .pause .i-pause { display: block; }

/* what the chapter says, directly under the chapter buttons. Every chapter's words are in the row (build.py), one
   over the other and not shown, so the row is as tall as its tallest at every width and the board never changes height. */
.board-say { display: grid; padding: 12px 14px 13px; border-bottom: 2px solid var(--rule-row); background: var(--panel); }
.board-say .say { grid-area: 1 / 1; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: baseline; font-size: 17px; line-height: 1.45; color: var(--graphite); }
.board-say .say span { flex: 1 1 26em; }
.board-say .say b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-say .say[data-say] { visibility: hidden; }

.board-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px 12px; border-top: 2px solid var(--rule-row); background: var(--subtle); }
.board-tools .hint { font-size: 14px; color: var(--graphite-2); }
.board-tools .hint b { color: var(--graphite); font-weight: 700; }
.board-tools .made-up { margin-left: auto; font-size: 13px; color: var(--graphite-2); }
/* Running / Wall lengths while the plan carries wall numbers; the corner hint while the corners can be picked. They
   keep their place when they are not shown. */
.board-tools .seg, .board-tools .hint { visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
.board:is([data-scene="one"], [data-scene="house"], [data-scene="connect"]) .board-tools .seg,
.board[data-scene="connect"] .board-tools .hint { visibility: visible; opacity: 1; transition: opacity .2s; }
.board.resting .board-tools .made-up { visibility: hidden; }

/* the stage: the plan, with the sheet, the quote and the work order over it. Never taller than the window leaves
   under the header, the chapter buttons and the words. */
.stage { position: relative; width: 100%; background: var(--sheet); overflow: hidden; aspect-ratio: var(--aspect, 1.25); max-height: max(360px, calc(100vh - 212px)); }
@supports (height: 1svh) { .stage { max-height: max(360px, calc(100svh - 212px)); } }
.stage .plan-wrap { position: absolute; inset: 0; transition: opacity .7s var(--ease); }
.stage .plan-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The sheet keeps one size in the layout and is moved and sized with translate and scale (house.js sets where:
   --sheet-x, --sheet-y, --sheet-s). Its 2 px edge is two edges, one drawn for each size, that cross-fade. */
.stage .sheet { position: absolute; z-index: 2; left: 50%; top: 50%; width: var(--sheet-w, 70%); aspect-ratio: var(--sheet-aspect, 1.3); translate: -50% -50%; rotate: -1deg; scale: 1;
  background: #FDFDF9; box-shadow: 0 22px 40px -20px rgb(29 35 41 / .5); border-radius: 3px;
  transition: translate .9s var(--ease-move), scale .9s var(--ease-move), rotate .9s var(--ease-move), opacity .6s var(--ease); }
.stage .sheet::before, .stage .sheet::after { content: ""; position: absolute; z-index: 1; inset: 0; border: 2px solid var(--rule); border-radius: 3px; pointer-events: none; transition: opacity .9s var(--ease-move); }
.stage .sheet::after { border-width: calc(2px / var(--sheet-s, .5)); border-radius: calc(3px / var(--sheet-s, .5)); opacity: 0; }
.stage .sheet { overflow: hidden; }
.stage .sheet svg { width: 100%; height: 100%; display: block; transform-origin: 0 0; transition: transform .9s var(--ease-move); }
.board:not([data-scene="sheet"]) .sheet { translate: calc(-50% + var(--sheet-x, 0px)) calc(-50% + var(--sheet-y, 0px)); scale: var(--sheet-s, .5); rotate: -.5deg; }
.board:not([data-scene="sheet"]) .sheet::before { opacity: 0; }
.board:not([data-scene="sheet"]) .sheet::after { opacity: 1; }
.board:is([data-scene="connect"], [data-scene="closets"], [data-scene="products"], [data-scene="furniture"], [data-scene="seams"], [data-scene="cuts"], [data-scene="quote"], [data-scene="order"]) .sheet { opacity: 0; pointer-events: none;
  translate: calc(-50% + var(--sheet-x, 0px) + var(--sheet-ox, 0px)) calc(-50% + var(--sheet-y, 0px) + var(--sheet-oy, 0px)); transition-timing-function: var(--ease); }
/* at rest the sheet waits unseen where the first chapter shows it, so the story opens with it fading in, in place */
.board.resting .sheet { translate: -50% -50%; scale: 1; rotate: -1deg; transition: none; }
.board.resting .sheet::before { opacity: 1; transition: none; }
.board.resting .sheet::after { opacity: 0; transition: none; }
.board[data-scene="sheet"] .plan-wrap { opacity: 0; }
.sheet-svg .paper-grid line { stroke: #C8DCE8; stroke-width: 6; }
.sheet-svg .pencil path { fill: none; stroke: #3B4148; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.sheet-svg .pencil .win { stroke-width: 9; }
.sheet-svg .pencil .arrow { stroke-width: 12; }
.sheet-svg .hand { font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 600; fill: #2C3238; text-anchor: middle; dominant-baseline: central; }
.sheet-svg .hand-num { font-size: 250px; }
.sheet-svg .hand-name { font-size: 200px; fill: #56606B; }
.sheet-svg .hand-name.at-start { text-anchor: start; }
.sheet-svg .hand-name.at-end { text-anchor: end; }
.sheet-svg .hand-title { font-size: 300px; }
@media (prefers-reduced-motion: no-preference) {
  .board[data-scene="sheet"] .sheet-svg .pencil path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pencil .9s var(--ease) forwards; }
  .board[data-scene="sheet"] .sheet-svg .pencil path:nth-child(3n+1) { animation-delay: .25s; }
  .board[data-scene="sheet"] .sheet-svg .pencil path:nth-child(3n+2) { animation-delay: .5s; }
  .board[data-scene="sheet"] .sheet-svg .hand-nums text { opacity: 0; animation: fade .5s ease 1.3s forwards; }
}
@keyframes pencil { to { stroke-dashoffset: 0; } }

.stage .quote, .stage .order { position: absolute; z-index: 3; inset: 0; display: grid; place-items: start center; padding: 16px; background: rgb(228 231 234 / .82); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.board[data-scene="quote"] .quote, .board[data-scene="order"] .order { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
/* The card and the printout scroll by script while the story plays; a wheel or a finger over them moves the page.
   A press or keyboard focus on one (.live, house.js) hands its scrolling to the reader until they leave it. */
.qcard { position: relative; width: min(560px, 100%); max-height: 100%; overflow: hidden; background: var(--sheet); border: 2px solid var(--rule); border-radius: var(--r); padding: 14px 18px 18px; box-shadow: 0 20px 40px -22px rgb(29 35 41 / .55);
  transform: translateY(14px); transition: transform .7s var(--ease); }
.qcard.live { overflow-y: auto; }
.board[data-scene="quote"] .qcard { transform: none; }
.qhead { font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.qpart { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--graphite-2); }
.qrow { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 7px 0; border-top: 2px solid var(--rule-row); }
.qlabel { grid-column: 1; font-size: 13px; color: var(--graphite-2); }
.qval { grid-column: 1; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qrow.big .qval { font-size: 21px; font-weight: 800; }
.qunder { grid-column: 1; font-size: 13px; color: var(--graphite-2); }
.qcopy { grid-column: 2; grid-row: 1 / span 3; min-width: 76px; font: 700 14px/1 var(--sans); padding: 8px 12px; border: 2px solid var(--graphite-2); border-radius: var(--r); background: var(--sheet); color: var(--chalk); cursor: pointer; }
.qcopy:hover { border-color: var(--chalk); background: var(--chalk-tint); }
.stage .order .pages { position: absolute; inset: 0; overflow: hidden; scrollbar-gutter: stable both-edges; padding: 18px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; scrollbar-width: thin; }
.stage .order .pages.live { overflow-y: auto; }
.stage .order .pages:focus-visible { outline: 3px solid var(--chalk); outline-offset: -3px; }
.stage .order picture { display: block; width: min(78%, 900px); flex: none; }
.stage .order img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 16px 30px -16px rgb(29 35 41 / .5); border-radius: 2px; }

/* the plan. Its type sizes are the ones build.py places the lettering for (HERO_TYPE): keep the two in step. */
.plan.house { display: block; }
.plan.house .g1 { stroke-width: 10; }
.plan.house .g5 { stroke-width: 18; }
.plan.house .floor { fill: #F1F1EE; }
.plan.house .wallband { fill: url(#hatch); stroke: var(--pencil); stroke-width: 18; }
.plan.house .name { font: 700 168px var(--sans); paint-order: stroke; stroke: #F1F1EE; stroke-width: 44px; stroke-linejoin: round; }
.plan.house .name.at-start { text-anchor: start; }
.plan.house .name.at-end { text-anchor: end; }
.plan.house .sf { font: 500 124px var(--sans); paint-order: stroke; stroke: #F1F1EE; stroke-width: 40px; stroke-linejoin: round; transition: opacity .5s; }
.board:is([data-scene="sheet"], [data-scene="one"], [data-scene="house"], [data-scene="connect"]) .plan.house .sf.late { opacity: 0; }
.plan.house .num { font-size: 150px; transition: fill .3s; }
.plan.house .num.off { fill: var(--chalk); }
.plan.house .start circle, .plan.house .start path { stroke-width: 24; }
.plan.house .corner-ring { stroke-width: 28; }
.plan .wedge { fill: #DCE6EE; opacity: .55; }
.plan .glass { fill: #fff; stroke: var(--pencil); stroke-width: 14; }
.plan .glass-line { stroke: var(--chalk); stroke-width: 18; }
.plan .doorway { fill: var(--sheet); }
.plan .doorwall { fill: #fff; stroke: var(--pencil); stroke-width: 14; }
.plan .dw-line { stroke: var(--chalk); stroke-width: 26; }
.plan .dw-t { font: 700 104px var(--sans); fill: var(--chalk); text-anchor: middle; dominant-baseline: central; }
.plan .piece rect { fill: #fff; stroke: var(--graphite-2); stroke-width: 16; }
.plan .piece-t { font: 600 110px var(--sans); fill: var(--graphite-2); text-anchor: middle; dominant-baseline: central; }
.plan .cpiece { fill: var(--carpet); }
.plan .cpiece.c1 { fill: #D3BE8E; }
.plan .cpiece.c2 { fill: #E5D6B2; }
.plan .seam { stroke: var(--graphite); stroke-width: 26; stroke-dasharray: 90 50; fill: none; }
.plan .seam.butt { stroke-width: 18; stroke-dasharray: 40 40; }
.plan .seam.slider { stroke: var(--chalk); stroke-width: 40; stroke-dasharray: none; stroke-linecap: round; }
.plan .flag circle { fill: var(--canary); stroke: var(--graphite); stroke-width: 18; }
.plan .flag-t { font: 850 170px var(--sans); fill: var(--graphite); text-anchor: middle; dominant-baseline: central; }
.plan .flag-say { font: 700 140px var(--sans); fill: var(--graphite); dominant-baseline: central; paint-order: stroke; stroke: #F5EFE0; stroke-width: 44px; stroke-linejoin: round; }
.plan .cut { fill: var(--carpet); stroke: var(--graphite); stroke-width: 18; transition: fill .25s; }
/* The old roll's scroll-driven "drop" (.roll .cut, further up) matches these cuts too: it is not theirs. Without this
   each cut carried that animation wherever view timelines are supported and motion is not reduced. */
.plan.house .cut { animation: none; }
.plan .cut-t { font: 700 150px var(--sans); fill: var(--graphite); text-anchor: middle; font-variant-numeric: tabular-nums; }
.plan .roll-t, .plan .sum-t { font: 600 200px var(--sans); fill: var(--graphite); font-variant-numeric: tabular-nums; }
/* The roll is drawn twice (build.py, house.js): the strip under the plan, and the phone's (.big): the roll to scale,
   12'0 wide, lower in the tall stage, lettered to be read at that size. One shows. */
.plan .strip.big { display: none; }
.plan .strip.big :is(.cut-t, .roll-t, .sum-t) { font-size: 480px; }
/* Cuts: in the roll line's place, the add-up. Each cut is counted (.lit) as its length joins the sum (.on). */
.plan .sum-t, .board[data-scene="cuts"] .plan .roll-t { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.board[data-scene="cuts"] .plan .sum-t { opacity: 1; visibility: inherit; transition: opacity .3s; }
.plan .sum-t tspan { fill-opacity: 0; transition: fill-opacity .25s; }
.plan .sum-t tspan.on { fill-opacity: 1; }
.plan .cut.lit { fill: #D3BE8E; }

/* what shows when. A part that isn't showing is faded out and then taken off the drawing (visibility, after the
   fade), so it costs nothing to draw; a part that shows is put back at once (transition-delay 0s) and faded in. `inherit`, not `visible`: a part inside a
   room that is itself off must stay off. The first rule is :where() so the delays set further down are not outranked
   by it (as :is() it outranked them: parts popped in 0.7 s late instead of fading). */
.plan.house :where(.lay, .strip, .slider, .furn .piece, .extras, .lay .flag, .corners, .ann) { transition: opacity .7s var(--ease), visibility 0s .7s; }
.plan.house :is(.lay, .strip, .slider, .extras, .corners) { opacity: 0; visibility: hidden; }
.plan.house .furn .piece { opacity: 0; visibility: hidden; }
.board:is([data-scene="connect"], [data-scene="furniture"], [data-scene="seams"], [data-scene="cuts"], [data-scene="quote"], [data-scene="order"]) .extras,
.board[data-scene="connect"] .corners,
.board:is([data-scene="furniture"], [data-scene="seams"], [data-scene="cuts"], [data-scene="quote"], [data-scene="order"]) .furn .piece,
.board[data-scene="seams"] :is(.lay-a, .slider, .strip-a),
.board[data-scene="seams"].slid :is(.lay-b, .strip-b),
.board:is([data-scene="cuts"], [data-scene="quote"], [data-scene="order"]) :is(.lay-b, .strip-b) { opacity: 1; visibility: inherit; transition-delay: 0s; }
.board:not([data-scene="connect"]) .corners { pointer-events: none; }
/* Seams opens with the carpet as laid, its seams and the roll, as the furniture lands; the flags a second later */
.board[data-scene="furniture"] .lay-a, .board[data-scene="furniture"] .strip-a { opacity: 1; visibility: inherit; transition-delay: .15s; }
.board[data-scene="furniture"] .flags .lay-a { transition-delay: 1s; }
.board[data-scene="seams"] .lay-a .seam.moved { opacity: 0; }
/* once the seam is slid: the new lay fades in over the old, which is then taken away (no dip between two lays that
   are the same everywhere but one room); the old flags fade as the new ones come */
.board[data-scene="seams"].slid :is(.lay-a, .strip-a) { opacity: 0; visibility: hidden; transition: opacity 0s .7s, visibility 0s .7s; }
.board[data-scene="seams"].slid .flags .lay-a { transition: opacity .7s var(--ease), visibility 0s .7s; }
/* a roll that is the same before and after the slide (this job's) is one strip, shown from the furniture on */
.board[data-scene="furniture"] .strip-ab { opacity: 1; visibility: inherit; transition-delay: .15s; }
.board[data-scene="seams"] .strip-ab, .board[data-scene="seams"].slid .strip-ab { opacity: 1; visibility: inherit; transition: opacity .7s var(--ease); }
.board[data-scene="seams"].slid .slider { opacity: 0; visibility: hidden; transition-delay: .8s, 1.5s; }
.board:is([data-scene="closets"], [data-scene="products"], [data-scene="furniture"], [data-scene="seams"], [data-scene="cuts"], [data-scene="quote"], [data-scene="order"]) .ann .labels { opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.plan.house .ann .labels { transition: opacity .5s; }
@media (prefers-reduced-motion: no-preference) {
  /* the furniture arrives one piece after another, 30 ms apart (--k, house.js), all of it inside half a second */
  .board[data-scene="furniture"] .furn .piece { animation: furn-drop .2s var(--ease-quick) both; animation-delay: var(--k); }
}
@keyframes furn-drop { from { opacity: 0; transform: translateY(-120px); } }
@media (max-width: 700px) {
  .plan.house .sf, .plan .piece-t, .plan .dw-t { display: none; }
  .stage .order picture { width: 92%; }
  .board-say .say { flex-direction: column; flex-wrap: nowrap; }
  .board-say .say span { flex: none; }
  .board-say .say b { white-space: normal; }
  .board-tools .made-up { margin-left: 0; order: -1; flex-basis: 100%; }
}

/* rooms come and go; walls drawn as lines first */
.plan.house .room, .plan.house .roomann { transition: opacity .5s var(--ease); }
/* what is faded out is then taken off the drawing (visibility), so it costs nothing and the walls over it are drawn
   exactly as the page's own still draws them */
.plan.house .room.off, .plan.house .roomann.off { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.plan .roughline { fill: none; stroke: var(--chalk); stroke-width: 30; stroke-linejoin: round; stroke-linecap: round; opacity: 0; visibility: hidden; }
.plan .room.lining .roughline { opacity: 1; visibility: inherit; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pencil 1s var(--ease) forwards; }
.plan .room.lining :is(.floor, .wallband, .planks, .hardfill) { opacity: 0; }
.plan .room :is(.floor, .wallband, .planks, .hardfill) { transition: opacity .5s var(--ease) .1s; }
.plan.house .roomann.lining { opacity: 0; }
.plan .plank { stroke: #CDBD9E; stroke-width: 9; }
.plan .pulses circle { fill: none; stroke: var(--canary); stroke-width: 40; animation: pulse 1.2s var(--ease) forwards; }
@keyframes pulse { from { r: 60px; opacity: 1; } to { r: 360px; opacity: 0; } }
.sheet-svg .sk-room { transition: opacity .5s var(--ease); }
.sheet-svg .sk-room.dim { opacity: .22; }

/* the pointer */
.stage .cursor { position: absolute; z-index: 5; left: 0; top: 0; width: 28px; height: 28px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.board.pointing .cursor { opacity: 1; }
.stage .cursor svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .35)); transition: scale .12s; }
.stage .cursor path { fill: #fff; stroke: var(--graphite); stroke-width: 1.6; stroke-linejoin: round; }
.stage .cursor.down svg { scale: .86; }
.stage .cursor::after { content: ""; position: absolute; left: 5px; top: 3px; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid var(--canary); opacity: 0; transform: scale(.4); }
.stage .cursor.down::after { opacity: 1; transform: scale(1); transition: transform .25s var(--ease), opacity .25s; }
.qcopy.did { background: var(--chalk); color: #fff; border-color: var(--chalk); }

/* products: floors stay plain until they're picked */
.plan.house .room .floor { transition: fill .6s var(--ease), opacity .5s var(--ease) .1s; }
.plan.house .room :is(.planks, .hardfill) { opacity: 0; }
.board:is(.floored, .floor-planks) .plan.house .room[data-floor="planks"] .planks,
.board:is(.floored, .floor-tile) .plan.house .room[data-floor="tile"] .hardfill { opacity: 1; }
.board:is(.floored, .floor-carpet) .plan.house .room[data-floor="carpet"] .floor { fill: #EBE1C9; }
.plan.house .room.picked .floor { fill: var(--chalk-tint); }
.plan.house .room.picked .wallband { stroke: var(--chalk); }
/* the Products card lies in the band under the plan, where the roll goes later: clear of every room */
.stage .prods { position: absolute; z-index: 3; left: 50%; bottom: 2.2%; translate: -50% 0; width: max-content; max-width: 96%; display: flex; align-items: center; gap: 4px 22px; background: var(--sheet); border: 2px solid var(--rule); border-radius: var(--r); padding: 6px 16px; box-shadow: 0 16px 30px -18px rgb(29 35 41 / .5);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.board[data-scene="products"] .prods { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.stage .prods .qhead { margin: 0; font-size: 16px; }
.prod { display: flex; gap: 10px; align-items: center; opacity: .3; transition: opacity .4s; }
.prod.on { opacity: 1; }
.prod b { display: block; font-size: 15px; line-height: 1.25; white-space: nowrap; }
.prod span { font-size: 13px; color: var(--graphite-2); line-height: 1.3; white-space: nowrap; }
.sw { flex: none; width: 30px; height: 30px; border-radius: 4px; border: 2px solid var(--graphite-2); }
.sw.carpet { background: #D9C9A3; }
.sw.planks { background: repeating-linear-gradient(0deg, #EFE6D4 0 7px, #C9BB9F 7px 8px); }
.sw.tile { background: #E9EEF2; background-image: linear-gradient(#B3BDC7 2px, transparent 2px), linear-gradient(90deg, #B3BDC7 2px, transparent 2px); background-size: 12px 12px; }
.plan .flag.check circle { fill: #fff; stroke: var(--chalk); }
.plan .flag.check .flag-t { fill: var(--chalk); }
/* PHONE: a narrow window, taller than wide. A tall stage: the sheet over the room being matched to it; the whole
   plan at the top with the roll, to scale, under it. The words sit under the stage, so the picture starts higher on
   the first screen and the two are still read together. house.js moves the camera in (.close) on the room being
   drawn and the seam being slid; from further out the plan carries no wall numbers (they could not be read). */
@media (max-width: 700px) and (max-aspect-ratio: 3/4) {
  .board .stage { order: 1; aspect-ratio: .72; }
  .board .board-say { order: 2; border-bottom: 0; border-top: 2px solid var(--rule-row); }
  .board-say .say { justify-content: flex-start; }
  .board .board-tools { order: 3; }
  .board-tools .seg, .board-tools .hint { display: none; }
  .plan.house .strip { display: none; }
  .plan.house .strip.big { display: inline; }
  .board:not(.close) .plan.house :is(.ann .labels, .flag-say) { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
  .plan.house .flag-say { transition: opacity .4s; }
  /* in on the room whose seam is slid, only that room is named: its neighbours' names would be cut by the frame */
  .plan.house .roomann .nm { transition: opacity .4s; }
  .board.close:is([data-scene="furniture"], [data-scene="seams"]) .plan.house .roomann:not(.here) .nm { opacity: 0; }
  .plan.house .corner { pointer-events: none; }
  .board[data-scene="house"] .sheet { opacity: 0; pointer-events: none; translate: calc(-50% + var(--sheet-x, 0px)) calc(-50% + var(--sheet-y, 0px) + var(--sheet-oy, 0px)); transition-timing-function: var(--ease); }
  /* the Products card under the plan, a list */
  .stage .prods { left: 3%; right: 3%; bottom: 2.5%; translate: none; width: auto; max-width: none; display: block; padding: 4px 10px 2px; }
  .stage .prods .qhead { font-size: 15px; margin: 2px 0 4px; }
  .prod { padding: 5px 0; border-top: 2px solid var(--rule-row); }
  .prod span { font-size: 12px; white-space: normal; } .prod b { font-size: 14px; }
  .sw { width: 28px; height: 28px; }
}
/* reduced motion: the sheet, the plan, the quote card and the products card change by opacity only */
@media (prefers-reduced-motion: reduce) {
  .stage .sheet, .stage .sheet::before, .stage .sheet::after, .stage .plan-wrap { transition: opacity .2s; }
  .stage .sheet svg { transition: none; }
  .qcard, .board[data-scene="quote"] .qcard, .stage .prods, .board[data-scene="products"] .prods { transform: none; }
  .qcard { transition: none; }
  .stage .prods { transition: opacity .2s, visibility 0s .2s; }
  .board[data-scene="products"] .prods { transition: opacity .2s; }
}

/* The walkthrough (/shop/walkthrough/): big words, it prints. The orange ring is the page's "click here" mark. */
.wt { max-width: 940px; padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 8vw, 96px); font-size: 20px; }
.wt .wt-big { background: var(--chalk-tint); border: 2px solid var(--chalk); border-radius: 8px; padding: 18px 22px; margin: 0 0 20px; }
.wt .wt-big b { font-size: 22px; }
.wt-jump { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.wt h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.01em; margin: 64px 0 6px; padding-top: 20px; border-top: 2px solid var(--rule); }
.wt h2 + p { color: var(--graphite-2); margin: 0; }
.wt .wt-step, .wt .wt-how .wt-one { break-inside: avoid; page-break-inside: avoid; }
.wt .wt-step { margin: 36px 0 0; }
.wt .wt-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.wt .wt-num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--chalk); color: #fff; font-weight: 750; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.wt h3 { font-size: 24px; margin: 0; letter-spacing: -0.01em; }
.wt .wt-step p, .wt .wt-how p { margin: 4px 0 14px; }
.wt .wt-shot { position: relative; border: 2px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; }
.wt .wt-shot img { display: block; width: 100%; height: auto; }
.wt .wt-ring { position: absolute; border: 5px solid #D9480F; border-radius: 12px; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.wt .wt-how { margin: 44px 0 0; }
.wt .wt-how h3 { margin: 0 0 4px; }
.wt .wt-how .wt-one { margin: 10px 0 22px; }
.wt-foot { margin-top: 64px; color: var(--graphite-2); font-size: 17px; border-top: 2px solid var(--rule); padding-top: 14px; }
@media (max-width: 640px) { .wt { font-size: 18px; } .wt .wt-num { width: 36px; height: 36px; font-size: 18px; } .wt h3 { font-size: 21px; } .wt .wt-ring { border-width: 3px; border-radius: 8px; } }
@media print {
  .top, .foot, .skip, .wt-jump { display: none; }
  body { background: #fff; }
  .page-head { padding: 0 0 12pt; }
  .wt { font-size: 14pt; padding: 0; max-width: none; }
  .wt .wt-shot { border-color: #999; }
  .wt a { color: inherit; text-decoration: none; }
}
.wt section { padding: 0; border: 0; }
.wt .wt-num, .wt .wt-big, .wt .wt-ring { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print { .wt .wt-step { margin-top: 18pt; } .wt h2 { margin-top: 24pt; } .wt .wt-shot { max-width: 82%; } }
/* ---------- site3: the phone handoff, the price in force, the two limits, the 404 page ---------- */
/* a heading of two sentences breaks at the full stop */
.st { display: inline-block; }
/* phone to shop computer: on a phone or a tablet only (no script needed: the control is a mailto:) */
.handoff { display: none; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--rule-row); }
.handoff p { margin: 0 0 12px; font-weight: 600; }
.handoff .btn { padding: 10px 18px; line-height: 1.2; text-align: center; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) { .handoff { display: block; } }
.closing .handoff { margin-top: 24px; border-top-color: #3A434C; }
.closing .handoff p { margin: 0 0 12px; font-size: 18px; color: #fff; }
.download .handoff { margin: 0 0 24px; padding: 0 0 22px; border-top: 0; border-bottom: 2px solid var(--rule-row); }
/* the price in force: the page carries the early price and the list price, and shows one (site.js keeps it to the day) */
[data-price="early"] .pl, [data-price="list"] .pe { display: none; }
.price h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.25; }   /* the pricing page's plan names */
/* the two limits, under the price box */
.tf.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
@media (max-width: 760px) {
  .tf.two { grid-template-columns: minmax(0, 1fr); }
  .tf.two li:nth-child(2) { border-top-color: var(--rule-row); }
}
/* the printout to download, under the work-order pictures */
.sample { margin: 26px 0 0; max-width: 46em; color: var(--graphite-2); }
.sample a { font-weight: 700; }
/* on a phone or a tablet an app picture opens by itself (site.js leaves the link alone there): say so under it */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  a.zoomable { cursor: pointer; }
  a.zoomable::after { content: "Open full size"; display: block; padding: 9px 14px 10px; border-top: 2px solid var(--rule-row); background: var(--panel);
    font: 700 15px/1.2 var(--sans); color: var(--chalk); text-align: right; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
}
/* the 404 page: short, so the footer stays at the bottom of a tall screen */
.lost { padding-top: clamp(32px, 4vw, 48px); }
.lost p { margin: 28px 0 0; }
@media screen { body:has(> main > .lost) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; } body:has(> main > .lost) > main { flex: 1 0 auto; } }
/* ==== CSS_MARK: everything below is for pages main didn't publish yet (buy, thanks, the suggestion form, the
   _preview pages). The published pages' ?v= hashes only the stylesheet above this line (build.py): when a published
   page starts to use a rule from here, move the rule above the line. ==== */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); }

/* ---------- Buy (/buy.html) and thank-you (/thanks.html). The scripts show and hide parts with [hidden]. ---------- */
.buy-page [hidden], .thanks [hidden] { display: none !important; }
.buy-page, .thanks { padding-top: clamp(32px, 4vw, 48px); }
.buy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.choice { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 12px; font-weight: 700; }
.opt { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; background: #fff; border: 2px solid var(--rule-row); border-radius: var(--r); cursor: pointer; }
.opt + .opt { margin-top: 10px; }
.opt:hover { border-color: var(--graphite-2); }
.opt:has(input:checked) { border-color: var(--chalk); box-shadow: inset 0 0 0 2px var(--chalk); }
.opt:has(input:focus-visible) { outline: 3px solid var(--chalk); outline-offset: 3px; }
.opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--chalk); translate: 0 2px; }
.opt input:focus-visible { outline: none; }
.opt b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.opt span { color: var(--graphite-2); }
.seats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 28px; }
.seats label { font-weight: 700; }
.seats input { width: 92px; height: 48px; padding: 0 12px; font: 600 18px var(--sans); color: var(--graphite); background: #fff; border: 2px solid var(--graphite-2); border-radius: var(--r); }
.seats span { flex: 1 1 16em; font-size: 15px; color: var(--graphite-2); }
.total { margin: 0; padding-top: 18px; border-top: 2px solid var(--graphite); font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.buy .early { margin: 16px 0 0; }
.buy .early:empty { display: none; }
.buy-form .btn { margin-top: 24px; }
.say { margin: 14px 0 0; min-height: 1.6em; font-weight: 600; }
.buy-side { padding: clamp(20px, 3vw, 28px); background: var(--panel); border: 2px solid var(--rule-row); border-radius: var(--r); font-size: 17px; }
.buy-side h2 { font-size: 22px; margin-bottom: 10px; }
.buy-side ul { list-style: none; margin: 0; padding: 0; }
.buy-side li { padding: 10px 0; border-top: 2px solid var(--rule-row); }
.buy-side .fine { margin: 14px 0 0; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; } }
.thanks .wrap > div { max-width: 680px; }
.thanks-wait p { font-size: 20px; }
.key-label { margin: 0; font-weight: 700; }
.key { display: inline-block; max-width: 100%; margin: 10px 0 18px; padding: 16px 20px; font: 600 clamp(19px, 4.2vw, 26px)/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; background: #fff; border: 2px solid var(--chalk); border-radius: var(--r); user-select: all; }
.thanks-note { padding: 14px 18px; background: var(--rust-tint); border-left: 4px solid #C9762E; border-radius: 0 var(--r) var(--r) 0; }
.thanks-note p { margin: 0; }

/* ---------- The preview beside the home page (_preview/home-c2.html): "Josh" in the hand of the hero's measure sheet ---------- */
.sig-hand .sig-name { font: 600 40px/1 "Caveat", "Segoe Print", "Bradley Hand", cursive; }

/* The suggestion form: empty (Send drawn plain), typing (Send filled), sending, sent, failed */
.suggest-home { background: var(--panel); border-top: 2px solid var(--rule-row); }
.suggest-page { padding-top: clamp(32px, 4vw, 48px); }
/* once sent, the page is shorter than a tall screen: the footer stays at the bottom of it */
@media screen { body:has(> main > .suggest-page) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; } body:has(> main > .suggest-page) > main { flex: 1 0 auto; } }
.suggest { overflow-wrap: anywhere; }
.sg, .sg-sent, .sg-failed { max-width: 760px; }
.sg-q { margin-bottom: 14px; font-size: clamp(22px, 2.4vw, 26px); }
.sg textarea { display: block; width: 100%; min-height: 168px; padding: 14px 16px; resize: vertical; font: 400 18px/1.5 var(--sans); color: var(--graphite); background: #fff; border: 2px solid var(--graphite-2); border-radius: var(--r); }
.sg textarea:focus { border-color: var(--chalk); }
.sg textarea[aria-invalid="true"] { border-color: var(--rust); }
.sg textarea:read-only, .sg input:read-only { background: var(--subtle); }
.sg-count { min-height: 1.5em; margin: 6px 0 0; font-size: 14px; color: var(--graphite-2); text-align: right; }
.sg-who { min-width: 0; margin: 10px 0 0; padding: 0; border: 0; }
.sg-who legend, .sg-email label { display: block; padding: 0; margin-bottom: 10px; font-weight: 700; }
.opt-tag { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--graphite-2); }
.sg-roles { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }   /* five boxes break three and two, never four and one */
.sg-roles label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; font-size: 16px; font-weight: 600; background: #fff; border: 2px solid var(--rule-row); border-radius: var(--r); cursor: pointer; }
.sg-roles label:hover { border-color: var(--graphite-2); }
.sg-roles label:has(input:checked) { border-color: var(--chalk); box-shadow: inset 0 0 0 2px var(--chalk); }
.sg-roles label:has(input:focus-visible) { outline: 3px solid var(--chalk); outline-offset: 3px; }
.sg-roles input { width: 16px; height: 16px; margin: 0; accent-color: var(--chalk); }
.sg-roles input:focus-visible { outline: none; }
@media (max-width: 480px) { .sg-roles { display: grid; grid-template-columns: minmax(0, 1fr); } }   /* on a phone: one under the other, each the full width */
.sg-email { margin: 24px 0 0; }
.sg-email input { display: block; width: min(100%, 420px); height: 48px; padding: 0 14px; font: 400 18px var(--sans); color: var(--graphite); background: #fff; border: 2px solid var(--graphite-2); border-radius: var(--r); }
.sg-email input:focus { border-color: var(--chalk); }
.sg-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sg-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.sg-say { margin: 0; min-width: 0; font-size: 16px; font-weight: 600; }
.sg-say:empty { display: none; }
.sg:has(textarea:invalid) .btn { background: transparent; color: var(--chalk); border-color: var(--graphite-2); }
.sg:has(textarea:invalid) .btn:hover { background: var(--chalk-tint); border-color: var(--chalk); }
.sg .btn[aria-disabled="true"] { cursor: progress; background: var(--chalk-pressed); border-color: var(--chalk-pressed); color: #fff; }
.suggest[data-state="invalid"] .sg-say { color: var(--rust); }
.suggest[data-state="failed"] .sg-say { flex-basis: 100%; padding: 12px 16px; font-weight: 500; background: var(--rust-tint); border-left: 4px solid #C9762E; border-radius: 0 var(--r) var(--r) 0; }
.sg-who-sees { margin: 18px 0 0; font-size: 15px; color: var(--graphite-2); }
.sg-sent { display: none; padding: 20px 24px; background: #E4EFE8; border-left: 4px solid var(--ok); border-radius: 0 var(--r) var(--r) 0; }
.sg-sent-h { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.sg-sent p:last-child { margin: 0; }
.suggest[data-state="sent"] .sg, .suggest:not([data-state]):has(.sg-sent:target) .sg { display: none; }
.suggest[data-state="sent"] .sg-sent, .suggest:not([data-state]) .sg-sent:target { display: block; }
/* scripts off, and the server sent the reader back with #suggest-failed: the note above the form (it goes once a new try starts) */
.sg-failed { display: none; margin-bottom: 28px; padding: 12px 16px; font-size: 16px; background: var(--rust-tint); border-left: 4px solid #C9762E; border-radius: 0 var(--r) var(--r) 0; }
.sg-failed p { margin: 0; }
.sg-failed:target { display: block; }
.suggest:is([data-state="sending"], [data-state="sent"], [data-state="failed"]) .sg-failed { display: none; }
/* the sent note settles in from just below (@starting-style; it simply appears where that isn't supported) */
.sg-sent { transition: opacity .25s var(--ease-out), translate .25s var(--ease-out); }
@starting-style { .suggest[data-state="sent"] .sg-sent { opacity: 0; translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) {
  .sg-sent { transition: opacity .2s ease; }
  @starting-style { .suggest[data-state="sent"] .sg-sent { opacity: 0; translate: none; } }
}
