/* WA-B Solutions — design tokens & shared styles */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500;1,9..144,600&display=swap');

:root {
  /* Accent — deep market green. Overridable via Tweaks */
  --accent: #12704e;
  --accent-ink: #0c543a;
  --accent-soft: #e4efe6;
  --accent-glow: rgba(18, 112, 78, 0.16);

  /* Kente gold — highlight only, never a button fill */
  --gold: #d9a02b;
  --gold-ink: #96690f;
  --gold-soft: rgba(217, 160, 43, 0.14);

  /* Neutrals — warm market paper, green-tinted ink */
  --ink: #10231c;
  --ink-2: #1e2f28;
  --ink-3: #31423a;
  --muted: #5d6b62;
  --muted-2: #8b968c;
  --line: #eae5d8;
  --line-2: #d9d2c0;
  --bg: #faf6ed;
  --bg-2: #f3eee0;
  --bg-3: #ece6d4;
  --paper: #fffdf8;

  /* Semantic */
  --success: #12704e;
  --warning: #c97a1d;
  --danger: #c24234;

  /* WhatsApp chat surface */
  --wa-bg: #e6dcce;
  --wa-out: #d9fdd3;
  --wa-in: #ffffff;

  /* Type */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;

  /* Kente strip — the one signature motif. Gold / forest / brick / paper. */
  --kente: repeating-linear-gradient(
    90deg,
    var(--gold) 0 28px,
    #12704e 28px 44px,
    #10231c 44px 52px,
    #b0492f 52px 60px,
    #10231c 60px 68px,
    #12704e 68px 84px
  );

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-2xl: 28px;

  /* Spacing scale */
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
}

[data-theme="dark"] {
  --accent: #2f9a6f;
  --accent-ink: #4db78c;
  --accent-soft: rgba(47, 154, 111, 0.14);
  --accent-glow: rgba(47, 154, 111, 0.2);
  --gold: #e4b04a;
  --gold-ink: #e4b04a;
  --gold-soft: rgba(228, 176, 74, 0.14);
  --ink: #f2f1ea;
  --ink-2: #ddddd2;
  --ink-3: #c1c3b6;
  --muted: #93998d;
  --muted-2: #6d7369;
  --line: #23281f;
  --line-2: #333a2f;
  --bg: #0d120e;
  --bg-2: #141a15;
  --bg-3: #1a211b;
  --paper: #131914;
  --wa-bg: #0b1014;
  --wa-out: #005c4b;
  --wa-in: #202c33;
}

* { box-sizing: border-box; }

/* Signature: thin kente band across the very top of every page.
   script.js upgrades this into a live scroll-progress bar on pages that
   load it; this static border is the fallback for pages that don't
   (dashboard/login/signup) and for no-JS visits. */
body {
  border-top: 4px solid var(--gold);
  border-image: var(--kente) 1;
}

/* Live scroll-progress bar (injected by script.js). Swap the static
   border for a fixed track so the band stays pinned to the viewport
   top while scrolling, and reserve the same 4px with padding so
   nothing shifts when the class is added. */
html.has-kente-progress body {
  border-top: none;
  padding-top: 4px;
}
html.has-kente-progress .nav {
  top: 4px;
}
.kente-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 300;
  background: var(--line-2);
  overflow: hidden;
}
.kente-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--kente);
  background-size: 84px 4px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(16, 163, 127, 0.22); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============== Layout ============== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 500;
  font-family: var(--font-mono);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  background: var(--kente);
  background-size: 84px 4px;
  border-radius: 2px;
}

/* ============== Type ============== */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  font-weight: 500;
  font-variation-settings: "opsz" 90;
}
.h-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-ink);
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
}
.h-section em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-ink);
}

.h-card {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 500;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01";
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 150ms ease-out, background 200ms, border-color 200ms, color 200ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-2); }

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-2); }

.btn-link {
  background: none;
  border: none;
  padding: 6px 0;
  color: var(--ink);
  border-radius: 0;
  border-bottom: 1px solid var(--line-2);
}
.btn-link:hover { border-bottom-color: var(--ink); }

