/* Mkweli product hub - rebrand: black + rust, light & dark themes */

:root {
  /* Brand */
  --brand-orange: #b7522d;
  --brand-orange-soft: #d46a42;
  --brand-black: #121212;
  --brand-ink: #1a1a1a;

  /* Light theme (default for logo readability with black mark) */
  --bg: #f4f4f2;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #ebebe8;
  --line: rgba(18, 18, 18, 0.1);
  --line-strong: rgba(18, 18, 18, 0.16);
  --text: #121212;
  --text-soft: #3d3d3d;
  --muted: #4a4a4a;
  --accent: var(--brand-orange);
  --accent-2: var(--brand-orange-soft);
  --on-accent: #ffffff;
  --header-bg: rgba(244, 244, 242, 0.9);
  --footer-bg: #121212;
  --footer-text: #e8e8e8;
  --footer-muted: #a3a3a3;
  --shadow: 0 16px 40px rgba(18, 18, 18, 0.08);
  --hero-glow: rgba(183, 82, 45, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --container: 1120px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-elevated: #161a22;
    --bg-card: #1a1f2a;
    --bg-soft: #222836;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f2f2f0;
    --text-soft: #c4c4c0;
    --muted: #d2d2cc;
    --accent: #d46a42;
    --accent-2: #e07d58;
    --on-accent: #121212;
    --header-bg: rgba(15, 17, 21, 0.9);
    --footer-bg: #0a0c10;
    --footer-text: #e8e8e8;
    --footer-muted: #d0d0ca;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    --hero-glow: rgba(212, 106, 66, 0.14);
  }
}

/* Manual theme override via data-theme on html */
html[data-theme="light"] {
  --bg: #f4f4f2;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #ebebe8;
  --line: rgba(18, 18, 18, 0.1);
  --line-strong: rgba(18, 18, 18, 0.16);
  --text: #121212;
  --text-soft: #3d3d3d;
  --muted: #4a4a4a;
  --accent: #b7522d;
  --accent-2: #d46a42;
  --on-accent: #ffffff;
  --header-bg: rgba(244, 244, 242, 0.9);
  --footer-bg: #121212;
  --footer-text: #e8e8e8;
  --footer-muted: #a3a3a3;
  --shadow: 0 16px 40px rgba(18, 18, 18, 0.08);
  --hero-glow: rgba(183, 82, 45, 0.12);
}
html[data-theme="dark"] {
  --bg: #0f1115;
  --bg-elevated: #161a22;
  --bg-card: #1a1f2a;
  --bg-soft: #222836;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f0;
  --text-soft: #c4c4c0;
  --muted: #d2d2cc;
  --accent: #d46a42;
  --accent-2: #e07d58;
  --on-accent: #121212;
  --header-bg: rgba(15, 17, 21, 0.9);
  --footer-bg: #0a0c10;
  --footer-text: #e8e8e8;
  --footer-muted: #d0d0ca;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --hero-glow: rgba(212, 106, 66, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light dark; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text-soft); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.container.narrow { max-width: 720px; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-orange);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Dual-theme logo: black mark on light, white mark on dark */
.logo-light { display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .logo-light { display: none; }
  html:not([data-theme="light"]) .logo-dark { display: block; }
}
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }
html[data-theme="light"] .logo-light { display: block; }
html[data-theme="light"] .logo-dark { display: none; }

