/* ---------- base ---------- */
:root {
  --ink: #16211b;
  --muted: #5b6a62;
  --bg: #fbfaf6;
  --alt: #f3f0e8;
  --card: #ffffff;
  --line: #e2ddd2;
  --line-strong: #cfc8b8;
  --accent: #17694a;
  --accent-dark: #11553b;
  --accent-soft: #e8f2ec;
  --warn: #8a4b12;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 33, 27, .05), 0 8px 24px -16px rgba(22, 33, 27, .25);
  --maxw: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 5.2vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: .35em; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent-soft) 0); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
.micro { font-size: .82rem; color: var(--muted); margin: .7em 0 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 246, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand {
  font-weight: 800; letter-spacing: -.03em; font-size: 1.12rem;
  color: var(--ink); text-decoration: none;
}
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: .97rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 44px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 18px;
}
.lede { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 24px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none;
  padding: 0; margin: 0; font-size: .87rem; color: var(--muted);
}
.trust-row li { position: relative; padding-left: 17px; }
.trust-row li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
br.br-lg { display: none; }
@media (min-width: 800px) { br.br-lg { display: inline; } }

/* ---------- personal banner ---------- */
.personal-banner {
  background: var(--accent); color: #fff; font-size: .95rem;
  padding: 11px 0;
}
.personal-banner .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #7dffb0; margin-right: 9px; box-shadow: 0 0 0 4px rgba(125, 255, 176, .22);
}

/* ---------- sections ---------- */
.section { padding: clamp(46px, 6vw, 78px) 0; }
.section-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { font-size: 1.02rem; color: var(--muted); max-width: 60ch; margin-bottom: 30px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}

.cards-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.cards-3 .card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- demo ---------- */
.demo-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .demo-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.field-label { display: block; font-size: .84rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
textarea, input, select {
  width: 100%; font-family: inherit; font-size: .96rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 11px 12px; line-height: 1.45;
}
textarea { resize: vertical; }
textarea:focus, input:focus, select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 14px; }
.chip {
  font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 11px; text-align: left; transition: .12s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }

.demo-output { padding: 0; overflow: hidden; background: #fcfbf8; }
.phone-top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fff;
}
.phone-title { font-weight: 700; font-size: .92rem; }
.phone-sub { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.thread {
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  min-height: 232px; max-height: 420px; overflow-y: auto;
}
.thread-empty { color: var(--muted); font-size: .9rem; text-align: center; margin: auto 0; }
.bubble {
  max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: .9rem;
  line-height: 1.5; white-space: pre-wrap; animation: pop .22s ease both;
}
.bubble.customer { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble .hl { font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

/* ---------- price ---------- */
.price-card { padding: 26px; }
.price-head { display: flex; align-items: baseline; gap: 12px; }
.price-amount { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; }
.price-note { color: var(--muted); font-size: .95rem; }
.price-sub { color: var(--muted); margin: 2px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 27px; font-size: .95rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent);
  font-weight: 800; font-size: .95rem;
}
.fine { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 15px; margin-bottom: 20px; }
.guarantee, .honesty {
  margin-top: 18px; padding: 16px 18px; border-radius: 11px; font-size: .92rem;
  background: #fff; border: 1px solid var(--line);
}
.guarantee { border-left: 4px solid var(--accent); }
.honesty { border-left: 4px solid var(--line-strong); color: var(--muted); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-day { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); padding-top: 3px; }
.steps h3 { margin: 0 0 .2em; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- faq ---------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; }
details[open] { border-color: var(--line-strong); }
summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: .97rem;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.25rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 18px 16px; margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- form ---------- */
.form { padding: 24px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--muted); }
.field + .field { margin-top: 0; }
.form > .field { margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#apply-status { min-height: 1.2em; }
#apply-status.ok { color: var(--accent-dark); font-weight: 600; }
#apply-status.err { color: #a3241e; }
.field.invalid input, .field.invalid textarea { border-color: #c0453d; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; background: var(--alt); }
.site-footer p { margin: 0; font-size: .88rem; color: var(--muted); }
.site-footer a { color: var(--ink); }
.launch-badge { margin-top: 16px; }
.launch-badge a { display: inline-block; line-height: 0; }
.launch-badge img { display: block; height: 42px; width: auto; }

@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-actions .btn { width: 100%; }
}