.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* arrow inside buttons */
.btn .arr { transition: transform 200ms ease-out; }
.btn:hover .arr { transform: translateX(3px); }

/* ============== Nav ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto -2px -2px auto;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
/* The source art is a flat white/black rectangle around the wordmark.
   multiply/screen dissolve that rectangle into whatever's actually behind
   the logo (the nav's translucent, blurred background included) instead of
   sitting on top of it as a visible mismatched card. */
.brand-logo-light { mix-blend-mode: multiply; }
.brand-logo-dark { mix-blend-mode: screen; display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
.brand-logo-lg { height: 52px; }
.brand-logo-xl { height: 84px; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 450;
  transition: color 150ms;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============== Hero ============== */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-meta-dot {
  width: 5px;
  height: 5px;
  background: var(--muted-2);
  border-radius: 50%;
}

/* ============== WhatsApp chat mockup ============== */
.wa-frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 30px 60px -30px rgba(20, 30, 40, 0.18),
    0 12px 30px -15px rgba(20, 30, 40, 0.08);
  overflow: hidden;
  transform: rotate(-0.8deg);
}
.wa-frame::before {
  /* subtle accent halo */
  content: "";
  position: absolute;
  inset: -100px;
  background: radial-gradient(60% 50% at 70% 40%, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.wa-window {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--wa-bg);
  background-image:
    radial-gradient(circle at 25% 20%, rgba(0,0,0,0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 80%, rgba(0,0,0,0.04) 0 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
  z-index: 1;
}
.wa-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #075e54;
  color: white;
}
[data-theme="dark"] .wa-bar { background: #1f2c33; }
.wa-back { opacity: 0.8; font-size: 18px; line-height: 1; }
.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34b7f1, #128c7e);
  color: white;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.wa-who {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.wa-who b { font-weight: 500; font-size: 14.5px; }
.wa-who span { font-size: 11.5px; opacity: 0.78; }
.wa-icons { display: flex; gap: 16px; opacity: 0.85; font-size: 16px; }

.wa-thread {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 460px;
  max-height: 540px;
  overflow: hidden;
  position: relative;
}
.wa-day {
  align-self: center;
  background: rgba(225, 245, 254, 0.92);
  color: #5b6864;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
}
[data-theme="dark"] .wa-day { background: rgba(30, 45, 55, 0.9); color: #b8c0bd; }

.wa-msg {
  max-width: 78%;
  padding: 7px 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  white-space: pre-line;
  color: #111;
  animation: msgIn 280ms ease-out both;
}
[data-theme="dark"] .wa-msg { color: #e9edef; }
.wa-msg.in {
  align-self: flex-start;
  background: var(--wa-in);
  border-top-left-radius: 0;
}
.wa-msg.out {
  align-self: flex-end;
  background: var(--wa-out);
  border-top-right-radius: 0;
}
.wa-time {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 10.5px;
  color: rgba(0,0,0,0.45);
  font-family: var(--font-mono);
}
[data-theme="dark"] .wa-time { color: rgba(255,255,255,0.55); }
.wa-msg.out .wa-time::after {
  content: " ✓✓";
  color: #53bdeb;
}
.wa-msg b { font-weight: 600; }
.wa-msg .price { color: var(--accent-ink); font-weight: 600; font-family: var(--font-mono); }
[data-theme="dark"] .wa-msg .price { color: #25d366; }

.wa-card {
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 8px;
  margin: 4px 0;
  border: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .wa-card { background: rgba(11,16,20,0.4); border-color: rgba(255,255,255,0.06); }
.wa-list-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.wa-list-item:last-child { border-bottom: none; }
.wa-cta-btn {
  display: block;
  text-align: center;
  background: rgba(0, 168, 132, 0.08);
  color: #008c6e;
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px;
  border-radius: 6px;
  margin: 6px 0 2px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .wa-cta-btn { color: #25d366; background: rgba(37, 211, 102, 0.1); }

.wa-typing {
  align-self: flex-start;
  background: var(--wa-in);
  padding: 10px 14px;
  border-radius: 14px;
  border-top-left-radius: 0;
  display: inline-flex;
  gap: 4px;
}
.wa-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: typing 1.2s infinite ease-in-out;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
[data-theme="dark"] .wa-input { background: #14181b; }
.wa-input-pill {
  flex: 1;
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.wa-mic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
}

/* trust strip */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
}
.trust-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.trust-logo {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink-3);
  opacity: 0.78;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-logo:hover { opacity: 1; }

/* ============== Sections / Cards ============== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* Asymmetric: the lead feature carries more weight than its siblings */
.feat-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 820px) { .feat-grid { grid-template-columns: 1fr; } }
.feat:first-child {
  background: var(--accent-soft);
}
.feat:first-child .feat-icon {
  background: var(--paper);
}

.feat {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  position: relative;
}
.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.feat-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}
.feat p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.feat .more {
  margin-top: auto;
  font-size: 14px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Big feature with mock */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.2fr 1fr; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 920px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* dashboard mock */
.dash {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.18);
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2);
}
.dash-url {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.dash-body { padding: 22px; }
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.dash-stat {
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 14px;
}
.dash-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--font-mono);
}
.dash-stat-val {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.dash-stat-delta {
  font-size: 12px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
}
.dash-table {
  width: 100%;
  font-size: 13px;
}
.dash-tr {
  display: grid;
  grid-template-columns: 100px 1fr 90px 70px;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.dash-tr.head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: var(--font-mono);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.pill-ok { background: var(--accent-soft); color: var(--accent-ink); }
.pill-pend { background: #fdf3e0; color: #b06b15; }
.pill-fail { background: #fbe6e6; color: #b73838; }
[data-theme="dark"] .pill-pend { background: #3d2c10; color: #e0a965; }
[data-theme="dark"] .pill-fail { background: #3a1f1f; color: #e07a7a; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  background: var(--paper);
  padding: 32px 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--muted);
}
.stat-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 22ch;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 24px 48px -32px rgba(10, 40, 30, 0.22);
}
.price-card.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.price-card.featured h3, .price-card.featured .price-amount { color: var(--bg); }
.price-card.featured .price-features li { color: rgba(255,255,255,0.78); }
.price-card.featured .price-features li::before { color: var(--accent); }
.price-card.featured .price-tag { color: var(--gold); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--kente);
  background-size: 84px 4px;
}

.price-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount sup {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.price-amount .per {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.price-features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 6px;
  align-items: start;
}
.price-features li::before {
  content: "✓";
  color: var(--accent-ink);
  font-weight: 600;
  margin-top: 1px;
}
.price-features li.muted { opacity: 0.5; }
.price-features li.muted::before { content: "-"; color: var(--muted-2); }

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: transform 250ms ease-out, box-shadow 250ms ease-out;
}
.quote > p { margin: 0; }
.quote > p::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 10px;
}
.quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -28px rgba(10, 40, 30, 0.2);
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.quote-author b { font-weight: 500; font-size: 14px; display: block; }
.quote-author span { font-size: 12.5px; color: var(--muted); }

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--muted);
  transition: transform 250ms ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 70ch;
}

/* CTA banner */
.cta-banner {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-2xl);
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) { .cta-banner { grid-template-columns: 1fr; } }
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 60%;
  height: 200%;
  background: radial-gradient(closest-side, var(--gold-soft), transparent);
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--kente);
  background-size: 84px 5px;
}
.cta-banner h2 { color: var(--bg); }
.cta-banner h2 em { font-style: italic; color: var(--gold); }
.cta-banner p { color: rgba(255,255,255,0.7); margin: 16px 0 0; }
.cta-banner .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.cta-banner .btn-primary:hover { background: var(--accent-ink); }
.cta-banner .btn-ghost {
  border-color: rgba(255,255,255,0.18);
  color: var(--bg);
}
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.36); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 80px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-tag {
  letter-spacing: 0.05em;
}

/* ============== Page-specific helpers ============== */
.page-hero {
  padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.012em;
  font-weight: 500;
  font-variation-settings: "opsz" 70;
  max-width: 18ch;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold-ink);
}
.page-hero p {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 56ch;
  margin: 20px 0 0;
}

/* form */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 460px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 150ms, box-shadow 150ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field-hint { font-size: 12.5px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Docs layout */
.docs-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}
@media (max-width: 820px) { .docs-grid { grid-template-columns: 1fr; } }
.docs-side {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 14px;
}
.docs-side h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  margin: 24px 0 10px;
}
.docs-side ul { list-style: none; padding: 0; margin: 0; }
.docs-side li { padding: 6px 0; }
.docs-side a { color: var(--muted); }
.docs-side a:hover, .docs-side a.active { color: var(--ink); }
.docs-side a.active { font-weight: 500; }
.docs-content { max-width: 720px; }
.docs-content h2 {
  font-size: 32px;
  letter-spacing: -0.025em;
  margin-top: 48px;
  margin-bottom: 12px;
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-top: 32px;
  margin-bottom: 8px;
}
.docs-content p { color: var(--ink-2); margin: 12px 0; }
.docs-content code {
  font-family: var(--font-mono);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--accent-ink);
}
.docs-content pre {
  background: var(--ink);
  color: var(--bg);
  padding: 18px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 16px 0;
}
.docs-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.docs-content th, .docs-content td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.docs-content th { font-weight: 500; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 20px 0;
}

