/* ==================================================================
   ukweliPOS — the public site
   The same colours as the till: the Kenyan flag's black, red and green
   on a warm white. Headings in Space Grotesk, the face the till uses
   for money, so a figure on this page looks like a figure in the app.
   ================================================================== */
:root {
  --ink:        #101613;
  --ink-2:      #1A231E;
  --ink-soft:   #35403A;
  --paper:      #F6F4EE;
  --surface:    #FFFFFF;
  --line:       #E1E4DB;
  --muted:      #66736A;
  --green:      #046A38;
  --green-dark: #03502B;
  --green-lit:  #3FBF7F;
  --green-soft: #E4F0E9;
  --red:        #C8102E;
  --red-soft:   #FBE6EA;
  --amber:      #B8730F;
  --amber-soft: #FBF0DA;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Space Grotesk', 'Inter', ui-sans-serif, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-lit); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }

/* The flag's bands, as a hairline. */
.flag {
  height: 4px;
  background: linear-gradient(to right,
    #101613 0 32.5%, #fff 32.5% 34%, var(--red) 34% 66%, #fff 66% 67.5%, var(--green) 67.5% 100%);
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-line { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-line:hover { border-color: rgba(255,255,255,.6); }
.btn-line-dark { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line-dark:hover { border-color: var(--ink-soft); }
.btn-xl { height: 54px; padding: 0 24px; border-radius: 15px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; padding: 8px 4px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: rgba(255,255,255,.82); }
.link-btn:hover { color: #fff; }

/* ------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(16,22,19,.94); backdrop-filter: blur(10px); color: #fff; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.wordmark { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.wordmark b { color: var(--green-lit); font-weight: 700; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.72); }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  color: #fff; padding: 72px 0 96px; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(4,106,56,.42), transparent 62%),
    radial-gradient(700px 460px at 4% 100%, rgba(200,16,46,.20), transparent 60%),
    var(--ink);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.ke {
  width: 20px; height: 13px; border-radius: 2px; display: block;
  background: linear-gradient(to bottom, #000 0 33.33%, #fff 33.33% 38%, var(--red) 38% 62%, #fff 62% 66.66%, var(--green) 66.66% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); font-weight: 700; letter-spacing: -.04em; line-height: .98; }
.mark { position: relative; white-space: nowrap; color: #fff; }
.mark::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .16em;
  background: var(--green-lit); border-radius: 99px; z-index: -1; transform: rotate(-1.2deg);
}
.hero h1 { position: relative; z-index: 0; }
.lede { font-size: 18.5px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 34em; margin-top: 26px; }
.truths { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.truths li {
  padding: 8px 14px; border-radius: 99px; font-size: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.truths b { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); }
.addr { font-family: var(--head); font-weight: 600; color: var(--green-lit); white-space: nowrap; }

/* The end-of-day card. */
.hero-card {
  background: var(--surface); color: var(--ink); border-radius: 24px; padding: 22px;
  box-shadow: 0 40px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(1.2deg);
}
.hc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.hc-kicker { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--green); }
.hc-head strong { font-family: var(--head); font-size: 17px; }
.hc-live { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--paper); color: var(--ink-soft); }
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hc-stat { padding: 14px; border-radius: 16px; background: var(--paper); }
.hc-stat span { display: block; font-size: 12.5px; color: var(--muted); }
.hc-stat b { display: block; font-family: var(--head); font-size: 23px; letter-spacing: -.02em; margin: 2px 0; }
.hc-stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.hc-stat.good { background: var(--green-soft); }
.hc-stat.good b { color: var(--green-dark); }
.hc-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.hc-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); }
.hc-list i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.hc-list i svg { width: 18px; height: 18px; }
.hc-list b { display: block; font-size: 14px; line-height: 1.35; }
.hc-list span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.hc-list .bad  { border-color: #F2C2CB; background: #FFF7F8; }
.hc-list .bad i  { background: var(--red-soft); color: var(--red); }
.hc-list .bad b  { color: var(--red); }
.hc-list .warn i { background: var(--amber-soft); color: var(--amber); }
.hc-list .ok i   { background: var(--green-soft); color: var(--green); }
.hc-foot { margin-top: 12px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section { padding: 96px 0; }
.section.tint { background: #ECEEE6; }
.section.dark { background: var(--ink); color: #fff; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.dark .kicker, .demo .kicker { color: var(--green-lit); }
.section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; max-width: 18em; }
.sub { font-size: 18px; color: var(--muted); max-width: 40em; margin-top: 18px; }
.dark .sub, .demo .sub { color: rgba(255,255,255,.72); }

/* The problem */
.pain { background: var(--surface); border-bottom: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.pain-grid article { padding: 26px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.pain-grid h3 { font-size: 21px; margin-bottom: 10px; }
.pain-grid p { color: var(--ink-soft); font-size: 15.5px; }
.pain-grid .fix {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed #CDD3C7; color: var(--green-dark); font-weight: 600; font-size: 15px;
}
.fix svg { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--green); }

/* Three truths */
.truth { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 44px 0; border-top: 1px solid var(--line); }
.truth:first-of-type { margin-top: 48px; }
.truth-n { font-family: var(--head); font-size: 64px; font-weight: 700; line-height: 1; color: #CBD2C5; letter-spacing: -.04em; }
.truth h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.truth .big { font-family: var(--head); font-size: clamp(23px, 2.6vw, 31px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 12px 0 14px; max-width: 24em; }
.truth-body > p:not(.big) { color: var(--ink-soft); max-width: 44em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; max-width: 44em; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 500; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23046A38' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ticks.light { grid-template-columns: 1fr; }
.ticks.light li { color: rgba(255,255,255,.9); }
.ticks.light li::before { background-color: rgba(63,191,127,.2); filter: brightness(1.9); }

/* Control */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.controls { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.controls li { display: flex; gap: 16px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.controls i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(63,191,127,.14); color: var(--green-lit); }
.controls b { display: block; font-family: var(--head); font-size: 17.5px; }
.controls span { display: block; color: rgba(255,255,255,.68); font-size: 15px; margin-top: 3px; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feat-grid article { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.feat-grid i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 18px; }
.feat-grid h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.feat-grid p { font-size: 15px; color: var(--ink-soft); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--head); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-soft); }
.steps .addr { color: var(--green); }

/* ------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan.pick { border: 2px solid var(--green); box-shadow: 0 24px 50px rgba(4,106,56,.16); }
.plan-flag { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 99px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.plan h3 { font-size: 24px; }
.plan-for { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 3em; }
.plan-price { font-family: var(--head); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -.04em; margin-top: 14px; }
.plan-price small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan-unit { color: var(--muted); font-size: 14px; margin-top: 6px; }
.plan-price small:last-child { margin-left: 2px; }
.plan-year { font-weight: 700; font-size: 15.5px; margin-top: 10px; }
.plan-extra { color: var(--muted); font-size: 14px; line-height: 1.75; margin-top: 10px; }
.plan-first { font-weight: 700; font-size: 15.5px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.plan .ticks { grid-template-columns: minmax(0, 1fr); margin: 24px 0 28px; flex: 1; align-content: start; }
.plan-notes { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; font-size: 15px; color: var(--ink-soft); }
.plan-notes li { padding-left: 16px; border-left: 3px solid var(--green-soft); }
.plan-notes b { color: var(--ink); }

/* ------------------------------------------------------------------
   Demo request
   ------------------------------------------------------------------ */
.demo {
  color: #fff;
  background:
    radial-gradient(800px 480px at 0% 0%, rgba(4,106,56,.45), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(200,16,46,.16), transparent 60%),
    var(--ink);
}
.demo-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.demo-copy .ticks { margin-top: 28px; }
.reach { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; font-size: 15px; }
.reach span { color: rgba(255,255,255,.6); }
.reach a { color: #fff; font-weight: 600; text-decoration-color: var(--green-lit); text-underline-offset: 4px; }

.demo-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.demo-card h3 { font-size: 23px; margin-bottom: 20px; }
.demo-card label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.demo-card small { font-weight: 400; color: var(--muted); }
.demo-card input, .demo-card select, .demo-card textarea, .shop-input input {
  display: block; width: 100%; margin-top: 6px; padding: 0 14px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); font-size: 16px; font-weight: 400; color: var(--ink);
}
.demo-card textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.demo-card input:focus, .demo-card select:focus, .demo-card textarea:focus, .shop-input input:focus {
  outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(4,106,56,.14);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addr-preview { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font-size: 14px; overflow-wrap: anywhere; }
.addr-preview b { font-family: var(--head); }
.form-err { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-weight: 600; font-size: 14.5px; }
.fine { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: center; padding: 28px 8px; }
.thanks-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; }
.thanks-ico svg { width: 30px; height: 30px; }
.thanks h3 { margin-bottom: 10px; }
.thanks p { color: var(--ink-soft); margin-bottom: 24px; }

/* ------------------------------------------------------------------
   Questions
   ------------------------------------------------------------------ */
#faq h2 { margin-bottom: 36px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--head); font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -9px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .18s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details p { padding: 0 44px 24px 0; color: var(--ink-soft); }
.faq-cta { margin-top: 44px; text-align: center; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.foot { background: var(--ink); color: rgba(255,255,255,.7); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; padding-top: 52px; padding-bottom: 40px; }
.foot .brand { color: #fff; }
.tag { margin-top: 10px; font-family: var(--head); font-size: 17px; color: rgba(255,255,255,.85); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #fff; }
.legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.legal b { color: #fff; font-weight: 600; }

/* ------------------------------------------------------------------
   "Open my shop"
   ------------------------------------------------------------------ */
.shop-dialog { border: none; border-radius: 22px; padding: 28px; width: min(440px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.shop-dialog::backdrop { background: rgba(16,22,19,.6); }
.shop-dialog h3 { font-size: 22px; margin-bottom: 6px; }
.shop-dialog p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.shop-input { display: flex; align-items: center; gap: 8px; }
.shop-input input { margin-top: 0; flex: 1; min-width: 0; }
.shop-input span { font-family: var(--head); font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 14.5px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ------------------------------------------------------------------
   Back to top
   ------------------------------------------------------------------ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; background: var(--green); color: #fff;
  box-shadow: 0 10px 24px rgba(16,22,19,.28), 0 0 0 2px rgba(255,255,255,.9);
  transition: background .15s, transform .12s;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--green-dark); transform: translateY(-2px); }
@media print { .to-top { display: none; } }

/* ------------------------------------------------------------------
   Smaller screens
   ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-in, .split, .demo-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-card { transform: none; max-width: 520px; }
  .feat-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 26px; }
  .plan-for { min-height: 0; }
  .plan-notes { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-in { height: 60px; gap: 12px; }
  .wordmark { font-size: 20px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { height: 40px; padding: 0 13px; font-size: 13.5px; }
  .link-btn { font-size: 13.5px; }
  .lede { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .pain-grid, .feat-grid, .steps, .row, .ticks { grid-template-columns: minmax(0, 1fr); }
  .row { gap: 0; }
  .truth { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 36px 0; }
  .truth-n { font-size: 44px; }
  .section { padding: 60px 0; }
  .demo-card { padding: 22px 18px; border-radius: 20px; }
  .hc-stat b { font-size: 20px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  summary { font-size: 17.5px; }
}
@media (max-width: 380px) {
  #open-shop { display: none; }
}
