/* ============================================================
   Soffit Invoice — shared stylesheet
   Design language ported from the desktop-app UI spec:
   warm neutral surfaces, hairline borders, no shadows, Urbanist type,
   red/amber/green/blue status system, navy brand accent.
   ============================================================ */

:root{
  --bg:            #F0EFEC;
  --surface:       #FFFFFF;
  --surface-soft:  #F7F7F5;
  --surface-mid:   #FAFAF9;
  --border:        #E8E8E6;
  --border-soft:   #F0EFEC;
  --border-rule:   #E0E0DE;

  --ink:           #1A1A1A;
  --mid:           #888888;
  --muted:         #AAAAAA;
  --faint:         #CCCCCC;

  --red:           #E53935;
  --red-text:      #C0392B;
  --red-bg:        #FFF0F0;
  --red-border:    #FCCACA;
  --red-surface:   #FFF5F5;

  --amber:         #F0A500;
  --amber-dark:    #D4960D;
  --amber-text:    #B7860B;
  --amber-bg:      #FFFBF0;
  --amber-border:  #FDE9B0;

  --green:         #43A047;
  --green-text:    #2D7A2D;
  --green-bg:      #EDF7EC;
  --green-border:  #C5E8C5;

  --blue:          #3B82D4;
  --blue-text:     #2A60B5;
  --blue-bg:       #EEF4FF;
  --blue-border:   #C5D9F5;

  --navy:          #1A3557;

  --r-sm: 7px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Urbanist', sans-serif;
  -webkit-font-smoothing:antialiased;
  font-size:15.5px;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }
::selection{ background:var(--ink); color:#fff; }

h1,h2,h3,h4{ margin:0; letter-spacing:-0.02em; font-weight:600; }
p{ margin:0; }

/* ---------- Nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:100;
  background:rgba(240,239,236,0.86);
  backdrop-filter:blur(10px) saturate(1.3);
  border-bottom:0.5px solid var(--border);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 28px; max-width:1180px; margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:9px; }
.brand-mark{
  width:26px; height:26px; border-radius:6px; background:var(--ink);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.brand-mark svg{ width:15px; height:15px; }
.brand-name{ font-size:14.5px; font-weight:700; letter-spacing:-0.2px; }

.nav-links{ display:flex; gap:28px; align-items:center; }
.nav-links a{ font-size:13.5px; color:var(--mid); font-weight:500; }
.nav-links a:hover{ color:var(--ink); }
.nav-actions{ display:flex; align-items:center; gap:10px; }

.btn{
  font-family:inherit; font-size:13.5px; font-weight:600; cursor:pointer;
  border-radius:var(--r-pill); padding:9px 18px; border:0.5px solid transparent;
  display:inline-flex; align-items:center; gap:6px;
}
.btn-dark{ background:var(--ink); color:#fff; }
.btn-ghost{ background:var(--surface); color:var(--ink); border-color:var(--border); }
.btn-ghost:hover{ border-color:var(--faint); }
.btn-dark:hover{ background:#000; }
.btn-sm{ padding:7px 14px; font-size:12.5px; }

@media (max-width:860px){ .nav-links{ display:none; } }

/* ---------- Hero ---------- */
.hero{ padding:64px 0 40px; }
.hero-inner{
  display:grid; grid-template-columns: 1fr; gap:16px;
  text-align:center; max-width:760px; margin:0 auto 46px;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:7px; margin:0 auto 8px;
  background:var(--surface); border:0.5px solid var(--border);
  padding:6px 14px; border-radius:var(--r-pill); font-size:12px; font-weight:600; color:var(--mid);
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--green); }
.hero h1{
  font-size:clamp(32px,4.6vw,52px); line-height:1.08; letter-spacing:-0.03em; font-weight:700;
}
.hero h1 span{ color:var(--navy); }
.hero p.lead{
  font-size:16.5px; color:var(--mid); line-height:1.65; max-width:560px; margin:0 auto;
}
.hero-ctas{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:6px; }

/* purpose statement strip */
.purpose{
  max-width:760px; margin:0 auto 8px; text-align:center;
  font-size:14px; color:var(--mid); line-height:1.6;
}
.purpose b{ color:var(--ink); font-weight:600; }