/* Blog list */
.blog-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
@media (max-width: 820px) { .blog-feature { grid-template-columns: 1fr; } }
.blog-cover {
  background: var(--bg-2);
  border-radius: var(--r-xl);
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.blog-cover-1 {
  background:
    radial-gradient(closest-side at 30% 30%, var(--accent-glow), transparent 70%),
    linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
}
.blog-cover-2 {
  background:
    radial-gradient(closest-side at 70% 60%, rgba(217, 119, 87, 0.18), transparent 70%),
    linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.blog-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-meta .dot { width: 4px; height: 4px; background: var(--muted-2); border-radius: 50%; }
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 820px) { .blog-list { grid-template-columns: 1fr; } }
.blog-item h3 {
  font-size: 20px;
  letter-spacing: -0.018em;
  font-weight: 500;
  margin: 12px 0 8px;
}
.blog-item p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
.blog-item .blog-cover {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
}

/* utilities */
.hide-on-mobile { display: initial; }
@media (max-width: 720px) { .hide-on-mobile { display: none; } }

/* scroll reveal — classes are applied by script.js only, so content
   stays fully visible without JS or with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tweaks panel placement override */
#tweaks-panel { z-index: 100; }

/* ============== Legal / prose ============== */
.prose {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}
.prose h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 28px 0 8px;
  color: var(--ink);
}
.prose p { margin: 12px 0; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent-ink); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-bottom-color: var(--accent-ink); }
.prose-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============== Status ============== */
.status-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.status-row b { font-weight: 500; }
.status-row .uptime { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.status-bars { display: flex; gap: 2px; align-items: end; }
.status-bars span {
  width: 5px;
  height: 22px;
  border-radius: 2px;
  background: var(--accent);
}
.status-bars span.warn { background: #c97a1d; }
.status-bars span.fail { background: #d14545; height: 16px; }

.status-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.status-banner b { font-weight: 500; color: var(--accent-ink); }

/* ============== Careers ============== */
.role-list { border-top: 1px solid var(--line); }
.role {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 15px;
  transition: padding 200ms;
}
.role:hover { padding-left: 8px; }
.role-title { font-weight: 500; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; }
.role-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 720px) {
  .role { grid-template-columns: 1fr; gap: 4px; }
}

/* ============== Checklist (guides) ============== */
.checklist { border-top: 1px solid var(--line); }
.checklist-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.checklist-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper);
}
.checklist-item h3 { font-size: 18px; letter-spacing: -0.015em; margin: 0 0 6px; }
.checklist-item p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 62ch; }
.checklist-item .field-hint { margin-top: 8px; }
.checklist-item .field-hint code {
  font-family: var(--font-mono);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--accent-ink);
}

/* ============== 404 ============== */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px var(--gutter);
}
.notfound .h-display { font-size: clamp(80px, 14vw, 180px); margin-bottom: 16px; }
