/* ============================================
   Kerni — /builders landing (API for builders)
   Design tokens from Figma "Api home"
   ============================================ */

/* Graphik (app/assets/fonts/). Semibold covers 600–700 so headings don't faux-bold. */
@font-face {
  font-family: 'Graphik';
  src: url("/assets/GraphikRegular-c1233ee8.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Graphik';
  src: url("/assets/GraphikMedium-7ce5d5f6.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Graphik';
  src: url("/assets/GraphikSemibold-93dbabde.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}

:root {
  --font-sans:  'Graphik', 'Source Sans 3', system-ui, sans-serif;
  --font-serif: 'Gentium Book Plus', Georgia, serif;
  --font-code:  'Source Code Pro', ui-monospace, monospace;
  --ink:        #1a1918;
  --green:      #ff6b4a;
  --green-text: #00be43;
  --scooter:      #247f96;
  --scooter-light:#d7f4f6;
  --coral:      #ff6b4a;
  --lavender:   #ddaaea;
  --gray-50:    #f7f6f5;
  --gray-100:   #eceae8;
  --gray-200:   #d8d4d0;
  --gray-500:   #91857e;
  --gray-600:   #847772;
  --gray-800:   #5c5250;
  --line:       #d8d4d0;
}

*, *::before, *::after { box-sizing: border-box; }

body.builders-page {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #f7f6f5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Horizontal rules span the 1280 content container (80px margin at 1440),
   not the full viewport — they line up with the vertical container borders. */
.hl-top, .hl-bot { position: relative; }
.hl-top::before, .hl-bot::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 1px solid var(--line);
  pointer-events: none;
  z-index: 3;
}
.hl-top::before { top: 0; }
.hl-bot::after { bottom: 0; }

/* ---------- Layout shell + grid rules ---------- */
.bld-shell { max-width: 1440px; margin: 0 auto; }

/* No horizontal padding: colored sections bleed to the vertical grid
   lines; text blocks carry their own 40px padding. */
.bld-container {
  max-width: 1280px;
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}
/* Home: no graph-paper lines */
.bld-no-lines { border-inline: none; }
.bld-no-lines .hl-top::before,
.bld-no-lines .hl-bot::after { display: none; }
/* Platform: drop the outer vertical container borders, keep the horizontal rules */
.bld-no-sides { border-inline: none; }

/* ---------- Typography ---------- */
.bld-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.56px;
  color: var(--ink);
  margin: 0;
}
.bld-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0;
}
.bld-h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0;
}
.bld-lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--gray-800);
  margin: 0;
}
.bld-body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--gray-800);
  margin: 0;
}
.bld-overline {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ---------- Badge ---------- */
.bld-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ---------- Buttons ---------- */
.bld-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}
/* Hover: label slides up & out, WhatsApp emojis slide in from below */
.bld-btn-face {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .22s ease;
}
.bld-btn-emoji {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px;
}
/* Each emoji pops in one by one (staggered), not all at once */
.bld-btn-emoji span {
  display: inline-block;
  opacity: 0; transform: translateY(7px) scale(.4);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .18s ease;
}
.bld-btn:hover .bld-btn-face { transform: translateY(-115%); opacity: 0; }
.bld-btn:hover .bld-btn-emoji span { opacity: 1; transform: translateY(0) scale(1); }
.bld-btn:hover .bld-btn-emoji span:nth-child(1) { transition-delay: .06s; }
.bld-btn:hover .bld-btn-emoji span:nth-child(2) { transition-delay: .16s; }
.bld-btn:hover .bld-btn-emoji span:nth-child(3) { transition-delay: .26s; }
.bld-btn i { font-size: 16px; }
.bld-btn-primary { background: #b3e8ee; color: #23687b; }
.bld-btn-primary:hover { background: #b3e8ee; }
.bld-btn-dark { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.bld-btn-dark:hover { background: #000000; }
.bld-btn-dark .ph-whatsapp-logo { color: #ffffff; }
.bld-btn-cream { background: #ece8e1; color: var(--ink); border-color: #ece8e1; }
.bld-btn-cream:hover { background: #e4dfd6; }
.bld-btn-cream .ph-whatsapp-logo { color: #25d366; }
.bld-btn-outline { background: transparent; color: var(--ink); border-color: var(--gray-100); }
.bld-btn-outline:hover { border-color: var(--gray-600); }
/* Cool grow on hover (echoes the reference) — emojis do the rest */
.bld-btn:not(.bld-btn-sm):hover { transform: scale(1.03); }
.bld-btn-outline-dark { border-color: var(--gray-600); }
.bld-btn-ghost { background: transparent; color: var(--ink); }
.bld-btn-ghost:hover { color: #23687b; }
.bld-btn-sm { height: 32px; padding: 0 8px; }

/* ---------- Header ---------- */
.bld-header { position: relative; }
.bld-no-lines .bld-header { border-bottom: 1px solid var(--line); }
.bld-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.bld-logo { display: inline-flex; align-items: center; text-decoration: none; justify-self: start; }
.bld-logo img { height: 30px; width: auto; display: block; }
.bld-nav { display: flex; align-items: center; gap: 32px; justify-self: center; }
.bld-nav a { font-size: 15px; color: var(--ink); text-decoration: none; }
.bld-nav a:hover { color: var(--gray-500); }
.bld-header-actions { justify-self: end; display: flex; align-items: center; gap: 24px; }
.bld-header-login { font-size: 15px; color: var(--ink); text-decoration: none; }
.bld-header-login:hover { color: var(--gray-500); }

/* Mobile hamburger menu — hidden on desktop, revealed at ≤768px */
.bld-menu { display: none; position: relative; justify-self: end; }
.bld-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: -8px;
  cursor: pointer; list-style: none; color: var(--ink);
}
.bld-menu-btn::-webkit-details-marker { display: none; }
.bld-menu-btn i { font-size: 26px; }
.bld-menu-close { display: none; }
.bld-menu[open] .bld-menu-open { display: none; }
.bld-menu[open] .bld-menu-close { display: inline; }
.bld-menu-panel {
  position: absolute; top: calc(100% + 10px); right: -8px; z-index: 50;
  min-width: 220px; padding: 8px;
  display: flex; flex-direction: column;
  background: #ffffff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}
.bld-menu-panel > a:not(.bld-btn) {
  padding: 11px 10px; border-radius: 8px;
  font-size: 15px; color: var(--ink); text-decoration: none;
}
.bld-menu-panel > a:not(.bld-btn):hover { background: var(--gray-50); }
.bld-menu-cta { margin-top: 8px; }

/* ---------- Hero ---------- */
.bld-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.bld-hero-left { padding: 72px 40px; display: flex; flex-direction: column; justify-content: center; }
.bld-hero-content { display: flex; flex-direction: column; gap: 32px; max-width: 460px; }
.bld-hero-copy { display: flex; flex-direction: column; gap: 16px; }
.bld-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bld-hero-trusted { margin-top: 52px; display: flex; flex-direction: column; gap: 16px; }
.bld-hero-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.bld-hero-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .85; }

/* ---------- Platform hero (copy + lavender phone panel + trusted strip) ---------- */
/* left copy | vertical rule | right (lavender panel + trusted strip).
   Components sit 12px off every rule (Figma). Panel is landscape, not square. */
.bld-phero { display: grid; grid-template-columns: 0.84fr 1fr; }
.bld-phero-left {
  position: relative;
  padding: 64px 52px 64px 0;
  display: flex; flex-direction: column; justify-content: center;
}
/* vertical rule between copy and panel — inset 12px so it never touches the horizontal rules */
.bld-phero-left::after {
  content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.bld-phero-copy { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.bld-phero-overline { display: inline-flex; align-items: center; gap: 12px; }
.bld-dot-coral { width: 8px; height: 8px; background: var(--coral); flex-shrink: 0; }
.bld-phero-actions { margin-top: 12px; }
.bld-phero-right { display: flex; flex-direction: column; padding-left: 12px; }
.bld-phero-panel {
  height: 470px; background: #e6dcfb;
  display: grid; place-items: center;
  margin: 12px 0; overflow: hidden;
}
.bld-phero-panel .bld-phone { transform: scale(0.8); }
.bld-phero-trusted {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.bld-phero-trusted > div { position: relative; display: grid; place-items: center; padding: 18px 8px; min-height: 88px; }
.bld-phero-trusted > div + div::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.bld-phero-trusted-label .bld-overline { text-align: center; line-height: 1.35; }
.bld-phero-trusted img { height: 28px; width: auto; filter: grayscale(1); opacity: .7; }
.bld-btn-coral { background: var(--coral); color: #ffffff; border-color: var(--coral); }
.bld-btn-coral:hover { background: #f4583a; }
.bld-btn-lavender { background: var(--lavender); color: var(--ink); border-color: var(--lavender); }
.bld-btn-lavender:hover { background: #d199e2; border-color: #d199e2; }
/* Squared graph-paper texture (grid line colour is tunable per surface) */
.bld-squares { position: relative; }
.bld-squares::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line, rgba(26,25,24,.07)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line, rgba(26,25,24,.07)) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* API hero: the headline visual is the API call, on a warm taupe grid panel */
.bld-phero-api .bld-phero-panel { background: #6b5f58; --grid-line: rgba(255,255,255,.09); }
/* Hero demo: the API call + the WhatsApp message it delivers */
.bld-phero-demo { position: relative; z-index: 1; width: min(88%, 430px); }
.bld-phero-code { width: 100%; }
.bld-phero-msg {
  position: absolute; right: -16px; bottom: -30px; z-index: 2;
  width: 232px;
  background: #d9fdd3; border-radius: 14px; border-top-right-radius: 4px;
  padding: 9px 12px 7px;
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.bld-phero-msg-text { margin: 0; font-size: 13.5px; line-height: 1.4; color: #111b21; }
.bld-phero-msg-meta { display: block; text-align: right; font-size: 10.5px; color: rgba(17,27,33,.5); margin-top: 3px; }
.bld-phero-msg-meta i { color: #53bdeb; margin-left: 3px; vertical-align: -1px; }

/* Reusable code window (dark terminal card) */
.bld-sc-codewin {
  background: #1b1f23; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.bld-sc-codewin .bld-win-titlebar { cursor: default; }
.bld-sc-code-body { padding: 6px 0 14px; }
.bld-code .tok-p { color: rgba(255,255,255,.4); }
/* code window as a showcase scene (step 1: request → JSON response) */
.bld-sc-code-scene { width: 100%; height: 100%; align-items: center; justify-content: center; }
.bld-sc-code-scene .bld-sc-codewin { position: relative; z-index: 1; width: min(94%, 440px); }

/* API showcase keeps the lavender accent (bar fill + marker) */
.bld-showcase-api .bld-showcase-fill,
.bld-showcase-api .bld-showcase-marker { background: var(--lavender); }

/* API showcase stage: one product screenshot per step, on a squared canvas */
.bld-showcase-api .bld-showcase-stage {
  height: 440px; padding: 32px;
  place-items: center;
  background-color: var(--gray-50);
  background-image: none;
}
.bld-sc-shot { width: 100%; height: 100%; align-items: center; justify-content: center; }
.bld-sc-shot-img {
  position: relative; z-index: 1;
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.14);
}
.bld-sc-phone-scene { width: 100%; height: 100%; align-items: center; justify-content: center; }
/* frame is sized to the ALREADY-scaled phone so it never overflows or clips */
.bld-sc-phone-frame {
  position: relative; z-index: 1;
  width: 212px; height: 370px; flex-shrink: 0;
}
.bld-sc-phone-frame .bld-phone {
  position: absolute; top: 0; left: 0;
  transform: scale(0.66); transform-origin: top left;
}
@media (max-width: 900px) {
  .bld-showcase-api .bld-showcase-stage { height: auto; }
}
@media (max-width: 900px) {
  .bld-phero { grid-template-columns: 1fr; }
  .bld-phero-left { border-right: none; padding: 48px 20px; }
  .bld-phero-right { padding-left: 0; border-top: 1px solid var(--line); }
  .bld-phero-panel { height: 400px; margin: 0; }
  /* Scale the phone down so it fits the panel instead of clipping top/bottom */
  .bld-phero-panel .bld-phone { transform: scale(0.66); }
  .bld-phero-trusted { grid-template-columns: 1fr 1fr; }
  .bld-phero-trusted > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.bld-hero-right {
  position: relative;
  border-left: 1px solid var(--line);
  background-color: #d8d4d0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  padding: 48px 0;
  overflow: hidden;
}

/* dotted canvas overlay */
.bld-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.16) 1.7px, transparent 1.7px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ---------- Realistic WhatsApp phone (hero) ---------- */
.bld-phone {
  position: relative;
  z-index: 1;
  width: 300px;
  background: #0b0f12;
  border: 10px solid #0b0f12;
  border-radius: 40px;
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
  overflow: hidden;
}
.bld-phone-body { display: flex; flex-direction: column; height: 540px; background: #0b141a; border-radius: 30px; overflow: hidden; }

/* status bar */
.bld-wa-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 5px; background: #202c33; color: #e9edef;
  font-size: 13px; font-weight: 600;
}
.bld-wa-sys { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; }

/* chat header */
.bld-wa-header { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #202c33; }
.bld-wa-back { color: #aebac1; font-size: 20px; }
.bld-wa-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #00a884, #25d366);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.bld-wa-avatar i { font-size: 21px; }
.bld-wa-contact { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.bld-wa-name { color: #e9edef; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bld-wa-presence { color: #8696a0; font-size: 12px; min-height: 15px; }
.bld-wa-headicons { display: inline-flex; gap: 18px; color: #aebac1; font-size: 20px; }

/* chat area */
.bld-wa-chat {
  flex: 1; overflow: hidden;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 6px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 18px 18px;
}
.bld-wa-datepill { align-self: center; margin: 2px 0 6px; background: #182229; color: #8696a0; font-size: 11px; padding: 4px 10px; border-radius: 8px; }

.bld-wa-row { display: none; max-width: 82%; }
.bld-wa-row.show { display: flex; animation: bld-msg-in .28s ease both; }
.bld-wa-in  { align-self: flex-start; }
.bld-wa-out { align-self: flex-end; }
@keyframes bld-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bld-wa-bubble {
  padding: 6px 9px 5px;
  border-radius: 10px;
  font-size: 13.5px; line-height: 1.35; color: #e9edef;
  box-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.bld-wa-in  .bld-wa-bubble { background: #202c33; border-top-left-radius: 3px; }
.bld-wa-out .bld-wa-bubble { background: #005c4b; border-top-right-radius: 3px; }
.bld-wa-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -2px 10px; font-size: 10.5px; color: rgba(233,237,239,.6); }
.bld-wa-ticks { font-size: 15px; color: #53bdeb; }

/* typing bubble */
.bld-wa-typing-row { display: none; }
.bld-wa-typing-row.show { display: flex; }
.bld-wa-typingbubble { display: inline-flex; gap: 4px; align-items: center; padding: 11px 12px; }
.bld-wa-typingbubble span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: bld-blink 1.2s infinite; }
.bld-wa-typingbubble span:nth-child(2) { animation-delay: .2s; }
.bld-wa-typingbubble span:nth-child(3) { animation-delay: .4s; }
@keyframes bld-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* input bar */
.bld-wa-inputbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #0b141a; }
.bld-wa-inputbar > i { color: #8696a0; font-size: 20px; }
.bld-wa-inputfield { flex: 1; display: flex; align-items: center; background: #202c33; color: #8696a0; border-radius: 20px; padding: 9px 14px; font-size: 13px; }
.bld-wa-mic { width: 38px; height: 38px; border-radius: 50%; background: #00a884; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bld-wa-mic i { font-size: 18px; }

/* legacy bubbles (used by the playground result) */
.bld-bubble { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.4; color: #e9edef; }
.bld-bubble-in  { background: #202c33; align-self: flex-start; border-top-left-radius: 4px; }
.bld-bubble-out { background: #005c4b; align-self: flex-end; border-top-right-radius: 4px; }
.bld-bubble-time { display:block; margin-top: 4px; font-size: 10px; color: rgba(233,237,239,.5); text-align: right; }

/* ---------- Section head (title left / intro right) ---------- */
.bld-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 40px 0;
}
.bld-head-intro { display: flex; align-items: flex-start; }

/* ---------- How it works (steps) ---------- */
.bld-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 80px;
}
.bld-coral-panel {
  background: #ffffff;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bld-coral-panel img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  display: block;
}

/* ---------- Accordion ---------- */
.bld-acc-item + .bld-acc-item { border-top: 1px solid var(--line); }
.bld-steps .bld-accordion { border-left: 1px solid var(--line); }
.bld-acc-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 32px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}
.bld-acc-icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.bld-acc-icon::before,
.bld-acc-icon::after {
  content: "";
  position: absolute;
  background: var(--gray-500);
  transition: opacity .2s ease, transform .2s ease;
}
.bld-acc-icon::before { top: 11px; left: 4px; width: 16px; height: 2px; }   /* horizontal */
.bld-acc-icon::after  { left: 11px; top: 4px; width: 2px; height: 16px; }   /* vertical */
.bld-acc-item.open .bld-acc-icon::after { opacity: 0; transform: rotate(90deg); }
.bld-acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.bld-acc-a-inner { padding: 0 32px 32px; max-width: 600px; }

/* ---------- Value / benefits (3 columns) ---------- */
.bld-value { padding: 80px 40px; }
.bld-value-title { max-width: 18ch; }
.bld-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.bld-value-item { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 4px 0; }
.bld-value-item + .bld-value-item { border-left: 1px solid var(--line); padding-left: 32px; }
.bld-value-icon i { font-size: 30px; color: var(--ink); display: block; }
@media (max-width: 900px) {
  .bld-value { padding: 56px 20px; }
  .bld-value-grid { grid-template-columns: 1fr; }
  .bld-value-item { padding: 32px 0 0; }
  .bld-value-item + .bld-value-item { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ---------- Stats band (big numbers) ---------- */
.bld-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #b3e8ee;
  background-image:
    linear-gradient(rgba(35, 104, 123, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 104, 123, .12) 1px, transparent 1px);
  background-size: 30px 30px;
}
.bld-stat {
  display: flex; flex-direction: column; gap: 14px;
  padding: 56px 40px;
}
.bld-stat + .bld-stat { border-left: 1px solid rgba(35, 104, 123, .22); }
.bld-stat-num {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 56px; line-height: 1;
  letter-spacing: -1.5px; color: var(--ink);
}
.bld-stat-label { font-size: 16px; line-height: 1.4; color: #23687b; max-width: 18ch; }
@media (max-width: 768px) {
  .bld-stats { grid-template-columns: 1fr 1fr; }
  .bld-stat { padding: 36px 24px; }
  .bld-stat:nth-child(odd) { border-left: none; }
  .bld-stat:nth-child(n+3) { border-top: 1px solid rgba(35, 104, 123, .22); }
  .bld-stat-num { font-size: 44px; }
}

/* ---------- Section header (overline+title left, copy+CTA right) ---------- */
.bld-secthead { display: flex; flex-direction: column; gap: 20px; padding: 64px 0 52px; }
.bld-secthead-cols { display: grid; grid-template-columns: 0.84fr 1fr; align-items: start; gap: 40px; }
.bld-secthead-right { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.bld-secthead-right .bld-body { max-width: 480px; }
@media (max-width: 900px) {
  .bld-secthead { padding: 48px 20px 36px; }
  .bld-secthead-cols { grid-template-columns: 1fr; }
}

/* ---------- Feature grid with INSET rules (lines don't reach edges) ---------- */
.bld-grid { display: grid; }
.bld-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bld-grid-cell {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 44px 40px;
}
/* outer cells align to the container edge (80px), inner cells keep the gap */
.bld-grid-3 > .bld-grid-cell:nth-child(3n+1) { padding-left: 0; }
.bld-grid-3 > .bld-grid-cell:nth-child(3n) { padding-right: 0; }
.bld-grid-icon { font-size: 30px; color: var(--coral); line-height: 1; }
.bld-grid-title {
  font-family: var(--font-sans); font-weight: 600; font-size: 17px;
  line-height: 1.35; letter-spacing: 0; color: var(--ink); margin: 6px 0 0;
}
.bld-grid-desc { font-size: 16px; line-height: 1.5; color: var(--gray-800); margin: 0; }
/* vertical rule between columns — 12px gap to the horizontal rules */
.bld-grid-3 > .bld-grid-cell:not(:nth-child(3n+1))::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
/* horizontal rule between rows — 12px gap to the vertical rules, flush at the container edges */
.bld-grid-3 > .bld-grid-cell:nth-child(n+4)::after {
  content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--line);
}
.bld-grid-3 > .bld-grid-cell:nth-child(3n+1)::after { left: 0; }
.bld-grid-3 > .bld-grid-cell:nth-child(3n)::after { right: 0; }
@media (max-width: 900px) {
  .bld-grid-3 { grid-template-columns: 1fr; }
  .bld-grid-3 > .bld-grid-cell:not(:nth-child(3n+1))::before { display: none; }
  .bld-grid-3 > .bld-grid-cell:not(:first-child)::after {
    content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: var(--line);
  }
  .bld-grid-cell { padding: 32px 20px; }
  /* Single column: every cell keeps both side margins (override desktop edge-flush zeroing) */
  .bld-grid-3 > .bld-grid-cell:nth-child(3n+1),
  .bld-grid-3 > .bld-grid-cell:nth-child(3n) { padding-left: 20px; padding-right: 20px; }
}

/* ---------- [02] Capabilities (header left | 2x2 grid right) + code panel ---------- */
.bld-cap { display: grid; grid-template-columns: 0.84fr 1fr; }
.bld-cap-head {
  position: relative; padding: 64px 52px 64px 0;
  display: flex; flex-direction: column; gap: 18px;
}
.bld-cap-head::after {
  content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.bld-cap-grid { display: grid; grid-template-columns: 1fr 1fr; padding-left: 12px; }
.bld-cap-cell { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 40px; }
.bld-cap-grid > .bld-cap-cell:nth-child(odd) { padding-left: 0; }
.bld-cap-grid > .bld-cap-cell:nth-child(even) { padding-right: 0; }
.bld-cap-grid > .bld-cap-cell:nth-child(even)::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.bld-cap-grid > .bld-cap-cell:nth-child(n+3)::after {
  content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--line);
}
.bld-cap-grid > .bld-cap-cell:nth-child(odd)::after { left: 0; }
.bld-cap-grid > .bld-cap-cell:nth-child(even)::after { right: 0; }
/* Integration logos strip (AI card: "connect your own provider") */
.bld-cap-logos { margin-top: 4px; display: flex; flex-direction: column; gap: 12px; }
.bld-cap-logos-label { color: var(--gray-500); }
.bld-cap-logos-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.bld-cap-logo {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; color: var(--gray-600);
}
.bld-cap-logo-img { height: 17px; width: auto; display: block; opacity: .85; }
@media (max-width: 900px) {
  .bld-cap { grid-template-columns: 1fr; }
  .bld-cap-head { padding: 48px 20px 0; }
  .bld-cap-head::after { display: none; }
  .bld-cap-grid { grid-template-columns: 1fr; padding-left: 0; }
  .bld-cap-grid > .bld-cap-cell:nth-child(even)::before { display: none; }
  .bld-cap-grid > .bld-cap-cell:not(:first-child)::after {
    content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: var(--line);
  }
  .bld-cap-cell { padding: 32px 20px; }
  /* Single column: every cell keeps both side margins (override desktop edge-flush zeroing) */
  .bld-cap-grid > .bld-cap-cell:nth-child(odd),
  .bld-cap-grid > .bld-cap-cell:nth-child(even) { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Showcase (tall section, pinned content, scroll-progress bar) ---------- */
.bld-showcase { position: relative; height: 280vh; }
.bld-showcase-pin {
  position: sticky; top: 0; height: 100vh; min-height: 660px;
  display: flex; flex-direction: column;
}
.bld-showcase-head { text-align: center; padding: 56px 40px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; flex-shrink: 0; }
.bld-showcase-body { flex: 1; display: grid; grid-template-columns: 0.9fr 1fr; align-items: center; }
.bld-showcase-list { display: grid; grid-template-columns: 2px 1fr; gap: 28px; }
.bld-showcase-track { position: relative; width: 2px; background: var(--line); border-radius: 2px; }
.bld-showcase-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--coral); border-radius: 2px; }
.bld-showcase-marker {
  position: absolute; left: 50%; top: 0;
  width: 8px; height: 8px; background: var(--coral);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--gray-50);
}
.bld-showcase-items { display: flex; flex-direction: column; gap: 40px; padding: 4px 0; }
.bld-showcase-item { opacity: .3; transition: opacity .3s ease; }
.bld-showcase-item.is-active { opacity: 1; }
.bld-showcase-title { font-family: var(--font-sans); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: 0; color: var(--ink); margin: 0 0 8px; }
.bld-showcase-desc { font-size: 16px; line-height: 1.5; color: var(--gray-800); margin: 0; max-width: 40ch; }
/* Stage IS the chat — lilac doodle wallpaper (matches hero panel), messages enter on top */
.bld-showcase-stage {
  width: 100%; height: 420px; align-self: center;
  display: grid; place-items: end center;
  background-color: #e6dcfb;
  background-image: url("/assets/builders/wa-doodle-68f9a526.svg");
  background-size: 200px 200px;
}
.bld-showcase-phone {
  width: 100%; max-width: none; height: 100%;
  background: transparent; border: none; box-shadow: none; border-radius: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.bld-showcase-screen {
  padding: 48px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.bld-sc-scene { display: none; flex-direction: column; gap: 11px; }
.bld-sc-scene.is-active { display: flex; }
.bld-sc-scene.is-active > * { animation: bld-sc-pop .42s cubic-bezier(.34, 1.56, .64, 1) both; }
.bld-sc-scene.is-active > :nth-child(2) { animation-delay: .16s; }
.bld-sc-scene.is-active > :nth-child(3) { animation-delay: .32s; }
@keyframes bld-sc-pop {
  0% { opacity: 0; transform: translateY(11px) scale(.92); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.bld-sc-bub {
  position: relative; display: flow-root;
  max-width: 76%; padding: 8px 12px 9px; border-radius: 9px;
  font-size: 16px; line-height: 1.42; color: #111b21;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.bld-sc-bub.in { align-self: flex-start; background: #ffffff; border-top-left-radius: 0; }
.bld-sc-bub.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.bld-sc-bub.in::after {
  content: ""; position: absolute; top: 0; left: -8px;
  border-top: 8px solid #ffffff; border-left: 8px solid transparent;
}
.bld-sc-bub.out::after {
  content: ""; position: absolute; top: 0; right: -8px;
  border-top: 8px solid #d9fdd3; border-right: 8px solid transparent;
}
.bld-sc-meta {
  float: right; margin: 4px 0 -1px 12px; position: relative; top: 4px;
  font-size: 12px; line-height: 1; color: rgba(17, 27, 33, .5);
}
.bld-sc-meta i { font-size: 15px; margin-left: 2px; color: #53bdeb; vertical-align: -2px; }
.bld-sc-agent { display: block; font-size: 13.5px; font-weight: 600; color: #008069; margin-bottom: 2px; }
/* Template message with media header + CTA button */
.bld-sc-card { padding: 0; max-width: 84%; }
.bld-sc-img {
  display: block; width: 100%; height: 162px; object-fit: cover;
  border-radius: 9px 0 0 0;
}
.bld-sc-card-body { padding: 9px 12px 7px; }
.bld-sc-card .bld-sc-btn { margin-top: 5px; padding: 11px; }
/* Single quick-reply / Flow CTA button */
.bld-sc-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(0, 0, 0, .08);
  color: #027eb5; font-weight: 500;
}
.bld-sc-btn i { font-size: 17px; }
/* Sequence gap pill (e.g. "2 days later") */
.bld-sc-gap {
  align-self: center; margin: 1px 0;
  font-size: 12px; color: rgba(17, 27, 33, .55);
  background: rgba(255, 255, 255, .7); padding: 4px 11px; border-radius: 9px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
/* WhatsApp Flow card */
.bld-sc-flow { min-width: 234px; padding-bottom: 0; }
.bld-sc-hd { display: block; font-weight: 600; margin-bottom: 2px; }
.bld-sc-flow-sub { display: block; color: rgba(17, 27, 33, .6); font-size: 14px; }
@media (max-width: 900px) {
  .bld-showcase { height: auto; }
  .bld-showcase-pin { position: static; height: auto; min-height: 0; }
  .bld-showcase-head { padding: 48px 20px 0; }

  /* initShowcaseResponsive() moves each scene inside its item on mobile, so the
     section is a plain stack: image (scene card) → text, image → text. The empty
     stage is hidden; the item's 20px padding aligns text and card to one margin. */
  .bld-showcase-body { display: block; padding: 32px 0 48px; }
  .bld-showcase-list { display: block; width: auto; }
  .bld-showcase-track { display: none; }
  .bld-showcase-items { display: block; padding: 0; }
  .bld-showcase-stage { display: none; }
  .bld-showcase-item { opacity: 1; display: block; padding: 0 20px; margin-bottom: 40px; }
  .bld-showcase-item:last-child { margin-bottom: 0; }

  /* Uniform-height card above its text, flush to the item's 20px margin */
  .bld-showcase-item .bld-sc-scene {
    display: flex; height: 420px; overflow: hidden;
    margin: 0 0 20px; border-radius: 12px; justify-content: center;
  }

  /* Platform: WhatsApp chat card on lilac wallpaper (bubbles keep their own align-self) */
  .bld-showcase-chat .bld-sc-scene {
    padding: 24px 20px;
    background-color: #e6dcfb;
    background-image: url("/assets/builders/wa-doodle-68f9a526.svg");
    background-size: 200px 200px;
  }

  /* API: product visual (code / screenshot / phone) centered on the squared card */
  .bld-showcase-api .bld-sc-scene {
    padding: 20px; align-items: center;
    background-color: var(--gray-50);
    background-image:
      linear-gradient(to right, rgba(26,25,24,.07) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(26,25,24,.07) 1px, transparent 1px);
    background-size: 26px 26px;
  }
  /* Keep the showcase phone at its designed width so the 0.66 scale stays
     proportional (the global .bld-phone max-width:100% squeezes it to the frame
     and elongates it). */
  .bld-sc-phone-frame .bld-phone { width: 300px; max-width: none; }
}

/* ---------- Security (header left | desc + items right) ---------- */
/* Security — centered header + bounded card row (icon top, title, subtitle) */
.bld-sec-head {
  text-align: center; padding: 64px 40px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.bld-sec-head .bld-h2 { max-width: 22ch; }
.bld-sec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 56px; border-top: 1px solid var(--line);
}
.bld-sec-cell {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  min-height: 168px; padding: 36px 28px;
}
.bld-sec-cell:first-child { padding-left: 0; }
.bld-sec-cell:last-child { padding-right: 0; }
.bld-sec-cell + .bld-sec-cell::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.bld-sec-icon { font-size: 30px; color: var(--coral); line-height: 1; }
.bld-sec-title { font-family: var(--font-sans); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: 0; color: var(--ink); margin: 0 0 6px; white-space: nowrap; }
.bld-sec-sub { font-size: 14px; line-height: 1.5; color: var(--gray-600); margin: 0; }

/* ---------- CTA coral band ---------- */
.bld-ctaband { background: var(--ink); border-radius: 16px; margin: 24px 0; padding: 96px 40px; }
.bld-ctaband-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.bld-ctaband .bld-h1 { color: #ffffff; max-width: 18ch; }
.bld-ctaband-api .bld-h1 { max-width: 30ch; text-wrap: balance; }
.bld-ctaband .bld-cta-copy { align-items: center; }
.bld-ctaband .bld-lead { color: rgba(255,255,255,.72); text-align: center; }
.bld-btn-outline-light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,.32); }
.bld-btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

/* ---------- [03] FAQ (header left | accordion right) ---------- */
.bld-faqgrid { display: grid; grid-template-columns: 0.84fr 1fr; }
.bld-faqgrid-head {
  position: relative; padding: 64px 52px 64px 0;
  display: flex; flex-direction: column; gap: 18px;
}
.bld-faqgrid-head::after {
  content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.bld-faqgrid-list { padding-left: 12px; }
@media (max-width: 900px) {
  .bld-faqgrid { grid-template-columns: 1fr; }
  .bld-faqgrid-head { padding: 48px 20px 0; }
  .bld-faqgrid-head::after { display: none; }
  .bld-sec-head { padding: 48px 20px 0; }
  .bld-sec-grid { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .bld-sec-cell { min-height: 180px; padding: 28px 20px; }
  /* 2-col: keep a 20px margin on both outer edges (override desktop edge-flush zeroing) */
  .bld-sec-cell:first-child, .bld-sec-cell:last-child,
  .bld-sec-cell:nth-child(odd), .bld-sec-cell:nth-child(even) { padding-left: 20px; padding-right: 20px; }
  .bld-sec-cell:nth-child(n+3)::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line);
  }
  .bld-sec-title { white-space: normal; }
  .bld-faqgrid-list { padding: 0 20px 32px; }
  /* Accordion aligns to the list's 20px margin — drop its own side padding so it matches the section title */
  .bld-faqgrid-list .bld-acc-q { padding: 24px 0; }
  .bld-faqgrid-list .bld-acc-a-inner { padding: 0 0 24px; }
  .bld-ctaband { padding: 72px 20px; }
}

/* ---------- Security band ---------- */
.bld-security { padding: 80px 40px; }
.bld-security-head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.bld-security-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.bld-security-item { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px 4px 0; }
.bld-security-item + .bld-security-item { border-left: 1px solid var(--line); padding-left: 24px; }
.bld-security-icon i { font-size: 26px; color: var(--ink); display: block; }
.bld-security-label { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); max-width: 13ch; }
@media (max-width: 768px) {
  .bld-security { padding: 56px 20px; }
  .bld-security-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bld-security-item { padding: 24px 0 0; }
  .bld-security-item + .bld-security-item { border-left: none; padding-left: 0; }
}

/* ---------- Statement (bridge) ---------- */
.bld-statement { padding: 96px 40px; }
.bld-statement-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.bld-statement-inner .bld-lead { max-width: 700px; }

/* ---------- Featured highlight (shared inbox) ---------- */
.bld-highlight { display: grid; grid-template-columns: 1fr 1fr; }
.bld-highlight-copy {
  padding: 80px 40px; display: flex; flex-direction: column;
  justify-content: center; gap: 20px;
}
.bld-highlight-copy .bld-body { max-width: 460px; }
.bld-highlight-visual {
  background: #d8d4d0;
  border-left: 1px solid var(--line);
  padding: 56px 40px; display: flex; align-items: center; justify-content: center;
}
.bld-highlight-visual .bld-shot-img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .14);
}

/* ---------- Product / playground (teal) ---------- */
.bld-playground {
  position: relative;
  margin-top: 80px;
  background-color: #d8d4d0;
  padding: 64px 40px;
  overflow: hidden;
}
.bld-pg-canvas {
  position: relative;
  z-index: 1;
  height: 540px;
  max-width: 1000px;
  margin: 0 auto;
}
.bld-pg-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* draggable windows */
.bld-win {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  overflow: hidden;
  user-select: none;
}
.bld-win-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  cursor: grab;
}
.bld-win-titlebar:active { cursor: grabbing; }
.bld-win-dragging { box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.bld-dot-r, .bld-dot-y, .bld-dot-g { width: 12px; height: 12px; border-radius: 50%; }
.bld-dot-r { background: #ff5f57; }
.bld-dot-y { background: #febc2e; }
.bld-dot-g { background: #28c840; }
.bld-win-title {
  margin-left: 6px;
  font-family: var(--font-code);
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

/* code window */
.bld-win-code { width: 560px; top: 70px; left: 0; background: #1b1f23; }
.bld-win-code .bld-win-titlebar { background: #15181b; }
.bld-code {
  margin: 0;
  padding: 20px;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.7;
  color: #e6e6e6;
  user-select: text;
  white-space: pre;
  overflow-x: auto;
}
.bld-code .tok-cmd { color: #8be9fd; }
.bld-code .tok-flag { color: #ff9e64; }
.bld-code .tok-str { color: #9ece6a; }
.bld-code .tok-key { color: #c0caf5; }
.bld-code-run {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 16px;
  background: #1b1f23;
}
.bld-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #06210a;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.bld-run-btn:hover { opacity: .9; }
.bld-run-btn:disabled { opacity: .6; cursor: default; }

/* phone window inside playground */
.bld-win-phone { width: 250px; top: 150px; right: 0; left: auto; background: #1a1918; padding: 0; }
.bld-win-phone .bld-win-titlebar { background: #111; }
.bld-pg-phone-screen {
  background: #0b141a;
  padding: 16px 12px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.bld-pg-phone-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: #202c33;
}
.bld-pg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green); display:flex; align-items:center; justify-content:center; color:#06210a; font-weight:700; font-size:13px; }
.bld-pg-name { color:#e9edef; font-size:13px; font-weight:600; }
.bld-pg-incoming {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.bld-pg-incoming.show { opacity: 1; transform: none; }

/* ---------- Feature grid (2 rows; horizontals are full-width hl-* on rows) ---------- */
/* No top margin: the grid sits flush against the teal section above (per Figma). */
.bld-features { margin-top: 0; }
.bld-features-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.bld-feature { padding: 40px; }
.bld-features-row .bld-feature + .bld-feature { border-left: 1px solid var(--line); }
.bld-feature-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--scooter-light);
  color: var(--scooter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.bld-feature-icon i { font-size: 20px; }
.bld-feature h3 { margin-bottom: 12px; }

/* ---------- FAQ section ---------- */
.bld-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.bld-faq-title { display: flex; flex-direction: column; gap: 8px; padding: 56px 40px; }
.bld-faq .bld-accordion { border-left: 1px solid var(--line); }

/* ---------- CTA ---------- */
.bld-cta {
  position: relative;
  background-color: #ffffff;
  padding: 90px 40px;
  text-align: center;
}
.bld-cta-inner {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.bld-cta-copy { display: flex; flex-direction: column; gap: 8px; }
.bld-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bld-cta-note { margin-top: 4px; font-size: 14px; color: var(--gray-800); }

/* ---------- Footer ---------- */
.bld-footer {
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  padding: 40px 0;
}
/* Full-bleed background: gray band spans the whole viewport, content stays in the container */
.bld-footer::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: var(--gray-200);
  z-index: -1;
}
.bld-footer-main { display: flex; flex-direction: column; gap: 40px; }
.bld-footer-cols { display: flex; }
.bld-footer-col {
  display: flex; flex-direction: column; gap: 12px;
  width: 200px; min-height: 180px; padding-left: 12px;
  border-left: 1px solid #beb8b3;
}
.bld-footer-heading {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.36px; text-transform: uppercase; color: var(--gray-600);
}
.bld-footer-col a {
  font-size: 15px; line-height: 1.5; letter-spacing: -0.15px;
  color: var(--ink); text-decoration: none;
}
.bld-footer-col a:hover { color: var(--gray-500); }
.bld-footer-copy {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.36px; text-transform: uppercase; color: #6f635f;
}
.bld-footer-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  width: 300px; min-height: 180px; padding-left: 12px;
  border-left: 1px solid #beb8b3;
}
.bld-footer-brand .bld-logo img { height: 24px; width: auto; display: block; }
.bld-footer-tagline { max-width: 240px; margin: 0; font-size: 16px; line-height: 1.5; color: var(--gray-800); }
.bld-lang { position: relative; }
.bld-lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 8px;
  border: 1px solid #beb8b3; border-radius: 8px;
  background: transparent; cursor: pointer; list-style: none;
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
}
.bld-lang-btn::-webkit-details-marker { display: none; }
.bld-lang-btn i { font-size: 16px; }
.bld-lang-caret { transition: transform .2s ease; }
.bld-lang[open] .bld-lang-caret { transform: rotate(180deg); }
.bld-lang-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0;
  min-width: 150px; padding: 4px;
  display: flex; flex-direction: column;
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
.bld-lang-opt { padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink); text-decoration: none; }
.bld-lang-opt:hover { background: var(--gray-50); }
.bld-lang-opt.is-active { color: var(--ink); font-weight: 600; }

/* ---------- Scroll animation ---------- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bld-h1 { font-size: 44px; }
  .bld-h2 { font-size: 34px; }
  .bld-hero { grid-template-columns: 1fr; }
  .bld-hero-right { border-left: none; border-top: 1px solid var(--line); min-height: 460px; }
  .bld-head { grid-template-columns: 1fr; gap: 24px; }
  .bld-steps { grid-template-columns: 1fr; }
  .bld-steps .bld-accordion { border-left: none; }
  .bld-highlight { grid-template-columns: 1fr; }
  .bld-highlight-visual { border-left: none; border-top: 1px solid var(--line); }
  .bld-faq { grid-template-columns: 1fr; }
  .bld-faq .bld-accordion { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 768px) {
  .bld-statement { padding: 64px 20px; }
  .bld-highlight-copy { padding: 48px 20px; }
  .bld-highlight-visual { padding: 32px 20px; }
  .bld-container { border-inline: none; }
  .bld-header-inner { display: flex; justify-content: space-between; padding-inline: 20px; }
  .bld-nav, .bld-header-actions { display: none; }
  .bld-menu { display: block; }
  .bld-h1 { font-size: 36px; }
  .bld-h2 { font-size: 30px; }
  .bld-hero-left { padding: 48px 20px; }
  .bld-hero-right { min-height: 0; padding: 36px 20px; }
  .bld-phone { width: 290px; max-width: 100%; }
  .bld-head { padding: 48px 20px 0; }
  .bld-features-row { grid-template-columns: 1fr; }
  .bld-features-row .bld-feature + .bld-feature { border-left: none; border-top: 1px solid var(--line); }
  .bld-faq-title { padding: 48px 20px; }
  .bld-playground { padding: 40px 16px; }
  .bld-pg-canvas { height: auto; }
  .bld-win { position: relative; top: auto; left: auto; right: auto; width: 100% !important; margin-bottom: 20px; }
  .bld-win-phone { max-width: 280px; margin-inline: auto; }
  .bld-footer { flex-direction: column; gap: 32px; padding: 40px 20px; }
  /* Unwrap .bld-footer-main so copyright can sit last, below brand + language */
  .bld-footer-main { display: contents; }
  .bld-footer-cols { order: 1; flex-wrap: wrap; gap: 24px 0; }
  .bld-footer-brand { order: 2; width: 100%; min-height: 0; border-left: none; padding-left: 0; }
  .bld-footer-copy { order: 3; }
  .bld-footer-col { min-height: 0; width: 50%; }
}

/* ============================================
   Home — centered hero + "choose your path" split
   ============================================ */
.bld-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 100px 40px 80px;
}
.bld-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.39px;
  text-transform: uppercase;
  color: #009e46;
}
.bld-provider-badge-bracket { opacity: .65; }
.bld-provider-badge-wa { height: 22px; width: auto; display: inline-block; }
.bld-hero-center .bld-h1 { font-size: 56px; max-width: 820px; }
.bld-hero-center-trusted { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 12px; }
.bld-hero-center-logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.bld-hero-center-logos img { height: 32px; width: auto; filter: grayscale(1); opacity: .78; }

/* Product split — two cards (Platform / API), each with a framed product preview */
.bld-split { display: flex; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.bld-split-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 12px;
  text-decoration: none;
  transition: flex-grow .55s cubic-bezier(.4, 0, .2, 1);
}
/* Content bleeds to the guide lines: flush with the container edges, 12px from the center divider */
.bld-split-card:first-child { padding-right: 12px; }
.bld-split-card:last-child { padding-left: 12px; }
/* Divider drawn as an inset pseudo-element so it floats — doesn't touch the top rule or the footer */
.bld-split-card + .bld-split-card::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line);
}
/* Hover: the active card expands, so its sibling gives up width (State-of-AI-Design style) */
/* Hover: preview grows in BOTH dimensions (sibling shrinks) and content shifts down — echoes the reference */
.bld-split-card:hover { flex-grow: 1.32; }
.bld-app, .bld-api-demo { transition: transform .5s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.bld-split-card:hover .bld-app,
.bld-split-card:hover .bld-api-demo { transform: scale(1.14); }

.bld-split-head { display: flex; align-items: center; justify-content: space-between; }
.bld-split-tag { display: inline-flex; align-items: center; gap: 12px; }
.bld-split-tag .bld-overline { color: var(--ink); font-size: 13px; }
.bld-split-dot { width: 8px; height: 8px; flex-shrink: 0; }
.bld-split-dot-platform { background: #ff6b4a; }
.bld-split-dot-api { background: #cdaaff; }
.bld-split-arrow { color: var(--gray-500); line-height: 0; transition: transform .25s ease; }
.bld-split-arrow i { font-size: 20px; }
.bld-split-card:hover .bld-split-arrow { transform: translate(3px, -3px); }

.bld-split-panel {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  height: 364px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
  transition: height .5s cubic-bezier(.4, 0, .2, 1);
}
/* Panel grows taller on hover — pushes the description/link down ("se corre") */
.bld-split-card:hover .bld-split-panel { height: 414px; }
@media (prefers-reduced-motion: reduce) {
  .bld-split-card:hover { flex-grow: 1; }
  .bld-split-card:hover .bld-split-panel { height: 364px; }
  .bld-split-card:hover .bld-app, .bld-split-card:hover .bld-api-demo { transform: none; }
}
/* Accent bar sweeps in along the bottom of the active card's preview */
.bld-split-panel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.bld-split-card:first-child .bld-split-panel::after { background: #ff6b4a; }
.bld-split-card:last-child .bld-split-panel::after { background: #cdaaff; }
.bld-split-card:hover .bld-split-panel::after { transform: scaleX(1); }

/* Live platform mockup (Platform card) — kerni dashboard with an animated conversation */
.bld-app {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid #ebe8e4;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  overflow: hidden;
  font-family: var(--font-sans);
  text-align: left;
  color: var(--ink);
}
.bld-app i { font-size: 12px; }

/* Window chrome bar (browser-style) */
.bld-app-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 28px; padding: 0 13px; flex-shrink: 0;
  background: #e9e7e3; border-bottom: 1px solid #e2dfda;
}
.bld-app-dots { justify-self: start; display: flex; gap: 6px; }
.bld-app-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c6c2bd; }
.bld-app-url {
  justify-self: center; width: 230px;
  display: flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 6px;
  background: #f4f2ee;
  font-size: 8.5px; color: var(--gray-500);
}
.bld-app-url-txt { flex: 1; text-align: center; }
.bld-app-url i { font-size: 9px; color: var(--gray-500); }
.bld-app-body { flex: 1; min-height: 0; display: flex; }

/* Sidebar */
.bld-app-side {
  width: 116px; flex-shrink: 0;
  display: flex; flex-direction: column;
  padding: 9px 8px;
  border-right: 1px solid #ebe8e4;
  background: #fbfaf9;
}
.bld-app-logo { margin: 2px 3px 7px; line-height: 0; }
.bld-app-logo img { height: 13px; width: auto; display: block; }
.bld-app-account {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 5px; margin-bottom: 7px;
  border: 1px solid #ebe8e4; border-radius: 6px;
  font-size: 7.5px; font-weight: 400;
  white-space: nowrap; overflow: hidden;
}
.bld-app-account > span { overflow: hidden; text-overflow: ellipsis; }
.bld-app-account-caret { margin-left: auto; color: var(--gray-500); }
.bld-app-account i { font-size: 8px; }
.bld-app-account i:first-child { color: #247f96; }
.bld-app-nav { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.bld-app-nav-item {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 6px; border-radius: 6px;
  font-size: 7.5px; color: var(--gray-800);
  white-space: nowrap; overflow: hidden;
}
.bld-app-nav-item i { font-size: 10px; flex-shrink: 0; color: var(--gray-600); }
.bld-app-nav-item.is-active { background: #efece8; color: var(--ink); font-weight: 500; }
.bld-app-nav-item.is-active i { color: var(--gray-800); }
.bld-app-nav-chev { margin-left: auto; font-size: 8px !important; color: var(--gray-500) !important; }
.bld-app-nav-label {
  font-size: 6px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--gray-500); margin: 4px 0 0; padding-left: 6px;
}
.bld-app-user {
  flex-shrink: 0; display: flex; align-items: center; gap: 5px;
  margin-top: 6px; padding-top: 7px; border-top: 1px solid #ebe8e4;
  font-size: 8.5px; color: var(--gray-600);
  white-space: nowrap; overflow: hidden;
}
.bld-app-uava {
  width: 16px; height: 16px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gray-200); color: var(--gray-800); font-size: 7.5px; font-weight: 600;
}

/* Conversation list */
.bld-app-list { width: 128px; flex-shrink: 0; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #ebe8e4; }
.bld-app-list-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px; }
.bld-app-list-title { font-size: 10.5px; font-weight: 600; letter-spacing: -.2px; }
.bld-app-list-actions { display: flex; align-items: center; gap: 7px; }
.bld-app-list-actions > i { color: var(--gray-500); font-size: 11px; }
.bld-app-compose { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: #ff6b4a; }
.bld-app-compose i { color: #ffffff; font-size: 9px; }
.bld-app-search {
  display: flex; align-items: center; gap: 5px;
  margin: 2px 10px 0; padding: 3px 7px; border-radius: 6px;
  background: #f1efed; font-size: 7.5px; color: var(--gray-500);
}
.bld-app-search i { font-size: 10px; }
.bld-app-tabs { display: flex; align-items: center; gap: 8px; padding: 6px 10px 5px; font-size: 7.5px; color: var(--gray-600); }
.bld-app-tabs .is-active { color: var(--ink); font-weight: 500; }
.bld-app-tabs-filter { margin-left: auto; color: var(--gray-500); font-size: 11px; }
.bld-app-ci { display: flex; gap: 7px; padding: 5px 9px; align-items: center; }
.bld-app-ci.is-active { background: #f1efec; }
.bld-app-ci-ava {
  width: 18px; height: 18px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 8px; font-weight: 600;
}
.bld-app-ci-ava-c { background: #ffe0d6; color: #c2410c; }
.bld-app-ci-ava-l { background: #ece0fb; color: #7c3aed; }
.bld-app-ci-ava-p { background: #fde0ec; color: #db2777; }
.bld-app-ci-body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.bld-app-ci-top { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; }
.bld-app-ci-name { flex: 1; min-width: 0; font-size: 7.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bld-app-ci-time { font-size: 7.5px; color: var(--gray-500); flex-shrink: 0; }
.bld-app-ci-prev { font-size: 7.5px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Active conversation pane */
.bld-app-conv { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bld-app-conv-head { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-bottom: 1px solid #ebe8e4; flex-shrink: 0; }
.bld-app-ch-ava { width: 18px; height: 18px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #ffe0d6; color: #c2410c; font-size: 8px; font-weight: 600; }
.bld-app-ch-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.bld-app-ch-name { font-size: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bld-app-ch-sub { font-size: 7.5px; color: var(--gray-500); }
.bld-app-ch-icon { margin-left: auto; color: var(--gray-500); font-size: 12px; }
.bld-app-chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 11px 12px; background: #fbfaf8; }
.bld-app-input { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-top: 1px solid #ebe8e4; flex-shrink: 0; color: var(--gray-500); }
.bld-app-input > i { font-size: 13px; }
.bld-app-inputfield { flex: 1; font-size: 8px; color: var(--gray-500); }
.bld-app-send { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #ff6b4a; color: #fff; }
.bld-app-send i { font-size: 11px; color: #fff; }

/* Message bubbles (shared) — clean Kerni inbox look */
.bld-inbox-datepill { align-self: center; margin-bottom: 3px; padding: 2px 7px; border-radius: 6px; background: #efece9; font-size: 7px; color: var(--gray-600); }
.bld-inbox-row { display: flex; }
.bld-inbox-in { justify-content: flex-start; }
.bld-inbox-out { justify-content: flex-end; }
.bld-inbox-bubble { position: relative; max-width: 74%; padding: 5px 7px 4px; border-radius: 8px; font-size: 8.5px; line-height: 1.35; color: #1f2937; }
.bld-inbox-in .bld-inbox-bubble { background: #ffffff; border-top-left-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.bld-inbox-out .bld-inbox-bubble { background: #e7f3ee; border-top-right-radius: 2px; }
.bld-inbox-time { display: inline-flex; align-items: center; gap: 2px; float: right; margin: 3px 0 -1px 6px; font-size: 7px; color: var(--gray-500); }
.bld-inbox-ticks { font-size: 8px; color: #34b7f1; }
.bld-inbox-typing-row { display: none; }
.bld-inbox-typing-row.show { display: flex; }
.bld-inbox-typingbubble { display: inline-flex; gap: 3px; padding: 7px 9px; }
.bld-inbox-typingbubble span { width: 5px; height: 5px; border-radius: 50%; background: var(--gray-500); animation: bld-inbox-typing 1.2s infinite ease-in-out; }
.bld-inbox-typingbubble span:nth-child(2) { animation-delay: .15s; }
.bld-inbox-typingbubble span:nth-child(3) { animation-delay: .3s; }
@keyframes bld-inbox-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Animation: hidden rows collapse (no space) until JS reveals; no-JS / reduced-motion keep all visible */
[data-inbox].is-anim [data-inbox-msg],
[data-inbox].is-anim [data-inbox-typing] { display: none; }
[data-inbox].is-anim [data-inbox-msg].show { animation: bld-msg-in .28s ease both; }
[data-inbox].is-anim [data-inbox-msg].show,
[data-inbox].is-anim [data-inbox-typing].show { display: flex; }

/* "Explore" cursor follower — trails the pointer over a product card.
   Outer layer tracks position (instant); inner layer does the scale/fade reveal. */
.bld-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}
.bld-cursor-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: opacity .18s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.bld-cursor.is-visible .bld-cursor-inner { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bld-cursor-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--cursor-color, #ff6b4a); }
.bld-split-desc { font-size: 17px; line-height: 29px; color: var(--gray-800); margin: 0; max-width: 46ch; }
.bld-split-link {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px; color: var(--ink);
}
.bld-split-link i { font-size: 16px; transition: transform .25s ease; }
.bld-split-card:hover .bld-split-link i { transform: translate(3px, -3px); }

/* Live API code editor — dark editor with Send / Receive tabs */
.bld-api-demo {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: #1b1f23;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  overflow: hidden;
  text-align: left;
}
.bld-api-demo-tabs {
  display: flex; align-items: center; gap: 24px;
  padding: 0 18px;
  background: #15181b;
  font-family: var(--font-sans);
  font-size: 13px;
}
.bld-api-tab {
  position: relative;
  padding: 13px 0;
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: color .2s ease;
}
.bld-api-tab:hover { color: rgba(255, 255, 255, .8); }
.bld-api-tab.is-active { color: #ffffff; font-weight: 600; }
.bld-api-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green);
}
.bld-api-demo-pane { flex: 1; min-height: 0; display: flex; }
.bld-api-demo-body {
  flex: 1; margin: 0; padding: 20px;
  font-family: var(--font-code);
  font-size: 12.5px; line-height: 1.8;
  overflow: hidden;
  color: #e6e6e6;
}
.bld-api-ln { white-space: pre; }
/* Typing reveal: only engaged when JS adds .is-anim (no-JS / reduced-motion keep lines visible) */
.bld-api-demo.is-anim .bld-api-ln { opacity: 0; transform: translateY(3px); transition: opacity .3s ease, transform .3s ease; }
.bld-api-demo.is-anim .bld-api-ln.is-in { opacity: 1; transform: none; }
.bld-api-caret {
  display: inline-block; width: 7px; height: 1em; margin-left: 2px;
  background: #8be9fd; vertical-align: -2px;
  opacity: 0;
}
.bld-api-demo.is-anim .bld-api-ln.is-in .bld-api-caret { animation: bld-caret-blink 1s steps(1) infinite; }
@keyframes bld-caret-blink { 0%, 50% { opacity: .8; } 50.01%, 100% { opacity: 0; } }
.bld-api-demo-body .tok-cmd { color: #8be9fd; }
.bld-api-demo-body .tok-flag { color: #ff9e64; }
.bld-api-demo-body .tok-str { color: #9ece6a; }
.bld-api-demo-body .tok-key { color: #c0caf5; }
.bld-api-demo-body .tok-p { color: rgba(255, 255, 255, .4); }

@media (max-width: 900px) {
  .bld-hero-center { padding: 56px 20px 48px; }
  .bld-hero-center .bld-h1 { font-size: 38px; }
  .bld-split { flex-direction: column; align-items: stretch; }
  .bld-split-card, .bld-split-card:hover { flex-grow: 1; }
  .bld-split-card, .bld-split-card:first-child, .bld-split-card:last-child { padding: 32px 20px; }
  .bld-split-card + .bld-split-card { border-top: 1px solid var(--line); }
  .bld-split-card + .bld-split-card::before { display: none; }
  .bld-split-panel { height: 300px; }
  .bld-split-card:last-child .bld-split-panel::after,
  .bld-split-card:first-child .bld-split-panel::after { transform: scaleX(1); }
}
