:root {
  --ink: #14161a; --muted: #5b6270; --line: #e2e5ec; --bg: #ffffff; --soft: #f5f7fb; --brand: #2347c5; --brand-dark: #1a379c; --good: #1f7a46; --bad: #b3261e; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.public { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--brand); }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: .4rem 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.top-nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.top-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.top-nav a:not(.btn):hover { color: var(--brand); }

.btn { display: inline-block; font: inherit; padding: .55rem 1.1rem; border-radius: 10px; border: 1px solid #c9cfdb; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--soft); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.badge { display: inline-block; background: #eef1fb; color: var(--brand-dark); padding: .55rem 1rem; border-radius: 999px; font-size: .95rem; }

.hero { background: linear-gradient(180deg, #f3f6ff 0%, #fff 100%); padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.chat-demo { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; box-shadow: 0 10px 30px rgba(35, 71, 197, .10); display: grid; gap: .7rem; }
.bubble { padding: .6rem .9rem; border-radius: 14px; max-width: 88%; font-size: .95rem; }
.bubble.you { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--soft); border-bottom-left-radius: 4px; }
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.demo-cards span { height: 70px; background: linear-gradient(135deg, #e8ecfb, #f6f8ff); border-radius: 10px; border: 1px solid var(--line); }

.section { padding: 3rem 0; }
.section.alt { background: var(--soft); }
.section.narrow { width: min(720px, 100% - 32px); margin: 0 auto; }
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.steps-grid p { color: var(--muted); margin: .2rem 0 0; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eef1fb; color: var(--brand-dark); font-weight: 700; }
.chips-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-lg { background: #fff; border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 999px; font-weight: 600; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.card-plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: #fff; }
.plan-line { margin: .3rem 0; }

.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; margin-top: 2rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1.2rem; align-items: flex-start; }

.alert { padding: .8rem 1rem; border-radius: 10px; background: #eef1fb; border: 1px solid #d5dcf5; }
.alert-error { background: #fdecea; border-color: #f2b8b5; color: #7a1a14; }
.prose h2 { margin-top: 1.6rem; font-size: 1.2rem; }

/* registration */
.reg-form { display: grid; gap: 1.2rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.2rem; display: grid; gap: .9rem; margin: 0; }
legend { padding: 0 .4rem; font-weight: 700; }
label { display: grid; gap: .3rem; font-size: .92rem; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]), select { font: inherit; padding: .65rem .8rem; border: 1px solid #c9cfdb; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid #b9c6f5; outline-offset: 1px; }
.row-3 { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; gap: .8rem; }
label.check { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
label.check input { margin-top: .25rem; }
.radio-card { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; cursor: pointer; color: var(--ink); }
.radio-card input { margin-top: .3rem; }
.bad input, .bad select { border-color: var(--bad); }
.err { color: var(--bad); font-size: .85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cred-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.cred-box dl { margin: 0; display: grid; grid-template-columns: 11rem 1fr; gap: .5rem 1rem; }
.cred-box dt { color: var(--muted); }
.cred-box dd { margin: 0; word-break: break-all; }
code { background: #eef0f6; padding: .1rem .4rem; border-radius: 6px; }
code.pw { font-size: 1.2rem; letter-spacing: .04em; background: #fff; border: 1px dashed #9aa6d6; padding: .25rem .6rem; }
.steps-list li { margin: .4rem 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr; }
  .cred-box dl { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } .top-nav a:not(.btn):not(:last-child) { display: none; } }
