/* ============================================================
   PDF CREATOR — builder canvas hero visual
   ============================================================ */
.builder {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 8px 0;
}
.builder-page {
  position: relative;
  aspect-ratio: 8.5/11;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(10, 37, 64, 0.04),
    0 24px 48px -28px rgba(10, 37, 64, 0.32),
    0 8px 16px -10px rgba(10, 37, 64, 0.16);
  padding: 28px 26px 20px;
  font-family: var(--font-mono);
  color: #0a2540;
  overflow: hidden;
}
[data-theme="dark"] .builder-page { background: #f4f7fb; color: #0a2540; }

/* Subtle dot grid in the background — "design canvas" feel */
.bp-grid {
  position: absolute;
  inset: 22px 18px;
  background-image: radial-gradient(circle at 1px 1px, rgba(10, 37, 64, 0.08) 1px, transparent 1.4px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 0;
}
.builder-page > * { position: relative; z-index: 1; }

.bp-head {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #475569;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  border-bottom: 1px dashed #cbd5e1;
  margin-bottom: 14px;
}
.bp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}
.bp-row-sm { font-size: 10px; gap: 8px; }
.bp-row-total {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #cbd5e1;
  font-weight: 600;
}
.bp-text {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  color: #0a2540;
}
.bp-text-h {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 500;
}
.bp-text-r { text-align: right; font-weight: 600; }
.bp-text-num { text-align: right; font-variant-numeric: tabular-nums; }

.bp-shape {
  margin: 14px 0;
  height: 76px;
  color: var(--accent);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(11, 102, 194, 0.04) 0%, transparent 60%);
}
.bp-shape svg { width: 100%; height: 100%; display: block; }

.bp-sig {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  color: #0a2540;
}
.bp-sig svg { display: block; width: 60%; height: 28px; opacity: 0.62; }
.bp-sig-lbl {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.bp-foot {
  position: absolute;
  bottom: 14px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: #64748b;
}

/* Callout pills around the builder page */
.builder-pill {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 10px -6px rgba(10, 37, 64, 0.18);
}
.builder-pill::before {
  content: "";
  position: absolute;
  background: var(--accent-line);
  height: 1px;
}
.builder-pill .dot { color: var(--accent); margin-right: 4px; opacity: 0.65; }

.builder-pill.bp-tl { top: 8%; left: -78px; }
.builder-pill.bp-tl::before { right: -36px; top: 50%; width: 36px; }
.builder-pill.bp-tr { top: 8%; right: -96px; }
.builder-pill.bp-tr::before { left: -36px; top: 50%; width: 36px; }
.builder-pill.bp-ml { top: 46%; left: -94px; transform: translateY(-50%); }
.builder-pill.bp-ml::before { right: -36px; top: 50%; width: 36px; }
.builder-pill.bp-mr { top: 46%; right: -98px; transform: translateY(-50%); }
.builder-pill.bp-mr::before { left: -36px; top: 50%; width: 36px; }
.builder-pill.bp-bl { bottom: 8%; left: -90px; }
.builder-pill.bp-bl::before { right: -36px; top: 50%; width: 36px; }
.builder-pill.bp-br { bottom: 8%; right: -94px; }
.builder-pill.bp-br::before { left: -36px; top: 50%; width: 36px; }

@media (max-width: 1000px) {
  .builder { max-width: 380px; margin: 0 auto; }
  .builder-pill.bp-tl, .builder-pill.bp-ml, .builder-pill.bp-bl { left: 4px; }
  .builder-pill.bp-tr, .builder-pill.bp-mr, .builder-pill.bp-br { right: 4px; }
  .builder-pill::before { display: none; }
}
@media (max-width: 760px) {
  .builder { max-width: 320px; }
  .builder-pill.bp-ml, .builder-pill.bp-mr { display: none; }
  .builder-pill { font-size: 9.5px; padding: 4px 8px; }
  .builder-page { padding: 22px 18px 16px; }
}
