body { font-size: 14px; }

/* ---- builder chrome */

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }

.steps-bar { background: #fff; border-bottom: 1px solid var(--line); }
.steps { display: flex; gap: 4px; max-width: 1120px; margin: 0 auto; padding: 0 16px; overflow-x: auto; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 12px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.step:hover { color: var(--ink); }
.step.on { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 600; }
.step-n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--miss-bg); color: var(--miss); font-size: 12px; font-weight: 700; }
.step.on .step-n { background: var(--accent); color: #fff; }
.step.done .step-n { background: var(--pos-bg); color: var(--pos); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 16px 96px; display: grid; gap: 20px; align-items: start; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Two panes: the fields on the left, the live preview on the right. */
.wrap.live { max-width: 1440px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.live-pane { position: sticky; top: 16px; height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.live-scroll { flex: 1; min-height: 0; overflow: auto; border-radius: 6px; }
.live-pages { zoom: var(--live-zoom, .62); }
.pane-toggle { display: none; }
@media (max-width: 999px) {
  .wrap.live { grid-template-columns: minmax(0, 1fr); }
  .pane-toggle { display: flex; position: sticky; top: 0; z-index: 5; padding: 4px; gap: 4px; background: var(--page); border: 1px solid var(--line); border-radius: 10px; }
  .pane-toggle button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
  .pane-toggle button.on { background: #fff; color: var(--accent-dark); box-shadow: 0 1px 3px rgba(20, 24, 31, .15); }
  .live.show-edit .live-pane, .live.show-preview .col { display: none; }
  .live-pane { position: static; height: auto; }
  .live-scroll { overflow: visible; }
}

.hero { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.hero h1 { font-size: 30px; line-height: 1.15; }
.hero p { margin: 0; max-width: 680px; font-size: 16px; color: #2B313B; }
.step-head { display: flex; flex-direction: column; gap: 4px; }
.step-head.row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.step-head h1, .h1 { font-size: 22px; margin: 0; }
.step-head p { margin: 0; }
.h2 { font-size: 16px; margin: 0; }
.pad { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.gap { gap: 14px; }
.grow { flex: 1 1 auto; min-width: 0; }
.narrow { max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.nav-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--page); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn.lg { min-height: 48px; padding: 0 20px; font-size: 16px; font-weight: 600; }
.input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }

.fld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld.wide { grid-column: 1 / -1; }
.opt-tag { text-transform: none; font-weight: 400; letter-spacing: 0; }
@media (max-width: 599px) { .fld-grid { grid-template-columns: minmax(0, 1fr); } }

.logo-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logo-well { width: 160px; height: 96px; border: 1px dashed var(--field); border-radius: 10px; background: var(--panel); display: flex; align-items: center; justify-content: center; padding: 8px; }
.logo-well img { max-width: 100%; max-height: 100%; object-fit: contain; }
.file-btn { position: relative; align-self: flex-start; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* section cards */
.sec { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.sec.off { background: var(--panel); }
.sec.off .h2 { color: var(--muted); }
.sec-top { display: flex; gap: 14px; align-items: flex-start; }
.lock { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; background: var(--miss-bg); color: var(--miss); font-size: 12px; font-weight: 600; margin-top: 2px; }
.switch { position: relative; flex: 0 0 auto; cursor: pointer; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.knob { display: block; width: 40px; height: 24px; border-radius: 999px; background: var(--field); position: relative; transition: background .15s; }
.knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked ~ .knob { background: var(--accent); }
.switch input:checked ~ .knob::after { transform: translateX(16px); }
.switch input:focus-visible ~ .knob { outline: 2px solid var(--accent); outline-offset: 2px; }

.reqs { display: flex; flex-direction: column; gap: 8px; }
.req { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; align-items: center; }
@media (max-width: 599px) { .req { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.check { display: flex; gap: 10px; align-items: center; min-height: 36px; }
.check input { width: 18px; height: 18px; }


a.brand { color: inherit; text-decoration: none; }

/* the call to action (send step, and after a public download) */
.next-cta { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--accent); background: var(--accent-soft); }
.next-cta p { margin: 0; }
.big-cta { padding: 24px; display: flex; flex-direction: column; gap: 16px; border: 2px solid var(--accent); }
.big-cta h2 { font-size: 21px; line-height: 1.3; color: var(--accent-dark); }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 699px) { .vs { grid-template-columns: minmax(0, 1fr); } }
.vs-col { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.vs-col.sq { background: var(--accent-soft); border-color: #C8D1F5; }
.vs-h { font-weight: 700; margin-bottom: 6px; }
.vs-col ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.linkbox { padding: 10px 12px; background: var(--page); border-radius: 8px; overflow-wrap: anywhere; font-size: 14px; }
.next { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; z-index: 20; }

.paper { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 4px 18px rgba(20, 24, 31, .08); padding: 56px; overflow-x: auto; }
@media (max-width: 699px) { .paper { padding: 18px; } }
.print-only { display: none; }

/* account and the free page for subs */
.gets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.plan { padding: 4px 12px; border-radius: 999px; background: var(--miss-bg); color: var(--miss); font-weight: 600; font-size: 13px; }
.sec-head { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.line { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.line:last-child { border-bottom: 0; }
.lead-p { margin: 0; font-size: 15px; }
.abc { display: flex; flex-direction: column; gap: 12px; }
.abc-i { display: flex; gap: 12px; align-items: flex-start; }
.abc-k { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 18px rgba(20, 24, 31, .08); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--page); border-bottom: 1px solid var(--line); }
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--field); }
.browser-url { flex: 1 1 auto; min-width: 0; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; font-size: 13px; }
.pub { max-width: 720px; margin: 0 auto; padding: 32px 20px; display: flex; flex-direction: column; gap: 20px; }
.pub-head { display: flex; align-items: center; gap: 16px; }
.pub-logo { max-width: 160px; max-height: 64px; object-fit: contain; }
.pub-gc { font-size: 20px; font-weight: 700; }
.pub-h { font-size: 26px; }
.pub-box { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.pub-box ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.pub-foot { padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- the form document (preview and print) */

.doc { color: #111; font-size: 12px; line-height: 1.4; }
.doc a { color: var(--accent-dark); }
.doc-cover { display: flex; flex-direction: column; gap: 14px; }
.doc-brand { display: flex; align-items: center; gap: 16px; }
.doc-logo { max-width: 180px; max-height: 72px; object-fit: contain; }
.doc-gc { font-size: 20px; font-weight: 700; }
.doc-addr { color: #444; }
.doc-title { font-size: 24px; margin: 18px 0 0; padding-bottom: 8px; border-bottom: 3px solid #111; }
.doc-lede { margin: 0; font-size: 12.5px; }
.doc-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.doc-meta dt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #555; }
.doc-meta dd { margin: 0; }
.doc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; }
.doc-box { border: 1px solid #BBB; border-radius: 6px; padding: 10px 14px; }
.doc-box h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.doc-toc { margin: 0; padding-left: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 3px; }
.doc-toc li { counter-increment: toc; }
.doc-toc li::before { content: counter(toc, upper-alpha) ". "; font-weight: 700; }
.doc-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.doc-checks li { display: flex; gap: 8px; align-items: flex-start; }
.doc-checks .bx { margin-top: 2px; }
.doc-fine { margin: 0; font-size: 11px; color: #444; }

.doc-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 6px; padding: 6px 10px; background: #ECEEF2; font-size: 14px; break-after: avoid; page-break-after: avoid; }
.doc-letter { width: 22px; height: 22px; border-radius: 4px; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.d-item { margin-top: 12px; break-inside: avoid; page-break-inside: avoid; }
.d-label { font-weight: 600; font-size: 11.5px; margin-bottom: 4px; }
.d-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 10px; }
.d-f { display: flex; align-items: flex-end; gap: 8px; break-inside: avoid; }
.d-f span { font-size: 11px; color: #333; white-space: nowrap; }
.d-f i { flex: 1 1 auto; min-width: 40px; height: 18px; border-bottom: 1px solid #777; }
.d-wide { grid-column: 1 / -1; }
.d-sign .d-f i { height: 30px; }
.d-rule { height: 22px; border-bottom: 1px solid #999; }
.d-choice { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.d-choice .d-label { margin: 0 4px 0 0; }
.d-opt { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; }
.bx { display: inline-block; flex: 0 0 auto; width: 11px; height: 11px; border: 1.2px solid #333; border-radius: 2px; }
.d-yn { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid #DDD; font-size: 11.5px; break-inside: avoid; page-break-inside: avoid; }
.d-yn-boxes { display: flex; gap: 14px; flex: 0 0 auto; }
.d-t { width: 100%; border-collapse: collapse; }
.d-t th, .d-t td { border: 1px solid #999; padding: 4px 6px; text-align: left; vertical-align: top; }
.d-t th { font-size: 10.5px; background: #F2F3F5; }
.d-t td { height: 24px; font-size: 11px; }
.d-reqs td:nth-child(2) { font-size: 10.5px; }
.d-note { margin: 10px 0 0; font-size: 11.5px; }
.d-notary { position: relative; margin-top: 16px; padding: 10px 120px 10px 12px; border: 1px dashed #999; break-inside: avoid; page-break-inside: avoid; }
.d-seal { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 86px; height: 86px; border: 1px dashed #999; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #777; font-size: 11px; }

/* ---- pages: US Letter boxes, the same on screen and in print.
   The padding is the page margin; the footer sits in the last 0.45in above it. */

.pages { padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; background: #DADDE3; }
.pg { position: relative; flex: 0 0 auto; width: 8.5in; height: 11in; padding: 0.5in 0.6in 0.45in; display: flex; flex-direction: column; background: #fff; box-shadow: 0 1px 3px rgba(20, 24, 31, .18), 0 6px 20px rgba(20, 24, 31, .10); overflow: hidden; }
.pg-body { flex: 1 1 auto; min-height: 0; display: flow-root; }
.pg-body > :first-child { margin-top: 0; }
.pg-foot { flex: 0 0 0.45in; display: flex; flex-direction: column; justify-content: flex-end; }
.pg-foot-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; border-top: 1px solid #BBB; font-size: 9px; color: #444; }
.pages-frame { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.preview-pages { zoom: var(--preview-zoom, 1); }
.pg-measure { position: absolute; top: 0; left: -10000px; visibility: hidden; pointer-events: none; padding: 0; }

/* ---- print: the same page boxes, one per sheet */

@page { size: letter; margin: 0; }
@media print {
  body { background: #fff; }
  .screen, .pg-measure, [data-feedback-recorder] { display: none !important; }
  .print-only { display: block; }
  .doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-pages { display: block; padding: 0; background: none; zoom: 1; }
  .print-pages .pg { box-shadow: none; break-after: page; page-break-after: always; }
  .print-pages .pg:last-child { break-after: auto; page-break-after: auto; }
}

/* abuse guards on the email form */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#turnstile-host { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; }
@media print { #turnstile-host { display: none; } }
