/* =========================================================================
   Ledgendary marketing home
   Daylight SaaS: white and mist ground, ink, one gold used only as fill.
   ========================================================================= */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/MonaSansVF.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --mist: #f4f5f7;
  --mist-2: #eceef2;
  --ink: #0d0e12;
  --ink-2: #2f323b;
  --ink-3: #5b5f6b;
  --line: #e3e5ea;
  --line-2: #d4d7de;
  --gold: #ffc629;
  --gold-soft: #fff1c7;
  --green: #0f7a55;
  --green-bg: #e3f4ec;
  --red: #b42318;
  --blue: #2457e6;
  --blue-bg: #e8eefd;
  --grey-bg: #eef0f3;

  --d-bg: #0d0e12;
  --d-panel: #15171d;
  --d-panel-2: #1b1e25;
  --d-line: #2a2d36;
  --d-text: #eef0f4;
  --d-mut: #a3a8b4;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-q: cubic-bezier(0.22, 1, 0.36, 1);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 14px;
  --shadow-win: 0 1px 2px rgba(13, 14, 18, 0.06), 0 12px 32px -8px rgba(13, 14, 18, 0.14), 0 40px 80px -24px rgba(13, 14, 18, 0.18);
  --shadow-pop: 0 2px 4px rgba(13, 14, 18, 0.06), 0 16px 36px -10px rgba(13, 14, 18, 0.22);

  --wrap: 1200px;
  --gut: 32px;

  color-scheme: light;
  scrollbar-color: #c3c7cf var(--white);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Mona Sans", ui-sans-serif, sans-serif;
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--blue);
  overflow-x: clip;
}