/* Wordmark image (full logo) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.brand-lockup:hover { color: var(--text); }
.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-wordmark {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.brand-text-fallback {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-transform: lowercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 1.4rem; font-size: 1rem; }
.btn-primary {
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 10px 28px rgba(183, 82, 45, 0.28);
}
.btn-primary:hover { background: var(--brand-orange-soft); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-accent {
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 10px 28px rgba(183, 82, 45, 0.3);
}
.btn-accent:hover { background: var(--brand-orange-soft); color: #fff; }
.btn.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 38px; padding: 0.45rem 0.95rem; font-size: 0.9rem; line-height: 1.2;
  background: #25D366; color: #06331c; font-weight: 600;
  box-shadow: none; border: 0;
}
.btn.btn-whatsapp:hover, .btn.btn-whatsapp:focus-visible { background: #1EBE5A; color: #06331c; }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.55rem; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.28rem 0.4rem;
  border-radius: 8px;
}
.lang-switch a:hover,
.lang-switch a[aria-current="true"] { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--bg-soft); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 85% 0%, var(--hero-glow), transparent 55%),
    var(--bg);
}
.hero-inner { max-width: 48rem; }
.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-logo-full {
  height: clamp(40px, 6vw, 56px);
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
}
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-orange);
}
.lead {
  font-size: 1.15rem;
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.lead strong { color: var(--text); }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.hero-meta li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-meta strong { font-size: 0.95rem; color: var(--text); }
.hero-meta span { font-size: 0.84rem; color: var(--muted); }

.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0.95rem 0;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.strip .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-elevated); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}
.section-tag.on-dark { color: #f0a07a; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.product-visual {
  background: var(--bg-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.85rem 0;
}
.product-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.product-visual-soft {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(183,82,45,0.18), transparent 50%),
    var(--bg-soft);
}
.product-placeholder {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
}
.placeholder-mark {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.product-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.product-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  border: 1px solid var(--line);
}
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.badge-live { background: rgba(183, 82, 45, 0.12); color: var(--brand-orange); }
.badge-demo { background: rgba(18, 18, 18, 0.08); color: var(--text-soft); }
.badge-pilot {
  background: rgba(183, 82, 45, 0.18);
  color: var(--brand-orange);
  white-space: normal;
  line-height: 1.35;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .badge-demo { background: rgba(255,255,255,0.08); }
}
html[data-theme="dark"] .badge-demo { background: rgba(255,255,255,0.08); }
.product-desc { font-size: 0.95rem; margin-bottom: 0.65rem; flex: 1; }
.product-tags { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem; }
.text-link {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--brand-orange);
}
.text-link:hover { text-decoration: underline; color: var(--accent-2); }
.text-link.muted { color: var(--muted); font-weight: 600; }
.text-link.muted:hover { color: var(--text-soft); }
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.pillar p { margin: 0; font-size: 0.95rem; }
.pillar p + p { margin-top: 0.75rem; }

.who-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.lead-sm { font-size: 1.08rem; }
.who-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.who-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.who-list strong { color: var(--text); }

.section-contact { padding-top: 2rem; }
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(135deg, #1a120e 0%, #121212 50%, #2a1810 100%);
  border: 1px solid rgba(183, 82, 45, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.contact-card h2 { color: #fff; }
.contact-card p { color: rgba(255,255,255,0.78); }
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
  min-width: 0;
  width: 100%;
}
.contact-actions .btn {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  min-height: 48px;
  padding-inline: 1rem;
}
#contact { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

.page-about h1 { margin-top: 0.35rem; }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 52rem;
}
.founder-photo {
  margin: 0;
}
.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 653 / 753;
}
.simple-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1rem 0 0;
}
.simple-list li {
  color: var(--text-soft);
  padding-left: 1rem;
  position: relative;
}
.simple-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: 700;
}
.steps-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-soft);
}
.steps-list strong { color: var(--text); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.4rem;
  background: var(--footer-bg);
  color: var(--footer-text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid:has(> :last-child:nth-child(2)) {
  grid-template-columns: 1.4fr 1fr;
}
.footer-brand p {
  color: var(--footer-muted);
  font-size: 0.92rem;
  max-width: 22rem;
  margin: 0.75rem 0 0;
}
.footer-brand .brand-text-fallback { color: #fff; }
.site-footer h4 {
  font-family: var(--font);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-muted);
  margin-bottom: 0.85rem;
}
.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer a {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-footer a:hover { color: #f0a07a; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--footer-muted);
}
.back-top {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--footer-muted);
}
.back-top:hover { color: #fff; }

/* Footer always dark: use light logos */
.site-footer .logo-light { display: none !important; }
.site-footer .logo-dark { display: block !important; }

