/* Kwathu marketing + legal site — shares the app's emerald/gold brand. */
:root {
  --emerald: #0F6E52;
  --emerald-dark: #0A4A38;
  --gold: #C9962B;
  --premium-gold: #B8860B;
  --terracotta: #A15843;
  --cream: #FBFDF9;
  --ink: #10201B;
  --muted: #55655d;
  --line: #e2e9e3;
  --surface: #ffffff;
  --surface-soft: #f1f5ef;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px -25px rgba(10, 74, 56, 0.45);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 253, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--emerald); text-decoration: none; }
.nav-cta { background: var(--emerald); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--emerald-dark); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(201, 150, 43, 0.18), transparent 60%),
    linear-gradient(160deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 84px 0 96px; }
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: .3px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.5px; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,0.9); margin: 0 0 32px; max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--emerald-dark); }
.hero-actions .btn-primary:hover { background: var(--cream); color: var(--emerald-dark); }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-actions .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: rgba(255,255,255,0.75); }

/* Phone mockup */
.mock { justify-self: center; }
.phone {
  width: 268px; background: #0c1512; border-radius: 40px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08);
}
.phone-screen { background: var(--cream); border-radius: 30px; overflow: hidden; color: var(--ink); }
.ps-head { background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); color: #fff; padding: 20px 18px 22px; }
.ps-head small { opacity: .8; font-size: .72rem; }
.ps-head div.h { font-size: 1.1rem; font-weight: 800; margin-top: 2px; }
.ps-card { margin: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.ps-photo { height: 96px; background: linear-gradient(135deg, #cfe6db, #a9d3c1); position: relative; }
.ps-badge { position: absolute; top: 8px; left: 8px; background: var(--verified, #2E7D32); color: #fff; font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ps-body { padding: 12px 14px; }
.ps-body .t { font-weight: 700; font-size: .9rem; }
.ps-body .loc { color: var(--muted); font-size: .74rem; }
.ps-body .price { color: var(--emerald); font-weight: 800; margin-top: 6px; }
.ps-alert { margin: 0 14px 16px; background: #fff7e6; border: 1px solid #f0dca8; border-radius: 12px; padding: 10px 12px; font-size: .74rem; color: #7a5a12; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 72px; }
  .hero p.lead { max-width: none; }
  .mock { order: -1; }
}

/* ── Sections ────────────────────────────────────── */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--gold); font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; font-size: 0.78rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 10px 0 12px; letter-spacing: -0.4px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 0.96rem; }
.trust-item svg { color: var(--emerald); flex: none; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-soft); color: var(--emerald); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { width: 38px; height: 38px; border-radius: 10px; background: var(--emerald); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Premium band */
.premium { background: linear-gradient(160deg, #14231d, #0b1712); color: #fff; }
.premium .section-head h2, .premium .section-head p { color: #fff; }
.premium .premium-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .premium .premium-inner { grid-template-columns: 1fr; } }
.premium ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.premium li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,0.9); }
.premium li svg { color: var(--gold); flex: none; margin-top: 3px; }
.premium .pill { display: inline-block; background: rgba(201,150,43,0.16); border: 1px solid rgba(201,150,43,0.4); color: var(--gold); font-weight: 800; letter-spacing: .5px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; margin-bottom: 18px; }

/* CTA */
.cta { text-align: center; background: var(--surface); }
.cta-box {
  background: linear-gradient(160deg, var(--emerald), var(--emerald-dark)); color: #fff;
  border-radius: 28px; padding: 60px 32px; box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0 0 12px; }
.cta-box p { color: rgba(255,255,255,0.88); margin: 0 0 28px; font-size: 1.1rem; }
.cta-box .btn-primary { background: #fff; color: var(--emerald-dark); }
.cta-box .btn-primary:hover { background: var(--cream); }

/* ── Footer ──────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer p { margin: 0; font-size: 0.92rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,0.72); font-size: 0.94rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; }

/* ── Legal / document pages ──────────────────────── */
.doc-hero { background: linear-gradient(160deg, var(--emerald), var(--emerald-dark)); color: #fff; padding: 56px 0 44px; }
.doc-hero h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc-hero p { margin: 0; color: rgba(255,255,255,0.85); }
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 44px; }
.doc .toc h2 { margin: 0 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .doc .toc ol { columns: 1; } }
.doc .toc a { color: var(--ink); font-weight: 600; }
.doc h2.sec { font-size: 1.45rem; margin: 48px 0 12px; padding-top: 12px; scroll-margin-top: 84px; }
.doc h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.doc p, .doc li { color: #2a3630; font-size: 1.01rem; }
.doc ul, .doc ol.body { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .callout { background: var(--surface-soft); border-left: 4px solid var(--emerald); border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--surface-soft); font-weight: 700; }
.doc .updated { display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; margin-top: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: rgba(255,255,255,0.85); font-weight: 600; }
.back-link:hover { color: #fff; text-decoration: none; }
