:root {
  --bg: #F7F6F2;
  --bg-alt: #EEEDE6;
  --ink: #0E1A14;
  --ink-2: #3D4A43;
  --muted: #6B776F;
  --line: #DAD8CF;
  --card: #FFFFFF;
  --green: #12A150;
  --green-ink: #0B6E37;
  --green-soft: #DDF3E5;
  --wa: #25D366;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14,26,20,.06), 0 8px 24px rgba(14,26,20,.06);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); margin-bottom: .8em; }
.hl { color: var(--green); }
.fine { font-size: .85rem; color: var(--muted); }
.link { color: var(--green-ink); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1.5px solid transparent; border-radius: 999px;
  padding: .8em 1.3em; font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1d2e25; box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #06341a; }
.btn-wa:hover { background: #1fc05a; }
.btn-sm { padding: .6em 1em; font-size: .85rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247,246,242,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font: 800 1.35rem var(--font-head); text-decoration: none; letter-spacing: -.03em; display: inline-flex; align-items: center; }
.logo-mark { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin-right: 2px; border-radius: 8px; background: var(--ink); color: var(--wa); font-size: .9em; }
.logo.small { font-size: 1rem; }
.logo img { display: block; height: 40px; width: auto; }
.logo-img.small { display: inline-block; height: 28px; width: auto; vertical-align: middle; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-inner .btn { margin-left: auto; } }

/* hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .92rem; }
.trust strong { color: var(--ink); }
.hero-card { display: grid; place-items: center; }
.phone { width: 270px; border-radius: 36px; background: var(--ink); padding: 14px; box-shadow: 0 30px 60px rgba(14,26,20,.25); position: relative; }
.phone-top { width: 90px; height: 6px; border-radius: 6px; background: #2b3a32; margin: 4px auto 14px; }
.stk { background: #fff; border-radius: 22px; padding: 22px 18px 16px; font-size: .9rem; min-height: 300px; }
.stk-title { font-weight: 800; color: var(--green); letter-spacing: .05em; }
.stk-sub { color: var(--muted); margin: 18px 0 6px; font-size: .8rem; }
.stk-pin { border-bottom: 2px solid var(--green); padding: 6px 0; letter-spacing: .5em; font-size: 1.2rem; }
.stk-btns { display: flex; justify-content: flex-end; gap: 22px; margin-top: 28px; font-weight: 700; color: var(--muted); }
.stk-btns .ok { color: var(--green); }
.toast { position: absolute; left: -36px; right: -36px; bottom: -22px; background: var(--green); color: #fff; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow); animation: pop 4s ease-in-out infinite; }
@keyframes pop { 0%, 30% { opacity: 0; transform: translateY(10px); } 40%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { margin-top: 12px; } .toast { left: -10px; right: -10px; } }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--ink-2); max-width: 40em; }
@media (max-width: 600px) { .section { padding: 56px 0; } }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 32px 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.card .badge { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--green-soft); color: var(--green-ink); border-radius: 999px; padding: .3em .7em; margin-bottom: 10px; }
.card h3 { margin-bottom: .35em; }
.card .desc { color: var(--ink-2); font-size: .93rem; flex: 1; }
.price { font: 700 1.5rem var(--font-head); margin: 4px 0 2px; }
.price small { font: 500 .8rem var(--font); color: var(--muted); }
.monthly { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.card .btn { align-self: flex-start; }

/* work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-img { display: block; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--line); }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.work:hover .work-img img { transform: scale(1.03); }
.work-body { padding: 20px 22px 24px; }
.tag { font-size: .78rem; font-weight: 600; color: var(--green-ink); margin-bottom: .4em; }
.mini-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 20px; }
.mini-work a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; }
.mini-work a:hover { border-color: var(--ink); }
.mini-work strong { display: block; font-size: .95rem; }
.mini-work span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* demos */
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.demo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.demo p { color: var(--ink-2); font-size: .93rem; }
.stk-form label { font-size: .82rem; font-weight: 600; display: block; margin-bottom: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row input { flex: 1 1 160px; }
input { font: inherit; border: 1.5px solid var(--line); border-radius: 999px; padding: .7em 1em; background: #fff; color: var(--ink); min-width: 0; flex: 1; }
input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.hp { position: absolute; left: -9999px; }
.status { font-size: .88rem; margin: 10px 0 0; min-height: 1.4em; }
.status.ok { color: var(--green-ink); } .status.err { color: #B42318; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips button { font: 500 .8rem var(--font); border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: .45em .8em; cursor: pointer; color: var(--ink-2); }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 960px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }

/* steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--wa); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--ink-2); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: center; }
.avatar { width: 160px; height: 160px; border-radius: 28px; background: var(--ink); color: var(--wa); display: grid; place-items: center; font: 800 3rem var(--font-head); }
.about img.avatar { object-fit: cover; }
.about p { color: var(--ink-2); max-width: 42em; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .avatar { width: 110px; height: 110px; font-size: 2.2rem; } }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--green-ink); }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-2); padding-bottom: 6px; }

/* cta + footer */
.cta { background: var(--ink); color: #fff; }
.cta p { color: #B9C7BF; }
.cta .btn-primary { background: var(--wa); color: #06341a; }
.footer { padding: 32px 0 96px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.footer-inner p { margin: .3em 0; }
.footer a { text-decoration: none; } .footer a:hover { text-decoration: underline; }

/* floating WA */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); }
.wa-float:hover { transform: scale(1.05); }

/* chat launcher */
.bot-launch { position: fixed; right: 18px; bottom: 88px; z-index: 35; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bot-launch.is-open { display: none; }
.bot-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(14,26,20,.35); transition: transform .2s; }
.bot-btn:hover { transform: scale(1.05); }
.bot-teaser { position: relative; width: min(270px, calc(100vw - 110px)); text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; padding: 14px 16px; cursor: pointer; box-shadow: 0 16px 40px rgba(14,26,20,.18);
  transform-origin: bottom right; opacity: 0; transform: scale(.4) translateY(30px); pointer-events: none; transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .25s; }
.bot-teaser strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.bot-teaser span:last-child { font-size: .84rem; color: var(--ink-2); }
.bot-teaser-dot { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--wa); animation: pulse 1.6s infinite; }
.bot-launch.teasing .bot-teaser { opacity: 1; transform: none; pointer-events: auto; }
.bot-launch.closing .bot-teaser { opacity: 0; transform: scale(.3) translate(40px, 60px); transition: transform .28s ease-in, opacity .28s; }
.bot-launch.closing .bot-btn { transform: scale(.85); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } }
.chat.chat-in { transform-origin: bottom right; animation: chatIn .35s cubic-bezier(.2,1.3,.4,1); }
@keyframes chatIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bot-teaser, .chat.chat-in, .bot-teaser-dot { animation: none; transition: none; } }

/* chat widget */
.chat { position: fixed; right: 18px; bottom: 88px; z-index: 40; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(14,26,20,.25); display: flex; flex-direction: column; overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--ink); color: #fff; }
.chat-head span { display: block; font-size: .78rem; color: #B9C7BF; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; white-space: pre-wrap; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }

/* M-Pesa logo */
.mpesa-logo { display: block; height: 22px; width: auto; }
.mpesa-logo.inline { display: inline-block; vertical-align: -0.2em; height: 1.1em; margin-right: 4px; }

/* Cimatic Gifts */
.nav-gifts { font-weight: 600; color: #7C3AED !important; }
.gifts-hero { padding: 72px 0 40px; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.gift .work-img { aspect-ratio: 4/5; }
.gift-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.gift-prices .card { display: flex; flex-direction: column; }
.gift-prices .price { font: 800 1.8rem var(--font-head); margin: 0 0 .4em; }
@media (max-width: 760px) { .gift-prices { grid-template-columns: 1fr; } }
.gifts-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.gifts-teaser .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gifts-teaser .thumbs img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: top; box-shadow: var(--shadow); }
@media (max-width: 760px) { .gifts-teaser { grid-template-columns: 1fr; } }

/* What to expect */
details.expect summary span { flex: 1; }
details.expect summary small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.expect-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding-bottom: 8px; }
.expect-body h4 { font: 700 .82rem var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--green-ink); margin: 0 0 .6em; }
.expect-body ol, .expect-body ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.expect-body li { margin-bottom: .35em; }
.expect-note { background: var(--green-soft); border-radius: 10px; padding: 12px 14px !important; font-size: .92rem; }
.expect-note img { display: inline-block; vertical-align: -3px; margin-right: 4px; }
@media (max-width: 700px) { .expect-body { grid-template-columns: 1fr; } }
.expect-link { display: inline-block; margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--green-ink); text-decoration: none; }
.expect-link:hover { text-decoration: underline; }
details.expect { scroll-margin-top: 84px; }
.card-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.card-links .expect-link { margin-top: 0; }
.demo-link { font-size: .88rem; font-weight: 700; color: #fff; background: var(--green); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.demo-link:hover { background: var(--green-ink); }
