/* Marketing site. Plain CSS, no build step, no web fonts (system font stack).
   The brand colour comes from Admin › Settings › General (--brand). */
:root {
    --brand: #10b981;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --soft: #f8fafc;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root { --ink: #e2e8f0; --muted: #94a3b8; --line: #1e293b; --bg: #0b1120; --soft: #0f172a; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1.2em; }
h3 { font-size: 1.15rem; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.center.lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--brand); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { box-shadow: none; border-color: var(--brand); }
.btn.big { padding: 14px 26px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn.light { background: #fff; color: var(--ink); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.mark { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #0ea5e9)); box-shadow: inset 0 0 0 6px rgba(255,255,255,.25); }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--ink); }
.actions { display: flex; gap: 10px; }
@media (max-width: 760px) { .links { display: none; } .actions { margin-inline-start: auto; } .actions .ghost { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); filter: blur(10px); animation: float 14s ease-in-out infinite alternate; z-index: -1; }
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; } }

/* Animated chat on a phone */
.phone { justify-self: center; width: min(360px, 100%); padding: 16px; border-radius: 34px; background: var(--soft); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 460px; display: flex; flex-direction: column; gap: 10px; }
.phone-top { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 6px 8px 12px; border-bottom: 1px solid var(--line); }
.phone-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.bubble, .chips { opacity: 0; transform: translateY(8px) scale(.98); animation: pop .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d); }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; }
.bubble.in { background: var(--bg); border: 1px solid var(--line); border-end-start-radius: 4px; }
.bubble.out { align-self: flex-end; background: color-mix(in srgb, var(--brand) 18%, var(--bg)); border-end-end-radius: 4px; }
.bubble.bot { border: 1px dashed color-mix(in srgb, var(--brand) 55%, transparent); }
.chips { display: flex; gap: 8px; align-self: flex-end; }
.chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand); font-size: .85rem; font-weight: 600; }

/* Sections */
.section { padding: 88px 0; }
.section.top { padding-top: 64px; }
.section.alt { background: var(--soft); border-block: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; text-decoration: none; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.icon { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--brand) 14%, transparent); margin-bottom: 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: s; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.faq { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }
.banner { text-align: center; padding: 56px 24px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #1e1b4b)); box-shadow: var(--shadow); }
.banner h2 { margin-bottom: .3em; }
.banner p { opacity: .9; margin: 0 0 24px; }

/* Pricing */
.pricing-head { display: flex; justify-content: center; margin-bottom: 28px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.track { width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track .thumb { transform: translateX(20px); }
[dir="rtl"] .switch input:checked + .track .thumb { transform: translateX(-20px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); transform: translateY(-6px); }
.plan .tag { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 16px; letter-spacing: -.02em; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price.yearly, [data-interval="yearly"] .price.monthly { display: none; }
[data-interval="yearly"] .price.yearly { display: block; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 800; }

/* Blog & pages */
.post img { border-radius: 12px; margin-bottom: 14px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.prose { font-size: 1.07rem; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
.prose img.cover { border-radius: 16px; margin: 16px 0 28px; }
.prose a { color: var(--brand); }
.pager { margin-top: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.lang select { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 6px 10px; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.plan.featured.reveal.in { transform: translateY(-6px); }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(4%, 6%, 0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before { animation: none !important; transition: none !important; }
    .bubble, .chips, .reveal { opacity: 1; transform: none; }
}
