:root {
  --bg: #ffffff; --bg-soft: #f5f7fb; --ink: #0b1b34; --muted: #55627a; --line: #e3e8f0;
  --brand: #1d5bff; --brand-ink: #ffffff; --brand-soft: #e8efff; --warm: #ff6a3d; --good: #12805c;
  --phone: #0b1b34; --shadow: 0 20px 60px -20px rgba(11, 27, 52, .35);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a1222; --bg-soft: #111b2f; --ink: #edf2fb; --muted: #9eabc2; --line: #22304a;
          --brand: #5b8cff; --brand-ink: #071022; --brand-soft: #16264a; --warm: #ff8a63; --good: #46c296;
          --phone: #020711; --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
      backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px;
        letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo span { color: var(--brand); }
nav .links { display: flex; gap: 26px; align-items: center; }
nav .links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav .links a:hover { color: var(--ink); }
@media (max-width: 760px) { nav .links a.hide-sm { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-ink) !important;
       text-decoration: none; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 16px;
       transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 8px 20px -8px var(--brand); }
.btn:hover { transform: translateY(-1px); }
.btn.alt { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 760px) { nav .links { gap: 10px; } .logo { font-size: 18px; } }
@media (max-width: 380px) { nav .links .btn.small { display: none; } }

/* hero */
.hero { padding-top: 64px; padding-bottom: 56px; display: grid; gap: 48px; grid-template-columns: 1.15fr .85fr; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--brand-soft); color: var(--brand);
           font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; }
h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust span::before { content: "✓ "; color: var(--good); }

/* phone mock-up */
.phone { justify-self: center; width: 300px; background: var(--phone); border-radius: 44px; padding: 14px;
         box-shadow: var(--shadow); }
