/* LotFabric marketing site
   Layout: white drafting sheet, left-aligned on a 1180px measure. The page is black and white;
   the plans are the only colour. Type width does the work a second typeface would:
   wide for headlines, narrow for figures and plan labels. */

:root {
  /* colour */
  --paper: #ffffff;
  --wash: #f2f4f1;          /* cool grey-green, toward the wetland greens in the renders */
  --ink: #000000;
  --body: #272b29;
  --mute: #5d6561;
  --line: #d5d9d4;
  --cad: #1f272e;           /* the CAD screen */
  --cad-chip: #0f1319;
  --change: #ec008c;        /* reserved: blocks that changed vs the base concept */
  --up: #1b7a3a;
  --down: #b83227;
  --flag: #fff3a3;          /* draft placeholders */
  --flag-line: #a67c00;
  /* products, taken from the render legend */
  --p34: #fbea9a;
  --p27: #fff7cf;
  --p38: #f3d35b;
  --p45: #d9b53a;
  --pth: #f2a65a;
  --pth-end: #dc8433;
  --prl: #c98bd6;
  --pbb: #8c6e5d;
  /* type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --w-wide: 112%;
  --w-narrow: 82%;
  /* space */
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 104px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--change); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
section[id] { scroll-margin-top: 72px; }
.sec--wash { background: var(--wash); }
.sec--tight { padding-block: clamp(40px, 5vw, 64px); }

h1 {
  font-size: clamp(2.35rem, 5.3vw, 4.2rem);
  font-stretch: var(--w-wide);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  font-stretch: var(--w-wide);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.022em;
}
h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; max-width: 34em; }
.prose { max-width: 38em; display: grid; gap: 1em; }
.small { font-size: 0.875rem; line-height: 1.45; color: var(--mute); }
.num { font-stretch: var(--w-narrow); font-variant-numeric: tabular-nums; }

/* ---------- draft placeholders (remove before launch) ---------- */
.ph {
  background: var(--flag);
  outline: 1px dashed var(--flag-line);
  outline-offset: 1px;
  padding: 0 0.25em;
  color: var(--ink);
}
.ph-note {
  background: var(--flag);
  border: 1px dashed var(--flag-line);
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 60em;
}
.draftbar { background: var(--flag); border-bottom: 1px dashed var(--flag-line); color: var(--ink); font-size: 0.8125rem; }
.draftbar .wrap { padding-block: 7px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.site-head.is-condensed { border-bottom-color: var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 28px; padding-block: 18px;
}
.brand { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 11px; text-decoration: none; }
.lf { display: inline-flex; border: 2.5px solid var(--ink); color: var(--ink); font-size: 1.05rem; font-weight: 800; font-stretch: 78%; line-height: 1; }
.lf i { font-style: normal; padding: 0.24em 0.26em 0.2em; }
.lf i + i { border-left: 1.5px solid var(--ink); }
.lots { display: inline-flex; border: 2.5px solid var(--ink); color: var(--ink); font-size: 1.15rem; font-weight: 800; font-stretch: 78%; line-height: 1; }
.lots i { font-style: normal; padding: 0.24em 0.25em 0.2em; }
.lots i + i { border-left: 1.5px solid var(--ink); }
.lots i.g { border-left-width: 2.5px; }
.lots i.inv { background: var(--ink); color: var(--paper); }
/* scrolled: the strip condenses to its two filled lots */
.lots i { max-width: 1.5em; overflow: hidden; transition: max-width 0.4s ease, padding 0.4s ease, opacity 0.25s ease, border-width 0.4s ease, border-color 0.4s ease; }
.is-condensed .lots i:not(.inv) { max-width: 0; padding-inline: 0; opacity: 0; border-left-width: 0; }
.is-condensed .lots i.g { border-left-width: 1.5px; border-left-color: var(--paper); }
.lots__tm, .brand__by { transition: opacity 0.25s ease; }
.is-condensed .lots__tm, .is-condensed .brand__by { opacity: 0; visibility: hidden; }
.site-head .wrap { transition: padding 0.3s ease; }
.is-condensed .wrap { padding-block: 10px; }
.lots__tm { font-size: 0.7rem; color: var(--ink); align-self: flex-start; margin-left: -7px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand__by { align-self: flex-end; padding-bottom: 3px; }
.brand__name { font-size: 1.5rem; font-weight: 750; font-stretch: var(--w-wide); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.tm { font-weight: 400; letter-spacing: 0; }
.brand__by { font-size: 0.8125rem; color: var(--mute); font-stretch: var(--w-narrow); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.nav a { font-size: 0.9375rem; text-decoration: none; color: var(--body); }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; color: var(--ink); }

.btn {
  display: inline-block; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: 13px 22px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 0.9375rem; }
.nav a.btn { color: var(--paper); }
.nav a.btn:hover { color: var(--ink); text-decoration: none; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) var(--sec); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 26px; min-width: 0; }
.sowhat { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.3; font-weight: 650; color: var(--ink); max-width: 24em; margin-top: -6px; }

.compare { margin: 0; min-width: 0; }
.compare__stage {
  position: relative; aspect-ratio: 1; max-width: 100%; overflow: hidden;
  background: var(--cad); container-type: inline-size; --pos: 56%;
}
.compare__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tag {
  position: absolute; top: 0.5%; height: 5.3%; width: 23%;
  display: grid; place-items: center;
  background: var(--cad-chip); color: #fff;
  font-size: clamp(9px, 2.1cqw, 14px); font-weight: 600; font-stretch: var(--w-narrow); white-space: nowrap;
}
.tag--cad { right: 0.5%; }
.tag--render { left: 0.5%; background: var(--paper); color: var(--ink); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55); pointer-events: none;
}
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  background-size: 24px 24px; background-repeat: no-repeat; background-position: center;
}
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.compare__range:focus-visible + .compare__ring { outline: 3px solid var(--change); outline-offset: -3px; }
.compare__ring { position: absolute; inset: 0; pointer-events: none; }
.compare figcaption { margin-top: 12px; }