::selection { background: var(--gold); color: var(--ink); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: #c9ccd4; border-radius: 12px; border: 3px solid var(--white); }
::-webkit-scrollbar-thumb:hover { background: #a9adb7; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255, 198, 41, 0.6);
  border-radius: 6px;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
/* Mona Sans's tabular zero is dotted and has no plain alternate, so tabular
   figures are used only where figures stand in columns. Everything else keeps
   the default proportional lining figures. */
.num { font-feature-settings: "pnum" 1, "lnum" 1; }
.col,
.tbl td.r, .grid td, .je-lines .num, .pl-rows dd, .il li > .num:nth-child(3),
.tl-row > .num, .toast-row .num, .je-mini b, .pv-row > .num, .sched li span:nth-child(3) { font-feature-settings: "tnum" 1; }
.r { text-align: right; }
.mut { color: var(--ink-3); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-xs { width: 14px; height: 14px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------------------------------------------------------------- type */

.display {
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); max-width: 18ch; }

.sec-lede {
  margin-top: 20px;
  max-width: 58ch;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- buttons, inputs */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 10px;
  font-weight: 650; font-size: 1rem; font-stretch: 105%;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.btn-gold {
  background: var(--gold); color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(13, 14, 18, 0.12), 0 1px 2px rgba(13, 14, 18, 0.1);
}
.btn-gold:hover { background: #ffd24f; box-shadow: inset 0 -2px 0 rgba(13, 14, 18, 0.12), 0 6px 16px -6px rgba(176, 124, 0, 0.55); }
.btn-gold:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(13, 14, 18, 0.12); }
.btn-gold[disabled] { background: var(--mist-2); color: var(--ink-3); box-shadow: none; cursor: default; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.9375rem; border-radius: 9px; }

.input {
  height: 48px; min-width: 0; flex: 1;
  padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 160ms var(--ease), box-shadow 200ms var(--ease);
}
.input::placeholder { color: #6b6f7b; }
.input:hover { border-color: #b9bdc6; }
.input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 198, 41, 0.55); border-radius: 10px; }
.input[aria-invalid="true"] { border-color: var(--red); }
.input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.18); }

.field-row { display: flex; gap: 8px; }
.form-msg { min-height: 1.5em; margin-top: 8px; font-size: 0.9375rem; color: var(--ink-3); }
.form-msg.is-error { color: var(--red); }
.form-msg.is-ok { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.form-msg.is-ok::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0e12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.waitlist.is-done .field-row { display: none; }

.fine { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; color: var(--ink-3); text-wrap: balance; }
.fine .ic { margin-top: 2px; }
.fine .ic { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav { transition: border-color 240ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease); }
.nav.is-dark { background: rgba(13, 14, 18, 0.86); border-bottom-color: var(--d-line); color: var(--d-text); }
.nav.is-dark .nav-links a { color: var(--d-mut); }
.nav.is-dark .nav-links a:hover { color: var(--d-text); }
.nav.is-dark .brand-mark rect:first-child { fill: #2a2d36; }
.nav.is-dark :focus-visible { outline-color: var(--gold); box-shadow: none; }
.nav-in { display: flex; align-items: center; height: 64px; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-word { font-weight: 800; font-stretch: 116%; font-size: 1.1875rem; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 0.9375rem; font-weight: 520; color: var(--ink-2); transition: color 150ms; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; }

/* ---------------------------------------------------------------- hero */

.hero { padding-top: clamp(40px, 6vh, 72px); }
.hero-h {
  font-size: clamp(2.75rem, 6.1vw, 5.5rem);
  max-width: 13.5ch;
}
.hl {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 42%;
  padding: 0 0.06em;
  margin: 0 -0.06em;
  border-radius: 2px;
}
.js .hl { background-size: 0% 42%; transition: background-size 900ms 150ms var(--ease); }
.js .hl.hl-in { background-size: 100% 42%; }
.books .hl, .nav .hl { color: var(--ink); }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.hero-form .fine { margin-top: 2px; }

.hero-demo-wrap { margin-top: 40px; padding-bottom: 96px; }

/* ---------------------------------------------------------------- app window, shared */

.win {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-win);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.win .main { display: flex; flex-direction: column; min-width: 0; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--ink-3); white-space: nowrap; overflow: hidden; min-width: 0; }
.crumbs b { overflow: hidden; text-overflow: ellipsis; }
.crumbs .ic { color: #a5a9b3; }
.crumbs b { color: var(--ink); font-weight: 600; }
.top-r { display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.demo-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-3); background: var(--mist); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}

.av {
  --a: #eceef2;
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--a); color: var(--ink);
  font-size: 11px; font-weight: 700; font-stretch: 110%; letter-spacing: 0.02em;
}
.av-ink { background: var(--ink); color: var(--white); }
.avs { display: flex; }
.avs .av { box-shadow: 0 0 0 2px var(--white); }
.avs .av + .av { margin-left: -4px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill-blue { background: var(--blue-bg); color: #1d47bf; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-grey { background: var(--grey-bg); color: var(--ink-2); }

.btn-ui {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 8px;
  font-weight: 600; font-size: 12.5px; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--white);
  transition: transform 140ms var(--ease), background-color 160ms;
}
.btn-ui-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.press { transform: scale(0.95); }
.btn-ui-ink.press { background: #2b2e37; }

.doc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.doc-title { font-size: 20px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.2; }
.doc-meta { margin-top: 3px; color: var(--ink-3); }
.doc-actions { display: flex; align-items: center; gap: 8px; }

.tbl { width: 100%; border-collapse: collapse; margin-top: 18px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.tbl th.r { text-align: right; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.opt-k {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px;
  border-radius: 6px; background: var(--mist-2); font-size: 11px; font-weight: 700; vertical-align: -4px;
}
.opt-k-on { background: var(--blue); color: var(--white); }
.src {
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
  font-size: 12px; color: var(--ink-3);
}
.rec { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--gold-soft); padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }

.tot { margin-top: 14px; margin-left: auto; width: min(300px, 100%); }
.tot-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-2); }
.tot-big { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; align-items: center; }
.tot-big b { font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.amt { position: relative; display: inline-block; padding: 1px 6px; margin-right: -6px; }
.amt b { position: relative; }
.flash { position: absolute; inset: 0; border-radius: 5px; background: var(--gold); }

.ws-logo {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(140deg, #3a3f4c, #0d0e12); color: var(--white);
  font-size: 11px; font-weight: 800; font-stretch: 104%; flex: none;
}
.ws-logo-sm { width: 22px; height: 22px; font-size: 11px; font-stretch: 96%; border-radius: 6px; }

/* ---------------------------------------------------------------- hero window */

.win-hero {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr) 248px;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 640px;
}
.side {
  display: flex; flex-direction: column;
  background: var(--mist); border-right: 1px solid var(--line);
  padding: 12px 10px;
}
.ws { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-weight: 650; }
.ws .ic { margin-left: auto; color: var(--ink-3); }
.side-search {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 8px;
  height: 30px; padding: 0 8px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-3);
}
.side-search kbd { margin-left: auto; font: inherit; font-size: 11px; color: var(--ink-3); }
.side-nav li {
  display: flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 8px; border-radius: 7px;
  color: var(--ink-2); font-weight: 500;
}
.side-nav .ic { width: 16px; height: 16px; color: var(--ink-3); }
.side-nav .cur-a { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(13, 14, 18, 0.08), 0 0 0 1px var(--line); }
.side-nav .cur-a .ic { color: var(--ink); }
.count { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.side-h { margin: 18px 8px 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.side-jobs li { font-size: 12.5px; }
.job-cur { color: var(--ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; margin: 0 4px; }
.side-me { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-top: 1px solid var(--line); font-weight: 600; }
.side-me small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11px; }

.win-hero .main { border-right: 1px solid var(--line); position: relative; grid-column: 2; grid-row: 1; }
.win-hero .side { grid-column: 1; grid-row: 1 / 3; }
.win-hero .act { grid-column: 3; grid-row: 1 / 3; }
.win-hero .body { position: relative; flex: 1; padding: 22px 26px; overflow: hidden; }

.pane-prop { opacity: 1; }
.row-b td { background: transparent; }

.scrim {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(244, 245, 247, 0.72);
  transition: opacity 360ms var(--ease);
}
.scrim.off { opacity: 0; pointer-events: none; }
html:not(.js) .scrim { display: none; }
.sheet {
  position: absolute; inset: 14px 22px 14px; z-index: 3;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  transform: none;
  clip-path: inset(0 0 0 0 round 12px);
  transition: transform 560ms var(--ease), clip-path 560ms var(--ease), visibility 0s;
}
.sheet.off {
  transform: translateY(24px);
  clip-path: inset(100% 0 0 0 round 12px);
  visibility: hidden;
  transition: transform 460ms var(--ease), clip-path 460ms var(--ease), visibility 0s 460ms;
}
.sheet-bar {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 12px;
  background: linear-gradient(var(--white), #fafbfc);
  border-radius: 12px 12px 0 0;
}
.sheet-bar span:first-of-type { font-weight: 600; color: var(--ink-2); }
.sheet-who { margin-left: 4px; }
.sheet-view { margin-left: auto; font-weight: 600; color: #1d47bf; background: var(--blue-bg); padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.sheet-step { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sheet-intro { color: var(--ink-2); max-width: 62ch; margin-bottom: 14px; }
.opt-est { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.terms dt { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.terms dd { margin: 2px 0 0; font-weight: 550; }
.sign-scope { margin: 12px 0 0; color: var(--ink-2); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.sign-scope li { display: flex; align-items: center; gap: 6px; }
.sign-scope li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b7bbc4; }
.sign-block { margin-top: auto; }
.prop-more { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.pm-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: var(--mist); color: var(--ink-2); font-size: 12.5px; }
.pm-note .ic { margin-top: 2px; color: var(--ink-3); }
.pm-sign { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 10px 12px; border: 1px dashed #9aa0ac; border-radius: 9px; }
.pm-l { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pm-line { border-top: 1px solid var(--line-2); padding-top: 6px; color: var(--ink-3); font-size: 12.5px; }
.sheet-h { font-size: 15px; font-weight: 650; margin-bottom: 12px; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt {
  position: relative; display: flex; flex-direction: column;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 260ms var(--ease), box-shadow 260ms var(--ease), opacity 300ms var(--ease);
}
.opt-l { font-weight: 600; font-size: 12.5px; }
.opt-p { margin-top: 2px; font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.opt-p small { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.opt ul { margin: 8px 0 12px; color: var(--ink-2); font-size: 12px; }
.opt li { padding: 2px 0 2px 14px; position: relative; }
.opt li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #b7bbc4; }
.opt-btn {
  margin-top: auto; display: grid; place-items: center; height: 30px; border-radius: 8px;
  border: 1px solid var(--line-2); font-weight: 600; font-size: 12px;
  transition: transform 140ms var(--ease), background-color 200ms, color 200ms;
}
.opt-chosen { display: none; }
.opt-b.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 87, 230, 0.16); }
.opt-b.on .opt-btn { display: none; }
.opt-b.on .opt-chosen { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border-radius: 8px; background: var(--blue); color: var(--white); font-weight: 600; font-size: 12px; animation: pop 380ms var(--ease); }
.opts:has(.opt-b.on) .opt:not(.opt-b) { opacity: 0.7; }

.sign { animation: rise 460ms var(--ease) both; }
.sign-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px; background: var(--mist); }
.sign-sum span { display: block; font-weight: 650; font-size: 14px; }
.sign-sum small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.sign-sum b { font-size: 18px; font-weight: 750; white-space: nowrap; }
.sign-l { display: block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sign-field {
  display: flex; align-items: center; height: 44px; margin-top: 6px; padding: 0 12px;
  border: 1px solid var(--ink); border-radius: 9px; box-shadow: 0 0 0 3px rgba(36, 87, 230, 0.14);
  font-size: 20px; font-weight: 500; font-stretch: 90%; letter-spacing: -0.01em;
}
.sign-name { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.js .sign-name:not(.on) { max-width: 0; }
.js .sign-name.on { max-width: 9em; transition: max-width 900ms steps(14, end); }
.caret { width: 1.5px; height: 22px; background: var(--blue); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.sign-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.sign-check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12.5px; }
.box { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-2); color: transparent; transition: background-color 200ms, border-color 200ms, color 200ms; }
.sign-check.on .box, html:not(.js) .box { background: var(--blue); border-color: var(--blue); color: var(--white); }
.signed {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px;
  border-radius: 9px; background: var(--green-bg); color: var(--green);
}
.signed b { display: block; color: var(--ink); }
.signed span { color: var(--ink-2); font-size: 12px; }
.signed.on { animation: rise 420ms var(--ease) both; }

.pane-inv.on { animation: rise 520ms var(--ease) both; }
.strip {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; height: 36px; padding: 0 12px;
  border-radius: 9px; background: var(--mist); color: var(--ink-2); font-weight: 500;
}
.strip.on { animation: rise 380ms var(--ease) both; }
.wait { margin-left: auto; font-weight: 600; color: var(--ink); }
.dots i { font-style: normal; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.strip-paid { background: var(--green-bg); color: var(--green); }
.tbl-inv td:first-child { font-weight: 550; }
.inv-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: var(--mist); }
.inv-foot span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.inv-foot b { font-weight: 550; }
.js .ins:not(.on) { display: none; }
.ins.on { animation: rowIn 480ms var(--ease) both; }

.js .flash { clip-path: inset(0 100% 0 0); opacity: 0; }
.js .flash.on { clip-path: inset(0 0 0 0); opacity: 1; transition: clip-path 620ms var(--ease), opacity 120ms; }
.flash.on::after {
  content: ""; position: absolute; inset: -6px; border-radius: 9px;
  background: rgba(255, 198, 41, 0.5);
  animation: ring 900ms 120ms var(--ease) both;
}

.act { display: flex; flex-direction: column; padding: 14px 14px 0; background: #fbfbfc; min-height: 0; }
.act-h { font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 10px; }
.act-list { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.ai { display: flex; gap: 10px; padding: 7px 4px; border-radius: 8px; }
.ai p { font-size: 12.5px; font-weight: 550; color: var(--ink); line-height: 1.35; }
.ai small { display: block; font-weight: 450; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.ai-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--grey-bg); color: var(--ink-2); flex: none; }
.ai-green { background: var(--green-bg); color: var(--green); }
.ai-blue { background: var(--blue-bg); color: var(--blue); }
.ai-gold { background: var(--gold); color: var(--ink); }
.js .ai[data-at]:not(.on) { display: none; }
.ai.on { animation: actIn 520ms var(--ease) both; }

/* The books bar docks under the invoice in its own row, so it never covers
   the totals or the provenance footer. Idle until the payment posts. */
.toast {
  grid-column: 2; grid-row: 2;
  position: relative; z-index: 1;
  padding: 10px 26px 12px;
  background: var(--ink); color: var(--d-text);
  border-right: 1px solid var(--line);
  transition: background-color 420ms var(--ease), color 420ms var(--ease);
}
.toast-idle { display: none; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.toast-idle b { color: var(--ink-2); font-weight: 650; }
.js .toast:not(.on) { background: #fbfbfc; border-top: 1px solid var(--line); padding-block: 11px; }
.js .toast:not(.on) .toast-idle { display: flex; }
.js .toast:not(.on) .toast-h, .js .toast:not(.on) .toast-row { display: none; }
.toast.on .toast-h, .toast.on .toast-row { animation: rise 460ms var(--ease) both; }
.toast.on .toast-row:nth-of-type(2) { animation-delay: 80ms; }
.toast-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.toast-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--gold); color: var(--ink); }
.toast-row { display: grid; grid-template-columns: 58px 1fr auto auto; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--d-line); font-size: 12px; color: var(--d-mut); }
.toast-row span:first-child { color: var(--d-text); font-weight: 600; }
.toast-row .num:nth-child(3) { color: var(--d-text); }
.hash { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--ink); background: var(--gold); padding: 0 5px; border-radius: 4px; }

.cursor {
  position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none;
  transform: translate(var(--x, 60%), var(--y, 80%));
  transition: transform 820ms var(--ease), opacity 260ms;
}
.cursor svg { width: 20px; height: 20px; fill: var(--blue); stroke: var(--white); stroke-width: 1.5; filter: drop-shadow(0 2px 3px rgba(13, 14, 18, 0.3)); }
.cursor-l { position: absolute; left: 16px; top: 18px; white-space: nowrap; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px 6px 6px 2px; }
.cursor.is-maya svg { fill: var(--ink); }
.cursor.is-maya .cursor-l { background: var(--ink); }
.cursor.is-hidden { opacity: 0; }
.cursor.no-anim { transition: none; }
html:not(.js) .cursor { display: none; }

/* visibility helpers driven by the timeline */
.js .vis-at:not(.on) { display: none; }
.js .vis-until.off { display: none; }
.js .pane-prop.off { display: none; }
html:not(.js) .vis-until, html:not(.js) .sheet, html:not(.js) .pane-prop { display: none; }

.demo-bar { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.ctl {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}
.ctl:hover { border-color: var(--ink-3); }
.ctl .ic-play { display: none; }
.demo.is-paused .ctl .ic-pause { display: none; }
.demo.is-paused .ctl .ic-play { display: block; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  position: relative; overflow: hidden;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--white);
  font-size: 0.875rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: border-color 160ms, color 160ms;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.chip-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.chip > :not(.chip-fill) { position: relative; }
.demo-cap { margin-left: auto; color: var(--ink-3); font-size: 0.9375rem; font-style: normal; font-stretch: 108%; }
.demo.is-paused .dots i, .demo.is-paused .caret { animation-play-state: paused; }

/* ---------------------------------------------------------------- story */

.story { padding: 120px 0 80px; background: var(--mist); border-top: 1px solid var(--line); }
.story-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 64px; margin-top: 56px;
}
.story-stage { position: relative; }
.win-story {
  position: sticky; top: max(88px, calc(50vh - 240px));
  transition: top 520ms var(--ease);
  display: grid; grid-template-columns: 52px minmax(0, 1fr);
  height: auto;
}
.rail {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 0; background: var(--mist); border-right: 1px solid var(--line);
}
.rail .ws-logo { margin-bottom: 10px; }
.rail .ic { width: 34px; height: 34px; padding: 8px; border-radius: 8px; color: var(--ink-3); transition: background-color 300ms var(--ease), color 300ms; }
.rail .ic.is-cur { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(13, 14, 18, 0.08), 0 0 0 1px var(--line); }
.screens { position: relative; flex: 1; padding: 24px 28px; overflow: hidden; }
.win-story .screens { height: var(--h, auto); transition: height 520ms var(--ease); }
.scr { display: none; }
.scr.scr-on { display: block; }
html:not(.js) .scr { display: block; padding-bottom: 32px; }

.olist { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; }
.orow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; }
.orow + .orow { border-top: 1px solid var(--line); }
.orow b { display: block; font-weight: 600; }
.orow > div span { display: block; color: var(--ink-3); font-size: 12.5px; }
.oprice { font-size: 15px; font-weight: 700; text-align: right; white-space: nowrap; }
.oprice small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.orow .opt-k { margin: 0; }
.orow-b { background: linear-gradient(90deg, rgba(36, 87, 230, 0.05), transparent); }
.scr-on .orow { animation: rowIn 520ms var(--ease) both; }
.scr-on .orow:nth-child(2) { animation-delay: 70ms; }
.scr-on .orow:nth-child(3) { animation-delay: 140ms; }
.mini-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 12px; border-radius: 9px; background: var(--mist); color: var(--ink-2); }

.portal-h { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.portal-h .pill { margin-left: auto; }
.chosen-card { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--blue); border-radius: 10px; box-shadow: 0 0 0 3px rgba(36, 87, 230, 0.12); }
.chosen-top { display: flex; align-items: center; gap: 4px; }
.chosen-top b { font-size: 15px; }
.chosen-top .oprice { margin-left: auto; font-size: 20px; font-weight: 750; }
.chosen-top .oprice small { display: inline; margin-left: 4px; font-size: 14px; color: var(--ink-2); }
.portal-names { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chosen-card p { margin-top: 6px; font-size: 12.5px; }
.sig { display: grid; gap: 4px; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--mist); }
.sig-l { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.sig-name { font-size: 26px; font-weight: 500; font-stretch: 85%; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.scr-on .sig-name { animation: write 900ms 200ms var(--ease) both; }
.sig-meta { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; }

.week-tot { text-align: right; }
.week-tot span { display: block; font-size: 12px; color: var(--ink-3); }
.week-tot b { font-size: 20px; font-weight: 750; }
.grid { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 12.5px; }
.grid th.r { text-align: right; }
.grid th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-3); padding: 0 6px 8px; border-bottom: 1px solid var(--line); }
.grid td { padding: 10px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td:first-child { font-weight: 600; }
.grid td:first-child .av { margin-right: 8px; vertical-align: middle; }
.grid th:first-child, .grid td:first-child { padding-left: 0; }
.grid th:last-child, .grid td:last-child { padding-right: 0; }
.scr-on .grow { animation: rowIn 520ms var(--ease) both; }
.scr-on .grow:nth-child(2) { animation-delay: 80ms; }
.scr-on .grow:nth-child(3) { animation-delay: 160ms; }
.scr-on .grow td:not(:first-child) { animation: cellIn 380ms var(--ease) both; }
.scr-on .grow td:nth-child(3) { animation-delay: 120ms; }
.scr-on .grow td:nth-child(4) { animation-delay: 180ms; }
.scr-on .grow td:nth-child(5) { animation-delay: 240ms; }
.scr-on .grow td:nth-child(6) { animation-delay: 300ms; }
.scr-on .grow td:nth-child(7) { animation-delay: 380ms; }
.draft {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px;
  border: 1px dashed #9aa0ac; color: var(--ink-2); font-weight: 600; background: var(--white);
}
.draft-card {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px;
  border: 1px dashed #9aa0ac; border-radius: 10px; background: #fbfbfc;
}
.draft-card b { display: block; }
.draft-card span:not(.btn-ui) { color: var(--ink-3); font-size: 12.5px; }
.draft-card .btn-ui { margin-left: auto; }
.scr-on .draft-card { animation: rise 520ms 520ms var(--ease) both; }

.unbilled {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px;
  padding: 10px 14px; border-radius: 9px; background: var(--mist); color: var(--ink-2); font-size: 12.5px;
}
.ub-h { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.ub-w b { color: var(--ink); margin-left: 4px; }
.ub-t { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.scr-on .lrow { animation: rowIn 520ms var(--ease) both; }
.scr-on .lrow:nth-child(1) { animation-delay: 120ms; }
.scr-on .lrow:nth-child(2) { animation-delay: 300ms; }
.scr-on .ub-t { animation: nudge 700ms 260ms var(--ease) both; }

.paid-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--green-bg);
}
.paid-l { color: var(--green); font-weight: 600; }
.paid-card b { font-size: 22px; font-weight: 750; padding: 0 6px; border-radius: 5px; background: var(--gold); }
.scr-on .paid-card b { animation: goldIn 700ms 200ms var(--ease) both; }
.sub-h { margin-top: 18px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.sched { margin-top: 8px; }
.sched li { display: grid; grid-template-columns: 14px 1fr 70px 1.3fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.sched b { font-weight: 600; }
.sd { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #9aa0ac; }
.sched .fee b { color: var(--ink); }
.scr-on .sched li { animation: rowIn 460ms var(--ease) both; }
.scr-on .sched li:nth-child(2) { animation-delay: 60ms; }
.scr-on .sched li:nth-child(3) { animation-delay: 120ms; }
.scr-on .sched li:nth-child(4) { animation-delay: 180ms; }
.je-mini { margin-top: 14px; display: grid; gap: 6px; }
.je-mini div { display: grid; grid-template-columns: 62px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--d-mut); font-size: 12px; }
.je-mini div span:first-child, .je-mini b { color: var(--d-text); font-weight: 600; }
.scr-on .je-mini div { animation: rowIn 480ms 360ms var(--ease) both; }
.scr-on .je-mini div + div { animation-delay: 460ms; }

.steps { display: flex; flex-direction: column; }
.step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 24px 24px; border-left: 2px solid var(--line);
  color: var(--ink-3);
  transition: color 400ms var(--ease), border-color 400ms var(--ease);
}
.step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 140px; }
.step:last-child { min-height: 70vh; }
.step-h { font-size: 1.75rem; font-weight: 800; font-stretch: 115%; letter-spacing: -0.025em; color: var(--ink-3); transition: color 400ms var(--ease); }
.step > p { margin-top: 12px; font-size: 1.0625rem; max-width: 36ch; }
.step.is-on { border-left-color: var(--ink); color: var(--ink-2); }
.step.is-on .step-h { color: var(--ink); }
.step .win { display: none; }

/* ---------------------------------------------------------------- scale */

.scale { padding: 128px 0 120px; }
.scale-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.scale-head .sec-lede { margin-top: 0; }
.roles { display: flex; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.role {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  text-align: left; cursor: pointer; font-weight: 650; font-size: 0.9375rem;
  transition: border-color 200ms var(--ease), background-color 200ms, box-shadow 200ms;
}
.role .av { width: 32px; height: 32px; font-size: 11px; }
.role small { display: block; font-weight: 500; font-size: 0.8125rem; color: var(--ink-3); }
.role:hover { border-color: var(--line-2); background: var(--mist); }
.role[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 1px 2px rgba(13, 14, 18, 0.06), 0 0 0 1px var(--ink); }

.win-role { margin-top: 16px; }
.win-role:focus-visible { border-radius: var(--r-lg); }
.viewing { font-size: 12px; }
.viewing b { color: var(--ink); font-weight: 600; transition: opacity 200ms; }
.role-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.rp { padding: 20px 22px 22px; min-height: 260px; position: relative; }
.rp + .rp { border-left: 1px solid var(--line); }
.rp-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.rp-h b { font-size: 14px; font-weight: 650; }
.rp-sum { color: var(--ink-3); font-weight: 600; }
.tl-row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 82px 86px 102px; gap: 10px; align-items: center;
  max-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: max-height 460ms var(--ease), opacity 320ms var(--ease), padding 460ms var(--ease), border-color 300ms;
}
.tl-n { font-weight: 600; }
.tl-row .pill { justify-self: start; }
.rb {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2);
  font-weight: 600; font-size: 12px; white-space: nowrap; background: var(--white);
  transition: opacity 240ms var(--ease), transform 300ms var(--ease);
}
.rb-done { color: var(--green); border-color: transparent; background: var(--green-bg); }
.rb-quiet { color: var(--ink-3); border-color: transparent; }
.rb-own { display: none; background: var(--ink); color: var(--white); border-color: var(--ink); }
.rb-ro { display: none; color: var(--ink-3); background: var(--mist); border-color: transparent; }
.rp-empty { display: none; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-3); font-size: 12.5px; }

.il li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 56px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.il li span:first-child { font-weight: 600; }
.il .pill { justify-self: end; }
.rp-acts { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.rp-acts .rb:not(.rb-ro) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rp-acts .rb + .rb:not(.rb-ro) { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.rp-money .il, .rp-money .rp-acts, .rp-money .rp-h { transition: opacity 300ms var(--ease), filter 300ms var(--ease); }
.rp-locked {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: left; color: var(--ink-2);
  opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease), visibility 0s 320ms;
}
.rp-locked .ic { width: 22px; height: 22px; color: var(--ink-3); }
.rp-locked b { display: block; color: var(--ink); }
.rp-locked span { display: block; font-size: 12.5px; color: var(--ink-3); max-width: 30ch; }
.role-note { padding: 12px 22px; border-top: 1px solid var(--line); background: #fbfbfc; color: var(--ink-2); font-size: 13px; min-height: 45px; }

/* per role */
.win-role[data-role="accountant"] [data-act="approve"]:not(.rb-done) { opacity: 0; transform: translateX(6px); pointer-events: none; }
.win-role[data-role="accountant"] .rp-acts .rb:not(.rb-ro) { display: none; }
.win-role[data-role="accountant"] .rb-ro { display: inline-flex; }
.win-role[data-role="member"] .tl-row:not([data-who="theo"]) { max-height: 0; opacity: 0; padding-block: 0; border-color: transparent; }
.win-role[data-role="member"] [data-who="theo"] [data-act="approve"] { display: none; }
.win-role[data-role="member"] [data-who="theo"] .rb-own { display: inline-flex; }
.win-role[data-role="member"] .rp-empty { display: flex; }
.win-role[data-role="member"] .rp-sum[data-r="all"] { opacity: 0; }
.win-role[data-role="member"] .rp-money .il,
.win-role[data-role="member"] .rp-money .rp-acts,
.win-role[data-role="member"] .rp-money .rp-h { opacity: 0; visibility: hidden; }
.win-role[data-role="member"] .rp-locked { opacity: 1; visibility: visible; transition: opacity 360ms 120ms var(--ease), visibility 0s; }

.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.sizes li { color: var(--ink-2); font-size: 1rem; max-width: 34ch; }
.sizes b { display: block; font-weight: 800; font-stretch: 115%; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }

/* ---------------------------------------------------------------- books (dark) */

.books { padding: 128px 0; background: var(--d-bg); color: var(--d-text); scrollbar-color: #3a3e48 var(--d-bg); }
.books ::selection { background: var(--gold); color: var(--ink); }
.books .sec-lede { color: var(--d-mut); }
.books :focus-visible { outline-color: var(--gold); box-shadow: none; }
.books-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; margin-top: 56px; align-items: start; }
.jw-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.jw-h b { font-size: 1rem; font-weight: 700; }
.demo-tag-dark { background: var(--d-panel-2); border-color: var(--d-line); color: var(--d-mut); }
.mut-d { color: var(--d-mut); font-size: 0.875rem; }

.journal { --gap: 14px; display: flex; flex-direction: column; gap: var(--gap); padding-left: 34px; }
.je {
  position: relative;
  padding: 14px 16px; border-radius: 12px;
  background: var(--d-panel); border: 1px solid var(--d-line);
  font-size: 13.5px;
}
.je::before {
  content: ""; position: absolute; left: -29px; top: 18px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--d-bg);
}
.je::after {
  content: ""; position: absolute; left: -24px; width: 2px; top: 34px;
  bottom: calc(-1 * (var(--gap) + 18px));
  background: var(--gold); transform-origin: top;
}
.je:not(:has(~ .je:not([hidden])))::after { display: none; }
.je-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.je-id { font-weight: 700; }
.je-d { color: var(--d-mut); }
.je-what { color: var(--d-text); }
.je-closed { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--d-mut); }
.je-lines { margin-top: 10px; display: grid; gap: 2px; }
.je-lines div { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; color: var(--d-mut); }
.je-lines div span:first-child { font-weight: 600; color: #7f8592; }
.je-lines div span:nth-child(2) { color: var(--d-text); }
.je-lines div:nth-child(2) span:nth-child(2) { padding-left: 18px; }
.je-lines .num { color: var(--d-text); }
.je-hash { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--d-line); font-size: 12px; }
.je-hash .prev { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--d-mut); }
.je-edit { margin-top: 12px; }
.jbtn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border-radius: 8px; border: 1px solid #3a3e48; background: var(--d-panel-2); color: var(--d-text);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color 160ms, background-color 160ms, transform 140ms var(--ease);
}
.jbtn:hover { border-color: #5a5f6b; }
.jbtn:active { transform: translateY(1px); }
.jbtn[disabled] { opacity: 0.55; cursor: default; }
.jbtn[hidden] { display: none; }
.jbtn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.jbtn-gold:hover { background: #ffd24f; border-color: #ffd24f; }
.jbtn-ghost { background: transparent; margin-top: 18px; }
.refuse {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: var(--d-panel-2); border: 1px solid var(--d-line); color: var(--d-mut);
}
.refuse p { margin-bottom: 10px; }
.refuse b { color: var(--gold); }
.refuse:not([hidden]) { animation: rise 420ms var(--ease) both; }
.je.is-shaking [data-edit-target] { animation: refuse 420ms var(--ease); }
[data-edit-target] { border-radius: 4px; transition: box-shadow 200ms; }
.je.is-editing [data-edit-target] { box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px rgba(255, 198, 41, 0.18); padding: 0 4px; }
.je.is-reversed { opacity: 0.72; }
.je-rev { border-color: var(--gold); }
.je.is-posting { animation: post 620ms var(--ease) both; }
.je.is-posting::after { animation: draw 620ms 220ms var(--ease) both; }
.journal.armed .je:not(.is-in) { opacity: 0; transform: translateY(10px); }

.pl { padding: 20px; border-radius: 14px; background: var(--d-panel); border: 1px solid var(--d-line); }
.pl-rows { margin: 0; }
.pl-rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--d-line); }
.pl-rows dt { color: var(--d-mut); }
.pl-rows dd { margin: 0; font-weight: 600; }
.pl-net { border-bottom: 0 !important; }
.pl-net dt { color: var(--d-text); font-weight: 700; }
.pl-net dd { font-size: 1.25rem; font-weight: 750; }
.pl-note { margin-top: 10px; font-size: 0.8125rem; color: var(--d-mut); }
.pl .changed { animation: goldText 1.1s var(--ease); }
.facts { margin-top: 28px; display: grid; gap: 20px; }
.facts li { display: flex; gap: 14px; color: var(--d-mut); font-size: 0.9688rem; }
.facts .ic { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.facts b { color: var(--d-text); }

/* ---------------------------------------------------------------- privacy */

.privacy { padding: 128px 0; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 64px; align-items: center; }
.privacy-copy p { margin-top: 18px; color: var(--ink-2); font-size: 1.125rem; max-width: 42ch; }
.cal-flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 13px; }
.cal-ev, .cal-draft { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-pop); }
.cal-ev { background: #fbfbfc; box-shadow: none; }
.cal-src { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 600; font-size: 12px; margin-bottom: 10px; }
.cal-ev b.kept { display: block; font-size: 16px; }
.cal-ev span.kept { display: block; color: var(--ink-2); margin-top: 2px; }
.kept { background-image: linear-gradient(var(--gold-soft), var(--gold-soft)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 600ms var(--ease); border-radius: 3px; }
.cal-flow.is-done .kept { background-size: 100% 100%; }
.dropped { margin-top: 12px; border-top: 1px solid var(--line); }
.dropped li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); transition: opacity 500ms var(--ease), color 500ms; }
.dropped li span { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.dropped li { text-decoration: line-through transparent; text-decoration-thickness: 1.5px; }
.cal-flow.is-done .dropped li { opacity: 0.6; color: var(--ink-3); text-decoration-color: #8c919c; }
.cal-flow.is-done .dropped li:nth-child(2) { transition-delay: 90ms; }
.cal-flow.is-done .dropped li:nth-child(3) { transition-delay: 180ms; }
.cal-flow.is-done .dropped li:nth-child(4) { transition-delay: 270ms; }
.cal-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); color: var(--ink-2); }
.cd-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cd-top .demo-tag { margin-left: auto; }
.cd-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed #9aa0ac; border-radius: 10px; }
.cd-item b { display: block; }
.cd-item span:not(.pill) { color: var(--ink-3); font-size: 12px; }
.cd-item .pill { margin-left: auto; }
.cd-vis { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ink-2); font-weight: 600; }
.cd-kept { margin-top: 4px; color: var(--ink-3); font-size: 12.5px; }
.js .cal-flow.armed:not(.is-done) .cal-draft { opacity: 0; transform: translateX(-12px); }
.cal-draft { transition: opacity 520ms 420ms var(--ease), transform 620ms 420ms var(--ease); }

/* ---------------------------------------------------------------- playbook */

.playbook { padding: 112px 0 120px; background: var(--mist); border-top: 1px solid var(--line); }
.pb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.pb-title { font-size: clamp(2.75rem, 6vw, 5rem); font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.9; }
.pb-head .sec-lede { margin-top: 0; max-width: 30ch; font-size: 1.0625rem; }
.pb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; margin-top: 48px; align-items: start; }
.pb-list { border-top: 1px solid var(--line-2); }
.pb-list li { border-bottom: 1px solid var(--line-2); }
.pb {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: baseline;
  width: 100%; padding: 14px 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.pb-n { font-size: 1.375rem; font-weight: 750; font-stretch: 112%; letter-spacing: -0.02em; color: var(--ink-3); transition: color 220ms var(--ease), transform 300ms var(--ease); }
.pb-d { color: var(--ink-3); font-size: 0.9375rem; transition: color 220ms; }
.pb:hover .pb-n, .pb[aria-pressed="true"] .pb-n { color: var(--ink); }
.pb[aria-pressed="true"] .pb-n { transform: translateX(8px); }
.pb[aria-pressed="true"] .pb-d, .pb:hover .pb-d { color: var(--ink-2); }
.pb[aria-pressed="true"] .pb-n::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); margin-right: 10px; vertical-align: 2px; margin-left: -20px; }
.pb:focus-visible { border-radius: 4px; }
.pb-prev-wrap { position: sticky; top: 100px; }
.win-prev { min-height: 340px; }
.win-prev .top { height: 44px; }
.pv-title { font-size: 13px; }
.pv-body { padding: 18px; }
.pv-body.is-in > * { animation: rise 420ms var(--ease) both; }
.pv-body.is-in > *:nth-child(2) { animation-delay: 50ms; }
.pv-body.is-in > *:nth-child(3) { animation-delay: 100ms; }
.pv-body.is-in > *:nth-child(4) { animation-delay: 150ms; }
.pv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pv-row b { font-weight: 600; }
.pv-row small { display: block; color: var(--ink-3); font-size: 12px; }
.pv-row .num { font-weight: 600; }
.pv-big { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 10px; background: var(--mist); margin-bottom: 8px; }
.pv-big b { font-size: 20px; font-weight: 750; }
.pv-note { margin-top: 12px; color: var(--ink-3); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.pv-bar { height: 8px; border-radius: 4px; background: var(--mist-2); overflow: hidden; margin-top: 6px; }
.pv-bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }

/* ---------------------------------------------------------------- final */

.final { padding: 128px 0; background: var(--mist); border-top: 1px solid var(--line); overflow: hidden; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.final-copy { padding-top: 40px; }
.final-h { font-size: clamp(2.75rem, 6vw, 5rem); font-stretch: 125%; letter-spacing: -0.04em; }
.waitlist-final { margin-top: 32px; width: min(520px, 100%); }
.win-final { margin-right: 0; }
.fin-body { padding: 22px 24px 18px; }
.fin-paid { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fin-meta { margin-top: 6px; color: var(--ink-3); }
.fin-amt { font-size: 34px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; padding: 0 8px; border-radius: 6px; background: var(--gold); }
.fin-act { margin-top: 12px; display: grid; gap: 2px; }
.fin-act .ai { padding: 8px 4px; }
.fin-you.is-claimed { animation: rise 520ms var(--ease) both; background: var(--gold-soft); }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-in { display: flex; align-items: center; gap: 40px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-c { margin-left: auto; color: var(--ink-3); font-size: 0.875rem; }
.wink { font-style: normal; }

/* ---------------------------------------------------------------- keyframes */

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes cellIn { from { opacity: 0; } }
@keyframes actIn { from { opacity: 0; max-height: 0; padding-block: 0; transform: translateY(-8px); } to { max-height: 60px; } }
@keyframes pop { from { transform: scale(0.92); opacity: 0.4; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dot { 0%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
@keyframes ring { from { opacity: 1; transform: scale(0.9); } to { opacity: 0; transform: scale(1.25); } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-6px); filter: blur(2px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nudge { 0% { transform: translateX(-8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes goldIn { from { background-color: transparent; } }
@keyframes post { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleY(0); } }
@keyframes refuse { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes goldText { 0% { color: var(--gold); } 100% { color: inherit; } }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1320px) {
  .win-hero { grid-template-columns: 196px minmax(0, 1fr) 232px; }
}

@media (max-width: 1100px) {
  .win-hero { grid-template-columns: 0 minmax(0, 1fr) 232px; }
  .win-hero .side { visibility: hidden; padding: 0; border: 0; }
  .story-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
  .pb { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 860px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-in { gap: 16px; height: 58px; }
  .brand-word { font-size: 1.0625rem; }
  .btn-sm { height: 36px; padding: 0 12px; font-size: 0.875rem; }
  .hero { padding-top: 32px; }
  .hero-h { font-size: clamp(2.5rem, 11vw, 3.5rem); font-stretch: 112%; }
  .hero-row { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; }
  .lede { font-size: 1.0625rem; }
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
  .field-row .input { flex: none; width: 100%; }
  .hero-demo-wrap { margin-top: 28px; padding-bottom: 64px; }

  .win-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: 590px; }
  .win-hero .main { grid-column: 1; }
  .win-hero .side, .win-hero .act { display: none; }
  .win-hero .main { border-right: 0; }
  .win-hero .body { padding: 16px; }
  .win-hero .top { padding: 0 12px; }
  .win-hero .top-r .ic, .win-hero .avs { display: none; }
  .crumbs > span:first-child, .crumbs > span:first-child + .ic { display: none; }
  .sheet { inset: 8px; }
  .sheet-intro, .terms, .sign-scope, .inv-foot, .prop-more { display: none; }
  .sign-sum b { font-size: 15px; }
  .opt-est { grid-column: 1; }
  .opt { grid-template-rows: auto auto auto; }
  .opt-btn, .opt-b.on .opt-chosen { grid-row: 1 / 4; }
  .sheet-who { display: none; }
  .opts { grid-template-columns: 1fr; gap: 6px; }
  .opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px; padding: 9px 10px; }
  .opt ul { display: none; }
  .opt-l { grid-column: 1; }
  .opt-p { grid-column: 1; font-size: 16px; }
  .opt-btn, .opt-b.on .opt-chosen { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 0 12px; }
  .sheet-h { margin-bottom: 8px; }
  .doc-h { flex-wrap: wrap; gap: 8px; }
  .doc-title { font-size: 17px; }
  .tbl-inv th:nth-child(2), .tbl-inv td:nth-child(2), .tbl-inv th:nth-child(3), .tbl-inv td:nth-child(3) { display: none; }
  .tbl td { padding: 9px 6px; }
  .wait { margin-left: 0; }
  .strip { flex-wrap: wrap; height: auto; padding: 8px 12px; }
  .toast { grid-column: 1; padding: 10px 16px 12px; border-right: 0; }
  .toast-idle span { display: none; }
  .toast-row { grid-template-columns: 54px 1fr auto; }
  .toast-row span:nth-child(2) { display: none; }
  .demo-bar { flex-wrap: wrap; gap: 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .chip { padding: 0 11px; flex: none; }
  .demo-cap { margin-left: 0; width: 100%; font-size: 0.875rem; }

  .story { padding: 88px 0 64px; }
  .story-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .story-stage { display: none; }
  .steps { gap: 40px; }
  .step, .step:first-child, .step:last-child { min-height: 0; padding: 0; border: 0; color: var(--ink-2); justify-content: flex-start; }
  .step .step-h { color: var(--ink); font-size: 1.5rem; }
  .step .win { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 16px; height: auto; position: static; }
  .step .win .rail { display: none; }
  .step .win .screens { padding: 16px; }
  .step .win .scr { display: block; }
  .step .grid th:nth-child(n+2):not(:last-child), .step .grid td:nth-child(n+2):not(:last-child) { display: none; }
  .step .grid td:first-child { white-space: normal; }
  .step .draft-card { flex-wrap: wrap; align-items: flex-start; }
  .step .draft-card > div { flex: 1; min-width: 0; }
  .step .sched li { grid-template-columns: 14px 1fr 54px; }
  .step .sched li span:last-child { display: none; }
  .step .je-mini div { grid-template-columns: 58px 1fr auto; }
  .step .je-mini div > span:nth-child(2) { display: none; }
  .step .unbilled .ub-t { margin-left: 0; }

  .scale { padding: 88px 0; }
  .roles { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 6px; scrollbar-width: none; }
  .role { flex: none; }
  .role-body { grid-template-columns: 1fr; }
  .rp + .rp { border-left: 0; border-top: 1px solid var(--line); }
  .rp { padding: 16px; min-height: 0; }
  .rp-money { min-height: 150px; }
  .tl-row { grid-template-columns: 24px minmax(0, 1fr) 76px; row-gap: 8px; max-height: 96px; }
  .tl-row .pill { grid-column: 2; }
  .tl-row .rb { grid-column: 3; grid-row: 2; justify-self: end; }
  .il li { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .il li span:nth-child(2) { display: none; }
  .il .pill { display: none; }
  .viewing { display: none; }
  .sizes { grid-template-columns: 1fr; gap: 18px; }

  .books { padding: 88px 0; }
  .books-grid { grid-template-columns: 1fr; gap: 40px; }
  .journal { padding-left: 26px; }
  .je::before { left: -24px; }
  .je::after { left: -19px; }
  .je { padding: 12px; font-size: 13px; }
  .je-closed { margin-left: 0; }

  .privacy { padding: 88px 0; }
  .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  .cal-flow { grid-template-columns: 1fr; }
  .cal-arrow { transform: rotate(90deg); justify-self: center; }

  .playbook { padding: 88px 0; }
  .pb-grid { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .pb-n { font-size: 1.1875rem; }
  .pb-prev-wrap { display: none; }
  .pb-list .win-prev { margin: 4px 0 16px; min-height: 0; }

  .final { padding: 88px 0; }
  .final-grid { grid-template-columns: 1fr; gap: 40px; }
  .win-final { margin-right: 0; transform: none; }
  .fin-amt { font-size: 24px; }
  .scale-head { grid-template-columns: 1fr; gap: 0; }
  .scale-head .sec-lede { margin-top: 18px; }
  .pb-head { padding-bottom: 20px; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot-c { margin-left: 0; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .dots i, .caret { animation: none !important; opacity: 1; }
  .js .hl { background-size: 100% 42%; }
}
.form-msg:focus { outline: none; box-shadow: none; }
.waitlist.is-done + .fine { margin-top: 6px; }
/* The success line takes the space the field row held, so nothing below moves. */
.waitlist.is-done .form-msg { min-height: calc(56px + 1.5em); }
.waitlist { overflow-anchor: none; }

/* ---- waitlist consent checkbox ---- */
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-3); text-align: left; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.waitlist.is-done .consent { display: none; }
