/* FairWaiver — hand-written CSS, no build step. */
:root {
  /* Brand: "signature check" logo, deep green on calm ink and paper (chosen 2026-11-22). */
  --brand: #0e6b57;
  --brand-dark: #0a5243;
  --brand-soft: #e3f2ec;
  --ink: #0b1f2a;
  --text: #1f2a31;
  --muted: #56636b;
  --line: #e4e7e5;
  --bg: #fafaf7;
  --bg-alt: #fafaf7;
  --danger: #b42318;
  --warn: #b45309;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 42, .06), 0 4px 16px rgba(11, 31, 42, .06);
}
@font-face { font-family: "FW Signature"; src: url("/static/fonts/DancingScript.ttf") format("truetype"); font-weight: 400 700; font-display: block; }
@font-face { font-family: "Inter"; src: url("/static/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Arial resized to Inter's metrics, so text doesn't jump when Inter arrives (no layout shift). */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); ascent-override: 90.49%; descent-override: 22.56%; line-gap-override: 0%; size-adjust: 107.06%; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--muted); }
.accent { color: var(--brand); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.break { word-break: break-all; }
.inline { display: inline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-block; border-radius: 10px; background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: .6rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none;
  cursor: pointer; line-height: 1.3; font-family: inherit; transition: background .15s;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #c9d1cd; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8f1d14; }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; }
.link-btn.danger { color: var(--danger); }
.pill { background: var(--brand); color: #fff; padding: .2rem .6rem; border-radius: 99px; font-size: .85rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(250, 250, 247, .92); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 1.3rem; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a.active, .main-nav a:hover { color: var(--brand); }
.main-nav .btn { color: #fff; }
.nav-toggle, .nav-burger { display: none; }
@media (max-width: 760px) {
  .nav-burger { display: block; width: 32px; height: 32px; cursor: pointer; position: relative; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--ink); }
  .nav-burger span { top: 15px; } .nav-burger span::before { top: -8px; left: 0; right: 0; } .nav-burger span::after { top: 8px; left: 0; right: 0; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 16px; border-bottom: 1px solid var(--line); gap: .9rem; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* Flash */
.flash { background: var(--brand-soft); border: 1px solid #b9d9d5; color: var(--brand-dark); padding: .75rem 1rem; border-radius: var(--radius); margin: 1rem 0; }
.flash-error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.note { background: #fffbeb; border: 1px solid #fde68a; padding: .9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }

/* Sections */
.section { padding: 88px 0; }
.section.tinted { background: var(--brand-soft); }
.section.tinted-paper { background: #f3f4ef; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: .2em; }
.section-tight { padding: 32px 0 64px; }
.section.alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .4rem; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.04em; margin-bottom: .45em; }
.hero .lead { max-width: 34em; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.8rem 0 .9rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-panel { background: var(--brand-soft); border-radius: 20px; padding: 40px 48px 24px; width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; }
.hero-caption { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.phone { width: 250px; border-radius: 34px; background: var(--ink); padding: 9px; box-shadow: 0 24px 48px rgba(11, 31, 42, .18); }
.phone-body { background: #fff; border-radius: 26px; padding: 22px 18px 18px; font-size: .78rem; color: var(--text); }
.mock-biz { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.mock-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); margin: 4px 0 8px; }
.mock-text { line-height: 1.45; color: var(--muted); }
.mock-check { display: flex; align-items: center; gap: 6px; margin: 10px 0; font-weight: 500; }
.mock-check .ico-check { color: #fff; background: var(--brand); border-radius: 4px; flex: none; margin: 0; }
.mock-field { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; color: var(--ink); font-weight: 500; }
.mock-field span { display: block; font-size: .62rem; color: var(--muted); font-weight: 500; }
.mock-label { margin: 10px 0 4px; font-size: .68rem; color: var(--muted); }
.mock-sign { border: 1px dashed #c9d1cd; border-radius: 8px; padding: 2px 6px; background: #fcfcfa; }
.mock-btn { margin-top: 12px; background: var(--brand); color: #fff; text-align: center; border-radius: 9px; padding: 9px; font-weight: 600; }
@media (max-width: 900px) { .hero { padding: 48px 0 64px; } .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } }

/* Trust strip */
.trust { background: var(--brand-soft); border-block: 1px solid #d3e8de; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 22px; }
.trust-grid div { display: flex; flex-direction: column; font-size: .9rem; }
.trust-grid strong { color: var(--brand-dark); }
.trust-grid span { color: var(--muted); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

/* Steps & features */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 2.2rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.step-n { display: block; font-size: 2.2rem; font-weight: 700; letter-spacing: -.04em; color: var(--brand); margin-bottom: .9rem; line-height: 1; }
.step p, .feature p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px; margin-top: 2rem; }
.feature { border-top: 1px solid #d9ddd8; padding: 22px 0 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4em; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr; } }

/* Pricing block on the homepage */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 2rem; align-items: stretch; }
.price-card { background: var(--brand); color: #e3f2ec; border-radius: 16px; padding: 32px; }
.price-card .eyebrow { color: #bfe3d4; }
.price-card p { margin: 0 0 1rem; }
.price-big { font-size: 3rem; font-weight: 700; letter-spacing: -.04em; color: #fff; line-height: 1.05; }
.price-big span { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: #cfe9de; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* Template cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 1.2rem 0 2rem; }
.tcard { display: flex; flex-direction: column; gap: .35rem; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; width: 100%; height: 100%; transition: border-color .15s, box-shadow .15s; }
.tcard:hover { border-color: #9cc9b8; box-shadow: var(--shadow); color: var(--text); }
.tcard strong { color: var(--ink); }
.tcard-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 700; }
.tcard-form { margin: 0; }
.cat-title { font-size: 1.2rem; margin-top: 1.8rem; }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; margin: 0; background: #fff; border-radius: 16px; overflow: hidden; }
.compare caption { caption-side: bottom; text-align: left; padding: .7rem 0 0; }
.compare th, .compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { background: var(--bg-alt); font-size: .9rem; }
.compare td:nth-child(3) { color: var(--brand); font-weight: 700; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq p { margin: .6rem 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--brand); color: var(--brand-soft); padding: 56px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; justify-content: center; margin: 2rem auto; }
.plans-compact { grid-template-columns: 1fr 1fr; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #fff; }
.plan h2 { margin-top: 0; font-size: 1.3rem; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: .2rem 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.ticks li { display: flex; gap: .5rem; align-items: flex-start; margin: .45rem 0; }
.ico-check { color: var(--brand); flex: none; margin-top: .2em; }
@media (max-width: 700px) { .plans, .plans-compact { grid-template-columns: 1fr; } }

/* Template page */
.crumbs { color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.tpl-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.tpl-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-card h3 { margin-top: 0; }
.side-link { display: block; padding: .35rem 0; text-decoration: none; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: 1fr; } .tpl-side { position: static; } }
.doc-preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; box-shadow: var(--shadow); margin: 1rem 0; font-size: .95rem; }
.doc-title { text-align: center; font-size: 1.3rem; }
.ack-preview { list-style: none; padding: 0; }
.ack-preview li { display: flex; gap: .6rem; margin: .5rem 0; }
.box { flex: none; width: 18px; height: 18px; border: 1.5px solid #94a3b8; border-radius: 4px; margin-top: .2em; display: inline-grid; place-items: center; font-size: .8rem; }
.box.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sig-preview { display: flex; gap: 32px; margin-top: 2rem; }
.sig-preview span { flex: 1; border-top: 1px solid #94a3b8; padding-top: .3rem; font-size: .8rem; color: var(--muted); }
.prose h2 { font-size: 1.2rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .25rem 0; }
.legal h2 { font-size: 1.15rem; }

/* Forms */
.stack { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-weight: 400;
  color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #99d3cc; border-color: var(--brand); }
textarea { resize: vertical; }
textarea.mono { font-size: .88rem; line-height: 1.5; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
label.check input { width: 18px; height: 18px; flex: none; margin-top: .2em; accent-color: var(--brand); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; display: grid; gap: .9rem; }
legend { font-weight: 700; color: var(--ink); padding: 0 .4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.auth-box { max-width: 440px; }

/* App */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin-bottom: .2rem; font-size: 1.8rem; }
.page-head p { margin: 0; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 1rem 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: .2rem; }
.stat-n { font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.meter { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: .4rem 0; }
.meter span { display: block; height: 100%; background: var(--brand); }
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.list-row:last-child { border-bottom: 0; }
.link-row { text-decoration: none; color: inherit; }
.link-row:hover { background: var(--bg-alt); color: inherit; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); }
.tag-ok { background: #ecfdf3; color: #067647; }
.tag-warn { background: #fffaeb; color: var(--warn); }
.tag-muted { background: var(--bg-alt); color: var(--muted); }
.empty { border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .edit-grid { grid-template-columns: 1fr; } }
.danger-zone { margin-top: 2rem; }
.danger-card { border-color: #fecdca; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.copy-row { display: flex; gap: .5rem; margin-bottom: .6rem; }
.copy-row input { font-size: .85rem; }
.qr { image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: 1rem 0; }
.filters input[type=search] { flex: 1 1 260px; width: auto; }
.filters select { width: auto; }
.filters label { display: flex; align-items: center; gap: .4rem; font-weight: 500; }
.filters input[type=date] { width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--bg-alt); font-size: .85rem; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1rem 0; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { margin: 0; }
.sig-img { max-height: 120px; border-bottom: 1px solid #94a3b8; margin-bottom: 1rem; }
.logo-preview { max-height: 60px; display: block; margin-bottom: .5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--bg-alt); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer-grid a:not(.brand) { display: block; color: var(--text); text-decoration: none; font-size: .92rem; padding: .2rem 0; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { margin-top: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Public signing page */
.sign-body { background: var(--bg); }
.sign-bar { background: #fff; border-bottom: 1px solid var(--line); }
.sign-bar-inner { max-width: 680px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.sign-bar p { margin: 0; line-height: 1.3; }
.sign-badge { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.sign-logo { max-height: 44px; max-width: 160px; }
.sign-biz { font-weight: 700; color: var(--ink); }
.sign-sub { font-size: .82rem; color: var(--muted); }
.sign-wrap { max-width: 680px; margin: 0 auto; padding: 28px 16px 40px; }
.sign-steps { margin-bottom: .5rem; }
.sign-title { font-size: clamp(1.7rem, 6vw, 2.2rem); letter-spacing: -.03em; margin-bottom: 1.2rem; }
.sign-section { margin-bottom: 2rem; }
.sign-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: .8rem; }
.sign-section-head h2 { font-size: 1.2rem; margin: 0; }
.sign-section-head h2 span { color: var(--brand); margin-right: .35rem; }
.doc-scroll { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; max-height: 46vh; overflow-y: auto; font-size: .97rem; line-height: 1.65; }
.doc-end { margin: 1.2rem 0 0; font-size: .85rem; font-weight: 600; color: var(--brand); }
.read-note { margin: .7rem 0 0; padding: .65rem .9rem; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: .88rem; }
.sign-fields { display: grid; gap: 1rem; }
.sign-body input, .sign-body textarea { font-size: 1rem; min-height: 48px; border-radius: 10px; }
.sign-body textarea { min-height: 96px; }
.minors-box { margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px 16px; }
.minors-box summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.minors-box[open] summary { margin-bottom: .6rem; }
.minors-box .minor-row { margin-bottom: .8rem; }
.acks { display: grid; gap: .6rem; margin-bottom: 1rem; }
.ack { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ack span { font-weight: 400; color: var(--text); }
label.check.ack input { width: 22px; height: 22px; margin-top: .05em; }
.sigpad-wrap { position: relative; border: 2px dashed #b9c4be; border-radius: 14px; background: #fff; margin-bottom: 1rem; }
.sigpad-wrap.sigpad-error { border-color: var(--danger); }
.sigpad { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.sigpad-hint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #8c9893; pointer-events: none; font-weight: 500; }
.sign-submit { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 250, 247, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.sign-submit .btn { min-height: 52px; font-size: 1.05rem; }
.sign-privacy { margin-top: 1rem; }
.powered { text-align: center; margin-top: 2rem; font-size: .85rem; }
.powered a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.powered .logo { width: 20px; height: 20px; }
.sign-done { text-align: center; }
.done-check { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 2rem auto 1rem; }
.done-check svg { width: 40px; height: 40px; color: #fff; }
.kiosk .sign-wrap, .kiosk .sign-bar-inner { max-width: 860px; }
.kiosk .doc-scroll { max-height: 40vh; }

/* Poster */
.poster { background: #fff; }
.poster-sheet { max-width: 640px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.poster-sheet h1 { font-size: 2.6rem; margin-top: .5rem; }
.poster-logo { max-height: 90px; }
.poster-biz { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.poster-sub { font-size: 1.3rem; color: var(--muted); }
.poster-qr { width: 360px; height: 360px; image-rendering: pixelated; margin: 1rem auto; display: block; }
.poster-step { font-size: 1.2rem; font-weight: 600; }
.poster-url { color: var(--muted); word-break: break-all; }
@media print { .no-print { display: none; } .poster-sheet { padding-top: 24px; } }
.env-banner { background: #b45309; color: #fff; text-align: center; font-weight: 600; font-size: .85rem; padding: .35rem 1rem; }
.price-card .btn { margin: .4rem 0 1rem; }

/* Form editor */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.edit-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 1.2rem; }
.edit-top-title { flex: 1 1 420px; }
.edit-top .crumbs { margin-bottom: .3rem; }
.title-input { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; color: var(--ink); border: 1px solid transparent; background: transparent; padding: .2rem .4rem; margin-left: -.4rem; width: 100%; border-radius: 8px; }
.title-input:hover { border-color: var(--line); background: #fff; }
.edit-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
#acks-wrap { padding: 20px 22px; }
#acks-wrap h3 { margin: 0 0 .2rem; }
.doc-toolbar { display: none; gap: 4px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-alt); position: sticky; top: 64px; z-index: 2; border-radius: 14px 14px 0 0; }
.doc-toolbar button { font: inherit; font-size: .88rem; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: .4rem .7rem; cursor: pointer; min-height: 36px; }
.doc-toolbar button:hover { background: #fff; border-color: var(--line); }
.doc-toolbar .biz-btn { margin-left: auto; color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
.doc-editor { display: none; padding: 28px 36px; min-height: 420px; outline: none; font-size: 1rem; line-height: 1.7; }
.doc-editor:focus { box-shadow: inset 0 0 0 2px #b9ddd0; }
.doc-editor h2 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.doc-editor > :first-child { margin-top: 0; }
.biz-chip { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; border-radius: 6px; padding: 0 .3em; white-space: nowrap; }
.doc-fallback, .ack-fallback { display: grid; padding: 18px; }
.is-enhanced .doc-toolbar { display: flex; }
.is-enhanced .doc-editor { display: block; }
.is-enhanced .doc-fallback, .is-enhanced .ack-fallback { display: none; }
.ack-list { display: grid; gap: .5rem; margin: .8rem 0; }
.ack-add { display: none; }
.is-enhanced .ack-add { display: inline-block; }
.ack-row { display: flex; align-items: center; gap: .6rem; }
.ack-row input { flex: 1; }
.ack-box { width: 18px; height: 18px; border: 2px solid #b9c4be; border-radius: 4px; flex: none; }
.settings-card { position: sticky; top: 84px; }
.settings-card h4 { margin: .6rem 0 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; }
.switch-row > span { display: grid; }
.switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; flex: none; border-radius: 99px; background: #cfd6d2; position: relative; cursor: pointer; transition: background .15s; padding: 0; border: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid #99d3cc; outline-offset: 2px; }
.preview-banner { background: #fef3c7; color: #92400e; text-align: center; font-weight: 600; font-size: .9rem; padding: .6rem 1rem; }
@media (max-width: 900px) { .settings-card { position: static; } .doc-editor { padding: 20px; } }

/* Custom questions: editor */
#questions-wrap { padding: 20px 22px; }
#questions-wrap h3 { margin: 0 0 .2rem; }
.q-list { display: grid; gap: .8rem; margin: .9rem 0; }
.q-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: .6rem; background: var(--bg-alt); }
.q-row-main { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: .6rem; }
@media (max-width: 640px) { .q-row-main { grid-template-columns: 1fr; } }
.q-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-req { gap: .6rem; font-size: .9rem; }
.q-move { display: inline-flex; gap: .9rem; align-items: center; }
.q-add, #questions-wrap .q-list:empty { display: none; }
#questions-wrap.is-enhanced .q-add { display: block; }
#questions-wrap.is-enhanced .q-fallback { display: none; }

/* Custom questions: signing page */
.questions { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.q-group { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.q-group legend { padding: 0; margin-bottom: .5rem; font-weight: 600; font-size: .92rem; }
.q-field { display: grid; gap: .35rem; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.yesno label { position: relative; }
.yesno input { position: absolute; opacity: 0; }
.yesno span { display: block; text-align: center; padding: .8rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-weight: 600; cursor: pointer; min-height: 48px; }
.yesno input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.yesno input:focus-visible + span { outline: 2px solid #99d3cc; outline-offset: 2px; }
.photo-q { display: grid; gap: .6rem; padding: 12px; border: 2px dashed #b9c4be; border-radius: 12px; background: #fff; }
.photo-q.photo-error { border-color: var(--danger); }
.photo-q .photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-q { position: relative; }
.photo-btn { justify-self: start; min-height: 48px; }
.photo-preview { max-width: 100%; max-height: 260px; border-radius: 8px; justify-self: start; }
.answer-photo { max-width: 100%; max-height: 220px; border-radius: 8px; border: 1px solid var(--line); }

/* Initials boxes */
.init-block { margin: .8rem 0; padding: .5rem .8rem; border: 1px dashed #9cc9b8; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: .85rem; font-weight: 600; width: max-content; user-select: none; }
.init-box { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 1.2rem; font-size: .9rem; font-weight: 600; color: var(--brand-dark); }
.init-box label { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.init-line { display: inline-block; width: 90px; border-bottom: 1.5px solid #9aa5a0; height: 1.2em; }
.init-input { width: 88px !important; min-height: 44px; text-transform: uppercase; text-align: center; font-weight: 700; letter-spacing: .08em; }
.init-done { font-size: 1rem; color: var(--ink); border-bottom: 1.5px solid #9aa5a0; padding: 0 .6rem; }

/* Draw or type signature */
.sig-mode { display: inline-flex; gap: 4px; padding: 4px; background: #eceee9; border-radius: 10px; margin-bottom: .8rem; }
.sig-tab { font: inherit; font-weight: 600; font-size: .9rem; border: 0; background: transparent; padding: .5rem 1.1rem; border-radius: 8px; cursor: pointer; color: var(--muted); min-height: 40px; }
.sig-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11,31,42,.12); }
.sig-type { margin-bottom: .8rem; }
.sigpad-wrap.is-typed .sigpad { cursor: default; }
.team-invite { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.team-invite label { flex: 1 1 260px; }
.right { text-align: right; }

/* Front desk: check-in, notes, tags */
.quick-filters { display: flex; gap: .5rem; margin-bottom: .8rem; }
.chip { display: inline-block; padding: .4rem .9rem; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.checked { background: var(--brand-soft); border-color: #b9ddd0; color: var(--brand-dark); }
.frontdesk { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.checkin-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.meta-form { display: grid; gap: .7rem; }
.meta-form .btn { justify-self: start; }
.tag-muted { background: #eef0ed; color: #46524c; }

/* Social sign-in */
.social-auth { display: grid; gap: .6rem; margin: 1rem 0 .4rem; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; color: var(--ink); }
.or-line { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Integrations */
.howto { padding-left: 1.2rem; margin: 0; }
.howto li { margin-bottom: .35rem; }
.link-card { display: block; color: inherit; text-decoration: none; }
.link-card:hover { border-color: var(--brand); }
.link-card h3 { color: var(--brand-dark); }
.check.optin { margin-top: .4rem; }

/* New form: ways to start */
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.start-card { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.start-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(11, 31, 42, .06); }
.start-card .btn { margin-top: auto; }
.start-upload { border: 2px dashed var(--brand); background: var(--brand-soft); }
.start-upload.is-drag { background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.start-upload.is-busy { opacity: .7; pointer-events: none; }
.start-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--brand); border: 1px solid var(--line); }

/* Dashboard */
.usage { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.usage-text { flex: 1 1 260px; }
.usage .meter { flex: 1 1 160px; margin: 0; }
.usage-warn { border-color: #fcd9a6; background: #fffaf2; }
.usage-warn .meter span { background: var(--warn); }
.usage-full { border-color: #f5b5ae; background: #fff6f5; }
.usage-full .meter span { background: var(--danger); }
.setup { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.setup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.setup-head h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.setup-steps { list-style: none; margin: 0; padding: 0; }
.setup-steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.setup-steps li p { margin: .1rem 0 0; }
.setup-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; }
.setup-steps li.is-done .setup-mark { background: var(--brand); border-color: var(--brand); }
.setup-steps li.is-done strong { color: var(--muted); text-decoration: line-through; }
.stat-link { color: inherit; text-decoration: none; background: #fff; }
.stat-link:hover { border-color: var(--brand); color: inherit; }
.stat { background: #fff; }
.form-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 1.5rem; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: .3rem; }
.form-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.form-card-title { font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.form-card-title:hover { color: var(--brand); }
.form-card p { margin: 0 0 .4rem; }
.form-card-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; }
@media (max-width: 600px) {
  .setup-steps li { grid-template-columns: 28px 1fr; }
  .setup-steps li .btn { grid-column: 2; justify-self: start; }
}
.form-card-top .tag { white-space: nowrap; flex-shrink: 0; }

/* Import */
.import-wait { max-width: 520px; margin: 32px auto; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.import-wait h1 { font-size: 1.5rem; margin-bottom: .2rem; }
.import-steps { list-style: none; padding: 0; margin: 22px 0; }
.import-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--muted); border-top: 1px solid var(--line); }
.import-steps li:first-child { border-top: 0; }
.import-steps li.is-active { color: var(--ink); font-weight: 600; }
.import-steps li.is-done { color: var(--text); }
.step-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.is-active .step-mark { border-color: var(--brand-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; }
.is-done .step-mark { background: var(--brand); border-color: var(--brand); }
.is-done .step-mark::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-active .step-mark { animation-duration: 3s; } }
.note-import { background: #eef6ff; border-color: #c7dcf5; }

/* Kiosk idle notice */
.kiosk-idle { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: 520px; width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 500; z-index: 50; text-align: center; }

/* Kiosk start page */
.kiosk-pick { text-align: center; }
.kiosk-choices { display: grid; gap: 14px; margin-top: 24px; text-align: left; }
.kiosk-choice { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.kiosk-choice:hover, .kiosk-choice:focus { border-color: var(--brand); color: var(--brand-dark); }
.kiosk-choice span { color: var(--brand); font-size: 1.4rem; }

/* Dashboard chart */
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px 10px; margin: 0 0 1rem; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; min-height: 2px; background: var(--brand); border-radius: 3px 3px 0 0; opacity: .85; }
.bar:hover { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.resend summary { cursor: pointer; font-weight: 600; }
.resend-row { display: flex; gap: .5rem; margin: .7rem 0 .3rem; }
.resend-row input { flex: 1; }
.side-card.resend { margin-bottom: 1rem; }

/* Editor: statements and save bar */
.ack-row { align-items: flex-start; }
.ack-row textarea { flex: 1; resize: none; overflow: hidden; min-height: 2.4rem; line-height: 1.45; padding: .5rem .7rem; font: inherit; }
.ack-row .ack-box { margin-top: .7rem; }
.ack-row .link-btn { margin-top: .55rem; }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; padding: 12px 16px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -4px 18px rgba(11, 31, 42, .06); }
.save-state { margin-right: auto; font-size: .9rem; color: var(--muted); }
.save-bar.is-dirty .save-state { color: var(--warn); font-weight: 600; }
.save-bar.is-dirty .save-state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: .45rem; vertical-align: middle; }

/* App footer */
.app-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 18px 0 26px; }
.app-footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.app-footer-row a { color: inherit; margin-left: .9rem; }
.app-footer-row span:first-child a { margin-left: 0; }
.switch-row.is-locked { opacity: .75; }
.is-locked .tag { display: inline-block; width: auto; margin-left: .35rem; vertical-align: middle; text-decoration: none; }
.q-if-row { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.q-if-row select { flex: 1; font-size: .9rem; }

/* Group links */
.groups-card { margin-top: 16px; }
.groups-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.groups-head h3 { margin-bottom: .2rem; }
.groups-head p { margin: 0; }
.group-new { display: flex; gap: .5rem; flex-wrap: wrap; }
.group-new input[name=name] { min-width: 240px; }
.group-new input[name=expected] { width: 90px; }
.group-list { margin-top: 14px; }
.group-meter { max-width: 220px; margin: .35rem 0 0; }

/* Add document picker */
.doc-picker { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(11, 31, 42, .25); }
.doc-picker::backdrop { background: rgba(11, 31, 42, .35); }
.doc-picker-inner { padding: 20px 22px; max-height: 80vh; overflow-y: auto; }
.doc-picker-head { display: flex; justify-content: space-between; align-items: center; }
.doc-picker-head h3 { margin: 0; }
.doc-picker-list h4 { margin: 14px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc-pick { display: block; width: 100%; text-align: left; padding: 9px 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }
.doc-pick:hover { border-color: var(--brand); color: var(--brand-dark); }

/* Flagged answers */
.tag-flag { background: #fdecea; color: var(--danger); }
.chip-flag.is-active { background: var(--danger); border-color: var(--danger); }
dt.is-flag, dd.is-flag { background: #fff6f5; }
dd.is-flag { font-weight: 600; color: var(--danger); }

/* Videos */
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1rem 0 1.2rem; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block { margin: .8rem 0; padding: 14px 16px; border: 1px dashed var(--brand); border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: .9rem; word-break: break-all; }
.video-block::before { content: "▶ "; }

/* Sharing page, grouped by situation */
.share-h { font-size: 1.05rem; margin: 28px 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.share-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.share-row + .groups-card { margin-top: 16px; }
.qr-card { display: flex; gap: 18px; align-items: center; }
.qr-card .qr { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.qr-card h3 { margin-bottom: .3rem; }
.embed-card { display: grid; gap: 10px; }
.embed-card textarea { width: 100%; }
.groups-head > div { flex: 1 1 260px; }
.group-new { flex: 1 1 420px; flex-wrap: nowrap; }
.group-new input[name=name] { flex: 1; min-width: 0; }
@media (max-width: 600px) { .group-new { flex-wrap: wrap; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.filters input[type=search] { flex: 1 1 240px; }
.filters select { flex: 0 1 220px; }
.filters.is-auto .filter-btn { display: none; }
.record-tags { margin: .4rem 0 0; display: flex; gap: .35rem; flex-wrap: wrap; }
.record-tools { margin-top: 16px; }
.record-tools h3 { margin-bottom: .5rem; }

/* Archive on phones: one compact card per record */
@media (max-width: 680px) {
  .sig-table thead { display: none; }
  .sig-table, .sig-table tbody { display: block; }
  .sig-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .sig-table td { display: block; border: 0; padding: 0; }
  .sig-table td:first-child { grid-column: 1 / -1; }
  .sig-table .sig-form, .sig-table .sig-when { grid-column: 1; color: var(--muted); }
  .sig-table .sig-status { grid-column: 1; }
  .sig-table .sig-checkin { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .sig-table .sig-pdf { grid-column: 2; grid-row: 4; justify-self: end; }
  .page-head .row-actions .btn { padding: .4rem .7rem; font-size: .85rem; }
}
label > .tag, .switch-row .tag { display: inline-block; width: auto; margin-left: .35rem; vertical-align: middle; }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.insights > div { display: grid; gap: 2px; }
.insights strong { font-size: 1rem; color: var(--ink); }

/* Checkboxes and radios: never styled like text fields, with a neat square focus ring */
input[type=checkbox]:not(.switch), input[type=radio] { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; accent-color: var(--brand); flex: none; }
input[type=checkbox]:focus, input[type=radio]:focus { outline: none; }
input[type=checkbox]:not(.switch):focus-visible, input[type=radio]:focus-visible { outline: 2px solid #99d3cc; outline-offset: 2px; }
label.check.ack input[type=checkbox] { width: 22px; height: 22px; }

/* Stacked cards (settings, team, integrations, billing) get the same breathing room as grids */
.narrow > .side-card + .side-card, .narrow > .side-card + .list, .narrow > .list + .side-card { margin-top: 16px; }

/* Small labels like "Pro" inside a form label stay small */
label > .tag { justify-self: start; }

/* Who is taking part */
.who { margin-bottom: 1rem; }
.who-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.who-options label { position: relative; }
.who-options input { position: absolute; opacity: 0; }
.who-options span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: .6rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-weight: 600; cursor: pointer; line-height: 1.25; }
.who-options input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.who-options input:focus-visible + span { outline: 2px solid #99d3cc; outline-offset: 2px; }
.who-hint { margin: .5rem 0 0; }
@media (max-width: 420px) { .who-options { grid-template-columns: 1fr; } }

/* ---------- Public content pages (templates, guides, landing, comparisons) ---------- */
.page-hero { padding: 48px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.tpl-hero { padding: 28px 0 40px; background: linear-gradient(180deg, var(--brand-soft), var(--paper) 92%); }
.tpl-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06; letter-spacing: -.03em; margin: .4em 0 .35em; }
.tpl-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; }
.tpl-hero .lead p { margin: 0; }
.tpl-reassure { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; }
.tpl-reassure .ico-check { color: var(--brand); vertical-align: -4px; margin-right: -.6rem; }
.btn .ico-doc { vertical-align: -3px; margin-right: .2rem; }
.doc-thumb { display: block; position: relative; text-decoration: none; color: var(--text); transform: rotate(1.5deg); transition: transform .2s; }
.doc-thumb:hover { transform: rotate(0deg) translateY(-3px); color: var(--text); }
.doc-thumb-page { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px 24px 20px; box-shadow: 0 24px 48px rgba(11, 31, 42, .14); aspect-ratio: 8.5 / 11; overflow: hidden; }
.doc-thumb-title { display: block; font-weight: 800; font-size: .95rem; color: var(--ink); line-height: 1.2; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
.doc-thumb-lines { display: block; }
.doc-thumb-lines b { display: block; font-size: .62rem; color: var(--ink); margin: 10px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-thumb-lines i { display: block; height: 5px; background: #e4e8e6; border-radius: 3px; margin: 4px 0; }
.doc-thumb-lines i.short { width: 62%; }
.doc-thumb-sign { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; font-size: .6rem; color: var(--muted); border-bottom: 1px solid #9aa5a0; }
.doc-thumb-sign svg { width: 120px; height: 34px; }
.doc-thumb-badges { position: absolute; left: -14px; bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.doc-thumb-badges span { background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.doc-thumb-badges span:nth-child(2) { background: #2b579a; }
.doc-thumb-badges span:nth-child(3) { background: var(--ink); }
@media (max-width: 900px) { .tpl-hero-grid { grid-template-columns: 1fr; } .doc-thumb { display: none; } }

.sign-demo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; margin: 1rem 0 1.5rem; }
.phone-shot { margin: 0; border-radius: 34px; background: var(--ink); padding: 8px; box-shadow: 0 24px 48px rgba(11, 31, 42, .18); }
.phone-shot img { display: block; width: 100%; height: auto; border-radius: 27px; }
.howto { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.howto li { counter-increment: step; position: relative; padding-left: 3rem; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; }
@media (max-width: 640px) { .sign-demo { grid-template-columns: 1fr; } .phone-shot { width: 210px; margin: 0 auto; } }

.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 31, 42, .08); backdrop-filter: blur(6px); }
  .sticky-cta .btn:first-child { flex: 1; justify-content: center; text-align: center; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 84px; }
}

.table-wrap { overflow-x: auto; margin: 1.2rem 0; -webkit-overflow-scrolling: touch; }
.table-wrap .compare { min-width: 520px; }
.prose .compare td:nth-child(3), .compare-vs td:nth-child(3) { color: inherit; font-weight: 400; }
.compare-vs td:nth-child(2) { color: var(--brand); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.article-body { font-size: 1.04rem; line-height: 1.7; max-width: 46rem; }
.article-body h2 { font-size: 1.45rem; margin-top: 2em; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.15rem; }
.article-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.toc a { display: block; padding: .3rem 0; font-size: .9rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--brand); }
.article-cta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--brand-soft); border-radius: var(--radius); padding: 24px; margin: 2.5rem 0 1rem; }
.article-cta h3 { margin-top: 0; }
.article-cta-shot { width: 120px; height: auto; border-radius: 18px; border: 5px solid var(--ink); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .article-side { position: static; order: -1; } .article-side .toc { display: none; } }
@media (max-width: 520px) { .article-cta { grid-template-columns: 1fr; } .article-cta-shot { display: none; } }

.shot-frame { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(11, 31, 42, .16); background: #fff; }
.shot-frame img { display: block; width: 100%; height: auto; }
.landing-hero .hero-grid { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 900px) { .landing-hero .hero-grid { grid-template-columns: 1fr; } }
.shot-grid { display: grid; grid-template-columns: 0.55fr 1fr 1fr 1fr; gap: 20px; align-items: start; }
.shot-grid figure { margin: 0; }
.shot-grid img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot-grid img.shot-phone { border-radius: 22px; border: 6px solid var(--ink); }
.shot-grid figcaption { font-size: .9rem; color: var(--muted); margin-top: .7rem; }
.shot-grid figcaption strong { display: block; color: var(--ink); }
@media (max-width: 900px) { .shot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .shot-grid { grid-template-columns: 1fr; } .shot-grid img.shot-phone { width: 60%; } }
.hero-shot { margin: 0; position: relative; }
.doc-thumb-badges { left: auto; right: -14px; top: 22px; bottom: auto; }
@media (max-width: 760px) {
  .tpl-hero { padding: 16px 0 24px; }
  .tpl-hero .lead { font-size: 1.02rem; color: var(--text); }
  .tpl-hero .tpl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.1rem 0 .8rem; }
  .tpl-hero .tpl-actions .btn:first-child { grid-column: 1 / -1; }
  .tpl-hero .tpl-actions .btn { justify-content: center; text-align: center; }
  .tpl-reassure { gap: .25rem .9rem; }
  .tpl-reassure .ico-check { margin-right: -.7rem; }
  .tpl-hero + .section-tight { padding-top: 16px; }
}
.tpl-reassure span { white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.tpl-reassure .ico-check { margin-right: 0; vertical-align: middle; }