.category { font-size: 0.95rem; font-weight: 550; color: var(--mute); margin-bottom: -12px; }
/* ---------- problem ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); }
.moment { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.moment p { max-width: 30em; }

.moments--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .moments--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .moments--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- comparison board ---------- */
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.concept { display: grid; gap: 12px; align-content: start; min-width: 0; }
.concept h3 span { font-weight: 400; color: var(--mute); margin-left: 6px; }
.concept img { width: 100%; border: 1px solid var(--line); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.total b { font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.total i { font-style: normal; color: var(--mute); margin-left: 6px; }
.delta { font-weight: 650; }
.delta--up, td .delta--up { color: var(--up); }
.delta--down, td .delta--down { color: var(--down); }
.mixbar { display: flex; height: 12px; }
.mixbar i { display: block; min-width: 2px; }
.concept .note { min-height: 1.4em; }

.tablewrap { overflow-x: auto; margin-top: clamp(24px, 3vw, 40px); }
.mix { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--paper); font-stretch: var(--w-narrow); font-variant-numeric: tabular-nums; }
.mix th, .mix td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mix th:first-child, .mix td:first-child { text-align: left; }
.mix thead th { background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.875rem; border-bottom: 0; }
.mix thead th[colspan] { text-align: center; border-left: 1px solid #555; }
.mix td.u { font-weight: 600; color: var(--ink); border-left: 1px solid var(--line); }
.mix td.pc { color: var(--mute); font-size: 0.875rem; }
.mix td.d { font-size: 0.875rem; font-weight: 650; width: 3.5em; }
.mix tbody td:first-child { color: var(--ink); }
.mix tfoot td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
.mix td.delta--up { color: var(--up); }
.mix td.delta--down { color: var(--down); }
.sw { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, 0.25); }
.key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; }
.key .chg { display: inline-block; width: 16px; height: 11px; border: 2px solid var(--change); margin-right: 8px; vertical-align: -1px; }

.inside { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 6vw, 80px); }
.inside figure { margin: 0; }
.inside img { border: 1px solid var(--line); background: var(--paper); }
.inside__side { display: grid; gap: 20px; align-content: start; }
.pages { display: grid; gap: 14px; }
.pages li { border-top: 1px solid var(--line); padding-top: 12px; }
.pages b { color: var(--ink); display: block; }

/* ---------- ready to present ---------- */
.sec--ready { padding-bottom: var(--sec); }
.ready { border-top: 2px solid var(--ink); padding-top: clamp(28px, 4vw, 48px); }

