/* ============================================================
   Udala — main.css
   White background · #0B3D24 dark green · #00C853 bright green
   ============================================================ */

/* ─── Reset & Variables ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #0B3D24;
  --green-mid:   #155c38;
  --green-light: #00C853;
  --green-pale:  #e8f5ec;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-800:    #1f2937;
  --gray-900:    #111827;
  --font-body:   'Inter', sans-serif;
  --font-display:'Plus Jakarta Sans', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);
  --transition:  .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--gray-600); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--green); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,.75); }
.section--gray { background: var(--gray-50); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover { background: var(--green-mid); border-color: var(--green-mid); color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--green {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green-light);
}
.btn--green:hover { background: var(--green); border-color: var(--green); color: var(--white); filter: none; }
.btn--white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn--white:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 10px; }
.btn--sm { padding: 8px 18px; font-size: .875rem; }

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.badge--green { background: var(--green-pale); color: var(--green); }
.badge--outline { border: 1.5px solid var(--green-light); color: var(--green); background: transparent; }

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo { flex-shrink: 0; }
.nav__links {
  display: flex;
  gap: 8px;
  flex: 1;
}
.nav__links a {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-600);
  transition: all var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--green); background: var(--green-pale); }
.nav__cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: all .3s; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,200,83,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__badge { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero h1 span { color: var(--green-light); }
.hero__sub {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--gray-600);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero__stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}
.hero__stat span { font-size: .875rem; color: var(--gray-400); }

/* ─── Dashboard Mock ─────────────────────────────────────── */
.dashboard-mock {
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gray-200);
  background: var(--gray-50);
}
.mock-bar {
  background: var(--green);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-bar__dots { display: flex; gap: 6px; }
.mock-bar__dots span { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar__dots span:nth-child(1) { background: #ff5f57; }
.mock-bar__dots span:nth-child(2) { background: #ffbd2e; }
.mock-bar__dots span:nth-child(3) { background: #28c840; }
.mock-bar__url {
  flex: 1;
  text-align: center;
  font-size: .78rem;
  font-family: monospace;
  color: rgba(255,255,255,.6);
}
.mock-screen {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 320px;
}
.mock-sidebar {
  background: var(--green);
  padding: 20px 12px;
}
.mock-sidebar-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  color: var(--white);
  margin-bottom: 24px;
  padding: 0 8px;
}
.mock-sidebar-logo span { color: var(--green-light); }
.mock-nav-item {
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 3px;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-nav-item.active { background: rgba(0,200,83,.2); color: var(--white); }
.mock-nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.mock-main { padding: 20px; }
.mock-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mock-title { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--gray-900); }
.mock-switcher {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px;
}
.mock-card__label { font-size: .68rem; color: var(--gray-400); margin-bottom: 4px; }
.mock-card__value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.mock-card__change { font-size: .65rem; color: var(--green-light); margin-top: 2px; }
.mock-chart {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px;
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.mock-bar-item {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--green-pale);
}
.mock-bar-item.hi { background: var(--green-light); }

/* ─── Features Grid ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--green-light); transform: translateY(-2px); }
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-card__icon svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: .9rem; }
.feature-card ul { margin-top: 16px; }
.feature-card ul li {
  font-size: .875rem;
  color: var(--gray-600);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}
.feature-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green-light); font-weight: 700; }

/* ─── Section Heading ─────────────────────────────────────── */
.section-heading { text-align: center; margin-bottom: 56px; }
.section-heading .badge { margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ─── Pricing Cards ──────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--green-light);
  background: var(--green);
  color: var(--white);
  position: relative;
}
.pricing-card.featured h3,
.pricing-card.featured p,
.pricing-card.featured .price,
.pricing-card.featured .price-sub { color: var(--white); }
.pricing-card.featured li { color: rgba(255,255,255,.85); }
.pricing-card.featured li::before { color: var(--green-light); }
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-light);
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pricing-card .desc { font-size: .875rem; margin-bottom: 24px; }
.price { font-size: 2.6rem; font-weight: 800; font-family: var(--font-display); color: var(--gray-900); }
.price sup { font-size: 1.4rem; vertical-align: top; margin-top: .4rem; }
.price-sub { font-size: .85rem; color: var(--gray-400); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; flex: 1; }
.pricing-features li { padding: 7px 0; font-size: .9rem; color: var(--gray-600); padding-left: 22px; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green-light); font-weight: 700; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ─── How it works ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px; }
.step { text-align: center; }
.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial__stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial__text { font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
  font-size: .9rem;
}
.testimonial__name { font-weight: 600; font-size: .875rem; color: var(--gray-900); }
.testimonial__role { font-size: .8rem; color: var(--gray-400); }

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner p { margin: 16px auto 36px; max-width: 500px; color: rgba(255,255,255,.8); }
.cta-banner__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, #0d4a2c 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; font-size: clamp(1.8rem,4vw,3rem); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto; font-size: 1.1rem; }
.page-hero .badge { margin-bottom: 20px; }

/* ─── Home two-column split (collapses on mobile) ──────────── */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ─── Docs Layout ─────────────────────────────────────────── */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: calc(100vh - 68px); }
.docs-sidebar {
  border-right: 1px solid var(--gray-200);
  padding: 32px 20px;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  min-width: 0; /* prevent grid item from expanding beyond its track */
}
.docs-sidebar h5 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 24px 0 8px;
}
.docs-sidebar h5:first-child { margin-top: 0; }
.docs-sidebar a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: .875rem;
  color: var(--gray-600);
  transition: all var(--transition);
}
.docs-sidebar a:hover, .docs-sidebar a.active { color: var(--green); background: var(--green-pale); }
.docs-content { padding: 40px 48px; max-width: 860px; min-width: 0; }
.docs-content h1 { font-size: 2.2rem; margin-bottom: 12px; }
.docs-content h2 { font-size: 1.5rem; margin: 40px 0 12px; border-top: 1px solid var(--gray-200); padding-top: 40px; }
.docs-content h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.docs-content p { margin-bottom: 16px; }
.docs-content ul, .docs-content ol { padding-left: 24px; margin-bottom: 16px; }
.docs-content li { margin-bottom: 6px; color: var(--gray-600); }
.docs-content pre {
  background: var(--gray-900);
  color: #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  margin: 20px 0;
  font-size: .875rem;
  line-height: 1.6;
}
.docs-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .875em;
  color: var(--green);
}
.docs-content pre code { background: none; padding: 0; color: inherit; }
.docs-callout {
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid;
  margin: 24px 0;
}
.docs-callout--info { background: #eff6ff; border-color: #3b82f6; }
.docs-callout--info p { color: #1e40af; margin: 0; }
.docs-callout--tip { background: var(--green-pale); border-color: var(--green-light); }
.docs-callout--tip p { color: var(--green); margin: 0; }
.docs-callout--warn { background: #fffbeb; border-color: #f59e0b; }
.docs-callout--warn p { color: #92400e; margin: 0; }

/* ─── Mobile sidebar toggle (injected by JS on docs/api pages) ─ */
.docs-sidebar-toggle {
  display: none;
  width: 100%;
  grid-column: 1 / -1;  /* always spans full grid width */
  padding: 13px 20px;
  background: var(--green-pale);
  border: none;
  border-bottom: 1px solid var(--gray-200);
  color: var(--green);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -.01em;
}
.docs-toggle-icon {
  font-size: .75rem;
  color: var(--green-light);
  transition: transform .25s ease;
}
[aria-expanded="true"] .docs-toggle-icon { transform: rotate(180deg); }

/* ─── API Reference ──────────────────────────────────────── */
.api-endpoint {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--gray-50);
  cursor: pointer;
}
.method-badge {
  font-size: .72rem;
  font-weight: 700;
  font-family: monospace;
  padding: 3px 10px;
  border-radius: 4px;
}
.method-badge.get    { background: #dbeafe; color: #1d4ed8; }
.method-badge.post   { background: #dcfce7; color: #15803d; }
.method-badge.put    { background: #fef3c7; color: #b45309; }
.method-badge.patch  { background: #fae8ff; color: #9333ea; }
.method-badge.delete { background: #fee2e2; color: #dc2626; }
.endpoint-path { font-family: monospace; font-size: .9rem; color: var(--gray-800); word-break: break-all; min-width: 0; }
.api-endpoint-body { padding: 20px; border-top: 1px solid var(--gray-200); }
.api-endpoint-body pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-800); margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(0,200,83,.12); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .8rem; color: var(--gray-400); margin-top: 5px; }
.form-error { font-size: .8rem; color: #dc2626; margin-top: 5px; }
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: .9rem;
}
.alert--success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert--error   { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

/* ─── Waitlist Page ──────────────────────────────────────── */
.waitlist-section { max-width: 560px; margin: 0 auto; }
.waitlist-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}
.waitlist-perks { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.waitlist-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--gray-700);
}
.waitlist-perk__icon { width: 32px; height: 32px; border-radius: 8px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }

/* ─── Admin Table ────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: .875rem; }
.admin-table th { background: var(--gray-50); font-weight: 600; color: var(--gray-800); }
.admin-table td { color: var(--gray-600); }
.admin-table tr:hover td { background: var(--gray-50); }
.admin-stat { display: inline-block; background: var(--green-pale); color: var(--green); font-weight: 700; font-size: 1.8rem; font-family: var(--font-display); padding: 16px 28px; border-radius: var(--radius); margin-right: 16px; margin-bottom: 16px; }

/* ─── About Team ─────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.team-card { text-align: center; }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin: 0 auto 16px;
  border: 3px solid var(--green-light);
}
.team-card h4 { margin-bottom: 4px; }
.team-card span { font-size: .875rem; color: var(--gray-400); }

/* ─── Modules Tabs (Features page) ──────────────────────── */
.modules-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.module-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  color: var(--gray-600);
  transition: all var(--transition);
}
.module-tab.active, .module-tab:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.module-panel { display: none; }
.module-panel.active { display: block; }
.module-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.module-detail img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.module-detail__list { list-style: none; margin-top: 20px; }
.module-detail__list li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; color: var(--gray-600); display: flex; align-items: center; gap: 10px; }
.module-detail__list li::before { content: '→'; color: var(--green-light); font-weight: 700; }

/* ─── Logo Strip ─────────────────────────────────────────── */
.logo-strip { padding: 40px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.logo-strip__inner { display: flex; align-items: center; gap: 48px; justify-content: center; flex-wrap: wrap; }
.logo-strip__label { font-size: .8rem; color: var(--gray-400); font-weight: 500; white-space: nowrap; }
.logo-strip__logos { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: center; }
.logo-strip__logos span { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--gray-400); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--green); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 20px; color: var(--gray-600); font-size: .95rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h3 { margin-bottom: 8px; }
.contact-info p { margin-bottom: 28px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-item__label { font-size: .8rem; color: var(--gray-400); }
.contact-item__value { font-weight: 600; color: var(--gray-800); font-size: .9rem; }
.contact-form { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); padding: 40px; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--gray-900); color: var(--white); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; margin-bottom: 56px; }
.footer__brand p { color: rgba(255,255,255,.55); font-size: .875rem; margin: 16px 0 20px; line-height: 1.7; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer__social a:hover { color: var(--green-light); }
.footer__col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-split { grid-template-columns: 1fr; gap: 40px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: none;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease, padding .3s ease;
  }
  .docs-sidebar.is-open {
    max-height: 900px;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
  }
  .docs-sidebar-toggle { display: flex; }
  .module-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Docs & API mobile tightening */
  .docs-content { padding: 20px 16px; }
  .docs-content h1 { font-size: 1.75rem; }
  .docs-content h2 { font-size: 1.2rem; margin: 28px 0 10px; padding-top: 28px; }
  .api-endpoint-header { padding: 10px 12px; gap: 8px; }
  .api-endpoint-header > span[style*="margin-left:auto"] { display: none; } /* hide endpoint description on mobile */
  .api-endpoint-body { padding: 14px; }
  .docs-callout { padding: 12px 14px; }

  .nav__links, .nav__cta { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 16px 24px; z-index: 99; box-shadow: var(--shadow); }
  .nav__cta.open { display: flex; padding: 12px 24px 16px; background: var(--white); position: absolute; top: calc(68px + var(--links-height, 200px)); left: 0; right: 0; z-index: 99; }
  .nav__burger { display: flex; }
  .hero { padding: 72px 0 56px; }
  .hero__stats { gap: 28px; }
  .mock-screen { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-cards { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 1.6rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .docs-content { padding: 24px; }
  .waitlist-card { padding: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero h1 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}