:root {
  --bg: #faf8f4; --paper: #ffffff; --ink: #1d2329; --muted: #5b6670; --line: #e3ded5;
  --accent: #1f5c4b; --accent-ink: #ffffff; --accent-soft: #e7efe9;
  --red: #b3261e; --red-soft: #fbeae8; --amber: #9a5800; --amber-soft: #fbf1e1; --blue-soft: #e9eff7;
  --radius: 10px; --wrap: 1080px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 11px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 0; font-size: 16px; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* hero */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lede { font-size: 19px; color: #333c44; margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.price-line { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* sms mock */
.phone { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px; box-shadow: 0 10px 30px rgba(29,35,41,.07); max-width: 380px; justify-self: center; width: 100%; }
.phone .meta { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 10px; }
.bubble { padding: 9px 13px; border-radius: 16px; margin: 7px 0; max-width: 86%; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.bubble.in { background: #ececec; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.photo { background: #ececec; font-style: italic; color: var(--muted); }
.bubble .who { display: block; font-size: 11px; opacity: .7; margin-bottom: 2px; }

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: #1d2329; color: #eef1f3; }
section.dark a { color: #9fd3c1; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 28px; }
section.dark .sub { color: #b6bfc6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 14px; }
.step p { margin: 0; color: #39434b; font-size: 15.5px; }
.step q { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); quotes: "\201C" "\201D"; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0 10px 28px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: #e0605a; }
section:not(.dark) .list li { border-bottom-color: var(--line); }
section:not(.dark) .list li::before { background: var(--accent); }
.callflow { background: #262e35; border-radius: var(--radius); padding: 20px; font-size: 15.5px; }
.callflow .line { padding: 8px 0; border-bottom: 1px dashed #3a444d; }
.callflow .line:last-child { border-bottom: 0; }
.callflow b { color: #ffb4ae; }

/* pricing */
.price-card { background: var(--paper); border: 2px solid var(--accent); border-radius: 14px; padding: 28px; max-width: 520px; }
.price-big { font-size: 46px; font-weight: 750; letter-spacing: -0.02em; line-height: 1; }
.price-big small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { padding-left: 20px; margin: 18px 0; }
.price-card li { margin: 5px 0; }
.note { font-size: 14.5px; color: var(--muted); }
.calc { margin-top: 14px; font-size: 15px; background: var(--accent-soft); border-radius: 8px; padding: 12px 14px; }
.calc input { width: 70px; font: inherit; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; }

/* forms */
form.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfc8bc; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-size: 15px; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--accent); font-weight: 600; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { margin: 10px 0 0; color: #39434b; }

/* footer */
footer { padding: 36px 0 48px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.legal { max-width: 46em; }

/* articles (guides, legal) */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.article h1 { font-size: clamp(30px, 4vw, 40px); }
.article h2 { font-size: 24px; margin-top: 36px; }
.article p, .article li { color: #2c353d; }
.article .byline { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.article th, .article td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--accent-soft); font-weight: 600; }
.article .box { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 22px 0; }
.article .box.warn { border-left-color: var(--red); }
.article .sources { font-size: 14px; color: var(--muted); }
.article .sources li { margin: 6px 0; word-break: break-word; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.guide-list a { font-weight: 600; font-size: 18px; text-decoration: none; }
.guide-list p { margin: 4px 0 0; color: var(--muted); }

/* demo */
.demo-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-phone { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: 0 10px 30px rgba(29,35,41,.07); }
.demo-phone .head { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.demo-phone .thread { height: 430px; overflow-y: auto; padding: 8px 2px; }
.demo-phone form { display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.demo-phone input[type=text] { flex: 1; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid #cfc8bc; border-radius: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.red { border-color: #e9b7b2; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.panel h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.alert { border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: 15px; white-space: pre-wrap; }
.alert.call { background: var(--red-soft); border: 1px solid #efc2bd; }
.alert.call::before { content: "PHONE CALL  "; font-weight: 700; color: var(--red); font-size: 12px; letter-spacing: .05em; }
.alert.text { background: var(--amber-soft); border: 1px solid #f0d9b5; }
.alert.text::before { content: "TEXT TO YOU  "; font-weight: 700; color: var(--amber); font-size: 12px; letter-spacing: .05em; }
.alert.draft { background: var(--blue-soft); border: 1px solid #cddbec; }
.alert.draft::before { content: "DRAFT TO VENDOR  "; font-weight: 700; color: #2b5a8f; font-size: 12px; letter-spacing: .05em; }
.alert.sent { background: var(--accent-soft); border: 1px solid #c5dccf; }
.alert.sent::before { content: "SENT TO VENDOR  "; font-weight: 700; color: var(--accent); font-size: 12px; letter-spacing: .05em; }
.alert .actions { margin-top: 8px; display: flex; gap: 8px; }
.log { width: 100%; border-collapse: collapse; font-size: 14px; }
.log td { padding: 6px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log td:first-child { color: var(--muted); white-space: nowrap; width: 72px; }
.log td:nth-child(2) { font-weight: 600; white-space: nowrap; width: 70px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; letter-spacing: .03em; text-transform: uppercase; }
.tag.emergency { background: var(--red-soft); color: var(--red); }
.tag.urgent { background: var(--amber-soft); color: var(--amber); }
.tag.routine { background: var(--accent-soft); color: var(--accent); }
.tag.none { background: #eee; color: var(--muted); }
.empty { color: var(--muted); font-size: 14.5px; }
