:root {
  --ink: #14202b;
  --muted: #5a6b7a;
  --line: #dfe5ea;
  --soft: #f4f7fa;
  --accent: #1b5fd3;
  --accent-dark: #1249a6;
  --accent-soft: #e8f0fd;
  --danger: #b3261e;
  --ok: #17703f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; }

.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: default; }

.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.hero h1 { margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -.02em; }
.lede { margin: 0 0 28px; color: var(--muted); font-size: 19px; line-height: 1.55; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.chat-demo { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.chat-demo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.chat-demo-head svg { width: 18px; height: 18px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
.bubble-in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-out { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; margin-left: auto; }
.chat-demo-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 500; }
.chat-demo-foot svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.chat-demo-foot small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

.section { padding: 48px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.01em; text-align: center; }
.section-sub { margin: 0 auto 32px; color: var(--muted); text-align: center; max-width: 36em; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fff; }
.benefit svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 12px; }
.benefit h3 { margin: 0 0 6px; font-size: 18px; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }
.benefit-featured { background: var(--accent-soft); border-color: #b9cff5; }
.benefit-featured p { color: #2b4470; }

.cta-band { margin: 24px 0 64px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 40px 24px; text-align: center; }
.cta-band h2 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 30px); }
.cta-band .cta-row { justify-content: center; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.page { padding: 40px 0 72px; }
.page-narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.page h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.01em; }
.page .updated { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.doc h2 { margin: 32px 0 8px; font-size: 20px; }
.doc h3 { margin: 20px 0 6px; font-size: 16px; }
.doc p, .doc li { color: #2b3947; font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .caps { text-transform: uppercase; font-size: 14px; letter-spacing: .01em; }
.doc address { font-style: normal; }

.form-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; background: #fff; }
.form-card h2 { margin: 0 0 4px; font-size: 18px; }
.form-card .hint { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field input[type=password], .field input[type=file], .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid #c5ced6; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid #9db9ec; outline-offset: 0; border-color: var(--accent); }
.field small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phone-row { display: grid; grid-template-columns: 135px 1fr; gap: 8px; }
.legal-rep-grid { grid-template-columns: 1fr 3fr; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.agree input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form-error { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: #fdeceb; color: var(--danger); font-size: 15px; }
.form-error.show { display: block; }
.success-card { text-align: center; padding: 40px 24px; }
.success-card svg { width: 48px; height: 48px; color: var(--ok); margin-bottom: 12px; }
.success-card h2 { margin: 0 0 8px; }
.success-card p { color: var(--muted); margin: 0 0 20px; }
.hidden { display: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  .grid-2, .legal-rep-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
  .site-header .wrap { height: 58px; }
  .header-actions .btn { padding: 8px 12px; font-size: 14px; }
  .brand span:last-child { font-size: 15px; }
}
