/* CerdasChat v1 — mobile-first, no external fonts */
:root {
  --ink: #12201f; --muted: #4b5b5a; --bg: #ffffff; --soft: #f1f7f6; --line: #d6e3e1;
  --brand: #0f3d3e; --brand-2: #14595a; --accent: #5eead4; --accent-ink: #064e48;
  --warn-bg: #fff7e6; --warn-line: #f0c36d; --err: #a1261b; --err-bg: #fdecea;
  --r: 14px; --shadow: 0 2px 10px rgba(15, 61, 62, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--brand-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 760px; }

/* Language: both in HTML, one shown */
html:not(.en) .l-en, html.en .l-id { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 10px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--brand); text-decoration: none; margin-right: auto; }
.logo { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; order: 3; width: 100%; justify-content: space-between; }
.nav a { padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"] { background: var(--soft); color: var(--brand); }
.nav a.btn, .nav a.btn[aria-current="page"] { color: #fff; background: var(--brand); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn { font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 12px; border: 0; background: #fff; color: var(--muted); cursor: pointer; min-height: 36px; }
.lang-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
@media (min-width: 720px) {
  .nav { order: 0; width: auto; gap: 8px; }
  .top-in { flex-wrap: nowrap; }
}

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 12px; border: 0; font-size: 1rem; cursor: pointer; text-align: center; }
.btn:hover { background: var(--brand-2); }
.btn-sm { padding: 8px 14px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: var(--soft); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Sections */
section { padding: 44px 0; }
.alt { background: var(--soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand-2); margin-bottom: .4em; }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero { padding: 40px 0 36px; background: linear-gradient(180deg, #e8f6f3 0%, #fff 100%); }
.hero-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; } section { padding: 64px 0; } .hero { padding: 64px 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.ico { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 0; }
.steps li .card::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.who { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.who li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-weight: 600; }

/* Chat example */
.chat { background: #e9efe9; border-radius: 18px; padding: 14px; border: 1px solid var(--line); max-width: 440px; margin: 0 auto; }
.chat-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 10px; gap: 8px; }
.tag { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #6b4a00; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .78rem; white-space: nowrap; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; margin: 6px 0; font-size: .95rem; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg small { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.msg.in { background: #fff; border-top-left-radius: 4px; }
.msg.out { background: #d9fdd3; margin-left: auto; border-top-right-radius: 4px; }
.msg.sys { background: var(--warn-bg); border: 1px dashed var(--warn-line); max-width: 100%; font-size: .85rem; text-align: center; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style-position: inside; }
details > div { padding: 0 16px 14px; }

/* Pricing */
.plans { display: grid; gap: 18px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; box-shadow: var(--shadow); }
.plan.pop { border: 2px solid var(--brand); }
.badge { position: absolute; top: -13px; left: 20px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; padding: 3px 12px; border-radius: 999px; }
.price { font-size: 2rem; font-weight: 800; color: var(--brand); margin: 0; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.sub { color: var(--muted); font-size: .92rem; }
.feat { list-style: none; padding: 0; margin: 16px 0; }
.feat li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--soft); }
.feat li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand-2); font-weight: 800; }
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 14px 16px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
table.cmp th, table.cmp td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.cmp th { background: var(--soft); }
.table-scroll { overflow-x: auto; }

/* Form */
form.trial { display: grid; gap: 16px; }
.field label, .field .lbl { display: block; font-weight: 700; margin-bottom: 4px; }
.field .hint { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 6px; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #9fb4b1; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { background: var(--err-bg); border: 1px solid var(--err); color: var(--err); border-radius: 12px; padding: 12px 16px; }
.alert ul { margin: 0; padding-left: 20px; }
.req { color: var(--err); }

/* Legal */
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal h3 { margin-top: 1.2em; }
.draft { background: var(--warn-bg); border: 2px solid var(--warn-line); border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.legal-lang { border-top: 3px solid var(--line); margin-top: 2em; padding-top: 1em; }

/* Footer */
.foot { background: var(--brand); color: #dcefec; padding: 36px 0 28px; margin-top: 0; font-size: .95rem; }
.foot a { color: #fff; }
.foot-in { display: grid; gap: 18px; }
@media (min-width: 720px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-legal { grid-column: 1 / -1; } }
.foot-brand { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: .3em; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 4px 0; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; font-size: .88rem; }
.foot-legal p { margin: 0 0 .3em; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.center { text-align: center; }
.check label { font-weight: 400; }