/* Website packages / work / FAQ */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.pkg {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pkg-featured {
  border-color: rgba(183, 82, 45, 0.55);
  box-shadow: var(--shadow);
}
.pkg-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-orange);
  margin: 0 0 0.35rem;
}
.pkg h3 { margin-bottom: 0.15rem; }
.pkg-price {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0.15rem 0 0.35rem;
}
.pkg-price span {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.pkg-lead { font-size: 0.95rem; margin-bottom: 0.75rem; }
.pkg ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.pkg ul li { padding-left: 1.05rem; position: relative; }
.pkg ul li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: 700;
}
.pkg-monthly {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.pkg .btn { width: 100%; margin-top: auto; }

.web-teaser {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.25rem;
  align-items: center;
}
.web-teaser-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.web-teaser-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.1rem;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.work-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-soft);
}
.work-card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.work-card-body p { font-size: 0.92rem; flex: 1; }

.client-note {
  margin: 2rem 0 0;
  max-width: 46rem;
  padding: 1.35rem 1.4rem 1.4rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-orange);
  border-radius: var(--radius);
}
.client-note .section-tag { margin-bottom: 0.55rem; }
.client-note blockquote { margin: 0; }
.client-note blockquote p {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 0.9rem;
}
.client-note footer {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.pull-quote {
  margin: 1rem 0 1.15rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--brand-orange);
}
.pull-quote p {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.pull-quote footer {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.pull-quote .text-link { font-size: 0.82rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
}
.step-card .n {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--brand-orange);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.step-card p { margin: 0; font-size: 0.92rem; }
.step-card p + p { margin-top: 0.75rem; }

.towns {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 1rem;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 46rem;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.faq details p {
  margin: 0.7rem 0 0.2rem;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .product-grid,
  .pillar-grid,
  .who-grid,
  .contact-card,
  .footer-grid,
  .pkg-grid,
  .work-grid,
  .process-grid,
  .web-teaser,
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 16rem; }
  .hero-meta { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0.75rem; border-radius: 10px; }
  .nav a:hover { background: var(--bg-soft); }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary,
  .nav-actions .btn-sm:not(.btn-whatsapp) { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 3.25rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; white-space: normal; text-align: center; }
  .section-contact { padding-top: 1rem; }
  .contact-card {
    padding: 1.25rem 1rem 1.15rem;
    gap: 1rem;
  }
  .contact-card h2 {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  .contact-actions .btn {
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  outline: 3px solid var(--text);
}

.shot {
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}
.tool-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  border-left: 3px solid var(--brand-orange);
  padding: 0.35rem 0 0.35rem 0.65rem;
  margin: 0 0 0.75rem;
}
.tool-sha { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--muted); }
.tool-sha summary { cursor: pointer; font-weight: 600; min-height: 24px; }
.tool-sha code { display: block; margin-top: 0.35rem; word-break: break-all; font-size: 0.78rem; }
.tool-notes p { margin: 0.45rem 0 0; }
.tool-notes ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.tool-notes li + li { margin-top: 0.2rem; }
.tool-byline {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.notify {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.notify h3 { margin-top: 0; }
.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 0.75rem 0;
}
.notify-form label { font-size: 0.88rem; font-weight: 600; }
.notify-form input {
  min-height: 44px;
  min-width: min(100%, 18rem);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.notify-error { color: var(--accent); font-size: 0.9rem; margin: 0; }
.who-card {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}
.who-card img {
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 560px) {
  .who-card { grid-template-columns: 1fr; }
}

/* Personal by-line under the founder profile */
.who-byline {
  font-size: 0.92rem;
  color: var(--muted, inherit);
  font-style: italic;
  margin-top: 0.25rem;
}
.who-byline a { text-decoration: underline; text-underline-offset: 2px; }

/* Small visit counter in the footer */
.footer-bottom .visit-counter {
  font-size: 0.78rem;
  color: var(--footer-muted);
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

/* Small referral line in the footer */
.footer-referral { padding-top: 0.6rem; }
.footer-referral p, .footer-referral a { font-size: 0.78rem; }
.footer-referral p { margin: 0; font-size: 0.78rem; color: var(--footer-muted); opacity: 0.85; }
.referral-note { font-size: 0.9rem; color: var(--muted, #666); }
.footer-referral { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.footer-referral p { flex: 1 1 20rem; }
.sponsor-button { flex: 0 0 auto; }
.support-quote { margin: 0.75rem 0 1.25rem; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 3px solid var(--accent); }
.support-quote p { margin: 0; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.2rem; line-height: 1.5; }
.sponsor-profile { display: flex; gap: 1.5rem; align-items: flex-start; max-width: 100%; margin: 0.75rem 0 1.5rem; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.sponsor-profile img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.sponsor-profile-body { flex: 1 1 auto; min-width: 0; }
.sponsor-name { margin: 0 0 0.5rem; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.25rem; }
.sponsor-profile .support-quote { margin: 0 0 1.1rem; }
@media (max-width: 600px) {
  .sponsor-profile { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
  .sponsor-profile .support-quote { border-left: 0; padding-left: 0; }
}

/* Tools section: grouped cards */
.tool-group-label { font-family: var(--font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 2rem 0 1rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.tool-card { display: flex; flex-direction: column; gap: 0.6rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tool-card h3 { margin: 0; }
.tool-card > p { margin: 0; color: var(--text-soft); flex: 1; }
.tool-card > .btn { align-self: flex-start; margin-top: auto; }
.tool-card > p { flex: 0 0 auto; }
.tool-card > p:last-of-type, .tool-card > .tool-warn { margin-bottom: 0.5rem; }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--hero-glow); color: var(--accent); }
.tool-icon svg { width: 60%; height: 60%; }
.tool-card-lg { padding: 2rem; box-shadow: var(--shadow); border-color: var(--line-strong); }
.tool-card-lg .tool-icon { width: 52px; height: 52px; }
.tool-card-lg h3 { font-size: 1.4rem; }
.tool-card-lg > p { font-size: 1rem; }
.tool-card-sm { padding: 1.25rem; }
.tool-card-sm .tool-icon { width: 38px; height: 38px; border-radius: 10px; }
.tool-card-sm h3 { font-size: 1.08rem; }
.tool-card-sm > p { font-size: 0.9rem; }
.tool-card-sm > .btn { font-size: 0.85rem; padding: 0.5rem 0.9rem; }
.tool-extra { font-size: 0.82rem; color: var(--muted); }
.tool-extra p { margin: 0.4rem 0; }
.tool-extra code { word-break: break-all; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card { overflow: hidden; }
.tool-img { display: block; width: calc(100% + 4rem); max-width: none; margin: -2rem -2rem 0.6rem; height: 180px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.tool-card-sm .tool-img { width: calc(100% + 2.5rem); margin: -1.25rem -1.25rem 0.4rem; height: 130px; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tool-meta .badge { white-space: nowrap; }
.tool-warn { margin: 0; font-size: 0.85rem; color: var(--text); border-left: 3px solid var(--accent); padding-left: 0.6rem; }
.tool-card > .tool-warn { margin-top: auto; }
.tool-card > .tool-extra + .btn { margin-top: 0.75rem; }
.tool-card-sm .tool-img { height: 150px; }
.tool-img[src*="aml-card"], .tool-img[src*="lakazagri-card"] { object-position: center top; }

/* Discourage selecting, dragging, and printing the published pages.
   Form fields and checksums stay usable. */
body {
  user-select: none;
  -webkit-user-select: none;
}
input, textarea, select, .allow-copy, .tool-sha code, code {
  user-select: text;
  -webkit-user-select: text;
}
img { -webkit-user-drag: none; }

@media print {
  body { display: none !important; }
  html::after {
    content: "Printing and PDF export are disabled on this site.";
    display: block;
    padding: 2rem;
    font-family: sans-serif;
  }
}

/* Repeating mark at 0.12 opacity. Ink flips with the theme so the
   same strength stays visible on light and dark backgrounds. */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.12;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='180'%3E%3Ctext x='140' y='100' fill='%23121212' font-family='sans-serif' font-size='18' font-weight='600' text-anchor='middle' transform='rotate(-24 140 90)'%3Emkweli.tech%3C/text%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='180'%3E%3Ctext x='140' y='100' fill='%23f2f2f0' font-family='sans-serif' font-size='18' font-weight='600' text-anchor='middle' transform='rotate(-24 140 90)'%3Emkweli.tech%3C/text%3E%3C/svg%3E");
  }
}
html[data-theme="dark"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='180'%3E%3Ctext x='140' y='100' fill='%23f2f2f0' font-family='sans-serif' font-size='18' font-weight='600' text-anchor='middle' transform='rotate(-24 140 90)'%3Emkweli.tech%3C/text%3E%3C/svg%3E");
}

/* Transparency group: PFW, Tenders, Land as one row of three; AML and Meridian as a row of two */
@media (min-width: 861px) {
  .tool-grid-main { grid-template-columns: repeat(6, 1fr); }
  .tool-grid-main > .tool-card { grid-column: span 2; }
  .tool-grid-main > .tool-card:nth-child(n+4) { grid-column: span 3; }
}
/* Show the whole picture on the main cards so titles inside the images are never cut off */
.tool-grid-main .tool-img { height: auto; aspect-ratio: 1200 / 750; }
@media (min-width: 861px) {
  .tool-grid-main > .tool-card:nth-child(n+4) .tool-img { height: 280px; aspect-ratio: auto; }
}

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 0.55rem; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.svc-img { display: block; width: calc(100% + 3rem); max-width: none; margin: -1.5rem -1.5rem 0; height: 150px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid var(--line); }
.svc-img[src*="aml-card"], .svc-img[src*="xl"] { object-position: center top; }
.svc-icon { width: 48px; height: 48px; margin-top: -24px; margin-left: 0.25rem; border: 3px solid var(--bg-card); background: var(--hero-glow); position: relative; }
.svc-card h3 { margin: 0; font-size: 1.2rem; }
.svc-desc { margin: 0; color: var(--text-soft); }
.svc-gets-label { margin: 0.3rem 0 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.svc-gets { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; font-size: 0.93rem; }
.svc-gets li { position: relative; padding-left: 1.5rem; }
.svc-gets li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.svc-proof { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--text-soft); }
.svc-btn { align-self: flex-start; margin-top: auto; }
.svc-proof { margin-bottom: 0.6rem; }
.svc-cta { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; margin: 2rem 0; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 2px solid var(--accent); }
.svc-cta h3 { margin: 0 0 0.4rem; }
.svc-cta p { margin: 0 0 0.5rem; }
.svc-ai { font-size: 0.88rem; color: var(--text-soft); }
.svc-cta-btns { display: flex; flex-direction: column; gap: 0.6rem; flex: 0 0 auto; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .svc-cta { flex-direction: column; align-items: stretch; } .svc-cta-btns .btn { text-align: center; } }
/* Services: 2 x 2 on desktop and tablet, one per row on phones */
.svc-grid { grid-template-columns: repeat(2, 1fr); }
.svc-img { height: 190px; }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .svc-img { height: 160px; } }

/* Shared Mkweli family strip: sister sites, support, counter, Pulitzer line */
.mkweli-family {
  width: min(100% - 2rem, 1120px);
  margin: 0.95rem auto 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: 0.78rem;
  line-height: 1.45;
  color: inherit;
}
.mkweli-family-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
}
.mkweli-family a { color: inherit; text-underline-offset: 2px; }
.mkweli-family a:hover { opacity: 0.72; }
.mkweli-family [aria-current="page"] { font-weight: 650; text-decoration: none; }
.mkweli-family-contact { margin: 0.4rem 0 0; }
.mkweli-family .visit-counter {
  margin: 0.28rem 0 0;
  font-size: 0.74rem;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
.mkweli-family .visit-counter[hidden] { display: none; }
.mkweli-quote {
  margin: 0.7rem 0 0;
  padding: 0;
  border: 0;
  max-width: 46rem;
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.45;
}
.mkweli-quote p { margin: 0; font-style: italic; }
.mkweli-quote cite { display: block; margin-top: 0.22rem; font-style: italic; }
.mkweli-family-center { text-align: center; }
.mkweli-family-center .mkweli-family-nav { justify-content: center; }
.mkweli-family-center .mkweli-quote { margin-inline: auto; }
.mkweli-family-bleed { width: auto; margin-left: 0; margin-right: 0; }
@media (max-width: 480px) {
  .mkweli-family {
    width: calc(100% - 1.25rem);
    font-size: 0.74rem;
  }
  .mkweli-family-nav { gap: 0.35rem 0.55rem; }
  .mkweli-quote { max-width: 100%; overflow-wrap: anywhere; }
}

/* Mkweli family footer: 3 rows (site line, family strip, meta). Overrides the older strip rules above. */
.mkweli-family.mkf {
  width: min(100% - 2rem, 1120px);
  margin: 1.5rem auto 0;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  display: grid;
  gap: 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: inherit;
}
.mkf p { margin: 0; color: inherit; font-size: inherit; }
.mkf .mkf-site { max-width: 52rem; opacity: 0.9; }
.mkf .mkweli-family-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; font-size: 0.875rem; }
.mkf .mkweli-family-nav > * { display: inline-block; padding: 0.35rem 0; }
.mkf a { color: inherit; font-size: inherit; text-underline-offset: 3px; }
.mkf .mkf-meta > *, .mkf .mkweli-family-nav > * { font-size: inherit; }
.mkf a:hover { opacity: 0.75; }
.mkf [aria-current="page"] { font-weight: 650; text-decoration: none; }
.mkf .mkf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; opacity: 0.9; font-variant-numeric: tabular-nums; }
.mkf .mkf-meta .dot { opacity: 0.6; display: inline; width: auto; height: auto; background: none; border-radius: 0; animation: none; }
.mkf .visit-counter { margin: 0; font-size: inherit; opacity: 1; display: inline-flex; align-items: center; }
.mkf .visit-counter .dot { margin-right: 0.5rem; }
.mkf .visit-count { margin-left: 0.3em; }
.mkf .visit-counter[hidden] { display: none; }
.mkf.mkweli-family-center { text-align: center; justify-items: center; }
.mkf.mkweli-family-center .mkweli-family-nav, .mkf.mkweli-family-center .mkf-meta { justify-content: center; }
.mkf.mkweli-family-bleed { width: auto; margin-left: 0; margin-right: 0; }
@media (max-width: 480px) {
  .mkweli-family.mkf { width: calc(100% - 1.5rem); padding: 1rem 0 1.25rem; font-size: 0.8125rem; }
  .mkf .mkweli-family-nav { gap: 0 0.9rem; }
}

/* Training and community group: two cards, so two columns on wide screens */
@media (min-width: 861px) {
  .tool-grid-small { grid-template-columns: repeat(2, 1fr); }
}

/* Country sections (2026-10) */
.anchor-legacy{display:block;position:relative;top:-80px;height:0}
.tool-section{scroll-margin-top:80px}
.tool-section .section-head p{color:var(--text-soft);margin:.4rem 0 0}
.hero-jump{margin-top:1rem;font-size:.95rem;color:var(--text-soft)}
.hero-jump a{font-weight:600}
.section-top{margin:1.5rem 0 0;font-size:.9rem}
.tool-card-placeholder{border-style:dashed;box-shadow:none}
@media (max-width:640px){.tool-section .tool-grid{grid-template-columns:1fr}}

/* Even rows for country sections: 3 cols desktop, 2 tablet, 1 mobile */
.tool-section .tool-grid.tool-grid-main { grid-template-columns: repeat(3, 1fr); }
.tool-section .tool-grid.tool-grid-main > .tool-card,
.tool-section .tool-grid.tool-grid-main > .tool-card:nth-child(n+4) { grid-column: auto; }
.tool-section .tool-grid-main > .tool-card:nth-child(n+4) .tool-img { height: auto; aspect-ratio: 1200 / 750; }
@media (max-width: 1024px) { .tool-section .tool-grid.tool-grid-main { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tool-section .tool-grid.tool-grid-main { grid-template-columns: 1fr; } }

.section-note { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--muted, #5b6470); max-width: 60rem; }