.screen { background: #f2f4f8; border-radius: 32px; padding: 22px 16px 26px; min-height: 520px; color: #0b1b34;
          display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.notch { width: 90px; height: 22px; background: var(--phone); border-radius: 0 0 14px 14px; margin: -22px auto 6px; }
.call-card { background: #ffffff; border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center;
             box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.call-card .dot { width: 38px; height: 38px; border-radius: 50%; background: #e7fff4; display: grid; place-items: center; }
.call-card b { display: block; font-size: 14px; }
.call-card small { color: #55627a; }
.bubble { background: #ffffff; border-radius: 18px 18px 18px 6px; padding: 12px 14px; line-height: 1.45;
          box-shadow: 0 2px 8px rgba(0,0,0,.06); white-space: pre-line; }
.bubble.green { background: #1d5bff; color: #fff; border-radius: 18px 18px 6px 18px; align-self: flex-end; max-width: 85%; }
.from { font-size: 11px; color: #7a869c; margin: 4px 4px -6px; font-weight: 600; }

/* sections */
section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }
.kicker { color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.12; margin: 10px 0 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 40px; }
.grid3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-weight: 800; color: var(--warm); font-size: 14px; letter-spacing: .08em; }

/* problem band */
.band { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.band div { border-left: 3px solid var(--warm); padding-left: 18px; }
.band b { display: block; font-size: 20px; margin-bottom: 4px; }
.band p { margin: 0; color: var(--muted); }

/* transcript */
.transcript { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .transcript { grid-template-columns: 1fr; } }
.chat { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 10px; }
.line { padding: 10px 14px; border-radius: 14px; max-width: 88%; font-size: 15px; }
.line.sam { background: var(--brand-soft); }
.line.caller { background: var(--bg-soft); justify-self: end; border: 1px solid var(--line); }
.line b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
ul.check { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
ul.check li { padding-left: 30px; position: relative; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
                      background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* trades */
.trades { display: flex; flex-wrap: wrap; gap: 12px; }
.trades span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; }

/* pricing */
.pricing { display: grid; gap: 22px; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan { border: 2px solid var(--brand); border-radius: 22px; padding: 32px; background: var(--bg); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 28px; background: var(--brand); color: var(--brand-ink);
             font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .05em; }
.price { font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 8px 0 4px; }
.price small { font-size: 18px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.guarantee { background: var(--bg-soft); border-radius: 22px; padding: 32px; border: 1px solid var(--line); }
.guarantee .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0; }

/* faq */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--brand); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* final cta */
.final { background: linear-gradient(135deg, #0b1b34, #16346b); color: #fff; border-radius: 28px; padding: 56px 40px;
         text-align: center; }
.final h2 { color: #fff; }
.final p { color: #c6d3ec; font-size: 18px; margin: 0 auto 28px; max-width: 560px; }
.final .nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.final .nums a { background: #fff; color: #0b1b34 !important; box-shadow: none; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }

/* active nav + mobile menu */
nav .links a.active { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 12px; border: 1.5px solid var(--line);
                border-radius: 10px; font-size: 15px; }
.menu summary::after { content: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; right: 0; top: 46px; background: var(--bg); border: 1px solid var(--line);
              border-radius: 14px; padding: 10px; min-width: 210px; box-shadow: var(--shadow); gap: 2px; }
.menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--bg-soft); }
@media (max-width: 760px) { .menu { display: block; } }

/* inner page hero */
.page-hero { padding-top: 64px; padding-bottom: 24px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.page-hero .lead { max-width: 680px; }

/* two column + steps list */
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.steps { counter-reset: s; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 0 56px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
                    background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.steps b { display: block; font-size: 18px; }
.steps p { margin: 4px 0 0; color: var(--muted); }

/* tables */
table.compare { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: 16px; overflow: hidden;
                border: 1px solid var(--line); font-size: 16px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare th { background: var(--bg-soft); font-size: 14px; letter-spacing: .03em; }
table.compare td.us { background: var(--brand-soft); font-weight: 700; }
.table-wrap { overflow-x: auto; }
code.kbd { background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

/* sign-up form */
.signup { display: grid; gap: 40px; grid-template-columns: 260px 1fr; align-items: start; padding-top: 40px; padding-bottom: 80px; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; gap: 20px; } }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: sticky; top: 90px; }
.stepper li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.stepper li span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center;
                   font-size: 13px; flex: none; }
.stepper li.current { background: var(--brand-soft); color: var(--ink); }
.stepper li.current span { border-color: var(--brand); color: var(--brand); }
.stepper li.done span { background: var(--good); border-color: var(--good); color: #fff; }
@media (max-width: 860px) { .stepper { display: flex; overflow-x: auto; position: static; }
                            .stepper li { white-space: nowrap; } .stepper li:not(.current) b { display: none; } }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: 0 10px 40px -24px rgba(11,27,52,.3); }
.form-card h2 { margin-top: 0; font-size: 28px; }
.form-card .hint { color: var(--muted); margin: -6px 0 24px; }
fieldset { border: 0; padding: 0; margin: 0; display: none; }
fieldset.show { display: block; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .group-label { font-weight: 700; font-size: 15px; }
.field small { color: var(--muted); }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input.bad, select.bad, textarea.bad { border-color: #d13b3b; }
textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.chips label { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px;
               cursor: pointer; font-weight: 600; font-size: 15px; }
.chips input { accent-color: var(--brand); width: 16px; height: 16px; }
.chips label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; }
.check-line input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.nav-buttons { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.review { background: var(--bg-soft); border-radius: 14px; padding: 18px; display: grid; gap: 8px; font-size: 15px; }
.review div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.review div b { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .review div { grid-template-columns: 1fr; gap: 0; } }
.error-box { background: #fdecec; color: #8a1f1f; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; display: none; }
.hp { position: absolute; left: -9999px; }
.success { text-align: center; padding: 30px 10px; }
.success .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--good); color: #fff; font-size: 38px;
                      display: grid; place-items: center; margin: 0 auto 16px; }

/* industries */
.ind-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
a.ind { display: block; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
        border-radius: 18px; padding: 24px; transition: transform .15s ease, border-color .15s ease; }
a.ind:hover { transform: translateY(-2px); border-color: var(--brand); }
a.ind .emoji { font-size: 32px; }
a.ind h3 { margin: 10px 0 6px; font-size: 20px; }
a.ind p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
a.ind span.more { color: var(--brand); font-weight: 700; font-size: 15px; }
.soon { display: inline-block; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 999px;
        padding: 8px 16px; color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 20px; }

/* demo lines */
.demos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.demo-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.demo-card .tel { font-size: 28px; font-weight: 800; color: var(--brand); text-decoration: none; display: block; margin: 6px 0; }
.demo-card small { color: var(--muted); }

/* two plans */
.plans { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan.light { border-color: var(--line); }
.plan .for { color: var(--muted); margin: 8px 0 0; }

/* client portal */
.portal { padding-top: 32px; padding-bottom: 80px; max-width: 920px; }
.login-card { max-width: 440px; margin: 40px auto; }
.app-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-head h1 { font-size: 28px; margin: 0; }
.app-head select { width: auto; font-weight: 700; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 16px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
               border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters button { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 14px;
                  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.filters button.on { border-color: var(--brand); background: var(--brand-soft); }
.bk { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.bk.urgent { border-color: #e5484d; box-shadow: 0 0 0 1px #e5484d inset; }
.bk-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.bk-top h3 { margin: 0; font-size: 19px; }
.bk-meta { color: var(--muted); font-size: 14px; }
.bk dl { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; margin: 12px 0; font-size: 15px; }
.bk dt { color: var(--muted); }
.bk dd { margin: 0; }
@media (max-width: 600px) { .bk dl { grid-template-columns: 1fr; } .bk dt { margin-top: 6px; } }
.pill { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px;
        text-transform: uppercase; background: var(--bg-soft); color: var(--muted); }
.pill.new { background: #fff4d6; color: #8a5a00; } .pill.confirmed { background: #dff6ea; color: #12805c; }
.pill.done { background: var(--bg-soft); color: var(--muted); } .pill.cancelled { background: #fdecec; color: #a12d2d; }
.pill.message { background: var(--brand-soft); color: var(--brand); } .pill.urgent { background: #e5484d; color: #fff; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-actions button { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 8px 12px;
                     font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.bk-actions button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.bk-actions button.danger { color: #c0392b; }
.transcript-box { white-space: pre-wrap; background: var(--bg-soft); border-radius: 12px; padding: 14px; font-size: 14px; margin-top: 12px;
                  max-height: 320px; overflow: auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat b { display: block; font-size: 34px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }
dialog { border: 0; border-radius: 20px; padding: 26px; width: min(460px, calc(100vw - 32px)); background: var(--bg); color: var(--ink);
         box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5, 12, 25, .55); }
dialog h3 { margin-top: 0; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px;
         border-radius: 12px; font-weight: 600; display: none; z-index: 50; max-width: calc(100vw - 32px); }

.thread { display: grid; gap: 8px; margin: 4px 0 14px; padding: 12px; background: var(--bg-soft); border-radius: 14px; }
.msg { max-width: 85%; display: grid; gap: 2px; }
.msg span { padding: 9px 13px; border-radius: 14px; font-size: 15px; white-space: pre-wrap; }
.msg small { color: var(--muted); font-size: 12px; padding: 0 4px; }
.msg.in { justify-self: start; } .msg.in span { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.out { justify-self: end; text-align: right; } .msg.out span { background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; text-align: left; }

/* legal pages */
.legal { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); }
