/* ==========================================================================
   builders.css -- Builders landing page (cream theme)
   Adapted from sprout-builders-hq reference, remapped to cream docs tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Accent */
  --bldr-accent: var(--docs-brand);
  --bldr-accent-emph: var(--docs-brand-emph);
  --bldr-accent-light: #e0f2fe;
  --bldr-accent-50: #f0f9ff;

  /* Surface / border / text */
  --bldr-surface: var(--docs-bg-secondary);
  --bldr-border: var(--docs-border-secondary);
  --bldr-text-1: var(--docs-fg-primary);
  --bldr-text-2: var(--docs-fg-secondary);
  --bldr-text-3: var(--docs-fg-tertiary);

  /* Map tool-card tokens to docs tokens */
  --border-secondary: var(--docs-border-primary, #d4d3d1);
  --text-primary: var(--docs-fg-primary, #262323);

  /* Terminal */
  --term-bg: #16181d;
  --term-bg-2: #1f2229;
  --term-border: #2b3038;
  --term-prompt: var(--docs-brand, #0ba5ec);
  --term-cmd: #e9eaeb;
  --term-ok: var(--docs-brand, #0ba5ec);
  --term-muted: #717680;

  /* Spacing */
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Fonts */
  --font: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* --------------------------------------------------------------------------
   2. Body override
   -------------------------------------------------------------------------- */
body.builders-page {
  overflow: auto !important;
  height: auto !important;
  display: block !important;
  background: var(--docs-bg-primary);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--bldr-text-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  min-height: 100vh;
}

/* Nav styles moved to /css/site-nav.css */

.bldr-page a {
  color: var(--bldr-accent-emph);
  text-decoration: none;
  font-weight: 500;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.bldr-page a:hover {
  text-decoration: underline;
}
.bldr-page a.docs-btn:hover,
.bldr-page a.docs-picker-card:hover,
.bldr-page a.bldr-hero-btn:hover {
  text-decoration: none;
}

.bldr-page em {
  font-style: italic;
  color: var(--bldr-text-2);
}

.bldr-page strong {
  font-weight: 600;
  color: var(--bldr-text-1);
}

.bldr-page code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--bldr-text-2);
}

.bldr-page button:not(.bldr-dot) {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.bldr-page img {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   3. Page container
   -------------------------------------------------------------------------- */
.bldr-page {
  /* No max-width — hero needs full bleed. Inner sections constrain themselves. */
  margin: 0 auto;
  padding: 0;
}

.bldr-page > *:not(.bldr-hero) {
  max-width: 92rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

@media (max-width: 760px) {
  .bldr-page > *:not(.bldr-hero) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* --------------------------------------------------------------------------
   4. Hero (cofounder.co pattern — full-bleed image, text overlay top-left)
   -------------------------------------------------------------------------- */
.bldr-hero {
  --hero-ratio: 1.710526;        /* matches cofounder aspect */
  --hero-min-height: 720px;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: var(--hero-min-height);
  overflow: hidden;
  max-width: none !important;
  padding: 0 !important;
  border-radius: 0 0 clamp(32px, 8vw, 120px) clamp(32px, 8vw, 120px);
}

@media (min-width: 768px) {
  .bldr-hero {
    --hero-min-height: 620px;
  }
}

@media (max-width: 480px) {
  .bldr-hero-cards {
    display: none;
  }
  .bldr-hero .bldr-hero-btn {
    width: 100%;
    justify-content: center;
  }
}

.bldr-hero-img {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  min-width: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  transform: translateX(-50%);
  width: max(100%, calc(max(100dvh, var(--hero-min-height)) * var(--hero-ratio)));
}

.bldr-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  gap: 5px;
  padding: max(15dvh, 92px) 20px 0;
  max-width: 1440px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

@media (max-width: 500px) {
  .bldr-hero-content {
    padding: calc(75px + 43px) 20px 0;
  }
}

.bldr-hero .bldr-hero-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 10px 20px;
  background: var(--docs-brand, #0BA5EC);
  color: #ffffff;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.bldr-hero .bldr-hero-btn:hover {
  background: var(--docs-brand-hover, #0990d0);
  color: #ffffff;
}

.bldr-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 46px;
  line-height: 108%;
  letter-spacing: 0.32px;
  font-weight: 800;
  color: #262323;
  margin: 0;
}
.bldr-hero-sub { color: #5c5959; }
.bldr-hero .bldr-hero-btn { color: #ffffff; }

@media (max-width: 900px) {
  .bldr-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .bldr-hero h1 br {
    display: none;
  }
}

@media (max-width: 500px) {
  .bldr-hero h1 {
    font-size: 32px;
    line-height: 110%;
  }
}

.bldr-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 140%;
  color: #5c5959;
  max-width: 540px;
  margin: 0;
}

@media (max-width: 760px) {
  .bldr-hero-sub {
    font-size: 16px;
    line-height: 24px;
  }
}

.bldr-typewriter {
  border-right: 2px solid var(--docs-brand);
  padding-right: 2px;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

@media (max-width: 760px) {
  .bldr-hero h1 {
    letter-spacing: -1px;
  }
}

/* Hero floating glass cards (cofounder placement: right side, upper quadrant) */
.bldr-hero-cards {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  height: 44px;
}

.bldr-hero-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 24px;
  background: rgba(245, 245, 242, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--docs-border-secondary, #dedddc);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  color: var(--docs-fg-primary);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  width: 362px;
}

.bldr-hero-card-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  position: relative;
}

.bldr-hero-card-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: #e0f2fe;
  border: 0.83px solid #fff;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bldr-hero-card-avatar-circle canvas.rive-user {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -32px;
  width: 69px;
  height: 99px;
  pointer-events: none;
}

.bldr-hero-card-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 19px;
  height: 19px;
  border-radius: 9999px;
  background: #2970ff;
  border: 0.77px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'TossFace', sans-serif;
  font-size: 10px;
  line-height: 1;
}

.bldr-hero-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  justify-content: center;
  gap: 0;
}

.bldr-hero-card-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.bldr-hero-card-title {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--docs-fg-primary, #262323);
}

.bldr-hero-card-time {
  font-size: 14px;
  line-height: 20px;
  color: var(--docs-fg-secondary, #5c5959);
  flex-shrink: 0;
}

.bldr-hero-card-desc {
  font-size: 12px;
  line-height: 16px;
  color: var(--docs-fg-primary, #262323);
  font-weight: 400;
}

/* Dark mode hero cards */
html[data-theme="dark"] .bldr-hero-card {
  background: rgba(22, 20, 20, 0.75);
  border-color: var(--docs-border-secondary);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .bldr-hero-card {
    background: rgba(22, 20, 20, 0.75);
    border-color: var(--docs-border-secondary);
  }
}

/* Enter: pop up from below */
.bldr-hero-card--enter {
  animation: heroCardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroCardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Exit: fade out upward */
.bldr-hero-card--exit {
  animation: heroCardExit 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes heroCardExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bldr-hero-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ── Butterfly flight ── */
.bldr-butterfly {
  position: absolute;
  z-index: 4;
  width: clamp(22px, 3vw, 40px);
  height: clamp(22px, 3vw, 40px);
  pointer-events: none;
  opacity: 0;
  animation: butterfly-flight 10s ease-in-out 1.5s forwards;
}
.bldr-butterfly svg { width: 100%; height: 100%; overflow: visible; }

.bldr-butterfly-wing-l {
  transform-origin: 17.5px 18.4px;
  animation: wing-flap-l 0.18s ease-in-out infinite alternate;
}
.bldr-butterfly-wing-r {
  transform-origin: 30.5px 15.9px;
  animation: wing-flap-r 0.18s ease-in-out infinite alternate;
}

@keyframes wing-flap-l {
  from { transform: rotate(-48.45deg); }
  to   { transform: rotate(-48.45deg) scaleX(0.45); }
}
@keyframes wing-flap-r {
  from { transform: rotate(26.26deg); }
  to   { transform: rotate(26.26deg) scaleX(0.45); }
}

@keyframes butterfly-flight {
  0%   { left: -6%;  top: 42%; opacity: 0;   transform: rotate(-10deg) scale(0.7); }
  5%   {                       opacity: 1; }
  50%  { left: 65%;  top: 58%;              transform: rotate(5deg) scale(1); }
  92%  {                       opacity: 1; }
  100% { left: 108%; top: 32%; opacity: 0;   transform: rotate(-8deg) scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .bldr-butterfly { animation: none !important; display: none; }
  .bldr-butterfly-wing-l,
  .bldr-butterfly-wing-r { animation: none !important; }
}

/* ── Falling leaves ── */
.bldr-leaf {
  position: absolute;
  width: clamp(8px, 1.2vw, 14px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.bldr-leaf-1 {
  left: 76%; top: 18%;
  animation: leaf-fall-1 8s ease-in 8s forwards;
}
.bldr-leaf-2 {
  left: 82%; top: 14%;
  animation: leaf-fall-2 9s ease-in 10s forwards;
}
.bldr-leaf-3 {
  left: 70%; top: 22%;
  animation: leaf-fall-3 7.5s ease-in 9s forwards;
}
.bldr-leaf-4 {
  left: 88%; top: 16%;
  animation: leaf-fall-4 10s ease-in 12s forwards;
}
.bldr-leaf-5 {
  left: 74%; top: 20%;
  animation: leaf-fall-5 8.5s ease-in 11s forwards;
}

@keyframes leaf-fall-1 {
  0%   { opacity: 0;   transform: translateY(0) translateX(0) rotate(0deg); }
  5%   { opacity: 0.8; }
  90%  { opacity: 0.7; }
  100% { opacity: 0;   transform: translateY(55vh) translateX(-12px) rotate(220deg); }
}

@keyframes leaf-fall-2 {
  0%   { opacity: 0;   transform: translateY(0) translateX(0) rotate(20deg); }
  5%   { opacity: 0.75; }
  90%  { opacity: 0.6; }
  100% { opacity: 0;   transform: translateY(54vh) translateX(10px) rotate(240deg); }
}

@keyframes leaf-fall-3 {
  0%   { opacity: 0;   transform: translateY(0) translateX(0) rotate(-15deg); }
  5%   { opacity: 0.85; }
  90%  { opacity: 0.7; }
  100% { opacity: 0;   transform: translateY(56vh) translateX(-16px) rotate(200deg); }
}

@keyframes leaf-fall-4 {
  0%   { opacity: 0;   transform: translateY(0) translateX(0) rotate(35deg); }
  5%   { opacity: 0.7; }
  90%  { opacity: 0.55; }
  100% { opacity: 0;   transform: translateY(53vh) translateX(8px) rotate(230deg); }
}

@keyframes leaf-fall-5 {
  0%   { opacity: 0;   transform: translateY(0) translateX(0) rotate(-30deg); }
  5%   { opacity: 0.8; }
  90%  { opacity: 0.65; }
  100% { opacity: 0;   transform: translateY(55vh) translateX(-6px) rotate(190deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bldr-leaf { animation: none !important; display: none; }
}

/* --------------------------------------------------------------------------
   5. Demo section
   -------------------------------------------------------------------------- */
.bldr-demo {
  margin-bottom: 0;
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.bldr-show { order: 1; }
.bldr-dots  { order: 2; }

/* --------------------------------------------------------------------------
   6. Show panel — Device Mockup iPad + Code Block (from Figma 343:2317)
   -------------------------------------------------------------------------- */
.bldr-show {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 16px;
  width: 100%;
}

/* -- Device Mockup iPad -- */
.bldr-device-ipad {
  background: var(--docs-bg-tertiary, #ecece8);
  border-radius: 24px;
  padding: 2px;
  box-shadow:
    0px 2px 2px -1px rgba(3,31,77,0.04),
    0px 4px 8px -2px rgba(3,31,77,0.06),
    0px 12px 24px -4px rgba(3,31,77,0.1);
  margin-right: -240px;
  position: relative;
  z-index: 1;
  /* Scale: at 1440px container the iPad is 1028px (1024+4px padding).
     Let it shrink naturally below that. */
  width: 1028px;
  max-width: 75%;
  flex-shrink: 1;
}

.bldr-device-inner {
  border-radius: 22px;
  padding: 2px;
  overflow: hidden;
  box-shadow: inset 0px 0px 1.896px 0.948px rgba(3,31,77,0.02),
              inset 0px 0px 2.845px 0.948px rgba(3,31,77,0.05);
}

.bldr-device-screen {
  background: var(--docs-bg-secondary, #fbfbf8);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 683;
}

/* Tablet: stack vertically, remove overlap */
@media (max-width: 980px) {
  .bldr-demo {
    padding-top: 64px;
    padding-bottom: 64px;
    gap: 32px;
  }
  .bldr-show {
    flex-direction: column;
    gap: 0;
  }
  .bldr-device-ipad {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }
  .bldr-device-inner { border-radius: 14px; }
  .bldr-device-screen { border-radius: 12px; aspect-ratio: 4 / 3; }
}

/* Mobile: tighter spacing */
@media (max-width: 480px) {
  .bldr-demo {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 24px;
  }
  .bldr-device-screen { aspect-ratio: 3 / 4; }
}

/* iPad scenes — absolute stacked, opacity-switched by data-scene */
.bldr-device-screen .ipad-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Iframe scenes fill edge-to-edge */
iframe.ipad-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Live HTML scenes get padding + flex */
.ipad-scene-html {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--docs-bg-secondary, #fbfbf8);
}

.bldr-demo[data-scene="1"] .bldr-device-screen .ipad-scene[data-scene="1"],
.bldr-demo[data-scene="2"] .bldr-device-screen .ipad-scene[data-scene="2"],
.bldr-demo[data-scene="3"] .bldr-device-screen .ipad-scene[data-scene="3"],
.bldr-demo[data-scene="4"] .bldr-device-screen .ipad-scene[data-scene="4"],
.bldr-demo[data-scene="5"] .bldr-device-screen .ipad-scene[data-scene="5"] {
  opacity: 1;
}

/* -- Code Block component -- */
.bldr-codeblock {
  background: var(--docs-bg-tertiary, #ecece8);
  border: 1px solid var(--docs-border-secondary, #e2e1df);
  border-radius: 16px;
  padding: 4px;
  width: 552px;
  max-width: 45%;
  flex-shrink: 1;
  box-shadow:
    0px 2px 2px -1px rgba(3,31,77,0.04),
    0px 4px 8px -2px rgba(3,31,77,0.06),
    0px 12px 24px -4px rgba(3,31,77,0.1);
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .bldr-codeblock {
    width: 100%;
    max-width: 100%;
    margin-top: -24px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .bldr-codeblock {
    margin-top: -16px;
    border-radius: 10px;
    padding: 3px;
  }
  .bldr-codeblock-body {
    border-radius: 8px;
    padding: 10px 12px;
  }
  .bldr-codeblock-header {
    padding: 3px 12px;
  }
  .bldr-codeblock-title {
    font-size: 11px;
  }
}

.bldr-codeblock-header {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  overflow: hidden;
}

.bldr-codeblock-title {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--docs-fg-primary, #262323);
}

.bldr-codeblock-copy {
  margin-left: auto;
  font-size: 16px;
  color: var(--docs-fg-tertiary, #8d8a8a);
  cursor: pointer;
  transition: color 0.12s;
}

.bldr-codeblock-copy:hover {
  color: var(--docs-fg-primary, #262323);
}

.bldr-codeblock-body {
  background: var(--docs-bg-secondary, #fbfbf8);
  border-radius: 12px;
  padding: 14px 16px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--docs-fg-primary, #262323);
  position: relative;
  height: 380px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .bldr-codeblock-body {
    height: 320px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .bldr-codeblock-body {
    height: 280px;
    font-size: 10px;
  }
}

/* Scene switching inside codeblock body */
.bldr-codeblock-body .term-scene {
  position: absolute;
  inset: 14px 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
  white-space: pre-wrap;
  letter-spacing: -0.005em;
}

.bldr-demo[data-scene="1"] .bldr-codeblock-body .term-scene[data-scene="1"],
.bldr-demo[data-scene="2"] .bldr-codeblock-body .term-scene[data-scene="2"],
.bldr-demo[data-scene="3"] .bldr-codeblock-body .term-scene[data-scene="3"],
.bldr-demo[data-scene="4"] .bldr-codeblock-body .term-scene[data-scene="4"],
.bldr-demo[data-scene="5"] .bldr-codeblock-body .term-scene[data-scene="5"] {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   7-16. OLD Terminal/iPad styles (replaced by Code Block + Device Mockup)
   Markdown + terminal text classes repurposed for light theme.
   -------------------------------------------------------------------------- */

/* --- Markdown scene (light theme) --- */
.term-scene.md-scene, .ec-body.md-scene { white-space: normal; font-size: 12px; overflow-y: auto; }
.md-h1 { color: var(--docs-fg-primary); font-size: 14px; font-weight: 700; margin: 0 0 10px; font-family: var(--font-mono); }
.md-h2 { color: var(--docs-fg-primary); font-size: 12px; font-weight: 700; margin: 12px 0 5px; font-family: var(--font-mono); }
.md-bq { color: var(--docs-fg-tertiary); border-left: 2px solid var(--docs-border-primary); padding: 2px 0 2px 10px; margin: 6px 0; font-style: italic; font-size: 12px; line-height: 1.55; font-family: var(--font-mono); }
.md-bq strong { color: var(--docs-fg-primary); font-style: normal; font-weight: 600; }
.md-ul { list-style: none; padding: 0; margin: 6px 0; }
.md-ul li { padding-left: 14px; position: relative; color: var(--docs-fg-primary); margin-bottom: 2px; font-size: 12px; font-family: var(--font-mono); line-height: 1.55; }
.md-ul li::before { content: '\00B7'; position: absolute; left: 4px; color: var(--docs-fg-tertiary); font-weight: 700; }
.md-em { color: var(--docs-fg-tertiary); font-style: italic; }
.md-code-inline { background: var(--docs-bg-tertiary); padding: 1px 5px; border-radius: 3px; color: var(--docs-fg-primary); font-size: 11px; font-family: var(--font-mono); }
.md-table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 11px; font-family: var(--font-mono); }
.md-table th { color: var(--docs-fg-primary); font-weight: 600; text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--docs-border-primary); font-size: 10.5px; }
.md-table td { color: var(--docs-fg-secondary); padding: 4px 8px; border-bottom: 1px dotted var(--docs-border-secondary); font-size: 11px; }

/* --- Terminal text (light theme) --- */
.term-prompt { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--docs-border-secondary); }
.term-line { margin: 3px 0; font-size: 12px; line-height: 1.55; font-family: var(--font-mono); }
.term-line .p { color: var(--term-prompt); margin-right: 6px; font-weight: 700; display: inline-block; min-width: 8px; }
.term-line .you { color: var(--docs-fg-primary); }
.term-line .ai { color: var(--term-ok); padding-left: 14px; display: inline-block; }
.term-line .ok { color: var(--term-prompt); margin-right: 6px; font-weight: 700; display: inline-block; min-width: 8px; }
.term-line .meta { color: var(--docs-fg-tertiary); font-size: 11px; font-style: italic; }
.term-line.blank { display: block; height: 6px; margin: 0; }
.t-cursor { display: inline-block; width: 8px; background: var(--term-prompt); color: transparent; margin-left: 1px; animation: cursor-blink 1s steps(1) infinite; border-radius: 1px; }
@keyframes cursor-blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* --- iPad scene content styles (reused inside Device Mockup) --- */
.ip-section-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bldr-accent-emph); }
.ip-c-head { margin-bottom: 2px; }
.ip-c-eyebrow { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bldr-accent-emph); margin-bottom: 2px; }
.ip-c-title { font-size: 14px; font-weight: 600; color: var(--bldr-text-1); }
.ip-c-section { padding: 7px 0; border-top: 1px solid var(--bldr-border); }
.ip-c-label { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bldr-text-3); margin-bottom: 5px; }
.ip-c-opts { display: flex; gap: 5px; }
.ip-c-opt { flex: 1; padding: 5px 0; background: var(--bldr-surface); border: 1px solid var(--bldr-border); border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--bldr-text-1); text-align: center; }
.ip-c-opt.is-on { background: var(--bldr-accent-50); border-color: var(--bldr-accent); color: var(--bldr-accent-emph); font-weight: 600; }
.ip-c-hair-row { display: flex; gap: 5px; }
.ip-c-hair { flex: 1; height: 22px; border-radius: 6px; border: 1px solid var(--bldr-border); }
.ip-c-hair:nth-child(1) { background: linear-gradient(180deg,#2b1810,#5a3a26); }
.ip-c-hair:nth-child(2) { background: linear-gradient(180deg,#f4c87a,#d49b3a); }
.ip-c-hair:nth-child(3) { background: linear-gradient(180deg,#c44d3c,#8a2e1f); }
.ip-c-hair:nth-child(4) { background: linear-gradient(180deg,#5c6b75,#2c3540); }
.ip-c-hair.is-on { outline: 2px solid var(--bldr-accent); outline-offset: 2px; }
.ip-photo { position: relative; flex: 1; background: linear-gradient(135deg,#fde9c8,#fcd7a9 50%,#f4b66e); border-radius: 10px; overflow: hidden; min-height: 130px; margin-top: 4px; }
.ip-photo-wall { position: absolute; inset: 0 0 38% 0; background: linear-gradient(180deg,#fef4dd,#fde2b8); }
.ip-photo-floor { position: absolute; inset: 62% 0 0 0; background: linear-gradient(180deg,#d9a978,#b6824a); }
.ip-photo-bed { position: absolute; left: 12px; bottom: 20px; width: 76px; height: 48px; background: #a78866; border-radius: 5px; box-shadow: inset 0 8px 0 #d4b48a; border-bottom: 3px solid #6b5440; }
.ip-photo-pillow { position: absolute; left: 18px; bottom: 54px; width: 24px; height: 10px; background: #fff; border-radius: 3px; }
.ip-photo-socks { position: absolute; right: 38px; bottom: 14px; width: 22px; height: 10px; background: #3f4754; border-radius: 50%; transform: rotate(-12deg); }
.ip-photo-toy { position: absolute; right: 14px; top: 22px; width: 22px; height: 22px; background: #e85a4f; border-radius: 50%; }
.ip-check { position: absolute; font-size: 9.5px; font-weight: 600; padding: 3px 8px; border-radius: 5px; background: rgba(255,255,255,0.96); backdrop-filter: blur(4px); }
.ip-check-ok { top: 9px; left: 9px; color: #2b6e1a; }
.ip-check-bad { bottom: 9px; right: 9px; color: #b42318; }
.ip-row { display: flex; align-items: flex-end; gap: 7px; }
.ip-bubble { background: var(--bldr-accent-light); color: var(--bldr-accent-emph); font-size: 11.5px; line-height: 1.35; padding: 7px 11px; border-radius: 12px 12px 12px 3px; font-weight: 500; flex: 1; }
.ip-thumbs { display: flex; gap: 5px; margin-top: 2px; }
.ip-thumb { flex: 1; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--bldr-surface); border: 1px solid var(--bldr-border); border-radius: 6px; font-size: 13px; opacity: 0.6; }
.ip-thumb.is-on { opacity: 1; background: var(--bldr-accent-50); border-color: var(--bldr-accent); }
.ip-canvas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; flex: 1; margin-top: 4px; }
.ip-cv { padding: 9px 9px 8px; background: var(--bldr-surface); border: 1px solid var(--bldr-border); border-radius: 8px; display: flex; flex-direction: column; gap: 3px; }
.ip-cv-icon { font-size: 18px; line-height: 1; margin-bottom: 2px; }
.ip-cv-type { font-size: 10.5px; font-weight: 600; color: var(--bldr-text-1); line-height: 1.25; }
.ip-cv-detail { font-size: 9.5px; color: var(--bldr-text-3); line-height: 1.3; }
.ip-cv-1 { background: linear-gradient(145deg,#fff,#fff7e6); border-color: #fce4a8; }
.ip-cv-2 { background: linear-gradient(145deg,#fff,#e6f0ff); border-color: #bdd4ff; }
.ip-cv-3 { background: linear-gradient(145deg,#fff,#fce4f4); border-color: #f4b6db; }
.ip-cv-4 { background: linear-gradient(145deg,#fff,#e8f7d6); border-color: #c6e89a; }
.ip-routine { padding: 8px 10px; background: var(--bldr-surface); border: 1px solid var(--bldr-border); border-left: 3px solid var(--bldr-accent); border-radius: 7px; }
.ip-routine-1 { border-left-color: var(--bldr-accent); }
.ip-routine-2 { border-left-color: #7daed6; }
.ip-routine-3 { border-left-color: #d6a974; }
.ip-routine-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.ip-routine-name { font-size: 11.5px; font-weight: 600; color: var(--bldr-text-1); }
.ip-routine-time { font-size: 9px; color: var(--bldr-text-3); font-family: var(--font-mono); white-space: nowrap; }
.ip-routine-steps { display: flex; flex-wrap: wrap; gap: 3px; font-size: 9.5px; color: var(--bldr-text-2); line-height: 1.3; }
.ip-routine-foot { margin-top: auto; padding-top: 6px; font-size: 9.5px; color: var(--bldr-text-3); font-style: italic; text-align: center; }
.ip-gem-card { padding: 10px 12px; background: linear-gradient(135deg,#fffbeb,#fef3c7); border: 1px solid #fcd34d; border-radius: 10px; }
.ip-gem-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ip-gem-icon { width: 18px; height: 18px; background: linear-gradient(135deg,#f4d03f,#d4920a); border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 4px rgba(180,120,0,0.3); }
.ip-gem-amt { font-size: 16px; font-weight: 700; color: #b45309; }
.ip-gem-meta { font-size: 10px; color: #92400e; font-weight: 500; margin-left: auto; }
.ip-gem-balance { font-size: 10.5px; color: #78350f; font-weight: 600; margin-bottom: 4px; }
.ip-gem-bar { height: 5px; background: rgba(120,53,15,0.15); border-radius: 99px; overflow: hidden; margin-bottom: 3px; }
.ip-gem-bar-fill { height: 100%; width: 77%; background: linear-gradient(90deg,#f4d03f,#d4920a); border-radius: 99px; }
.ip-gem-goal { font-size: 9.5px; color: #92400e; }
.ip-budget { flex: 1; padding: 9px 11px; background: var(--bldr-surface); border: 1px solid var(--bldr-border); border-radius: 9px; display: flex; flex-direction: column; gap: 5px; }
.ip-budget-hd { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bldr-accent-emph); margin-bottom: 2px; }
.ip-budget-row { display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
.ip-budget-label { width: 38px; color: var(--bldr-text-2); font-weight: 500; }
.ip-budget-bar { flex: 1; height: 5px; background: var(--docs-bg-tertiary); border-radius: 99px; overflow: hidden; }
.ip-budget-bar span { display: block; height: 100%; background: var(--bldr-accent); border-radius: 99px; }
.ip-budget-row:nth-child(3) .ip-budget-bar span { background: #3b82f6; }
.ip-budget-row:nth-child(4) .ip-budget-bar span { background: #ec4899; }
.ip-budget-amt { width: 36px; text-align: right; color: var(--bldr-text-1); font-weight: 600; font-family: var(--font-mono); font-size: 10px; }

/* --------------------------------------------------------------------------
   17. Caption
   -------------------------------------------------------------------------- */
.bldr-caption {
  position: relative;
  min-height: 110px;
  width: 100%;
  max-width: 760px;
  text-align: center;
  overflow: hidden;
}

.bldr-cap-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bldr-demo[data-scene="1"] .bldr-cap-scene[data-scene="1"],
.bldr-demo[data-scene="2"] .bldr-cap-scene[data-scene="2"],
.bldr-demo[data-scene="3"] .bldr-cap-scene[data-scene="3"],
.bldr-demo[data-scene="4"] .bldr-cap-scene[data-scene="4"],
.bldr-demo[data-scene="5"] .bldr-cap-scene[data-scene="5"] {
  opacity: 1;
}

.bldr-cap-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--docs-fg-secondary, #5c5959);
}

.bldr-cap-body {
  font-size: 19px;
  color: var(--bldr-text-1);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.012em;
  max-width: 720px;
}

@media (max-width: 760px) {
  .bldr-caption {
    min-height: 140px;
  }

  .bldr-cap-body {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   18. Dot navigation
   -------------------------------------------------------------------------- */
.bldr-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bldr-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--docs-bg-secondary, #fbfbf8);
  border: 1px solid var(--docs-border-primary, #d4d3d1);
  border-radius: 99px;
  color: var(--docs-fg-secondary, #5c5959);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.bldr-dot:hover {
  border-color: var(--docs-brand);
  color: var(--docs-fg-primary);
}

.bldr-dot.is-active {
  border-color: #a9daf3;
  background: var(--docs-info-bg, #cfeaf8);
  color: var(--docs-brand, #0ba5ec);
}

@media (max-width: 680px) {
  .bldr-dots { gap: 6px; }
  .bldr-dot { font-size: 11px; padding: 6px 12px; }
}

/* --------------------------------------------------------------------------
   19. Kicker
   -------------------------------------------------------------------------- */
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--docs-fg-secondary, #5c5959);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   20. Section headings
   -------------------------------------------------------------------------- */
.h-section {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--bldr-text-1);
  margin: 0 0 16px;
}

@media (max-width: 760px) {
  .h-section {
    font-size: 34px;
  }
}

.h-subsection {
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--bldr-text-1);
  margin: 0 0 18px;
}

@media (max-width: 760px) {
  .h-subsection {
    font-size: 28px;
  }
}

/* --------------------------------------------------------------------------
   21. Status pills
   -------------------------------------------------------------------------- */
.status-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
  font-family: var(--font);
  margin-left: 10px;
}

.status-pill-live {
  background: #d1f2c1;
  color: #3f621a;
}

.status-pill-soon {
  background: #fef3c7;
  color: #92400e;
}

.kicker .status-pill {
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   VALUE PROP SECTION
   -------------------------------------------------------------------------- */
.bldr-value {
  padding: 120px 80px;
  background: var(--docs-bg-primary, #f5f5f2);
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.bldr-value-heading {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.5px;
  color: var(--docs-fg-primary, #262323);
  text-align: center;
}

.bldr-value-row {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.bldr-value-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bldr-value-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 36px;
  letter-spacing: -0.5px;
  color: var(--docs-fg-primary, #262323);
}

.bldr-value-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--docs-fg-primary, #262323);
}

.bldr-value-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56%;
  max-width: 728px;
  position: relative;
  container-type: inline-size;
  container-name: value-image;
}

.bldr-value-codeblock {
  background: var(--docs-bg-tertiary, #ecece8);
  border: 0.66px solid var(--docs-border-tertiary, #e2e1df);
  border-radius: 2.2cqi;
  padding: 0.4cqi;
  width: 38.5cqi;
  flex-shrink: 0;
  margin-right: -32.3cqi;
  position: relative;
  z-index: 2;
  box-shadow:
    0 1.1cqi 1.1cqi rgba(3,31,77,0.1),
    0 0.36cqi 0.36cqi rgba(3,31,77,0.06),
    0 0.18cqi 0.09cqi rgba(3,31,77,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.4cqi;
}

.bldr-value-cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4cqi 1.5cqi;
  font-family: 'Inter', sans-serif;
  font-size: 1.1cqi;
  line-height: 1.5cqi;
  color: var(--docs-fg-primary, #262323);
}

.bldr-value-copy-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4cqi;
  color: var(--docs-fg-tertiary, #8d8a8a);
  font-family: 'Inter', sans-serif;
  font-size: 1.1cqi;
  transition: color 0.15s;
}
.bldr-value-copy-btn:hover { color: var(--docs-fg-primary, #262323); }
.bldr-value-copy-btn.is-copied { color: var(--docs-brand, #0ba5ec); }

.bldr-value-cb-body {
  background: var(--docs-bg-secondary, #fbfbf8);
  border-radius: 1.8cqi;
  padding: 1.3cqi 1.5cqi;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3cqi;
  line-height: 2.2cqi;
  color: var(--docs-fg-primary, #262323);
  white-space: pre-wrap;
  margin: 0;
}

.bldr-value-device {
  background: var(--docs-bg-tertiary, #ecece8);
  border-radius: 24px;
  padding: 2px;
  box-shadow:
    0 8px 8px rgba(3,31,77,0.1),
    0 2.6px 2.6px rgba(3,31,77,0.06),
    0 1.3px 0.66px rgba(3,31,77,0.04);
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.bldr-value-device-inner {
  border-radius: 22px;
  padding: 2px;
  overflow: hidden;
  position: relative;
}

.bldr-value-device-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 1.3px 1px rgba(3,31,77,0.02),
    inset 0 0 1.9px 1px rgba(3,31,77,0.05);
  z-index: 2;
}

.bldr-value-device-screen {
  background: var(--docs-bg-secondary, #fbfbf8);
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: none;
  display: block;
  position: relative;
}


@media (max-width: 1100px) {
  .bldr-value-image { width: 100%; }
}

@media (max-width: 768px) {
  .bldr-value { padding: 60px 20px; gap: 40px; }
  .bldr-value-heading { font-size: 28px; line-height: 34px; }
  .bldr-value-title { font-size: 22px; line-height: 28px; }
  .bldr-value-row { flex-direction: column; gap: 40px; }
  .bldr-value-image { width: 100%; }
}

/* --------------------------------------------------------------------------
   RUNTIME SHOWCASE SECTION
   -------------------------------------------------------------------------- */
.bldr-runtime {
  padding: 120px 80px;
  background: var(--docs-bg-primary, #f5f5f2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.bldr-runtime-heading {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.5px;
  color: var(--docs-fg-primary, #262323);
  text-align: center;
}

.bldr-runtime-tabs {
  display: inline-flex;
  align-self: center;
  gap: 4px;
  padding: 4px;
  background: var(--docs-bg-tertiary, #ecece8);
  border-radius: 999px;
}

.bldr-runtime-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--docs-fg-tertiary, #8d8a8a);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.bldr-page button.bldr-runtime-tab:hover:not(.is-active) {
  color: var(--docs-fg-secondary, #5c5959);
}

.bldr-page button.bldr-runtime-tab.is-active {
  background: var(--docs-bg-secondary, #fbfbf8);
  color: var(--docs-fg-primary, #262323);
}

.bldr-runtime-stage {
  background: var(--docs-bg-tertiary, #ecece8);
  border-radius: 50px;
  padding: 60px;
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bldr-runtime-device {
  background: var(--docs-bg-tertiary, #ecece8);
  border-radius: 27px;
  padding: 2.2px;
  box-shadow:
    0 13px 13px rgba(3,31,77,0.1),
    0 4.5px 4.5px rgba(3,31,77,0.06),
    0 2.2px 1.1px rgba(3,31,77,0.04);
}

.bldr-runtime-device-inner {
  border-radius: 22px;
  padding: 2.2px;
  overflow: hidden;
  position: relative;
}

.bldr-runtime-device-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 2.1px 1px rgba(3,31,77,0.02),
    inset 0 0 3.2px 1px rgba(3,31,77,0.05);
  z-index: 2;
}

.bldr-runtime-screen {
  background: var(--docs-bg-secondary, #fbfbf8);
  border-radius: 20px;
  width: 1151px;
  height: 768px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 1400px) {
  .bldr-runtime-stage { padding: 40px; border-radius: 32px; }
  .bldr-runtime-screen { width: 100%; height: auto; aspect-ratio: 1151/768; }
}

@media (max-width: 768px) {
  .bldr-runtime { padding: 60px 20px; }
  .bldr-runtime-heading { font-size: 28px; line-height: 34px; }
  .bldr-runtime-stage { padding: 20px; border-radius: 24px; }
  .bldr-value { overflow-x: clip; }
  .bldr-runtime-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-self: flex-start; max-width: 100%; mask-image: linear-gradient(to right, black 85%, transparent); -webkit-mask-image: linear-gradient(to right, black 85%, transparent); }
  .bldr-runtime-tabs::-webkit-scrollbar { display: none; }
}

/* --------------------------------------------------------------------------
   FEATURE SECTIONS (kid personalization, parent receipts)
   -------------------------------------------------------------------------- */
.bldr-feature {
  padding: 120px 80px;
  background: var(--docs-bg-primary, #f5f5f2);
  display: flex;
  align-items: center;
  gap: 64px;
}

.bldr-feature-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bldr-feature-title {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.5px;
  color: var(--docs-fg-primary, #262323);
}

.bldr-feature-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--docs-fg-primary, #262323);
}

.bldr-feature-mock {
  width: 728px;
  height: 600px;
  flex-shrink: 0;
  background: var(--docs-bg-tertiary, #ecece8);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 60px 0;
  overflow: hidden;
}

/* Phone device wrapper — nested radius: 20 > 2 padding > 18 > 2 padding > 16 */
.bldr-feature-device {
  background: var(--docs-bg-tertiary, #ecece8);
  border-radius: 20px 20px 0 0;
  padding: 2px 2px 0;
  flex: 1;
  min-height: 0;
  width: 314px;
  box-shadow:
    0 10px 10px rgba(3,31,77,0.1),
    0 3px 3px rgba(3,31,77,0.06),
    0 1.6px 0.8px rgba(3,31,77,0.04);
}

.bldr-feature-device-inner {
  border-radius: 18px 18px 0 0;
  padding: 2px 2px 0;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.bldr-feature-device-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 1.5px 1px rgba(3,31,77,0.02),
    inset 0 0 2.3px 1px rgba(3,31,77,0.05);
  z-index: 2;
}

.bldr-feature-device-screen {
  background: var(--docs-bg-secondary, #fbfbf8);
  border-radius: 16px 16px 0 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  position: relative;
}

@media (max-width: 1100px) {
  .bldr-feature { flex-direction: column; gap: 40px; }
  .bldr-feature-mock { width: 100%; height: auto; aspect-ratio: 728/600; }
}

@media (max-width: 768px) {
  .bldr-feature { padding: 60px 20px; }
  .bldr-feature-title { font-size: 28px; line-height: 34px; }
  .bldr-feature-mock {
    padding: 24px 24px 0;
    height: auto;
    aspect-ratio: auto;
  }
  .bldr-feature-device {
    width: 314px;
    height: 540px;
    flex: none;
    transform: scale(0.75);
    transform-origin: top center;
    margin-bottom: -135px;
  }
}

@media (max-width: 480px) {
  .bldr-feature-mock { padding: 20px 20px 0; }
  .bldr-feature-device {
    transform: scale(0.62);
    margin-bottom: -205px;
  }
}

/* --------------------------------------------------------------------------
   FOOTER ILLUSTRATION (Sprout on grass with laptop)
   -------------------------------------------------------------------------- */
.bldr-footer-scene {
  position: relative;
  background: var(--docs-bg-primary, #f5f5f2);
  overflow: hidden;
  max-width: none !important;
  padding: 0 !important;
  aspect-ratio: 1440 / 341;
}

.bldr-footer-bf {
  position: absolute;
  right: 28%;
  top: 8%;
  width: clamp(16px, 2.2vw, 30px);
  height: clamp(16px, 2.2vw, 30px);
  z-index: 4;
  pointer-events: none;
  animation: footer-bf-flight 8s ease-in-out infinite;
}
.bldr-footer-bf svg { width: 100%; height: 100%; overflow: visible; }

@keyframes footer-bf-flight {
  0%   { right: 28%; top: 8%;  transform: rotate(-5deg); }
  25%  { right: 35%; top: 28%; transform: rotate(8deg); }
  50%  { right: 28%; top: 38%; transform: rotate(-3deg); }
  75%  { right: 20%; top: 22%; transform: rotate(6deg); }
  100% { right: 28%; top: 8%;  transform: rotate(-5deg); }
}

.bldr-footer-scene-sitting {
  position: absolute;
  right: max(0px, calc((100% - 1440px) / 2));
  bottom: 16%;
  z-index: 3;
  width: 38.3%;
  max-width: 552px;
}

.bldr-footer-scene-sitting img {
  display: block;
  width: 100%;
  height: auto;
}

.bldr-footer-grass-details {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 75%;
  max-width: 1080px;
  pointer-events: none;
}

.bldr-footer-grass-details img {
  display: block;
  width: 100%;
  height: auto;
}

.bldr-footer-grass {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33.7%;
  background: #2ec07d;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   22. Setup section (replaces agents bar — matches Figma 531:1292)
   -------------------------------------------------------------------------- */
.bldr-setup {
  margin: 0 -56px 0;
  padding: 120px 80px;
  background: var(--docs-bg-primary);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (max-width: 760px) {
  .bldr-setup {
    margin-left: -20px;
    margin-right: -20px;
    padding: 60px 20px;
  }
}

.bldr-setup-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.bldr-setup-heading {
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.5px;
  color: var(--docs-fg-primary);
  margin: 0;
}

.bldr-setup-sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--docs-fg-secondary);
  margin: 0;
}

@media (max-width: 760px) {
  .bldr-setup-heading { font-size: 24px; line-height: 32px; }
}

/* Steps list */
.bldr-setup-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bldr-step {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 752px;
  padding-bottom: 16px;
}

.bldr-step:last-child { padding-bottom: 0; }

/* Indicator column */
.bldr-step-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  align-self: stretch;
}

.bldr-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  background: var(--docs-bg-tertiary);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--docs-fg-primary);
}

.bldr-step-connector {
  width: 2px;
  flex: 1;
  min-height: 1px;
  background: var(--docs-border-secondary, #e2e1df);
  border-radius: 4px;
}

.bldr-step:last-child .bldr-step-connector { display: none; }

/* Content column */
.bldr-step-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 0;
  padding-top: 4px;
}

.bldr-step-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--docs-fg-primary);
}

.bldr-step-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--docs-fg-secondary);
}

/* Step buttons layout */
.bldr-step-buttons {
  display: flex;
  gap: 16px;
}

.bldr-page .docs-picker-card.is-selected {
  box-shadow: inset 0 0 0 2px var(--docs-brand, #0BA5EC);
}

html[data-theme="dark"] .bldr-page .docs-picker-card.is-selected {
  box-shadow: inset 0 0 0 2px var(--docs-brand, #38bdf8);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .bldr-page .docs-picker-card.is-selected {
    box-shadow: inset 0 0 0 2px var(--docs-brand, #38bdf8);
  }
}

.builders-page .docs-btn-primary,
.builders-page .docs-btn-primary:link,
.builders-page .docs-btn-primary:visited {
  background: var(--docs-brand, #0BA5EC);
  color: #ffffff;
}

.builders-page .docs-btn-primary:hover {
  background: var(--docs-brand-hover, #0990d0);
}

@media (max-width: 760px) {
  .bldr-tool-grid { flex-wrap: wrap; }
  .bldr-tool-card { min-width: calc(50% - 4px); flex: 0 0 calc(50% - 4px); }
}

/* Picker: wrapping grid on mobile */
@media (max-width: 760px) {
  .bldr-step-content .docs-picker-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .bldr-step-content .docs-picker-card-grid .docs-picker-card {
    flex: none;
    min-width: 0;
  }
}

/* Code block */
.bldr-code-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  background: var(--docs-bg-tertiary);
  border: 1px solid var(--docs-border-secondary, #e2e1df);
  border-radius: 16px;
  width: 100%;
}

.bldr-code-header {
  display: flex;
  align-items: center;
  padding: 4px 16px;
}

.bldr-code-label {
  font-size: 12px;
  line-height: 16px;
  color: var(--docs-fg-primary);
}

.bldr-code-copy {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--docs-fg-tertiary);
  padding: 4px;
  display: flex;
  align-items: center;
}

.bldr-code-copy:hover { color: var(--docs-fg-primary); }

.bldr-code-body {
  background: var(--docs-bg-secondary, #fbfbf8);
  border-radius: 12px;
  padding: 14px 16px;
}

.bldr-code-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 24px;
  color: var(--docs-fg-primary);
  word-break: break-all;
}


/* --------------------------------------------------------------------------
   23. Templates section (Doc Card pattern from Figma 432:1282)
   -------------------------------------------------------------------------- */
.bldr-templates {
  padding: 120px 48px;
}

.bldr-templates-head {
  text-align: center;
  margin-bottom: 64px;
}

.bldr-templates-title {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.5px;
  color: var(--docs-fg-primary, #262323);
  margin: 0 0 8px;
}

.bldr-templates-title-muted {
  color: var(--docs-fg-secondary, #5c5959);
}

.bldr-templates-sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--docs-fg-secondary, #5c5959);
}

@media (max-width: 760px) {
  .bldr-templates-title { font-size: 28px; line-height: 34px; }
}

.bldr-templates-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

/* --- Book card --- */
.bldr-book {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 14px;
  width: 312px;
  flex-shrink: 0;
  cursor: pointer;
}
.bldr-book-3 {
  transition: transform 0.25s ease;
}
.bldr-book:hover .bldr-book-3 {
  transform: translateY(-12px);
}
.bldr-book:hover .bldr-book-rings {
  transform: translateY(-12px);
}

@media (max-width: 1400px) {
  .bldr-templates-grid { justify-content: center; }
  .bldr-book { width: calc(50% - 30px); min-width: 260px; }
}
@media (max-width: 680px) {
  .bldr-book { width: 100%; max-width: 340px; }
}

.bldr-book-rings {
  position: absolute;
  left: 0;
  top: 25px;
  width: 33px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.25s ease;
}

/* Layered spines (outer → inner: book-3 → book-2 → book-1) */
.bldr-book-spine {
  border-radius: 16px;
  width: 100%;
}
.bldr-book-3 {
  flex: 1 0 0;
  min-width: 0;
  overflow: clip;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.bldr-book-2 {
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.bldr-book-1 {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  width: 100%;
}

/* Cover */
.bldr-book-cover {
  flex: 1 0 0;
  min-width: 0;
  height: 332px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding: 64px 16px 64px 40px;
}

.bldr-book-title {
  width: 100%;
  margin: 0;
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: white;
  text-align: center;
}

.bldr-book-icon-area {
  flex: 1 0 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bldr-book-icon {
  font-family: 'TossFace', sans-serif;
  font-size: 80px;
  line-height: 1;
}

/* Pages peek */
.bldr-book-pages {
  padding: 0 20px 0 36px;
  width: 100%;
  box-sizing: border-box;
}
.bldr-book-page {
  background: white;
  height: 16px;
  border-radius: 0 0 20px 20px;
}

/* --- Color themes --- */
/* Blue-light */
.bldr-book[data-color="blue-light"] { color: #026aa2; }
.bldr-book[data-color="blue-light"] .bldr-book-3 { background: #0086c9; }
.bldr-book[data-color="blue-light"] .bldr-book-2 { background: #026aa2; }
.bldr-book[data-color="blue-light"] .bldr-book-1 { background: #0086c9; }
.bldr-book[data-color="blue-light"] .bldr-book-cover { background: #0ba5ec; }

/* Green */
.bldr-book[data-color="green"] { color: #067647; }
.bldr-book[data-color="green"] .bldr-book-3 { background: #079455; }
.bldr-book[data-color="green"] .bldr-book-2 { background: #067647; }
.bldr-book[data-color="green"] .bldr-book-1 { background: #079455; }
.bldr-book[data-color="green"] .bldr-book-cover { background: #17b26a; }

/* Blue-dark */
.bldr-book[data-color="blue-dark"] { color: #004eeb; }
.bldr-book[data-color="blue-dark"] .bldr-book-3 { background: #155eef; }
.bldr-book[data-color="blue-dark"] .bldr-book-2 { background: #004eeb; }
.bldr-book[data-color="blue-dark"] .bldr-book-1 { background: #155eef; }
.bldr-book[data-color="blue-dark"] .bldr-book-cover { background: #2970ff; }

/* Violet */
.bldr-book[data-color="violet"] { color: #6927da; }
.bldr-book[data-color="violet"] .bldr-book-3 { background: #7839ee; }
.bldr-book[data-color="violet"] .bldr-book-2 { background: #6927da; }
.bldr-book[data-color="violet"] .bldr-book-1 { background: #7839ee; }
.bldr-book[data-color="violet"] .bldr-book-cover { background: #875bf7; }

/* --------------------------------------------------------------------------
   24. Deeper — stacked subsections (from Figma 464:2466)
   -------------------------------------------------------------------------- */
.bldr-deeper {
  padding: 120px 0;
}

.bldr-deeper .kicker {
  text-align: center;
  margin-bottom: 8px;
}

.bldr-deeper-heading {
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.5px;
  color: var(--docs-fg-primary, #262323);
  text-align: center;
  margin: 0;
}

@media (max-width: 760px) {
  .bldr-deeper-heading { font-size: 28px; line-height: 34px; }
}

.bldr-deeper-items {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 64px;
}

/* Each subsection: text left, image right */
.bldr-deeper-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 980px) {
  .bldr-deeper-item {
    flex-direction: column;
    gap: 32px;
  }
}

.bldr-deeper-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bldr-deeper-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: #cfeaf8;
  color: #20517c;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  align-self: flex-start;
}

.bldr-deeper-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 36px;
  letter-spacing: -0.5px;
  color: var(--docs-fg-primary, #262323);
  margin: 0;
}

@media (max-width: 760px) {
  .bldr-deeper-title { font-size: 22px; line-height: 28px; }
}

.bldr-deeper-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--docs-fg-primary, #262323);
  margin: 0;
}

.bldr-deeper-spacer {
  width: 97px;
  height: 120px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .bldr-deeper-spacer { display: none; }
}

/* Image area: Code Block overlapping Device Mockup (scaled down) */
.bldr-deeper-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* Deeper Code Block — same Code Block component, ~0.66x scale
   Full-size spec: bg-tertiary, border-tertiary, rounded-16, p-4, gap-4
   Header: px-16 py-4, caption (12px)
   Body: bg-secondary, rounded-12, px-16 py-14
   Drop shadow: Device/Drop Shadow (3-layer)                              */
.bldr-deeper-codeblock {
  background: var(--docs-bg-tertiary, #ecece8);
  border: 0.66px solid var(--docs-border-secondary, #e2e1df);
  border-radius: 16px;
  padding: 2.6px;
  display: flex;
  flex-direction: column;
  gap: 2.6px;
  width: 366px;
  box-shadow:
    0px 2px 2px -1px rgba(3,31,77,0.04),
    0px 4px 8px -2px rgba(3,31,77,0.06),
    0px 12px 24px -4px rgba(3,31,77,0.1);
  margin-right: -159px;
  position: relative;
  z-index: 2;
}

.bldr-deeper-cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.6px 10.6px;
  font-size: 8px;
  line-height: 10.6px;
  color: var(--docs-fg-primary, #262323);
  overflow: hidden;
}

.bldr-deeper-cb-body {
  background: var(--docs-bg-secondary, #fbfbf8);
  border-radius: 12px;
  padding: 9.3px 10.6px;
  font-family: var(--font-mono);
  font-size: 9.3px;
  line-height: 15.9px;
  color: var(--docs-fg-primary, #262323);
  white-space: pre-wrap;
  margin: 0;
  overflow: hidden;
}

.bldr-deeper-cb-body b { font-weight: 700; }
.bldr-deeper-cb-body i { color: var(--docs-fg-tertiary); font-style: italic; }
.bldr-deeper-cb-body .p { color: var(--docs-brand); font-weight: 700; }
.bldr-deeper-cb-body .ok { color: var(--docs-brand); font-weight: 700; }

/* Deeper Device Mockup iPad — same component, ~0.66x scale
   Full-size spec: bg-tertiary, rounded-24, p-2
   Inner: rounded-22, p-2, inner shadow (1.896/0.948)
   Screen: bg-secondary, rounded-20
   Drop shadow: Device/Drop Shadow (3-layer)                              */
.bldr-deeper-device {
  background: var(--docs-bg-tertiary, #ecece8);
  border-radius: 24px;
  padding: 2px;
  box-shadow:
    0px 2px 2px -1px rgba(3,31,77,0.04),
    0px 4px 8px -2px rgba(3,31,77,0.06),
    0px 12px 24px -4px rgba(3,31,77,0.1);
  position: relative;
  z-index: 1;
}

.bldr-deeper-device-inner {
  border-radius: 22px;
  padding: 2px;
  overflow: hidden;
  box-shadow: inset 0px 0px 1.896px 0.948px rgba(3,31,77,0.02),
              inset 0px 0px 2.845px 0.948px rgba(3,31,77,0.05);
}

.bldr-deeper-device-screen {
  background: #E0F2FE;
  border-radius: 20px;
  width: 678px;
  height: 452px;
}

@media (max-width: 1200px) {
  .bldr-deeper-codeblock { width: 280px; margin-right: -120px; }
  .bldr-deeper-device-screen { width: 520px; height: 347px; }
}

@media (max-width: 980px) {
  .bldr-deeper-image { width: 100%; }
  .bldr-deeper-codeblock { width: 60%; max-width: 366px; margin-right: -25%; }
  .bldr-deeper-device-screen { width: 100%; height: auto; aspect-ratio: 678/452; }
  .bldr-deeper-device { flex-shrink: 1; }
}

/* --------------------------------------------------------------------------
   25. Explorer
   -------------------------------------------------------------------------- */
.bldr-explorer {
  margin: 0 0 96px;
  max-width: 1240px;
  padding: 64px 56px;
  background: linear-gradient(180deg, var(--bldr-surface) 0%, var(--bldr-accent-50) 100%);
  border: 1px solid var(--bldr-border);
  border-radius: 28px;
}

@media (max-width: 760px) {
  .bldr-explorer {
    padding: 40px 24px;
    margin-bottom: 64px;
    border-radius: 20px;
  }
}

.bldr-explorer .kicker {
  margin-bottom: 16px;
}

.bldr-explorer-lede {
  font-size: 17px;
  color: var(--bldr-text-2);
  line-height: 1.55;
  max-width: 760px;
  margin-bottom: 48px;
}

.bldr-explorer-lede a {
  color: var(--bldr-accent-emph);
  font-weight: 500;
  border-bottom: 1px solid var(--bldr-accent-light);
  text-decoration: none;
}

.bldr-explorer-lede a:hover {
  border-bottom-color: var(--bldr-accent);
}

.bldr-explorer-lede code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--bldr-text-2);
  background: var(--docs-bg-tertiary);
  padding: 1px 6px;
  border-radius: 4px;
}

.bldr-explorer-attrib {
  color: var(--bldr-text-3);
  font-size: 14px;
  display: block;
  margin-top: 8px;
}

.bldr-explorer-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .bldr-explorer-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* CLI panel (left) */
.explorer-cli {
  background: var(--term-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--term-border);
  box-shadow:
    0 16px 36px -16px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ec-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--term-bg-2);
  border-bottom: 1px solid var(--term-border);
  position: relative;
}

.ec-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--term-cmd);
  white-space: pre;
  overflow-x: auto;
  letter-spacing: -0.005em;
  margin: 0;
}

.ec-body .t-prompt {
  color: var(--term-prompt);
  font-weight: 600;
}

.ec-body .t-cmd {
  color: var(--term-cmd);
}

.ec-body .t-ok {
  color: var(--term-ok);
  font-weight: 600;
}

/* Viz panel (right) */
.explorer-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.explorer-viz-cap {
  font-size: 11.5px;
  color: var(--bldr-text-3);
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-align: center;
}

/* Explorer foot pill row */
.bldr-explorer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--bldr-border);
  align-items: center;
}

.ef-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--bldr-accent-emph);
  background: var(--bldr-accent-50);
  border: 1px solid var(--bldr-accent-light);
  padding: 5px 11px;
  border-radius: 99px;
  letter-spacing: 0;
  font-weight: 500;
}

.ef-pill-more {
  background: transparent;
  border-style: dashed;
  color: var(--bldr-text-3);
}

/* --------------------------------------------------------------------------
   26. Onboarding section
   -------------------------------------------------------------------------- */
.bldr-onboard {
  margin: 0 0 96px;
  max-width: 1240px;
  padding: 64px 56px;
  background: linear-gradient(180deg, var(--bldr-surface) 0%, var(--bldr-accent-50) 100%);
  border: 1px solid var(--bldr-border);
  border-radius: 28px;
}

@media (max-width: 760px) {
  .bldr-onboard {
    padding: 40px 24px;
    margin-bottom: 64px;
    border-radius: 20px;
  }
}

.bldr-onboard .kicker {
  margin-bottom: 16px;
}

.bldr-onboard-lede {
  font-size: 17px;
  color: var(--bldr-text-2);
  line-height: 1.55;
  max-width: 760px;
  margin-bottom: 48px;
}

.bldr-onboard-lede a {
  color: var(--bldr-accent-emph);
  font-weight: 500;
  border-bottom: 1px solid var(--bldr-accent-light);
  text-decoration: none;
}

.bldr-onboard-lede a:hover {
  border-bottom-color: var(--bldr-accent);
}

.bldr-onboard-foot {
  margin-top: 36px;
  font-size: 14px;
  color: var(--bldr-text-3);
  font-style: italic;
  line-height: 1.6;
  max-width: 760px;
}

.bldr-onboard-foot code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--bldr-text-2);
  background: var(--docs-bg-tertiary);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
}

/* Two-column flow */
.bldr-onboard-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .bldr-onboard-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Chat (left) */
.bldr-onboard-chat {
  background: var(--bldr-surface);
  border: 1px solid var(--bldr-border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.bldr-onboard-chat::-webkit-scrollbar {
  width: 6px;
}

.bldr-onboard-chat::-webkit-scrollbar-thumb {
  background: var(--bldr-border);
  border-radius: 3px;
}

.oc-meta {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bldr-text-3);
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--docs-bg-tertiary);
}

.oc-bubble {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 90%;
}

.oc-bubble.oc-sprout {
  align-self: flex-start;
}

.oc-bubble.oc-parent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.oc-bubble-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.oc-bubble-avatar img {
  width: 100%;
  height: auto;
}

.oc-bubble-body {
  font-size: 13.5px;
  line-height: 1.45;
  padding: 9px 13px;
  letter-spacing: -0.005em;
}

.oc-sprout .oc-bubble-body {
  background: var(--bldr-accent-light);
  color: var(--bldr-accent-emph);
  border-radius: 14px 14px 14px 3px;
  font-weight: 500;
}

.oc-parent .oc-bubble-body {
  background: #252b37;
  color: #fff;
  border-radius: 14px 14px 3px 14px;
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0;
}

/* Files (right) */
.bldr-onboard-files {
  background: #181d27;
  border-radius: 18px;
  padding: 18px 20px;
  color: #e8eaf0;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.of-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2f3a;
}

.of-folder {
  font-size: 12.5px;
  color: var(--term-ok);
  font-weight: 600;
  letter-spacing: 0;
}

.of-meta {
  font-size: 10.5px;
  color: #6e7585;
  letter-spacing: 0;
}

.of-file {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #1f232c;
  border: 1px solid #2a2f3a;
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.of-file:hover {
  border-color: #3a4150;
}

.of-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.of-icon {
  font-size: 11px;
  opacity: 0.7;
}

.of-name {
  flex: 1;
  font-size: 12.5px;
  color: #e8eaf0;
  font-weight: 500;
  letter-spacing: 0;
}

.of-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bldr-accent-emph);
  color: #fff;
}

.of-tag-running {
  background: #9d6c1f;
  animation: tag-pulse 2.2s ease-in-out infinite;
}

@keyframes tag-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.of-snippet {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: #a8b0c0;
  white-space: pre-wrap;
  margin: 0;
  letter-spacing: -0.005em;
  padding-left: 18px;
  border-left: 2px solid #2a2f3a;
}

/* Step indicators */
.bldr-onboard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}

@media (max-width: 880px) {
  .bldr-onboard-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .bldr-onboard-steps {
    grid-template-columns: 1fr;
  }
}

.ob-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px 16px;
  background: var(--bldr-surface);
  border: 1px solid var(--bldr-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.15s;
}

.ob-step.is-active {
  border-color: var(--bldr-accent);
  background: var(--bldr-accent-50);
  box-shadow: 0 0 0 3px var(--bldr-accent-50);
}

.ob-step.is-done {
  opacity: 0.7;
}

.ob-step.is-done .ob-step-num {
  background: var(--bldr-accent-light);
  color: var(--bldr-accent-emph);
}

.ob-step.is-done::after {
  content: "\2713";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 13px;
  color: var(--bldr-accent-emph);
  font-weight: 700;
}

.ob-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--docs-bg-tertiary);
  color: var(--bldr-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  flex-shrink: 0;
}

.ob-step.is-active .ob-step-num {
  background: var(--bldr-accent);
  color: #fff;
}

.ob-step-text {
  flex: 1;
  min-width: 0;
}

.ob-step-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bldr-text-1);
  letter-spacing: -0.012em;
  margin-bottom: 4px;
}

.ob-step-detail {
  font-size: 12.5px;
  color: var(--bldr-text-2);
  line-height: 1.5;
}

.ob-step-detail code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--bldr-accent-emph);
  background: var(--bldr-accent-50);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}

.ob-step.is-active .ob-step-detail code {
  background: var(--bldr-surface);
}

/* --------------------------------------------------------------------------
   27. Habit centers (.hb-*)
   -------------------------------------------------------------------------- */
.hb-frame {
  width: 300px;
  height: 420px;
  background: #181a1f;
  border-radius: 30px;
  padding: 11px 11px 14px;
  box-shadow:
    0 24px 56px -20px rgba(20, 40, 60, 0.36),
    0 0 0 1px rgba(20, 40, 60, 0.1);
  position: relative;
}

.hb-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #3a3d44;
  border-radius: 2px;
}

.hb-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bldr-accent-50) 0%, var(--bldr-surface) 50%);
  border-radius: 22px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.hb-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hb-avatar {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-avatar img {
  width: 100%;
  height: auto;
}

.hb-greet {
  flex: 1;
}

.hb-greet-small {
  font-size: 11px;
  color: var(--bldr-text-3);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.hb-greet-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--bldr-text-1);
  letter-spacing: -0.018em;
  line-height: 1.1;
}

.hb-streak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--bldr-accent-light) 0%, var(--bldr-accent-50) 100%);
  border: 1px solid var(--bldr-accent);
  border-radius: 14px;
}

.hb-streak-left {
  display: flex;
  flex-direction: column;
}

.hb-streak-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--bldr-accent-emph);
  letter-spacing: -0.025em;
  line-height: 1;
  font-feature-settings: 'tnum';
}

.hb-streak-label {
  font-size: 11px;
  color: var(--bldr-accent-emph);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}

.hb-streak-leaf {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(40, 80, 120, 0.18));
}

.hb-next {
  padding: 11px 14px;
  background: var(--bldr-surface);
  border: 1px solid var(--bldr-border);
  border-radius: var(--radius-lg);
}

.hb-next-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bldr-accent-emph);
  margin-bottom: 5px;
}

.hb-next-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.hb-next-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bldr-text-1);
  letter-spacing: -0.01em;
}

.hb-next-time {
  font-size: 11.5px;
  color: var(--bldr-text-3);
  font-family: var(--font-mono);
  letter-spacing: 0;
  flex-shrink: 0;
}

.hb-row {
  display: flex;
  gap: 8px;
}

.hb-pill {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background: var(--bldr-surface);
  border: 1px solid var(--bldr-border);
  border-radius: 10px;
}

.hb-pill-gem {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.hb-pill-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--bldr-text-1);
  letter-spacing: -0.018em;
  line-height: 1;
  font-feature-settings: 'tnum';
}

.hb-pill-gem .hb-pill-val {
  color: #b45309;
}

.hb-pill-frac {
  font-size: 13px;
  color: var(--bldr-text-3);
  font-weight: 500;
}

.hb-pill-label {
  font-size: 10px;
  color: var(--bldr-text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hb-pill-gem .hb-pill-label {
  color: #92400e;
}

.hb-gem-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #f4d03f 0%, #d4920a 100%);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hb-tomorrow {
  padding: 11px 14px;
  background: var(--bldr-surface);
  border: 1px solid var(--bldr-border);
  border-radius: var(--radius-lg);
  margin-top: auto;
}

.hb-tom-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bldr-text-3);
  margin-bottom: 7px;
}

.hb-tom-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.hb-chip {
  font-size: 10.5px;
  color: var(--bldr-text-1);
  background: var(--docs-bg-tertiary);
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.hb-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hb-tab {
  padding: 7px 14px;
  background: var(--bldr-surface);
  border: 1px solid var(--bldr-border);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bldr-text-2);
  cursor: pointer;
  letter-spacing: -0.005em;
  font-family: var(--font);
  transition: all 0.12s;
}

.hb-tab:hover {
  border-color: var(--bldr-accent);
  color: var(--bldr-accent-emph);
}

.hb-tab.is-on {
  background: var(--bldr-accent-50);
  border-color: var(--bldr-accent);
  color: var(--bldr-accent-emph);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   28. Kid calendar (.ks-*)
   -------------------------------------------------------------------------- */
.kidcal-viz {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  width: 100%;
}

.ks-surface {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ks-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bldr-accent-emph);
  font-family: var(--font-mono);
}

.ks-ipad {
  width: 240px;
  height: 160px;
  background: #181a1f;
  border-radius: 14px;
  padding: 6px;
  align-self: flex-start;
  box-shadow: 0 12px 28px -10px rgba(20, 40, 60, 0.28);
}

.ks-ipad-screen {
  width: 100%;
  height: 100%;
  background: var(--bldr-accent-50);
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ks-section-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bldr-accent-emph);
  margin-bottom: 2px;
}

.ks-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  background: var(--bldr-surface);
  border: 1px solid var(--bldr-border);
  border-radius: 7px;
}

.ks-card-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--bldr-accent-emph);
  font-weight: 600;
  letter-spacing: 0;
  width: 48px;
  flex-shrink: 0;
}

.ks-card-name {
  flex: 1;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--bldr-text-1);
  letter-spacing: -0.005em;
}

.ks-card-meta {
  font-size: 9px;
  color: #b45309;
  font-style: italic;
  letter-spacing: -0.005em;
}

.ks-phone {
  width: 160px;
  height: 280px;
  background: #181a1f;
  border-radius: 24px;
  padding: 8px;
  align-self: flex-start;
  box-shadow: 0 12px 28px -10px rgba(20, 40, 60, 0.28);
  position: relative;
}

.ks-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 10px;
  background: #181a1f;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.ks-phone-screen {
  width: 100%;
  height: 100%;
  background: #f4f6fa;
  border-radius: 18px;
  padding: 18px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.ks-phone-bar {
  font-size: 11px;
  font-weight: 600;
  color: var(--bldr-text-1);
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bldr-border);
}

.ks-event {
  display: flex;
  gap: 7px;
  padding: 5px 0;
}

.ks-event-bar {
  width: 3px;
  background: var(--c, var(--bldr-accent));
  border-radius: 99px;
  flex-shrink: 0;
}

.ks-event-body {
  flex: 1;
  min-width: 0;
}

.ks-event-time {
  font-size: 9px;
  color: var(--bldr-text-3);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.ks-event-name {
  font-size: 10px;
  color: var(--bldr-text-1);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-top: 1px;
}

.ks-event-meta {
  font-size: 9px;
  color: #b45309;
  margin-top: 1px;
  font-style: italic;
  letter-spacing: -0.005em;
}

.ks-event-faded {
  opacity: 0.55;
}

.ks-paper {
  background: #fefcf3;
  border: 1px solid #e8e2cf;
  border-radius: var(--radius-sm);
  padding: 14px 16px 12px;
  box-shadow:
    0 6px 14px -4px rgba(60, 40, 20, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  font-family: 'Georgia', serif;
  align-self: stretch;
}

.ks-paper-head {
  font-size: 11.5px;
  font-weight: 700;
  color: #3d2c1a;
  margin-bottom: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e2cf;
  letter-spacing: -0.005em;
}

.ks-paper-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e8e2cf;
}

.ks-day {
  background: #fefcf3;
  padding: 6px 4px;
  min-height: 46px;
}

.ks-day-name {
  font-size: 9px;
  font-weight: 700;
  color: #7a5a3a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.ks-day-evt {
  font-size: 9px;
  color: #3d2c1a;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.ks-day-today {
  background: #fef3d4;
  outline: 1px solid #e8c074;
  outline-offset: -1px;
  position: relative;
}

.ks-day-today::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  background: #d97706;
  border-radius: 50%;
}

.ks-day-wknd {
  background: #faf6e9;
}

.ks-paper-foot {
  font-family: 'Georgia', serif;
  font-size: 9px;
  color: #9a8260;
  font-style: italic;
  text-align: right;
  margin-top: 8px;
  letter-spacing: -0.005em;
}

/* Kid calendar scene switching */
.kidcal-viz .ks-surface {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.kidcal[data-scene="1"] .ks-surface[data-scene="1"],
.kidcal[data-scene="2"] .ks-surface[data-scene="2"],
.kidcal[data-scene="3"] .ks-surface[data-scene="3"] {
  opacity: 1;
  position: relative;
}

.kidcal[data-cycle] .kidcal-viz {
  position: relative;
  min-height: 380px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.kidcal[data-cycle] .kidcal-viz .ks-surface {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  pointer-events: none;
}

.kidcal[data-cycle][data-scene="1"] .kidcal-viz .ks-surface[data-scene="1"],
.kidcal[data-cycle][data-scene="2"] .kidcal-viz .ks-surface[data-scene="2"],
.kidcal[data-cycle][data-scene="3"] .kidcal-viz .ks-surface[data-scene="3"] {
  pointer-events: auto;
}

.kidcal-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.kidcal-dot {
  padding: 6px 13px;
  background: transparent;
  border: 1px solid var(--bldr-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--bldr-text-2);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.12s;
}

.kidcal-dot.is-active {
  background: var(--bldr-accent-50);
  border-color: var(--bldr-accent);
  color: var(--bldr-accent-emph);
  font-weight: 600;
}

.kidcal-dot:hover {
  border-color: var(--bldr-accent);
  color: var(--bldr-accent-emph);
}

/* --------------------------------------------------------------------------
   29. Wild builds (.wild-*, .wd-*, .rb-*, .vt-*)
   -------------------------------------------------------------------------- */
.wild-frame {
  width: 300px;
  height: 420px;
  background: #0e1118;
  border-radius: 30px;
  padding: 11px 11px 14px;
  box-shadow:
    0 24px 56px -20px rgba(20, 20, 40, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  position: relative;
}

.wild-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #3a3d44;
  border-radius: 2px;
}

/* D&D wild screen */
.wild-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1530 0%, #2c1f4a 100%);
  border-radius: 22px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
  color: #f0ebff;
}

.wd-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-quest-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4a8ff;
  font-family: var(--font-mono);
  margin-bottom: 3px;
}

.wd-quest-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.wd-art {
  flex: 1;
  background: linear-gradient(135deg, #3d2860 0%, #1a1530 50%, #0a0820 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wd-art::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 30%;
  width: 60px;
  height: 36px;
  background: radial-gradient(ellipse, rgba(255, 200, 80, 0.5) 0%, transparent 70%);
  filter: blur(8px);
}

.wd-art::after {
  content: "\1F409";
  position: absolute;
  right: 14%;
  bottom: 14%;
  font-size: 32px;
  opacity: 0.32;
  filter: blur(0.3px);
}

.wd-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.wd-narrator-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(172, 220, 121, 0.18);
  border-radius: 50%;
  padding: 3px;
}

.wd-narrator-avatar img {
  width: 100%;
  height: auto;
}

.wd-narrator-bubble {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e4ff;
  font-size: 11px;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 10px 10px 10px 3px;
  font-style: italic;
  letter-spacing: -0.005em;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wd-choices {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wd-choice {
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 11.5px;
  font-weight: 500;
  color: #e8e4ff;
  letter-spacing: -0.005em;
  text-align: left;
}

.wd-choice-on {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-color: #c084fc;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(168, 85, 247, 0.6);
}

.wd-stats {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.wd-stat-label {
  font-size: 8.5px;
  color: #a89dd6;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wd-stat-val {
  font-size: 11.5px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.005em;
  font-family: var(--font-mono);
  margin-top: 1px;
}

/* Reading buddy wild screen */
.rb-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a2540 0%, #0e1830 100%);
  border-radius: 22px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
  color: #f0ebff;
}

.rb-eyebrow {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5cdff;
  font-family: var(--font-mono);
}

.rb-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.rb-book {
  flex: 1;
  background: linear-gradient(135deg, #3a2b1c 0%, #1e1810 100%);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #e8d9c3;
  font-size: 10.5px;
  line-height: 1.5;
  font-family: 'Georgia', serif;
  font-style: italic;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rb-book-pageno {
  font-size: 9px;
  color: #a89d8a;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  font-style: normal;
  margin-bottom: 4px;
}

.rb-listening {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #a5cdff;
  font-family: var(--font-mono);
}

.rb-listening::before {
  content: "\25CF";
  color: #ff5f56;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.3; }
}

.rb-bubble-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.rb-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: rgba(172, 220, 121, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.rb-avatar img {
  width: 100%;
  height: auto;
}

.rb-bubble {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e4ff;
  font-size: 11px;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 10px 10px 10px 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Visual tutor wild screen */
.vt-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fef3e2 0%, #fff 60%);
  border-radius: 22px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.vt-eyebrow {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b85d1c;
  font-family: var(--font-mono);
}

.vt-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--bldr-text-1);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.vt-worksheet {
  background: linear-gradient(180deg, #fffdf6 0%, #f9f3e0 100%);
  border: 1px solid #e5d6a8;
  border-radius: var(--radius-md);
  padding: 11px 13px;
  font-family: 'Georgia', serif;
  color: #3a2e15;
  font-size: 11px;
  line-height: 1.7;
  flex: 1;
  min-height: 120px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.vt-prob {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.vt-prob-eq {
  font-family: 'Georgia', serif;
  flex: 1;
}

.vt-prob-mark {
  font-size: 13px;
  font-weight: 700;
}

.vt-prob-mark.ok {
  color: #5a9028;
}

.vt-prob-mark.bad {
  color: #c44d3c;
}

.vt-coach {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.vt-coach-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.vt-coach-avatar img {
  width: 100%;
  height: auto;
}

.vt-coach-bubble {
  flex: 1;
  background: var(--bldr-accent-light);
  color: var(--bldr-accent-emph);
  font-size: 11px;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 10px 10px 10px 3px;
  letter-spacing: -0.005em;
}

/* Wild scene switching */
.wild[data-cycle] .explorer-viz {
  position: relative;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wild[data-cycle] .wild-frame {
  transition: opacity 0.4s ease;
  opacity: 0;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.wild[data-cycle][data-scene="1"] .wild-frame[data-scene="1"],
.wild[data-cycle][data-scene="2"] .wild-frame[data-scene="2"],
.wild[data-cycle][data-scene="3"] .wild-frame[data-scene="3"] {
  opacity: 1;
}

.wild-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.wild-dot {
  padding: 6px 13px;
  background: transparent;
  border: 1px solid var(--bldr-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--bldr-text-2);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.12s;
}

.wild-dot.is-active {
  background: var(--bldr-accent-50);
  border-color: var(--bldr-accent);
  color: var(--bldr-accent-emph);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   30. FAQ section
   -------------------------------------------------------------------------- */
.bldr-faq {
  padding: 60px 0;
  margin: 0;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bldr-faq-heading {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--docs-fg-primary, #262323);
  text-align: center;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   31. Closer (footer)
   -------------------------------------------------------------------------- */
.bldr-closer {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--bldr-border);
  max-width: 1080px;
}

.bldr-closer h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--bldr-text-1);
  margin-bottom: 18px;
}

.bldr-closer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bldr-closer-links li {
  font-size: 15px;
  line-height: 1.6;
}

.bldr-closer-links a {
  color: var(--bldr-accent-emph);
  font-weight: 500;
}

.bldr-closer-meta {
  font-size: 13.5px;
  color: var(--bldr-text-3);
  line-height: 1.6;
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   32. Theme bar (fixed dev tool)
   -------------------------------------------------------------------------- */
.bldr-theme-bar {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 5px 6px;
  background: rgba(20, 22, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
}

.bldr-theme-bar-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.36);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 0 8px 0 4px;
  user-select: none;
}

.bldr-theme-bar a {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0;
  transition: background 0.1s, color 0.1s;
  font-family: var(--font-mono);
}

.bldr-theme-bar a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}

.bldr-theme-bar a.is-on {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 560px) {
  .bldr-theme-bar {
    bottom: 10px;
    right: 10px;
    padding: 4px 5px;
  }

  .bldr-theme-bar-label {
    display: none;
  }

  .bldr-theme-bar a {
    padding: 3px 7px;
    font-size: 10.5px;
  }
}

/* --------------------------------------------------------------------------
   33. Term copy button
   -------------------------------------------------------------------------- */
.term-copy {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--term-border);
  color: var(--term-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s;
  z-index: 2;
  letter-spacing: 0.02em;
}

.term-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--term-cmd);
  border-color: #3f4a55;
}

.term-copy.is-copied {
  background: rgba(134, 203, 60, 0.15);
  color: var(--term-ok);
  border-color: var(--term-prompt);
}

/* --------------------------------------------------------------------------
   34. Accessibility: reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .t-cursor {
    opacity: 1 !important;
    animation: none !important;
  }

  .bldr-link-line {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Scroll-reveal (cofounder-style fade-up with stagger)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