/* ---------- compared with now ---------- */
.versus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); align-items: start; }
.vs { display: grid; gap: 14px; align-content: start; min-width: 0; }
.vs h3 { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.vs--us { background: var(--ink); color: #e7eae7; padding: clamp(18px, 2.4vw, 28px); }
.vs--us h3 { color: var(--paper); border-bottom-color: #555; }
.vs--us .ticks li::before { background: var(--paper); }
.vs--us .tm { color: var(--paper); }

.moment--ph { background: var(--flag); outline: 1px dashed var(--flag-line); outline-offset: 8px; }

/* ---------- slide mockup (placeholder) ---------- */
.slidemock { margin: clamp(32px, 5vw, 56px) 0 0; max-width: 820px; display: grid; gap: 14px; }
.slidemock__img { display: block; width: 100%; height: auto; border: 1px solid #9aa19d; background: #fff; }
.slide { container-type: inline-size; aspect-ratio: 16 / 9; background: var(--paper); border: 1px solid #9aa19d; display: grid; grid-template-rows: auto 1fr auto; padding: 3.2cqw 4cqw 2.2cqw; gap: 2cqw; color: var(--body); overflow: hidden; }
.slide__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2cqw; }
.slide__head b { display: block; font-size: 3.2cqw; line-height: 1.05; color: var(--ink); font-stretch: var(--w-wide); letter-spacing: -0.02em; }
.slide__head span { font-size: 1.5cqw; color: var(--mute); }
.slide__head img { height: 4cqw; width: auto; }
.slide__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3cqw; align-content: center; }
.slide__cols > div { display: grid; gap: 0.9cqw; align-content: start; min-width: 0; }
.slide__cols img { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.slide__name { font-size: 1.5cqw; color: var(--mute); }
.slide__name b { color: var(--ink); margin-right: 0.6cqw; }
.slide__total { font-size: 1.5cqw; color: var(--mute); display: flex; align-items: baseline; gap: 0.8cqw; }
.slide__total b { font-size: 3.4cqw; line-height: 1; color: var(--ink); font-stretch: var(--w-narrow); }
.slide__total .delta { margin-left: auto; font-size: 1.5cqw; }
.slide .mixbar { height: 1cqw; }
.slide__foot { display: flex; justify-content: space-between; gap: 2cqw; font-size: 1.15cqw; color: var(--mute); border-top: 1px solid var(--line); padding-top: 1cqw; }

/* ---------- workbook ---------- */
.wb { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 24px; }
.wb__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px clamp(20px, 4vw, 56px); align-items: start; }
.wb__head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-stretch: var(--w-wide); letter-spacing: -0.02em; line-height: 1.12; }
.xl { border: 1px solid #9aa19d; background: var(--paper); min-width: 0; }
.xl__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 12px; background: var(--ink); color: #dfe3df; font-size: 0.8125rem; font-stretch: var(--w-narrow); }
.xl__file { color: var(--paper); font-weight: 600; }
.xl .tablewrap { margin-top: 0; }
.xl__grid { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 0.875rem; font-stretch: var(--w-narrow); font-variant-numeric: tabular-nums; }
.xl__grid th, .xl__grid td { border: 1px solid var(--line); padding: 6px 10px; text-align: center; white-space: nowrap; height: 2.1em; }
.xl__grid thead th { background: var(--wash); color: var(--ink); font-weight: 600; }
.xl__grid tbody td { color: var(--body); }
.xl__grid tbody td:first-child { color: var(--ink); font-weight: 600; }
.xl__grid tfoot td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); }
.xl__grid .xl__gap td { text-align: center; color: var(--mute); font-weight: 400; background: var(--wash); }
.xl__tabs { display: flex; flex-wrap: wrap; border-top: 1px solid #9aa19d; background: var(--wash); font-size: 0.8125rem; font-stretch: var(--w-narrow); }
.xl__tabs li { padding: 6px 14px; border-right: 1px solid var(--line); color: var(--mute); }
.xl__tabs li.is-on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: inset 0 2px 0 var(--ink); }

/* ---------- calculated ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.strips { display: grid; gap: 26px; }
.strip__bar { display: flex; height: 54px; border: 2px solid var(--ink); }
.strip__bar i { display: block; border-right: 1px solid rgba(0, 0, 0, 0.55); min-width: 0; }
.strip__bar i:last-child { border-right: 0; }
.strip__bar .waste { background: repeating-linear-gradient(135deg, #fff 0 3px, #9aa19d 3px 4px); flex-basis: 3px; min-width: 3px; }
.strip__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 6px; }
.strip__head b { color: var(--ink); }
.strip__bar .end { background: var(--pth-end); }
.strip__bar .bld { border-right: 3px solid var(--ink); }
.strip__foot { margin-top: 6px; }
.tryit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--ink); color: #dfe3df; }
.tryit > div { display: grid; gap: 6px; max-width: 44em; min-width: 0; flex: 1 1 320px; }
.tryit h3 { color: var(--paper); }
.tryit .btn--light:hover { border-color: var(--paper); }
#compare { scroll-margin-top: 96px; }
#engineers { scroll-margin-top: 64px; }
.launch { display: inline-block; margin-right: 10px; padding: 6px 11px 5px; background: var(--ink); color: var(--paper); font-size: 0.8125rem; line-height: 1; font-weight: 700; font-stretch: var(--w-wide); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.14em; }
.rerun { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); margin-top: clamp(28px, 4vw, 48px); }
.rerun + .tablewrap { margin-top: clamp(20px, 3vw, 32px); }
.rerun__table { min-width: 0; max-width: 720px; }
@media (max-width: 700px) { .rerun { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .rerun__table th, .rerun__table td { padding: 9px 5px; }
  .rerun__table td.pc, .rerun__table td.d { font-size: 0.78rem; }
  .rerun__table td.d { width: auto; }
  .rerun__table .sw { margin-right: 6px; }
}
.strip__alt { display: grid; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #b9bfba; }
.strip__alt b { color: var(--ink); }
.strip__alt .strip__head { margin-bottom: 4px; }
.strip__alt .strip__bar { height: 26px; border-width: 1.5px; }
.strip__key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.strip__key .sw { margin-right: 6px; }
.calc .mix { min-width: 0; }
.calc .tablewrap { margin-top: 30px; }

.points { margin: 0; display: grid; gap: 14px; }
.points > div { border-top: 1px solid #b9bfba; padding-top: 12px; }
.points dt { font-weight: 650; color: var(--ink); }
.points dd { margin: 2px 0 0; }
.boundary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 64px); border: 2px solid var(--ink); }
.boundary > div { padding: clamp(18px, 3vw, 30px); display: grid; gap: 8px; align-content: start; }
.boundary > div + div { border-left: 2px solid var(--ink); }
.boundary p { max-width: 30em; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); counter-reset: step; }
.step { counter-increment: step; display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px; border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.step::before { content: counter(step); font-size: 1rem; font-weight: 700; font-stretch: var(--w-narrow); color: var(--ink); }
.step--key { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #e7eae7; grid-template-columns: 2.2rem minmax(0, 15rem) minmax(0, 1fr); column-gap: clamp(14px, 3vw, 40px); align-items: baseline; padding: 26px 26px 28px; }
.step--key::before { color: var(--paper); font-size: 1.6rem; }
.step--key h3 { color: var(--paper); font-size: 1.6rem; font-stretch: var(--w-wide); letter-spacing: -0.02em; }
.step--key p { max-width: 40em; }

/* ---------- step visual: five lots in a strip, the two key steps filled ---------- */
.flow { --n: 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 0 10px; min-width: 0; text-align: center; }
.flow li::before { content: ""; position: absolute; top: calc(var(--n) / 2 - 1px); left: 50%; width: 100%; height: 2px; background: var(--ink); }
.flow li::after { content: ""; position: absolute; top: calc(var(--n) / 2 - 6px); left: calc(150% - var(--n) / 2 - 12px); border: 6px solid transparent; border-right: 0; border-left: 9px solid var(--ink); }
.flow li:last-child::before, .flow li:last-child::after { display: none; }
.flow li > b { position: relative; z-index: 1; display: grid; place-items: center; width: var(--n); height: var(--n); margin-bottom: 10px; border: 2px solid var(--ink); background: var(--ink); font-size: 1.35rem; line-height: 1; font-weight: 800; font-stretch: var(--w-narrow); color: var(--paper); }
.flow h3 { font-size: 1.125rem; }
.flow p { font-size: 0.9375rem; line-height: 1.4; max-width: 22ch; }
.flow__loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 6px; }
.flow__loop span { grid-column: 2 / 5; position: relative; padding-bottom: 26px; text-align: center; font-size: 0.875rem; color: var(--mute); }
.flow__loop span::before { content: ""; position: absolute; bottom: 8px; left: 16.667%; right: 16.667%; height: 14px; border: 1.5px dashed var(--ink); border-bottom: 0; }
.flow__loop span::after { content: ""; position: absolute; bottom: 0; left: calc(16.667% - 6px); border: 6px solid transparent; border-bottom: 0; border-top: 8px solid var(--ink); }

