[hidden] { display: none !important; }
:root {
  --ink: #14213d; --ink-2: #3c4a63; --muted: #6b778c; --line: #e3e7ee; --bg: #f6f7fb; --card: #fff;
  --brand: #1f4fd8; --brand-ink: #fff; --brand-soft: #e8eefc;
  --said: #157a4a; --said-soft: #e3f5ec; --listing: #1f5fbf; --listing-soft: #e5effc;
  --amber: #a15c00; --amber-soft: #fff3dc; --amber-line: #f1c76f;
  --stop: #b42318; --stop-soft: #fdecea; --warn: #8a5a00; --warn-soft: #fff6e0;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,33,61,.06), 0 4px 16px rgba(20,33,61,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--brand); }
h1 { font-size: 1.45rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
p { margin: .3rem 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.top .in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.logo { font-weight: 800; color: #fff; text-decoration: none; font-size: 1.1rem; letter-spacing: -.02em; }
.logo span { color: #9db8ff; }
.top nav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.top nav a { color: #dbe4ff; text-decoration: none; font-size: .92rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: .95rem; }
.flash.ok { background: var(--said-soft); color: var(--said); }
.flash.err { background: var(--stop-soft); color: var(--stop); }
label { display: block; font-size: .85rem; color: var(--ink-2); margin: .55rem 0 .2rem; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #cfd6e2; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .row, .row3 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; border: 0; border-radius: 11px;
  padding: 11px 16px; background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #cfd6e2; }
.btn.small { padding: 6px 11px; min-height: 34px; font-size: .88rem; }
.btn.big { width: 100%; padding: 15px; font-size: 1.05rem; }
.btn.green { background: var(--said); }
.btn.red { background: var(--stop); }
.btn.amber { background: var(--amber); }
.inline { display: inline; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.chip.said, .chip.agent { background: var(--said-soft); color: var(--said); }
.chip.listing, .chip.rule { background: var(--listing-soft); color: var(--listing); }
.chip.brokerage { background: #efe9fb; color: #5b3aa8; }
.chip.standard { background: var(--amber-soft); color: var(--amber); }
.chip.supervisor { background: #fde8f1; color: #a01d5a; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.status.executed, .status.buyer_signed { background: var(--said-soft); color: var(--said); }
.status.pending_approval, .status.change_requested, .status.returned { background: var(--amber-soft); color: var(--amber); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .preview { position: static !important; max-height: none !important; } }
.term { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.term:first-of-type { border-top: 0; }
.term.amber { background: linear-gradient(90deg, var(--amber-soft), #fff 70%); margin: 0 -16px; padding: 10px 16px; border-left: 4px solid var(--amber-line); }
.term .lbl { font-size: .82rem; color: var(--muted); }
.term .val { font-weight: 650; font-size: 1.02rem; word-break: break-word; }
.term .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.term .acts { display: flex; gap: 6px; align-items: start; }
.term form.edit { grid-column: 1 / -1; display: none; gap: 8px; margin-top: 6px; }
.term.editing form.edit { display: flex; }
.term form.edit > *:first-child { flex: 1; }
.see { background: none; border: 0; color: var(--brand); font-size: .78rem; cursor: pointer; padding: 0; text-decoration: underline; }
.checks .c { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.checks .c:first-child { border-top: 0; }
.checks .ico { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; }
.checks .stop .ico { background: var(--stop); }
.checks .warn .ico { background: #d08a00; }
.checks .c > div { flex: 1; }
.ok-banner { background: var(--said-soft); color: var(--said); border-radius: 10px; padding: 10px 12px; font-weight: 650; }
.mic { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 28px; cursor: pointer; flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(31,79,216,.35); }
.mic.on { background: var(--stop); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(180,35,24,.45); } 70% { box-shadow: 0 0 0 16px rgba(180,35,24,0); } 100% { box-shadow: 0 0 0 0 rgba(180,35,24,0); } }
@media (prefers-reduced-motion: reduce) { .mic.on { animation: none; } }
.speak { display: flex; gap: 14px; align-items: center; }
.speak textarea { min-height: 96px; }
.preview { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; background: #dfe3ea; border-radius: var(--radius); padding: 10px; }
.page { position: relative; margin: 0 auto 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); max-width: 820px; }
.page img { display: block; width: 100%; height: auto; }
.hl { position: absolute; border: 3px solid #ff8a00; background: rgba(255,170,0,.18); border-radius: 4px; pointer-events: none; animation: hl 1.4s ease-out 2; }
@keyframes hl { 0% { box-shadow: 0 0 0 0 rgba(255,138,0,.6); } 100% { box-shadow: 0 0 0 14px rgba(255,138,0,0); } }
.tag { position: absolute; border: 2px dashed #1f4fd8; background: rgba(31,79,216,.12); border-radius: 6px; cursor: pointer; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #1f4fd8; min-height: 16px; }
.tag.other { border-color: #b8c0cc; background: rgba(150,160,175,.08); color: #8a93a3; cursor: default; }
.tag.done { border: 2px solid var(--said); background: rgba(21,122,74,.08); color: var(--said); }
.tag img { max-width: 100%; max-height: 100%; }
.forms li { margin: 4px 0; }
.forms .why { color: var(--muted); font-size: .85rem; }
.list { width: 100%; border-collapse: collapse; }
.list td, .list th { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.list th { font-size: .78rem; color: var(--muted); text-transform: uppercase; border-top: 0; }
.tablewrap { overflow-x: auto; }
.steps { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.steps span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: #e7ebf3; color: var(--ink-2); }
.steps span.on { background: var(--brand); color: #fff; }
.demo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.demo button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; color: var(--ink); }
.demo button:hover { border-color: var(--brand); }
.pad { border: 2px dashed #cfd6e2; border-radius: 12px; background: #fff; touch-action: none; width: 100%; height: 150px; display: block; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { flex: 1; padding: 9px; border: 1px solid #cfd6e2; background: #fff; border-radius: 10px; font: inherit; cursor: pointer; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.typed { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 34px; }
.sticky-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 10px 16px; z-index: 15;
  display: flex; gap: 10px; align-items: center; justify-content: space-between; backdrop-filter: blur(6px); }
.glance td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.glance td:first-child { color: var(--muted); padding-right: 12px; width: 44%; font-size: .9rem; }
.glance tr:first-child td { border-top: 0; }
.timeline { font-size: .85rem; }
.timeline div { padding: 5px 0; border-top: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 650; }
.hero { padding: 48px 16px 24px; text-align: center; }
.hero h1 { font-size: 2.1rem; }
.hero p { font-size: 1.1rem; color: var(--ink-2); max-width: 640px; margin: 10px auto 22px; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.badge-demo { font-size: .7rem; font-weight: 800; color: #7a4b00; background: #ffe7b3; padding: 1px 6px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px; }
