/* ================================================================
   Public marketing / registration site ("Register Your Business").
   Own design system, deliberately separate from style.css (mobile POS
   app) and admin.css (back-office) - this is the customer-facing brand.
   Palette: ink / white / ONE indigo accent - kept deliberately narrow so
   the product itself (shown live in the hero device mockup) is what
   draws the eye, not a wall of colored chips. Poppins for UI text,
   Segoe Print (Kalam fallback) as a handwritten accent on headings.
   ================================================================ */

:root {
    --ink: #0b0d12;
    --ink-soft: #40434c;
    --muted: #6b6e76;
    --bg: #ffffff;
    --surface: #f6f7f9;
    --surface-2: #eef0f3;
    --card: #ffffff;
    --line: #e5e7eb;
    --accent: #4338ca;
    --accent-dark: #362d9e;
    --accent-soft: #eeecfb;
    --good: #0f7a4e;
    --good-soft: #e9f7f0;
    --shadow: 0 1px 3px rgba(10,10,12,0.06), 0 1px 2px rgba(10,10,12,0.04);
    --shadow-lift: 0 20px 40px -12px rgba(10,10,12,0.16);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f4f4f6;
        --ink-soft: #d1d2d8;
        --muted: #96979f;
        --bg: #0a0a0d;
        --surface: #101116;
        --surface-2: #17181e;
        --card: #131318;
        --line: #232329;
        --accent: #8b85f0;
        --accent-dark: #a9a4f5;
        --accent-soft: rgba(139,133,240,0.14);
        --good: #4ade9a;
        --good-soft: rgba(74,222,154,0.12);
        --shadow: 0 1px 3px rgba(0,0,0,0.5);
        --shadow-lift: 0 20px 44px -14px rgba(0,0,0,0.65);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site-body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.site-body a { color: inherit; text-decoration: none; }
.site-body img { max-width: 100%; display: block; }
.site-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.hfont { font-family: "Segoe Print", 'Kalam', cursive; }

/* ---------- Nav ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.site-brand-mark {
    width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
    color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.site-nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang-switch a.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn-site {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
    border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    font-family: inherit; white-space: nowrap;
}
.btn-site:active { transform: scale(0.98); }
/* Chained .btn-site.btn-site-* (specificity 0,2,0) so these always beat the
   generic `.site-body a { color: inherit; }` link reset (0,1,1) - a single-class
   `.btn-site-dark { color: ... }` used to lose that fight, rendering dark-on-dark
   invisible text on any <a class="btn-site btn-site-dark">. */
.btn-site.btn-site-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-site.btn-site-primary:hover { background: var(--accent-dark); }
.btn-site.btn-site-dark { background: var(--ink); color: var(--bg); }
.btn-site.btn-site-dark:hover { opacity: .85; }
.btn-site.btn-site-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-site.btn-site-outline:hover { border-color: var(--ink); }
.btn-site-block { width: 100%; }
.btn-site-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-site:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 60px 0 36px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-dark); font-size: 12.5px; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: 43px; line-height: 1.12; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-proof { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.hero-proof .dots { display: flex; }
.hero-proof .dots span {
    width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--bg);
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; margin-left: -8px; color: var(--ink-soft); font-weight: 700;
}
.hero-proof .dots span:first-child { margin-left: 0; }

/* ---------- Device showcase (laptop + phone, live animated) ---------- */
.device-stage { position: relative; height: 400px; }
.device { position: absolute; }