/* ---------- pricing ---------- */
.worth { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); border-top: 2px solid var(--ink); scroll-margin-top: 96px; }
.worth h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.15; }
.wcalc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 14px 20px; align-items: end; max-width: 980px; margin-top: clamp(22px, 3vw, 34px); }
.wcalc__in { display: grid; gap: 6px; }
.wcalc__in label, .wcalc__label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.wcalc__box { display: flex; align-items: center; background: var(--paper); border: 1px solid #8a918d; border-radius: 2px; }
.wcalc__box:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.wcalc__box i { font-style: normal; color: var(--mute); padding: 0 10px; }
.wcalc__box input { font: inherit; font-size: 1.125rem; font-weight: 600; color: var(--ink); width: 100%; min-width: 0; border: 0; background: transparent; padding: 11px 10px; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; appearance: textfield; }
.wcalc__box i + input { padding-left: 0; }
.wcalc__box input::-webkit-outer-spin-button, .wcalc__box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wcalc__out { display: grid; gap: 2px; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.wcalc__out .wcalc__label { color: var(--paper); }
.wcalc__out b { font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.05; font-stretch: var(--w-narrow); letter-spacing: -0.01em; }
.wcalc__out .small { color: #c9cfcb; }
.wcalc__vs { margin-top: 12px; max-width: 52em; color: var(--ink); }
.worth__table caption { caption-side: top; text-align: left; font-weight: 600; color: var(--ink); padding: 0 0 10px; font-size: 0.9375rem; }
@media (max-width: 760px) { .wcalc { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wcalc__out { grid-column: 1 / -1; } }
@media (max-width: 460px) { .wcalc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wcalc__in:first-child { grid-column: 1 / -1; } }
.worth__table { min-width: 0; max-width: 760px; }
.worth__table thead th[rowspan] { text-align: left; vertical-align: bottom; }
.worth__table thead tr + tr th { border-left: 1px solid #555; border-top: 1px solid #555; text-align: right; }
.worth__table thead tr + tr th:first-child { text-align: right; }
.worth__table tbody th { color: var(--ink); font-weight: 650; }
.worth__table tbody td { border-left: 1px solid var(--line); color: var(--ink); }
@media (max-width: 560px) {
  .worth__table th, .worth__table td { padding: 9px 6px; font-size: 0.8125rem; }
  .worth__table thead th[rowspan] { white-space: normal; width: 4.6em; line-height: 1.2; }
}
.prices { border-top: 2px solid var(--ink); }
.prices li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 6px 28px; padding-block: 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.prices h3 { font-size: 1.125rem; }
.prices .fig { font-size: 1.5rem; font-weight: 700; color: var(--ink); font-stretch: var(--w-narrow); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.photo { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; border: 1px solid var(--line); }
.about__body { display: grid; gap: 18px; max-width: 40em; }
.quote { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.18; font-weight: 600; font-stretch: var(--w-wide); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.mdg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mdg img { height: 40px; width: auto; }

/* ---------- send band ---------- */
.send { position: relative; background: var(--ink); color: #dfe3df; overflow: hidden; }
.send::before {
  content: ""; position: absolute; inset: 0; background: url("assets/contours.svg") center / cover no-repeat;
  filter: invert(1); opacity: 0.2; pointer-events: none;
}
.send .wrap { position: relative; }
.send h1, .send h2, .send h3 { color: var(--paper); }
.send a { color: var(--paper); }
.send a.btn--light { color: var(--ink); }
.send a.btn--light:hover { color: var(--paper); }
.send__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.send__copy { display: grid; gap: 18px; }
.next { counter-reset: nx; display: grid; gap: 10px; }
.next li { counter-increment: nx; position: relative; padding-left: 2em; }
.next li::before { content: counter(nx); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--paper); font-stretch: var(--w-narrow); }
.form { display: grid; gap: 18px; background: var(--paper); color: var(--body); padding: clamp(18px, 3vw, 30px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.field .hint { font-size: 0.8125rem; color: var(--mute); }
.field input[type="text"], .field input[type="email"], .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #8a918d; border-radius: 2px; padding: 11px 12px; width: 100%;
}
.field input[type="file"] { font: inherit; font-size: 0.9375rem; width: 100%; padding: 14px 12px; border: 1px dashed #8a918d; border-radius: 2px; background: var(--wash); }
.or { font-size: 0.8125rem; color: var(--mute); text-align: center; }
.form__status { font-size: 0.9375rem; padding: 10px 12px; border: 1px solid var(--ink); color: var(--ink); background: var(--wash); }
.form__status[data-kind="error"] { border-color: var(--down); }

/* ---------- inner pages ---------- */
.pagehead { position: relative; background: var(--wash); overflow: hidden; }
.pagehead::before { content: ""; position: absolute; inset: 0; background: url("assets/contours.svg") center / cover no-repeat; opacity: 0.16; pointer-events: none; }
.pagehead .wrap { position: relative; padding-block: clamp(40px, 7vw, 88px); display: grid; gap: 20px; }
.sheet { margin: 0; }
.sheet img { width: 100%; border: 1px solid var(--line); background: var(--paper); }
.sheet figcaption { margin-top: 10px; }
.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.case--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.case__body { display: grid; gap: 18px; align-content: start; }
.units { border-top: 2px solid var(--ink); font-stretch: var(--w-narrow); font-variant-numeric: tabular-nums; }
.units li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.units li b { color: var(--ink); }
.units li.sum { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 700; color: var(--ink); }
.steps-long { display: grid; gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps-long li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 14rem) minmax(0, 1fr); gap: 8px clamp(14px, 3vw, 40px); padding-block: 26px; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps-long li::before { content: counter(step); font-size: 1.6rem; font-weight: 700; font-stretch: var(--w-narrow); color: var(--ink); }
.steps-long .who { display: block; margin-top: 8px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); }
.ticks { display: grid; gap: 10px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--ink); }
.faq { border-top: 2px solid var(--ink); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 650; color: var(--ink); font-size: 1.125rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; max-width: 42em; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--mute); }
.site-foot .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--body); }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .hero__grid, .split, .calc, .send__grid, .case, .case--flip, .inside, .cols2, .wb__head, .moments, .versus { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .flow { --n: 36px; }
  .flow li { padding: 0 2px; gap: 0; }
  .flow li > b { font-size: 1.05rem; margin-bottom: 8px; }
  .flow h3 { font-size: 0.8125rem; line-height: 1.2; font-stretch: var(--w-narrow); }
  .flow p { display: none; }
  .flow__loop span { font-size: 0.8125rem; }
  .step--key { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .prices li { grid-template-columns: minmax(0, 1fr); }
  .steps-long li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .steps-long li > div { grid-column: 2; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .photo { max-width: 180px; }
}
@media (max-width: 860px) {
  .is-condensed .brand__by, .is-condensed .lots__tm, .is-condensed .nav a:not(.btn) { display: none; }
  /* at the top of the page the hero already has the button, so the header one waits until you scroll */
  .site-head:not(.is-condensed) .nav a.btn { display: none; }
}
@media (max-width: 560px) {
  .board { gap: 10px; }
  .concept { gap: 8px; }
  .concept h3 { font-size: 0.95rem; }
  .concept h3 span { display: block; margin-left: 0; font-size: 0.78rem; }
  .total { flex-direction: column; align-items: flex-start; gap: 2px; }
  .total b { font-size: 1.5rem; }
  .total i { font-size: 0.8rem; margin-left: 4px; }
  .delta { font-size: 0.85rem; }
  .mixbar { height: 8px; }
  .concept .note { font-size: 0.72rem; }
  .board + .tablewrap .mix { min-width: 0; }
  .board + .tablewrap .mix td.pc { font-size: 0; padding: 0 !important; width: 0; }
  .board + .tablewrap .mix td:empty { padding: 0 !important; }
  .board + .tablewrap .mix { font-size: 0.82rem; }
  .board + .tablewrap .mix th, .board + .tablewrap .mix td { padding: 7px 3px; }
  .board + .tablewrap .mix td:first-child, .board + .tablewrap .mix th:first-child { padding-left: 6px; }
  .board + .tablewrap .mix td.d { font-size: 0.74rem; }
  .board + .tablewrap .mix thead th { font-size: 0.74rem; }
  .board + .tablewrap .mix .sw { margin-right: 4px; width: 9px; height: 9px; }
  .board + .tablewrap .mix td.d { width: auto; }
  .calc .mix th, .calc .mix td { padding: 9px 7px; }
  .calc .mix .sw { margin-right: 6px; }
  .moments, .boundary { grid-template-columns: minmax(0, 1fr); }
  .boundary > div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .brand__by { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
