/* Baobab website — design tokens ported from the app (constants/theme.ts). */
:root {
  --cream: #F5EEE2;
  --card: #FFFCF6;
  --ink: #17130F;
  --indigo: #26355F;
  --ochre: #C9702E;
  --ochre-shadow: #8F4C1D;
  --gold: #E2A93B;
  --gold-shadow: #A87A22;
  --clay: #A8382A;
  --palm: #3E6B4E;
  --periwinkle: #7C8FC4;
  --map-night: #0E1828;

  --border: rgba(23, 19, 15, 0.09);
  --border-strong: rgba(23, 19, 15, 0.16);
  --text-secondary: rgba(23, 19, 15, 0.62);
  --on-dark: rgba(245, 238, 226, 0.72);
  --on-dark-dim: rgba(245, 238, 226, 0.5);

  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-card: 18px;
  --radius-feature: 22px;
  --radius-button: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.4em;
}

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

/* Kente top band — from the handoff pattern language. */
.kente-band {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ochre) 0 14px,
    var(--gold) 14px 22px,
    var(--clay) 22px 34px,
    var(--palm) 34px 40px
  );
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 238, 226, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1.5px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) {
  .nav { gap: 18px; }
  .nav a.hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--ochre);
  color: #fff;
  box-shadow: 0 6px 0 var(--ochre-shadow);
}
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 7px 0 var(--ochre-shadow); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ochre-shadow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { text-decoration: none; background: rgba(23, 19, 15, 0.04); }
/* Ghost button on dark surfaces (hero) needs light ink + border. */
.hero .btn-ghost {
  color: var(--cream);
  border-color: rgba(245, 238, 226, 0.32);
}
.hero .btn-ghost:hover { background: rgba(245, 238, 226, 0.1); }

.mono-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--indigo);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(245, 238, 226, 0.06) 0 7px,
    transparent 7px 16px
  );
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero h1 { color: var(--cream); font-size: clamp(38px, 6vw, 58px); margin-bottom: 18px; }
.hero .lede { color: var(--on-dark); font-size: 19px; max-width: 30ch; margin-bottom: 28px; }
.hero .mono-label { color: var(--gold); margin-bottom: 16px; display: block; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note {
  color: var(--on-dark-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin: 22px 0 0;
}
.hero-shot { justify-self: center; }
.hero-shot img {
  width: 300px;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 238, 226, 0.14);
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; text-align: center; padding-top: 52px; padding-bottom: 52px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-shot { order: -1; }
}

/* Store badges */
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(245, 238, 226, 0.1);
  border: 1px solid rgba(245, 238, 226, 0.2);
  color: var(--cream);
  font-weight: 600;
}
.store-badge:hover { text-decoration: none; }
.store-badge-live {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge-live:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); }
.store-badge-live:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.store-badge-muted { opacity: 0.72; }
.store-badge small { display: block; font-size: 11px; color: var(--on-dark-dim); font-weight: 500; }
.store-badge b { font-family: var(--display); font-size: 16px; letter-spacing: -0.01em; }
.store-badge svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.soon-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(226, 169, 59, 0.4);
  border-radius: 999px;
  padding: 3px 8px;
}

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--text-secondary); font-size: 18px; margin: 0; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-feature);
  padding: 26px 24px;
}
.feature .emoji { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--text-secondary); font-size: 15.5px; margin: 0; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* Product promise */
.promise {
  padding: 58px 0;
  background: var(--indigo);
  color: var(--cream);
  text-align: center;
}
.promise .mono-label { color: var(--gold); }
.promise blockquote {
  max-width: 780px;
  margin: 14px auto 26px;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.promise-points {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.promise-points span {
  padding: 8px 13px;
  border: 1px solid rgba(245, 238, 226, 0.22);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 600;
}

/* Showcase (screenshots) */
.showcase { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.shots figure { margin: 0; }
.shots img {
  width: 260px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--cream);
  box-shadow: 0 16px 34px rgba(23, 19, 15, 0.12);
}
.shots figcaption { text-align: center; margin-top: 16px; color: var(--text-secondary); font-size: 14px; }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; gap: 40px; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-left: 8px; }
.step .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--ochre);
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--text-secondary); font-size: 15.5px; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta {
  background: var(--ochre);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 8px, transparent 8px 18px);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.cta p { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 46ch; margin: 0 auto 26px; }
.cta .mono-label { color: #fff4ce; margin-bottom: 12px; }
.cta .download-note {
  margin: -2px auto 0;
  font-size: 13px;
  color: rgba(255,255,255,0.76);
}
.cta .btn-primary { background: var(--ink); box-shadow: 0 6px 0 #000; }
.cta .btn-primary:active { box-shadow: 0 2px 0 #000; }

/* ---------- Legal / content pages ---------- */
.page-hero {
  background: var(--indigo);
  color: var(--cream);
  padding: 56px 0 40px;
}
.page-hero h1 { color: var(--cream); font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.page-hero .updated { color: var(--on-dark-dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.prose { padding: 48px 0 64px; }
.prose .container { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: #2c2620; font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }
.prose .lead { font-size: 18.5px; color: var(--text-secondary); }
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  margin: 22px 0;
}
.contact-card a { font-family: var(--display); font-weight: 800; font-size: 20px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15.5px;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data th { font-family: var(--body); font-weight: 700; background: var(--card); }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--map-night);
  color: var(--on-dark);
  padding: 52px 0 40px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { max-width: 300px; }
.footer-brand .brand span { color: var(--cream); }
.footer-brand p { color: var(--on-dark-dim); font-size: 14.5px; margin-top: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--on-dark);
  font-size: 15px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--cream); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(245, 238, 226, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--on-dark-dim);
  font-size: 13.5px;
}
.footer-bottom a { color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
