:root {
  --brand: #0f5c4d;
  --brand-dark: #0a3f35;
  --action: #0f8a6f;
  --action-dark: #0b6d58;
  --bg: #f6fbf8;
  --tint: #e6f3ec;
  --text: #10281f;
  --muted: #4a6058;
  --accent: #f4a261;
  --accent-soft: #fdeede;
  --card: #ffffff;
  --line: #d5e6dd;
  --shadow: 0 1px 2px rgba(16, 40, 31, .06), 0 8px 24px rgba(16, 40, 31, .08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--action-dark); }
.wrap { max-width: 1040px; min-width: 0; margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--action-dark); background: var(--tint); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 12px; padding-bottom: 12px; }
header.site .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
header.site .logo { width: 36px; height: 36px; display: block; }
header.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 1rem; }
header.site nav a { color: var(--text); text-decoration: none; }
header.site nav a:hover { color: var(--action-dark); }
header.site nav .button { padding: 8px 16px; color: #fff; }

/* buttons */
.button { display: inline-block; background: var(--action); color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(15, 138, 111, .3); transition: transform .15s, background .15s; }
.button:hover { background: var(--action-dark); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.button.ghost:hover { background: var(--tint); }

/* hero */
.hero { background: radial-gradient(1000px 420px at 85% -10%, #cfeadd 0%, transparent 60%), linear-gradient(180deg, #eef8f2 0%, var(--bg) 100%); padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
h1 { color: var(--brand-dark); font-size: 3rem; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 18px; }
h1 em { font-style: normal; color: var(--action); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--action); font-weight: 800; margin-right: 6px; }

/* chat mockup */
.phone { background: #fff; border-radius: 28px; box-shadow: var(--shadow), 0 30px 60px rgba(15, 92, 77, .18); border: 1px solid var(--line); overflow: hidden; max-width: 360px; margin-left: auto; }
.tg-bar { background: #fff; border-bottom: 1px solid #e3ebe6; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.tg-bar .back { font-size: 2rem; line-height: 1; color: #2d8cdb; margin-right: -2px; }
.tg-bar .dot { width: 38px; height: 38px; display: block; border-radius: 50%; }
.tg-bar .who { flex: 1; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.tg-bar small { display: block; font-weight: 400; color: #8a9a92; font-size: .78rem; }
.tg-bar .more { color: #8a9a92; font-size: 1.3rem; }
.tg-chat { background: #cfe1c4 radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25) 0 2px, transparent 3px) 0 0 / 28px 28px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; line-height: 1.4; }
.msg { max-width: 88%; padding: 7px 10px 5px; border-radius: 14px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); position: relative; }
.msg.me { align-self: flex-end; background: #effdde; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.msg .meta { float: right; margin: 6px 0 0 10px; font-size: .68rem; color: #7a8f84; }
.msg.me .meta { color: #5aa05a; }
.msg .meta i { font-style: normal; letter-spacing: -3px; }
.msg.photo { padding: 3px 3px 5px; }
.msg.photo .pic { width: 150px; height: 104px; border-radius: 11px; background: linear-gradient(135deg, #f1c48a, #c98b4d); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.msg.photo .meta { float: none; display: block; text-align: right; margin: 2px 8px 0; }
.kb { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; width: 88%; }
.kb span { text-align: center; font-weight: 600; font-size: .88rem; padding: 8px; border-radius: 10px; background: rgba(40, 80, 60, .45); color: #fff; }
.tg-input { background: #fff; border-top: 1px solid #e3ebe6; padding: 10px 14px; display: flex; align-items: center; gap: 12px; color: #8a9a92; }
.tg-input .field { flex: 1; font-size: .92rem; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 36em; margin-bottom: 36px; }
h2 { color: var(--brand-dark); font-size: 2.1rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }
h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--brand-dark); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }

/* steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 34px; }
.step-n { position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--action), var(--brand)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(15, 92, 77, .3); }

/* pricing */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; margin: 8px 0 2px; letter-spacing: -.02em; }
.plan .per { color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--action); font-weight: 800; }
.plan.featured { border: 2px solid var(--action); transform: translateY(-8px); box-shadow: 0 18px 40px rgba(15, 138, 111, .22); position: relative; }
.plan.featured .flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--text); font-size: .8rem; font-weight: 800; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.plan.soon { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fafdfb 12px, #fafdfb 24px); border-style: dashed; }
.plan.soon li::before { content: "★"; color: var(--accent); }
.badge { display: inline-block; background: var(--accent); color: var(--text); font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.plan .button { text-align: center; }

/* permissions */
.perm-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.perm { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.perm .icon { margin: 0; flex: none; width: 44px; height: 44px; font-size: 1.3rem; }
.perm h3 { font-size: 1.05rem; margin-bottom: 2px; }
.perm p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.notice { display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr; margin-top: 28px; }
.notice > div { border-radius: var(--radius); padding: 24px; }
.notice .no { background: var(--accent-soft); border: 1px solid #f4cfa6; }
.notice .revoke { background: var(--tint); border: 1px solid var(--line); }
.notice h3 { margin-bottom: 10px; }
.notice ul { margin: 0; padding: 0; list-style: none; }
.notice li { padding: 3px 0 3px 26px; position: relative; }
.notice .no li::before { content: "✕"; position: absolute; left: 0; font-weight: 800; color: #c2610f; }
.notice p { margin: 0 0 8px; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--brand-dark); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--action); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: var(--muted); }

/* final cta */
.final { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 24px; padding: 48px 32px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #cfe8dc; max-width: 32em; margin: 0 auto 24px; }
.final .button { background: var(--accent); color: var(--text); box-shadow: none; }
.final .button:hover { background: #f8b67e; }

/* legal pages */
main.legal { padding: 48px 0 72px; }
main.legal .wrap { max-width: 760px; }
main.legal h1 { font-size: 2.4rem; }
main.legal h2 { margin-top: 36px; font-size: 1.35rem; }
main.legal ul { padding-left: 1.3em; }
.updated { color: var(--muted); font-size: .95rem; }

/* footer */
footer.site { background: var(--brand-dark); color: #cfe8dc; padding: 36px 0; font-size: .95rem; }
footer.site a { color: #fff; }
footer.site .social-icon { display: inline-flex; align-items: center; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 12px; }

a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 820px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  section { padding: 52px 0; }
  .notice, .perm-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  header.site nav a:not(.button) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
