/* The front page. It shares nothing with style.css: the app's pages are quiet
   paper, and this page is the one place yesdoc raises its voice: highlighter
   yellow, ink, and a document with a hard edge. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Signature";
  src: url("/static/signature.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/static/martianmono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0c1233;
  --blue: #1b2bd0;
  --blue-deep: #1a2aa8;
  --paper: #ffffff;
  --desk: #f3f1e9;
  --line: #d6d9e8;
  --soft: #586083;
  --mark: #ffe45c;
  --note: transparent;
  --note-ink: #5a6072;
  --flag: #d9a441;
  --yes: #0b6f4c;
  --yes-bg: #dcf4e8;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); margin-bottom: 1.25rem; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.section :focus-visible, .demo :focus-visible { outline-color: var(--blue); }
.agents :focus-visible, .foot :focus-visible { outline-color: var(--mark); }

.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--mark); color: var(--ink); padding: .5rem .9rem; border-radius: 6px; z-index: 5; }
.skip:focus { left: .5rem; }
.demo-banner { margin: 0; padding: .55rem 1rem; background: #fff1c9; color: #6b4200; font-size: .875rem; text-align: center; }

/* Hero */
.hero { background: linear-gradient(var(--mark) 0, var(--mark) calc(100% - 9rem), var(--desk) calc(100% - 9rem)); color: var(--ink); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.brand { font-family: "Martian Mono", var(--mono); font-weight: 700; font-size: 1.3rem; letter-spacing: -.06em; text-decoration: none; margin: 0; }
.top nav { display: flex; align-items: center; gap: 1.75rem; font-size: .98rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top .signin { border: 1.5px solid var(--ink); padding: .4rem .95rem; border-radius: 999px; }
.top .signin:hover { background: var(--ink); color: #fff; text-decoration: none; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 3vw, 2.75rem); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
h1 span { display: block; }
h1 { font-size: clamp(3.2rem, 8.7vw, 8.1rem); text-wrap: balance; font-weight: 750; letter-spacing: -.045em; line-height: .92; }
.pitch { font-size: 1.3rem; line-height: 1.45; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.pitch > p { margin: 0; }
.pitch > p:first-child { flex: 1 1 28rem; max-width: 44rem; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin: 1.6rem 0 0; }
.cta { display: inline-block; background: var(--ink); color: #fff; font-weight: 650; text-decoration: none; padding: .85rem 1.35rem; border-radius: 999px; }
.cta:hover { background: var(--blue); }
/* The product's name in running copy, set like the wordmark so it does not read as an ordinary word. */
.wordmark { font-family: "Martian Mono", var(--mono); font-weight: 700; font-size: .88em; line-height: 1; letter-spacing: -.06em; }

/* The working document */
.demo { background: var(--paper); color: var(--ink); border-radius: 14px; box-shadow: 0 0 0 2px var(--ink), 10px 10px 0 var(--ink); overflow: hidden; }
.bar { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: #f5f6fb; border-bottom: 1px solid var(--line); font-size: .86rem; }
.lock { width: .6rem; height: .5rem; border-radius: 2px; background: var(--soft); position: relative; flex: none; }
.lock::before { content: ""; position: absolute; left: .1rem; bottom: .42rem; width: .4rem; height: .36rem; border: 1.5px solid var(--soft); border-bottom: 0; border-radius: .25rem .25rem 0 0; box-sizing: border-box; }
.address { font-family: var(--mono); font-size: .8rem; color: var(--soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .28rem .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.same { margin-left: auto; background: var(--ink); color: #fff; padding: .2rem .6rem; border-radius: 4px; font-weight: 600; white-space: nowrap; }

.stagebox { display: grid; grid-template-columns: 19.5rem minmax(0, 1fr); }
.rail { list-style: none; margin: 0; padding: 1.4rem 1rem 1.4rem 1.25rem; background: #f8f9fd; border-right: 1px solid var(--line); }
.rail li { position: relative; padding-left: 1.6rem; }
.rail li::before { content: ""; position: absolute; left: .32rem; top: 1.25rem; bottom: -1.25rem; width: 2px; background: var(--line); }
.rail li:last-child::before { display: none; }
.rail li::after { content: ""; position: absolute; left: 0; top: .95rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--paper); border: 2px solid #b4b9d2; box-sizing: border-box; }
.rail li.done::before { background: var(--blue); }
.rail li.done::after { background: var(--blue); border-color: var(--blue); }
.rail li.now::after { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(36 56 214 / .16); }
.rail button { display: grid; grid-template-columns: 1fr auto; column-gap: .5rem; width: 100%; text-align: left; font: inherit; color: var(--soft); background: none; border: 0; border-radius: 10px; padding: .6rem .7rem; cursor: pointer; }
.rail button:hover { background: #eceefa; }
.rail .name { font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; grid-row: 1; }
.rail .when { font-size: .8rem; grid-row: 1; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.rail .what { display: none; grid-column: 1 / -1; font-size: .9rem; line-height: 1.4; margin-top: .25rem; color: var(--ink); }
.rail li.done .name { color: var(--ink); }
.rail li.now button { background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgb(12 18 51 / .25); }
.rail li.now .name { color: var(--blue); }
.rail li.now .what { display: block; }

.doc { padding: 2rem clamp(1.25rem, 3.4vw, 2.75rem) 1.75rem; min-width: 0; font-size: 1rem; }
.doc .from { font-weight: 600; margin: 0 0 .3rem; }
.doc-title { font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2.05rem)/1.15 var(--serif); letter-spacing: -.015em; margin: 0 0 .35rem; }
.doc-meta { color: var(--soft); font-size: .92rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.1rem; }
.doc h3 { font: 600 1.1rem var(--serif); letter-spacing: 0; margin: 1.3rem 0 .5rem; }

.file { display: inline-block; font-size: .85rem; font-weight: 600; background: var(--paper); border: 1px solid rgb(12 18 51 / .2); border-radius: 6px; padding: .08rem .5rem; white-space: nowrap; }
button.file { font-family: inherit; color: var(--ink); cursor: pointer; }
button.file::before { content: ""; display: inline-block; width: .55rem; height: .7rem; margin-right: .35rem; border: 1.5px solid currentColor; border-radius: 2px; vertical-align: -.05rem; }
button.file:hover { border-color: var(--blue); color: var(--blue); }
.sheet { border: 0; padding: 0; background: transparent; width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; }
.sheet::backdrop { background: rgb(12 18 51 / .55); }
.paper { background: #fff; color: var(--ink); padding: clamp(1.5rem, 5vw, 2.75rem); box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 var(--ink); font-size: .95rem; min-height: 26rem; }
.paper p { margin: 0; }
.paper h3 { font: 600 1.6rem var(--serif); letter-spacing: -.01em; margin: .1rem 0 .3rem; }
.paper-from { font-weight: 650; }
.paper-meta { color: var(--soft); font-size: .88rem; }
.paper-rows { margin: 1.4rem 0; border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.paper-rows p { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.paper-rows .sum { font: 600 1.1rem var(--serif); border-bottom: 0; border-top: 2px solid var(--ink); }
.paper-ack { margin-bottom: 1.2rem !important; }
.paper .sig { font-size: 3.2rem; border-bottom: 1.5px solid var(--ink); width: 15rem; padding: .4rem .3rem 0; margin-bottom: .4rem; }
.stamp { display: inline-block; margin-top: 1.4rem !important; border: 2px solid var(--yes); color: var(--yes); font-weight: 650; font-size: .85rem; padding: .3rem .7rem; border-radius: 6px; transform: rotate(-2deg); }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding-right: 8px; color: #fff; font-size: .9rem; }

.lines { border-top: 1px solid var(--line); }
.line { display: flex; align-items: baseline; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.line .amount { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line em, .becomes em { font-style: normal; font-size: .78rem; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem; margin-left: .25rem; white-space: nowrap; }
.group { font-size: .82rem; font-weight: 600; color: var(--soft); margin: .75rem 0 0; }
.pick { cursor: pointer; }
.pick input, .ask input, .becomes input { accent-color: var(--blue); width: 1.1rem; height: 1.1rem; flex: none; margin: 0; position: relative; top: .15rem; }
.staging { flex-wrap: wrap; }
.staging > label:first-child { display: flex; gap: .65rem; align-items: baseline; cursor: pointer; }
.staging em { margin-left: 0; }
.staging:has(input[type="checkbox"]:not(:checked)) .amount, label.pick:has(input:not(:checked)) .amount { color: #8b91ad; }
.now-what { display: none; }
.rooms { flex-basis: 100%; padding-left: 1.75rem; font-size: .92rem; color: var(--soft); }
.rooms small { font-size: inherit; margin-left: .35rem; }
.doc input[type="number"], .becomes input[type="number"], .becomes input[type="date"] { font: inherit; color: var(--ink); width: 4.2rem; height: auto; top: 0; padding: .3rem .5rem; border: 1px solid #a9aec8; border-radius: 7px; background: var(--paper); margin-left: .35rem; }
.becomes input[type="date"] { width: auto; margin: .35rem 0 0; }

.totals { margin: .9rem 0 1.2rem auto; width: min(100%, 19rem); font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; padding: .2rem 0; color: var(--soft); }
.totals dd { margin: 0; }
.totals .total { color: var(--ink); font: 600 1.2rem var(--serif); border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: .55rem; }
.totals .proposed { color: var(--ink); font-weight: 650; }
.totals .proposed dd, .demo[data-stage="3"] .line.added, .demo[data-stage="1"] .line.photo { background: var(--mark); }
.totals .proposed dd { padding: 0 .3rem; border-radius: 3px; }
.demo[data-stage="3"] .line.added, .demo[data-stage="1"] .line.photo { border-radius: 6px; padding-bottom: .7rem; box-shadow: -.6rem 0 0 var(--mark), .6rem 0 0 var(--mark); }
.next[hidden] { display: none; }
.says { display: block; margin-top: .2rem; }
.signedby { margin-top: 1.4rem; width: min(100%, 22rem); }
.signedby p { margin: 0; font-size: .92rem; color: var(--soft); }
.sig { font-family: "Signature", cursive; font-weight: 400; color: var(--blue); line-height: 1; }
.signedby .sig { font-size: 3.4rem; border-bottom: 1.5px solid var(--ink); padding: .5rem .4rem 0; margin-bottom: .45rem; }
.line.added { flex-wrap: wrap; }
.line.added > span:first-child { flex: 1 1 0; min-width: 0; }
.agree, .agreed { flex-basis: 100%; display: flex; align-items: center; gap: 1rem; font-size: .9rem; color: var(--soft); }
.agree { justify-content: space-between; color: var(--ink); padding-bottom: .15rem; }
.agreed .sig { font-size: 2.1rem; margin-top: -.2rem; }
.billing { margin-top: 2rem; }
.billing .totals { margin-bottom: 0; }
.totals .balance { color: var(--yes); font-weight: 650; }

.ask { display: flex; gap: .7rem; align-items: baseline; padding: .85rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 10px; background: #fff9d6; cursor: pointer; }
.ask:has(input:checked) { background: var(--paper); }
.doc-foot { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.1rem; padding: 1rem 1.1rem; background: var(--desk); border-radius: 10px; }
.doc-foot p { margin: 0; font-size: .92rem; }
.doc-button { font: 650 1rem var(--sans); color: #fff; background: var(--ink); border: 0; border-radius: 9px; padding: .7rem 1.15rem; cursor: pointer; white-space: nowrap; flex: none; }
.doc-button:hover { background: var(--blue); }

/* Asking for a change: the reader's own words under the document, and a quiet button. */
.wish { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; align-items: center; margin-top: 1.1rem; padding: .9rem 1.1rem; border: 1px dashed #a9aec8; border-radius: 10px; }
.wish[hidden] { display: none; }
.wish p { margin: 0; font-size: .92rem; grid-column: 1; }
.wish-words { font: 400 1rem/1.5 var(--serif); }
.wish-button { grid-column: 2; grid-row: 1 / span 2; font: 650 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 9px; padding: .6rem 1.1rem; white-space: nowrap; }
button.wish-button { cursor: pointer; }
button.wish-button:hover { background: var(--ink); color: #fff; }

/* The reader's assistant's notes sit in the margin beside what they are about. */
.doc .line, .doc .ask { position: relative; }
.doc .note { pointer-events: none; font-family: var(--sans); }
.doc .note[hidden] { display: none; }
.doc .note b, .doc .note i { float: none; display: inline-block; margin: 0 .3rem .15rem 0; }
@media (min-width: 60.01rem) {
  .doc { padding-right: 19rem; }
  .doc .note { position: absolute; left: calc(100% + 1.5rem); top: .35rem; width: 15.5rem; z-index: 1; }
  .doc .ask .note { left: calc(100% + 1.5rem + 1px); top: -.1rem; }
  .doc .staging .note { top: 4.4rem; }
  .doc .note::before { content: ""; position: absolute; right: 100%; top: 1.05rem; width: 1.5rem; border-top: 1px dashed #c9c4b6; }
}
@media (max-width: 60rem) {
  .doc label.pick, .doc .ask { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; }
  .doc label.pick .note, .doc .ask .note { grid-column: 1 / -1; margin-top: .5rem; }
  .doc .line.added, .doc .billing .line { flex-wrap: wrap; }
  .doc .line.added > .note, .doc .billing .line > .note { flex-basis: 100%; margin-top: .3rem; }
  .doc .staging .note { flex-basis: 100%; margin-top: .5rem; }
  .doc .wish .note { grid-column: 1 / -1; margin-top: .4rem; }
}
.ask.nudge { animation: nudge .5s ease-out; }
@keyframes nudge { 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }

/* Once it is signed the answers are fixed: what was not picked falls away. */
.demo.locked .pick, .demo.locked .ask, .demo.locked .staging > label:first-child { cursor: default; }
.demo.locked label.pick:has(input:not(:checked)), .demo.locked .staging:has(input[type="checkbox"]:not(:checked)) { display: none; }
.demo.locked .group { display: none; }
.demo.locked .ask { background: var(--paper); }
.demo.locked .doc label, .demo.locked .doc input { pointer-events: none; }
/* Signed: the answers are no longer controls. They sit in the page as ink. */
.demo.locked .doc input[type="radio"], .demo.locked .doc input[type="checkbox"] { appearance: none; -webkit-appearance: none; border: 0; background: none; accent-color: auto; top: 0; }
.demo.locked .doc input[type="radio"]::before, .demo.locked .doc input[type="checkbox"]::before { content: "✓"; display: block; color: var(--blue); font: 700 1.15rem/1 var(--sans); }
.demo.locked input[type="number"] { border-color: transparent; background: none; padding-inline: 0; width: 1.4rem; margin-left: .2rem; font-weight: 650; -moz-appearance: textfield; }
.demo.locked input[type="number"]::-webkit-inner-spin-button { display: none; }
.demo.locked .doc .note:not([data-stages]) { display: none; }
.demo.locked .ask { border-color: transparent; box-shadow: none; padding-inline: 0; }

.demo-next { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .9rem 1.25rem; border-top: 1px solid var(--line); background: #f8f9fd; font-size: .95rem; color: var(--soft); }
.next { font: 650 1rem var(--sans); color: #fff; background: var(--blue); border: 0; border-radius: 999px; padding: .7rem 1.3rem; cursor: pointer; white-space: nowrap; }
.next:hover { background: var(--blue-deep); }

@keyframes mark { from { background-color: var(--mark); } to { background-color: transparent; } }
.flash { animation: mark 1.1s ease-out; border-radius: 3px; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.lede p { max-width: 33rem; font-size: 1.12rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

.parts { background: var(--desk); }
.parts .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.parts .lede { position: sticky; top: 2rem; grid-row: 1 / span 2; }
.pairs { display: grid; gap: 1rem; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 1px 0 rgb(12 18 51 / .08); }
.said { margin: 0; padding: 1.2rem 1.4rem; background: var(--ink); color: #fff; font-size: 1.05rem; line-height: 1.45; display: flex; flex-direction: column; justify-content: center; gap: .45rem; }
.said span, .gets { font-size: .8rem; font-weight: 600; color: #aab1dc; }
.gets { color: var(--soft); }
.becomes { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; justify-content: center; gap: .55rem; font-size: 1rem; }
.becomes p { margin: 0; font-weight: 600; }
.becomes label { display: flex; align-items: baseline; gap: .6rem; }
.becomes .rooms { padding-left: 1.7rem; color: var(--soft); flex-basis: auto; align-items: center; }
.becomes .shown { display: none; }
.becomes:has([data-shows]:checked) .shown { display: flex; }
.becomes input[type="text"] { font: inherit; font-weight: 400; color: var(--ink); width: 100%; height: auto; top: 0; padding: .35rem .55rem; border: 1px solid #a9aec8; border-radius: 7px; background: var(--paper); margin: .35rem 0 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.becomes .card { flex-direction: column; align-items: stretch; gap: .2rem; border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; cursor: pointer; }
.becomes .card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.card-name { display: flex; gap: .55rem; align-items: baseline; font-weight: 650; }
.card b { font-size: 1.15rem; font-variant-numeric: tabular-nums; margin: .15rem 0; }
.card small, .schedule small { font-size: .88rem; color: var(--soft); font-weight: 400; }
.schedule { list-style: none; margin: .3rem 0 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.schedule li { counter-increment: step; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.schedule li::before { content: counter(step); position: absolute; left: 0; top: .55rem; width: 1.35rem; height: 1.35rem; border: 1.5px solid var(--ink); border-radius: 50%; font-size: .78rem; font-weight: 650; display: grid; place-items: center; }
.schedule li > span { display: flex; flex-direction: column; }
.schedule b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule li > span small { color: var(--ink); font-weight: 600; }
.becomes .after { font-weight: 400; font-size: .9rem; background: var(--desk); border-left: 3px solid var(--ink); border-radius: 6px; padding: .5rem .7rem; margin-top: .3rem; }
.becomes .stack { flex-direction: column; gap: 0; font-weight: 600; }
.aside { grid-column: 2; margin: .5rem 0 0; color: var(--soft); font-size: 1rem; max-width: 36rem; }

.address-line { font-size: .95rem; color: var(--soft); }
.address-line code { display: inline-block; color: var(--ink); background: var(--desk); padding: .2rem .55rem; border-radius: 6px; font-size: .85rem; margin-left: .3rem; }
.thread { background: var(--desk); border-radius: 22px; padding: clamp(1rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .8rem; }
.bubble { margin: 0; padding: .8rem 1.05rem; border-radius: 18px; max-width: 30rem; font-size: 1rem; line-height: 1.45; }
.bubble.you { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { background: var(--paper); border-bottom-left-radius: 5px; }
.preview { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; font-size: .95rem; }
.preview .from { font-weight: 600; margin: 0; }
.preview-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .6rem; padding-bottom: .7rem; border-bottom: 2px solid var(--ink); }
.preview ul { list-style: none; margin: 0; padding: 0; }
.preview li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.preview li span:last-child { white-space: nowrap; color: var(--soft); }
.preview i { font-style: normal; font-size: .76rem; font-weight: 600; background: var(--desk); border-radius: 999px; padding: .1rem .5rem; white-space: nowrap; }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 0; }
.fake-button { background: var(--ink); color: #fff; font-weight: 650; border-radius: 9px; padding: .55rem 1rem; white-space: nowrap; }

.reader { background: #f4f0ff; }
.margin { background: var(--paper); border-radius: 16px; padding: clamp(1.1rem, 3vw, 2rem); box-shadow: 0 30px 60px -40px rgb(74 47 163 / .5); display: grid; gap: 1.1rem; }
.clause { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.clause > p:first-child { margin: 0; font: 400 1rem/1.6 var(--serif); }
.clause.wishing { align-items: center; }
.clause .wish { margin-top: 0; grid-template-columns: minmax(0, 1fr); }
.clause .wish-button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .35rem; }
.note { margin: 0; background: var(--paper); border-left: 2px solid #c9c4b6; padding: .15rem 0 .15rem .75rem; font-size: .86rem; line-height: 1.45; color: var(--note-ink); }
.note.flagged { border-left-color: var(--flag); color: var(--ink); }
.note b { display: block; color: var(--note-ink); font-size: .74rem; font-weight: 650; }
.note i { font-style: normal; font-size: .74rem; font-weight: 650; color: #9a6a08; float: right; margin-top: -1.15rem; }

.compare { background: var(--desk); }
.compare h2 { max-width: none; }
.compare table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 1.08rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1.05rem 1.25rem 1.05rem 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .95rem; font-weight: 650; color: var(--soft); border-bottom: 2px solid var(--ink); }
.compare thead th:last-child { color: var(--blue); }
.compare tbody th { font-weight: 650; width: 22%; }
.compare tbody td:nth-child(2) { color: var(--soft); width: 33%; }
.compare tbody td:last-child { font-weight: 600; }

.agents { background: var(--ink); color: #e9ebff; }
.agents .split { align-items: start; }
.agents h2 { color: #fff; }
.links { list-style: none; padding: 0; margin: 1.6rem 0 0; font-size: .98rem; }
.links li { padding: .7rem 0; border-top: 1px solid rgb(255 255 255 / .16); color: #fff; display: flex; flex-direction: column; gap: .15rem; }
.links a, .links code { font-family: var(--mono); font-size: .88rem; color: var(--mark); overflow-wrap: anywhere; }
.call pre { margin: 0 0 1rem; background: #060a22; border: 1px solid rgb(255 255 255 / .14); border-radius: 14px; padding: 1.3rem 1.4rem; font-size: .82rem; line-height: 1.65; color: #dfe3ff; overflow-x: auto; }
.call p { color: #b9bfe6; font-size: 1rem; max-width: 34rem; }

.proof { background: var(--paper); padding-block: clamp(3rem, 6vw, 5rem); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.three > div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.three h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.three p { margin: 0; color: #2c3358; }

.start { background: var(--mark); color: var(--ink); }
.start h2 { font-size: clamp(2.2rem, 1rem + 4.6vw, 4.4rem); letter-spacing: -.04em; line-height: .96; max-width: 17ch; margin-bottom: 1.5rem; }
.start p { max-width: 36rem; font-size: 1.12rem; }
.prompt { display: flex; align-items: center; gap: 1.25rem; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 1.2rem 1.2rem 1.2rem 1.5rem; margin: 1.75rem 0 1.25rem; max-width: 54rem; box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 var(--ink); }
.prompt p { margin: 0; font-size: clamp(1.02rem, .9rem + .5vw, 1.25rem); line-height: 1.4; max-width: none; flex: 1; overflow-wrap: anywhere; }
.prompt button { font: 650 1rem var(--sans); background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.3rem; cursor: pointer; white-space: nowrap; min-width: 10.5rem; }
.prompt button:hover { background: var(--blue-deep); }
.or { color: var(--ink); }

.foot { background: var(--ink); color: #b9bfe6; padding-block: 2.5rem; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2rem; }
.foot .brand { color: #fff; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-left: auto; }

@media (max-width: 60rem) {
  .intro, .split, .split.flip, .parts .wrap { grid-template-columns: minmax(0, 1fr); }
  .intro { gap: 1.5rem; }
  .pitch { font-size: 1.12rem; }
  .parts .lede { position: static; grid-row: auto; }
  .aside { grid-column: 1; }
  .reader .margin { order: 2; }
  .top nav a:not(.signin) { display: none; }
  .stagebox { grid-template-columns: minmax(0, 1fr); }
  .rail { display: flex; gap: .4rem; overflow-x: auto; padding: .75rem; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .rail li { padding: 0; flex: none; }
  .rail li::before, .rail li::after { display: none; }
  .rail button { display: block; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
  .rail .when, .rail li.now .what { display: none; }
  .rail .name { font-size: .95rem; }
  .rail li.done button { border-color: var(--blue); }
  .rail li.now button { background: var(--blue); border-color: var(--blue); box-shadow: none; }
  .rail li.now .name { color: #fff; }
  .now-what { display: block; margin: 0; padding: .8rem 1.25rem; font-size: .95rem; line-height: 1.4; background: #f8f9fd; border-bottom: 1px solid var(--line); }
  .three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 2rem, 74rem); }
  .same { display: none; }
  .pair, .clause { grid-template-columns: minmax(0, 1fr); }
  .note i { float: none; margin: 0 0 0 .4rem; }
  .note b { display: inline; }
  .doc-foot, .demo-next, .prompt { flex-direction: column; align-items: stretch; text-align: left; }
  .prompt { padding: 1.1rem; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare tbody td { border: 0; padding: .15rem 0; }
  .compare tbody td:nth-child(2) { text-decoration: line-through; text-decoration-color: rgb(88 96 131 / .5); }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flash, .ask.nudge { animation: none; }
}

/* Guides: plain pages that answer one question each. */
.guide-top { background: var(--mark); }
.guide { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.guide h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 1.5rem; }
.guide h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 2.75rem 0 1rem; }
.guide h3 { font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.25; margin: 1.75rem 0 .4rem; }
.guide .answer { font-size: 1.3rem; line-height: 1.45; }
.guide .crumb { font-size: .95rem; color: var(--soft); margin-bottom: 1.25rem; }
.guide ul, .guide ol { padding-left: 1.3rem; margin: 0 0 1em; }
.guide li { margin-bottom: .55rem; }
.guide .prompt { margin-top: 2rem; }
.guide .more { margin-top: 3rem; color: var(--soft); }
.guide-list { list-style: none; padding: 0 !important; margin-top: 2rem !important; }
.guide-list li { border-top: 1.5px solid var(--line); padding: 1.15rem 0; margin: 0; }
.guide-list a { display: block; font-weight: 650; font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list span { display: block; color: var(--soft); margin-top: .3rem; }

/* The hero's agreement: the chat's own card in a frame (tour.ts), with the page playing the chat. */
.tour { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.chatframe { background: #f4f1ea; border-radius: 18px; padding: clamp(.9rem, 2.5vw, 1.5rem); box-shadow: 0 0 0 2px var(--ink), 10px 10px 0 var(--ink); display: flex; flex-direction: column; gap: .8rem; }
.chatframe .bubble { margin: 0; max-width: 34rem; }
.chatframe .bubble.you { align-self: flex-end; }
.link-said { display: block; font-family: var(--mono); font-size: .78rem; opacity: .75; margin-top: .2rem; }
.card-frame { display: block; width: 100%; border: 1px solid #e2ddd0; border-radius: 12px; background: #fffdf8; min-height: 30rem; }
.tour-side { position: sticky; top: 1.5rem; font-size: 1rem; }
.tour-side p { margin: 0 0 .75rem; }
.tour-what { font: 650 1.4rem/1.2 var(--sans); letter-spacing: -.01em; }
.tour-side ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }

/* Bring your own forms: one page of an uploaded form, with each signer's places in their own ink. */
.formpage { background: #fffdf8; border-radius: 16px; padding: clamp(1rem, 3vw, 1.75rem); box-shadow: 0 30px 60px -40px rgb(12 18 51 / .45); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-weight: 650; font-size: .92rem; }
.chip::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.chip small { font-weight: 400; color: var(--soft); }
.chip.one { color: #2f45c8; border-color: #2f45c8; }
.chip.two { color: #a2277a; }
.sheet-page { background: #fff; border: 1px solid #e2ddd0; padding: 1.5rem 1.6rem 1.2rem; font-family: Arial, Helvetica, sans-serif; color: #111; display: grid; gap: .7rem; }
.form-title { margin: 0; font-size: 1rem; letter-spacing: .02em; }
.form-row { margin: 0 0 .4rem; font-size: .78rem; display: flex; gap: .8rem; align-items: center; }
.form-row .box { border: 1px solid #111; padding: .1rem .5rem; font-size: .85rem; }
.rule { display: block; height: 1px; background: #d7d7d7; }
.rule.short { width: 62%; }
.places { margin: .4rem 0 0; display: flex; gap: 1rem; }
.places.initials { justify-content: flex-end; gap: .6rem; }
.place { font: italic 700 .95rem Georgia, serif; padding: .15rem .45rem; border: 1px solid currentColor; border-bottom-width: 3px; min-width: 3rem; }
.place.sigline { flex: 0 1 15rem; }
.place.one { color: #2f45c8; background: #e6e9fb; }
.place.two { color: #a2277a; background: #f6e4ef; }

.life .lede { max-width: 46rem; margin-bottom: 2rem; }
@media (max-width: 60rem) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-side { position: static; order: -1; }
}

/* Signing within limits: the agent's mark and the person's limits. */
.agent-sign { background: var(--paper); }
.agent-mark { background: #fffdf8; border: 1px solid #e2ddd0; border-radius: 16px; padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: 0 30px 60px -40px rgb(12 18 51 / .45); }
.agent-mark .from { margin: 0; font-weight: 600; font-size: .92rem; }
.agent-mark .preview-title { display: flex; justify-content: space-between; gap: 1rem; }
.agent-mark .preview-title span { font-variant-numeric: tabular-nums; }
.agent-mark .sig { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.15; color: #23307a; border-bottom: 1.5px solid var(--ink); padding: .6rem .2rem .1rem; margin: .8rem 0 .5rem; max-width: 22rem; }
.mark-meta { margin: 0 0 1.2rem; font-size: .88rem; color: var(--soft); }
.limits { border-left: 2px solid #2f8f62; padding-left: .9rem; }
.limits p { margin: 0 0 .3rem; font-weight: 650; font-size: .92rem; }
.limits ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; display: grid; gap: .2rem; }
