:root {
  --brand: #0f766e;
  --brand-600: #0d6560;
  --brand-50: #ecfdf8;
  --brand-100: #ccf5ea;
  --ink: #0b1b1a;
  --ink-2: #334544;
  --muted: #62716f;
  --line: #e1e8e6;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --card: #ffffff;
  --accent: #f59e0b;
  --danger: #dc2626;
  --ok: #059669;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 26, .06), 0 8px 24px rgba(11, 27, 26, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font: 600 .95rem var(--font); cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c7c7; }
.btn-danger:hover { background: #fdf0f0; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: inherit; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
textarea { resize: vertical; min-height: 110px; }
.field { margin-bottom: 18px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.error-box { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin-bottom: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .container { display: flex; align-items: center; height: 68px; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #14b8a6, #0f766e); display: grid; place-items: center; color: #fff; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav .spacer { flex: 1; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .nav .btn-ghost { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; background:
  radial-gradient(900px 420px at 85% -10%, #d9f7ef 0, transparent 60%), radial-gradient(700px 380px at -10% 20%, #fff4dc 0, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.eyebrow b { background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .75rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin: 22px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #0f766e, #14b8a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 540px; }
.hero-form { display: flex; gap: 10px; margin-top: 28px; max-width: 520px; background: #fff; padding: 6px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-form input { border: 0; box-shadow: none !important; }
.trust { display: flex; gap: 22px; margin-top: 22px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.trust span::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 6px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }

/* demo chat card */
.demo { background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(15,118,110,.35), var(--shadow); border: 1px solid var(--line); overflow: hidden; max-width: 440px; margin-left: auto; }
.demo-head { background: var(--brand); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.demo-head .av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; }
.demo-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; background: var(--bg-soft); }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; }
.bubble.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.me { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble .cite { display: inline-block; margin-top: 8px; font-size: .78rem; background: var(--brand-50); color: var(--brand); padding: 3px 8px; border-radius: 6px; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a3b3b1; margin-right: 3px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s } .typing span:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%, 60%, 100% { opacity: .3 } 30% { opacity: 1 } }

/* sections */
section.block { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; opacity: .6; font-weight: 800; font-size: 1.15rem; color: var(--ink-2); letter-spacing: -.01em; }

.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

.features { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.25rem; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps, .features { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 20px 0 0; }
.split li { padding: 8px 0 8px 30px; position: relative; color: var(--ink-2); }
.split li::before { content: ''; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f766e'%3E%3Cpath d='M8 13.2 4.8 10l-1.1 1.1L8 15.4l8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* pricing */
.pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card { border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 24px 60px -24px rgba(15,118,110,.45); position: relative; }
.price-card.featured::before { content: 'Most popular'; position: absolute; top: -13px; left: 30px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.price-card li { padding: 7px 0; color: var(--ink-2); font-size: .95rem; }
.price-card li::before { content: '✓'; color: var(--brand); font-weight: 800; margin-right: 10px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta { background: linear-gradient(135deg, #0f766e, #115e59); color: #fff; border-radius: 24px; padding: 60px 40px; text-align: center; }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.cta p { color: #ccf5ea; font-size: 1.1rem; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover { background: #ecfdf8; }

footer.site { padding: 56px 0 36px; border-top: 1px solid var(--line); margin-top: 88px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; }
.foot-grid h4 { font-size: .9rem; margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--muted); padding: 4px 0; font-size: .93rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, #0f766e, #134e4a); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .logo { color: #fff; }
.auth-side .logo-mark { background: rgba(255,255,255,.18); }
.auth-side blockquote { font-size: 1.35rem; font-weight: 600; line-height: 1.45; margin: 0; }
.auth-side cite { display: block; margin-top: 16px; font-style: normal; color: #a7f3d0; font-size: .95rem; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.9rem; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* toast */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: .92rem; box-shadow: var(--shadow); animation: pop .2s ease-out; }
.toast.err { background: var(--danger); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* language switcher */
.lang-select { width: auto; padding: 7px 28px 7px 10px; font-size: .88rem; border-radius: 9px; background-color: #fff; cursor: pointer; }
.nav .lang-select { margin-right: 4px; }
footer.site .lang-select { margin-top: 14px; }
@media (max-width: 860px) { .nav .lang-select { display: none; } }