.laptop { width: 100%; max-width: 420px; top: 6px; left: 0; }
.laptop-screen {
    background: var(--ink); border-radius: 14px 14px 4px 4px; padding: 10px 10px 0;
    box-shadow: var(--shadow-lift);
}
.laptop-inner { background: var(--card); border-radius: 8px 8px 0 0; overflow: hidden; height: 236px; display: flex; }
.laptop-side { width: 34%; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.laptop-side .ls-brand { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.laptop-side .ls-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); }
.laptop-side .ls-item { font-size: 9.5px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 6px; }
.laptop-side .ls-item.on { background: var(--accent-soft); color: var(--accent-dark); }
.laptop-main { flex: 1; padding: 14px 16px; min-width: 0; }
.laptop-main .lm-title { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.laptop-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.laptop-stat { background: var(--surface); border-radius: 8px; padding: 8px 9px; }
.laptop-stat .lbl { font-size: 8px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.laptop-stat .val { font-size: 14px; font-weight: 800; margin-top: 3px; color: var(--ink); font-variant-numeric: tabular-nums; }
.laptop-base { height: 10px; background: linear-gradient(180deg, var(--ink-soft), var(--ink)); border-radius: 0 0 8px 8px; margin: 0 -6px; position: relative; }
.laptop-base::after { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 60px; height: 4px; background: var(--surface-2); border-radius: 0 0 6px 6px; }

.phone { width: 132px; right: 2%; bottom: -8px; z-index: 3; }
.phone-frame { background: var(--ink); border-radius: 20px; padding: 7px; box-shadow: var(--shadow-lift); }
.phone-notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 30%; height: 10px; background: var(--ink); border-radius: 0 0 8px 8px; z-index: 2; }
.phone-inner { background: var(--card); border-radius: 14px; overflow: hidden; height: 234px; padding: 16px 10px 10px; }
.phone-head { font-size: 9px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.phone-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 7px; border-radius: 7px; background: var(--surface); margin-bottom: 6px; font-size: 8.5px; font-weight: 700; color: var(--ink-soft); position: relative; }
.phone-row .pr-tap {
    position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent); transform: translateY(-50%) scale(0); opacity: 0;
}
.phone-row.tapped { background: var(--accent-soft); color: var(--accent-dark); }
.phone-row.tapped .pr-tap { animation: tapPulse .5s ease-out; }
@keyframes tapPulse { 0% { transform: translateY(-50%) scale(0); opacity: .9; } 100% { transform: translateY(-50%) scale(1.8); opacity: 0; } }
.phone-cart { margin-top: 10px; background: var(--ink); color: #fff; border-radius: 9px; padding: 9px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 700; }
.phone-cart .pc-val { font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
    .phone-row .pr-tap { display: none; }
}

/* ---------- Generic sections ---------- */
.site-section { padding: 76px 0; }
.site-section.tight { padding: 48px 0; }
.site-section.alt { background: var(--surface); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-kicker { color: var(--accent); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.section-head h2 { font-size: 31px; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Before / After (problem -> solution, one compact section) ---------- */
.shift-list { display: flex; flex-direction: column; gap: 2px; max-width: 820px; margin: 0 auto; }
.shift-row {
    display: grid; grid-template-columns: 1fr 32px 1fr; align-items: center; gap: 18px;
    padding: 18px 6px; border-bottom: 1px solid var(--line);
}
.shift-row:first-child { border-top: 1px solid var(--line); }
.shift-before { color: var(--muted); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.shift-before .ico { flex-shrink: 0; opacity: .55; }
.shift-arrow { text-align: center; color: var(--accent); font-size: 16px; font-weight: 700; }
.shift-after { color: var(--ink); font-weight: 600; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.shift-after .ico { flex-shrink: 0; color: var(--good); }
@media (max-width: 700px) {
    .shift-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 4px; }
    .shift-arrow { display: none; }
}

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.benefit-card { background: var(--card); padding: 26px 24px; }
.benefit-icon { font-size: 22px; margin-bottom: 14px; display: block; }
.benefit-card h3 { font-size: 15.5px; margin: 0 0 6px; font-weight: 700; }
.benefit-card p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Online vs Offline ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-card {
    background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 30px;
}
.compare-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.compare-card .badge-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; margin-bottom: 16px; background: var(--surface-2); color: var(--ink-soft); }
.compare-card.featured .badge-tag { background: var(--accent-soft); color: var(--accent-dark); }
.compare-card h3 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.compare-card .compare-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.compare-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.compare-list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.compare-list li .tick { color: var(--accent); font-weight: 800; flex-shrink: 0; }
.compare-list li.note { color: var(--muted); font-size: 12.5px; padding-top: 8px; border-top: 1px dashed var(--line); }
.compare-list li.note .tick { color: var(--muted); font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 980px; margin: 0 auto; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ico { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.trust-item h4 { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; }
.trust-item p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- How it works ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline::before {
    content: ''; position: absolute; top: 22px; left: 10%; right: 10%; height: 2px; background: var(--line);
}
.timeline-step { position: relative; text-align: center; }
.timeline-num {
    width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; position: relative; z-index: 1; font-size: 15px;
}
.timeline-step h4 { font-size: 14.5px; margin: 0 0 6px; font-weight: 700; }
.timeline-step p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Wizard ---------- */
.wizard-shell { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lift); overflow: hidden; }
.wizard-body { padding: 8px 32px 32px; }
.wizard-step h3 { font-size: 20px; margin: 4px 0 4px; font-weight: 700; }
.wizard-step .step-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink-soft); }
.form-field .opt { font-weight: 500; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface);
    color: var(--ink); font-size: 14px; font-family: inherit; transition: border-color .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 80px; }
.form-error-msg { color: #c0294a; font-size: 12px; margin-top: 6px; display: none; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #c0294a; }
.form-field.has-error .form-error-msg { display: block; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.version-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.version-choice {
    border: 2px solid var(--line); border-radius: 16px; padding: 20px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.version-choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.version-choice .vc-icon { font-size: 22px; margin-bottom: 8px; }
.version-choice h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.version-choice p { margin: 0; font-size: 12.5px; color: var(--muted); }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.wizard-nav .spacer { flex: 1; }

.top-error-box { background: #fdeef1; color: #a3123a; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .top-error-box { background: rgba(251,113,133,0.12); color: #fb7185; } }

/* ---------- Success screen ---------- */
.success-screen { text-align: center; padding: 20px 8px 8px; }
.success-check {
    width: 68px; height: 68px; border-radius: 50%; background: var(--good); color: #fff; font-size: 30px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; animation: pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .success-check { animation: none; } }
.success-screen h3 { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.success-screen p { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.request-code-box {
    display: inline-block; margin: 18px 0; padding: 12px 22px; border-radius: 12px; background: var(--surface);
    border: 1.5px dashed var(--line); font-weight: 800; font-size: 17px; letter-spacing: .04em;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; text-align: center; color: var(--muted); font-size: 12.5px; }
.site-footer a { color: var(--ink-soft); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .device-stage { height: 300px; order: -1; }
    .hero h1 { font-size: 33px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-strip { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .timeline::before { display: none; }
    .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .site-section { padding: 52px 0; }
    .benefits-grid { grid-template-columns: 1fr; }
    .trust-strip { grid-template-columns: 1fr; }
    .form-field { margin-bottom: 14px; }
    .wizard-body { padding: 4px 18px 24px; }
    .section-head h2 { font-size: 25px; }
    .version-choice-row { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn-site { width: 100%; }
    .laptop { max-width: 300px; }
    .laptop-inner { height: 190px; }
    .phone { width: 108px; }
    .phone-inner { height: 190px; padding: 15px 8px 8px; }
    .phone-row { font-size: 7.8px; padding: 5px 6px; }
    .phone-cart { padding: 7px 8px; font-size: 8px; }
    .phone-cart .pc-val { font-size: 9.5px; }
}

/* ---------- Hero laptop: advice bubble (mirrors the real dashboard) ---------- */
.laptop-advice { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; padding: 8px 9px; margin-bottom: 10px; }
.la-head { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.la-avatar { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 8.5px; display: inline-flex; align-items: center; justify-content: center; }
.la-live { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-left: auto; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.la-bubble { background: var(--card); border-radius: 3px 9px 9px 9px; padding: 6px 8px; font-size: 9px; line-height: 1.45; color: var(--ink-soft); border-left: 2px solid #d97706; }
.la-bubble b { color: var(--ink); }

/* ---------- Sauti ya Biashara section ---------- */
.sauti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sauti-h2 { font-size: 34px; margin: 0 0 14px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.sauti-lead { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 0 0 22px; }
.sauti-points { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.sauti-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.sauti-points li span { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.sauti-note { font-size: 13px; color: var(--muted); margin: 0; }

.sauti-demo { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 18px; }
.sd-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sd-avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sd-avatar i { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card); }
.sd-title { font-weight: 800; font-size: 16px; }
.sd-sub { font-size: 12.5px; color: var(--muted); }
.sd-body { display: flex; flex-direction: column; gap: 10px; }
.sd-msg { display: flex; gap: 10px; align-items: flex-start; }
.sd-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.sd-bubble { flex: 1; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 4px 14px 14px 14px; padding: 10px 13px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.sd-bubble b { color: var(--ink); }
.sd-msg.tone-warn .sd-bubble { border-left-color: #d97706; }
.sd-msg.tone-bad .sd-bubble { border-left-color: #e11d48; }
.sd-msg.tone-good .sd-bubble { border-left-color: var(--good); }
/* Messages only hide once the script has taken over (.animated), so without JS all show. */
.sauti-demo.animated .sd-msg { display: none; }
.sauti-demo.animated .sd-msg.shown { display: flex; animation: sdIn .4s ease both; }
@keyframes sdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sd-typing { display: none; gap: 4px; align-items: center; padding: 10px 14px; margin-left: 42px; width: max-content; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.sd-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: sdDot 1s infinite ease-in-out; }
.sd-typing span:nth-child(2) { animation-delay: .15s; }
.sd-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sdDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-color-scheme: dark) { .sd-msg.tone-bad .sd-bubble { border-left-color: #fb7185; } .la-bubble { border-left-color: #fbbf24; } .sd-msg.tone-warn .sd-bubble { border-left-color: #fbbf24; } }
@media (max-width: 900px) {
    .sauti-grid { grid-template-columns: 1fr; gap: 32px; }
    .sauti-h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .sd-typing span, .sauti-demo.animated .sd-msg.shown { animation: none; } }
/* Features grid: highlight the core feature; with 9 cards, the lone last card spans the
   row in the 2-column layout so no empty cell shows. */
.benefit-card:first-child { background: var(--accent-soft); }
.benefit-card:first-child h3 { color: var(--accent-dark); }
@media (max-width: 900px) and (min-width: 621px) { .benefits-grid .benefit-card:last-child:nth-child(odd) { grid-column: span 2; } }
/* Small screens: the hero laptop is too narrow for figures + advice - keep the advice. */
@media (max-width: 620px) {
    .laptop-stat-row { display: none; }
    .laptop-advice { margin-bottom: 0; }
    .la-bubble { font-size: 8.5px; padding-right: 30%; }
}

button, input, select, textarea { font-family: inherit; }

/* Handwritten accent: Segoe Print (Windows) / Kalam elsewhere, only on headings
   and the brand - body text and forms stay in Poppins. */
.site-body h1, .site-body h2, .site-brand, .sd-title, .hero-eyebrow { font-family: "Segoe Print", 'Kalam', cursive; }