/* ---------- App mockup (signature element) ---------- */
.mockup-stage{ max-width:1080px; margin:0 auto; }
.mockup{
  background:var(--surface); border:0.5px solid var(--border); border-radius:var(--r-md);
  overflow:hidden; display:grid; grid-template-columns:190px 1fr; min-height:520px;
}
.m-sidebar{
  background:#fff; border-right:0.5px solid var(--border);
  display:flex; flex-direction:column; padding:16px 0 12px;
}
.m-logo{ display:flex; align-items:center; gap:8px; padding:0 16px 16px; border-bottom:0.5px solid var(--border-soft); margin-bottom:10px; }
.m-logo .brand-mark{ width:20px; height:20px; }
.m-logo span{ font-size:12px; font-weight:600; }
.m-title{ padding:0 16px 12px; font-size:17px; font-weight:700; line-height:1.15; letter-spacing:-0.3px; }
.m-search{
  margin:0 10px 12px; background:var(--surface-soft); border-radius:8px; padding:7px 9px;
  font-size:11px; color:var(--muted); display:flex; align-items:center; gap:6px;
}
.m-nav{ padding:0 8px; display:flex; flex-direction:column; gap:2px; flex:1; }
.m-nav-item{
  display:flex; align-items:center; justify-content:space-between; padding:8px 7px;
  border-radius:7px; font-size:12px; color:var(--mid);
}
.m-nav-item .left{ display:flex; align-items:center; gap:7px; }
.m-nav-item.active{ background:var(--border-soft); color:var(--ink); font-weight:600; }
.m-nav-item svg{ width:14px; height:14px; flex-shrink:0; }
.m-badge{ font-size:9px; font-weight:700; padding:1px 6px; border-radius:var(--r-pill); color:#fff; }

.m-main{ display:flex; flex-direction:column; min-width:0; }
.m-topbar{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px; }
.m-tabs{ display:flex; gap:4px; }
.m-tab{ font-size:11px; padding:5px 12px; border-radius:var(--r-pill); color:var(--muted); }
.m-tab.active{ background:#fff; border:0.5px solid var(--border-rule); color:var(--ink); font-weight:600; }
.m-topbar-right{ display:flex; align-items:center; gap:7px; }
.m-icon-btn{ width:24px; height:24px; border-radius:7px; background:#fff; border:0.5px solid var(--border); display:flex; align-items:center; justify-content:center; }
.m-icon-btn svg{ width:12px; height:12px; }

.m-body{ flex:1; display:grid; grid-template-columns:220px 1fr; overflow:hidden; }
.m-drawer{ padding:0 10px 12px; display:flex; flex-direction:column; gap:8px; }
.m-ai-card{ background:var(--ink); border-radius:10px; padding:12px; }
.m-ai-label{ font-size:9px; font-weight:700; color:#888; letter-spacing:0.4px; text-transform:uppercase; margin-bottom:6px; }
.m-ai-body{ font-size:10.5px; color:#a8a6a0; line-height:1.5; }
.m-ai-body b{ color:#f5f4f0; font-weight:600; }
.m-bars{ display:flex; align-items:flex-end; gap:2px; height:20px; margin-top:9px; }
.m-bars span{ flex:1; border-radius:2px; background:#3a3a3a; }
.m-bars span:last-child{ background:var(--red); }

.m-file{ background:#fff; border:0.5px solid var(--border-soft); border-radius:9px; padding:9px 10px; display:flex; align-items:center; justify-content:space-between; }
.m-file.flag{ border-color:var(--red-border); background:var(--red-surface); }
.m-file .fleft{ display:flex; align-items:center; gap:8px; }
.m-thumb{ width:30px; height:26px; border-radius:6px; display:flex; align-items:center; justify-content:center; border:0.5px solid var(--border-soft); flex-shrink:0; }
.m-thumb svg{ width:13px; height:13px; }
.m-fname{ font-size:11px; font-weight:600; }
.m-fcount{ font-size:9.5px; color:var(--muted); }

.m-content{ background:#fff; border-left:0.5px solid var(--border-rule); display:flex; flex-direction:column; overflow:hidden; }
.m-metrics{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border-soft); border-bottom:0.5px solid var(--border-soft); }
.m-metric{ background:#fff; padding:11px 13px; }
.m-metric-label{ font-size:8.5px; font-weight:700; color:var(--muted); letter-spacing:0.4px; text-transform:uppercase; margin-bottom:4px; }
.m-metric-value{ font-size:18px; font-weight:700; letter-spacing:-0.5px; }
.m-metric-row{ display:flex; align-items:center; gap:5px; margin-top:4px; }
.m-pill{ font-size:8.5px; padding:1px 6px; border-radius:var(--r-pill); font-weight:700; }

.m-alerts{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:10px 12px; border-bottom:0.5px solid var(--border-soft); }
.m-alert{ border-radius:8px; padding:8px 9px; border:0.5px solid transparent; }
.m-alert-label{ font-size:8px; font-weight:700; letter-spacing:0.4px; text-transform:uppercase; margin-bottom:2px; }
.m-alert-count{ font-size:16px; font-weight:700; letter-spacing:-0.4px; }
.m-alert-desc{ font-size:8.5px; margin-top:1px; }

.m-table{ flex:1; overflow:hidden; }
.m-table table{ width:100%; border-collapse:collapse; font-size:10.5px; table-layout:fixed; }
.m-table th{ font-size:8px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.4px; padding:6px 10px; text-align:left; border-bottom:0.5px solid var(--border-soft); background:#fdfcfb; }
.m-table td{ padding:7px 10px; border-bottom:0.5px solid #f7f6f3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.m-table tr.flag td{ background:var(--red-surface); }
.vendor-dot{ width:6px; height:6px; border-radius:50%; display:inline-block; margin-right:5px; }
.m-status{ display:inline-flex; align-items:center; gap:3px; font-size:9px; font-weight:700; padding:2px 8px; border-radius:var(--r-pill); }
.mono{ font-family:'SFMono-Regular',Consolas,monospace; color:var(--muted); }

@media (max-width:900px){
  .m-sidebar, .m-drawer{ display:none; }
  .mockup{ grid-template-columns:1fr; }
  .m-body{ grid-template-columns:1fr; }
}

/* ---------- Sections ---------- */
section{ padding:76px 0; }
.section-head{ max-width:620px; margin-bottom:40px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.kicker{ font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--navy); font-weight:700; margin-bottom:10px; }
h2{ font-size:clamp(24px,3vw,34px); line-height:1.15; font-weight:700; margin:0 0 12px; }
.section-head p{ font-size:15px; color:var(--mid); line-height:1.6; }

.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.feature-card{ background:var(--surface); border:0.5px solid var(--border); border-radius:var(--r-md); padding:22px; }
.feature-icon{ width:34px; height:34px; border-radius:9px; background:var(--surface-soft); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.feature-icon svg{ width:17px; height:17px; stroke:var(--ink); }
.feature-card h3{ font-size:14.5px; font-weight:700; margin:0 0 6px; }
.feature-card p{ font-size:13px; color:var(--mid); line-height:1.55; }
@media (max-width:900px){ .feature-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .feature-grid{ grid-template-columns:1fr; } }

/* fraud strip */
.fraud-strip{ background:var(--surface); border:0.5px solid var(--border); border-radius:var(--r-md); padding:36px; }
.fraud-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:26px; }
.fraud-card{ border-radius:10px; padding:16px 18px; border:0.5px solid transparent; }
.fraud-card .lbl{ font-size:10px; font-weight:700; letter-spacing:0.4px; text-transform:uppercase; margin-bottom:6px; }
.fraud-card .val{ font-size:26px; font-weight:700; letter-spacing:-0.5px; }
.fraud-card .desc{ font-size:12px; margin-top:4px; }

/* providers row */
.provider-row{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:22px; }
.provider-tile{ background:var(--surface); border:0.5px solid var(--border); border-radius:10px; padding:16px 10px; text-align:center; position:relative; }
.provider-tile.active{ border-color:var(--ink); }
.provider-tile .ico{ width:28px; height:28px; margin:0 auto 8px; border-radius:8px; background:var(--surface-soft); display:flex; align-items:center; justify-content:center; }
.provider-tile .lbl{ font-size:12px; font-weight:600; }
.provider-tile .local{ position:absolute; top:-8px; right:8px; background:var(--green-bg); color:var(--green-text); font-size:9px; font-weight:700; padding:2px 6px; border-radius:var(--r-pill); }
@media (max-width:860px){ .provider-row{ grid-template-columns:repeat(3,1fr); } }

/* flow */
.flow-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border:0.5px solid var(--border); border-radius:var(--r-md); overflow:hidden; }
.flow-step{ background:#fff; padding:24px 20px; }
.flow-num{ font-size:11px; font-weight:700; color:var(--navy); margin-bottom:12px; }
.flow-step h3{ font-size:14px; font-weight:700; margin:0 0 7px; }
.flow-step p{ font-size:12.5px; color:var(--mid); line-height:1.55; }
@media (max-width:900px){ .flow-steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .flow-steps{ grid-template-columns:1fr; } }

/* kenya */
.kenya{ background:var(--navy); color:#fff; border-radius:var(--r-md); padding:44px 40px; display:grid; grid-template-columns:1fr 1.3fr; gap:34px; align-items:center; }
.kenya .kicker{ color:#9db8dd; }
.kenya h2{ color:#fff; }
.kenya .section-head p{ color:rgba(255,255,255,0.68); }
.kenya-list{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.kenya-item{ border:0.5px solid rgba(255,255,255,0.18); border-radius:10px; padding:14px 16px; }
.kenya-item .tag{ font-size:10.5px; letter-spacing:0.05em; text-transform:uppercase; font-weight:700; margin-bottom:6px; }
.kenya-item p{ margin:0; font-size:12.5px; line-height:1.5; color:rgba(255,255,255,0.75); }
@media (max-width:860px){ .kenya{ grid-template-columns:1fr; padding:30px 22px; } .kenya-list{ grid-template-columns:1fr; } }

/* cta band */
.cta-band{ text-align:center; padding:86px 0 56px; }
.cta-band h2{ max-width:640px; margin:0 auto 24px; }

/* footer */
footer{ border-top:0.5px solid var(--border); padding:44px 0 34px; background:var(--surface); }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:28px; margin-bottom:32px; }
.footer-col h4{ font-size:11.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.4px; margin-bottom:12px; }
.footer-col a{ display:block; font-size:13px; color:var(--mid); margin-bottom:9px; }
.footer-col a:hover{ color:var(--ink); }
.footer-about p{ font-size:13px; color:var(--mid); line-height:1.6; max-width:280px; margin-top:10px; }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:22px; border-top:0.5px solid var(--border-soft); font-size:12px; color:var(--muted); }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* ---------- Legal pages ---------- */
.legal-hero{ padding:52px 0 20px; }
.legal-hero h1{ font-size:clamp(28px,4vw,40px); }
.legal-hero .updated{ font-size:13px; color:var(--muted); margin-top:10px; }
.legal-body{ padding:20px 0 70px; }
.legal-layout{ display:grid; grid-template-columns:230px 1fr; gap:40px; align-items:start; }
.legal-toc{ position:sticky; top:80px; background:var(--surface); border:0.5px solid var(--border); border-radius:var(--r-md); padding:16px; }
.legal-toc div{ font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.4px; margin-bottom:10px; }
.legal-toc a{ display:block; font-size:12.5px; color:var(--mid); padding:5px 0; }
.legal-toc a:hover{ color:var(--ink); }
.legal-content{ background:var(--surface); border:0.5px solid var(--border); border-radius:var(--r-md); padding:40px 44px; }
.legal-content h2{ font-size:19px; margin:34px 0 12px; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content h3{ font-size:15px; margin:20px 0 8px; }
.legal-content p{ font-size:14px; color:#3a3a3a; line-height:1.75; margin-bottom:14px; }
.legal-content ul{ margin:0 0 14px; padding-left:20px; }
.legal-content li{ font-size:14px; color:#3a3a3a; line-height:1.75; margin-bottom:6px; }
.legal-content a.inline{ color:var(--navy); text-decoration:underline; }
.legal-note{ background:var(--surface-soft); border:0.5px solid var(--border-soft); border-radius:10px; padding:14px 16px; font-size:13px; color:var(--mid); margin-bottom:20px; }
@media (max-width:900px){ .legal-layout{ grid-template-columns:1fr; } .legal-toc{ position:static; } .legal-content{ padding:26px 22px; } }
