/* ===================================================
   template.forms.css - Forms landing page styles
   Inherits: template.css (reset, variables, buttons, nav, footer)
   =================================================== */

:root {
  --border-color: #e5dfd0;
  --field-bg: #ffffff;
}

/* ────────────────────────────────────────────
   PAGE / SHELL
   ──────────────────────────────────────────── */
.shell {
  max-width: 1440px;
  margin: 0 auto;
}
.section-padding {
  padding: 120px 80px;
}
@media (max-width: 768px) {
  .section-padding { padding: 80px 24px; }
}

/* ────────────────────────────────────────────
   HERO common
   ──────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.hero-eyebrow {
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-title {
  font-size: clamp(48px, 7vw, 70px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--dark);
  max-width: 1100px;
  margin: 0 0 32px;
}
.hero-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
  color: var(--blue);
}
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 40px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-link::after {
  content: "←";
  margin-right: -4px;
  transition: transform 0.2s ease;
}
.btn-link:hover::after { transform: translateX(-4px); }

/* ────────────────────────────────────────────
   HERO stage (the connection visual)
   ──────────────────────────────────────────── */
.hero-stage {
  position: relative;
  margin-top: 64px;
  height: 480px;
  width: 100%;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-stage { height: 360px; margin-top: 40px; border-radius: 20px; }
}

/* Two anchored cards — Form (right) and CRM (left) — used by all hero variants */
.stage-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(7,40,52,0.08), 0 1px 0 rgba(7,40,52,0.04);
  z-index: 3;
}
.stage-card.right { right: 56px; }
.stage-card.left { left: 56px; }
.stage-card-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stage-card-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}
.stage-card-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--dark);
}

/* mock form rows */
.mock-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.mock-row-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.mock-row-field {
  height: 28px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  color: var(--dark);
}
.mock-row-field.filled { background: rgba(38,136,191,0.06); border-color: rgba(38,136,191,0.3); }
.mock-row-field .from-tag {
  margin-right: auto;
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 0.04em;
}

/* CRM records */
.mock-record {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--cream);
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border-color);
}
.mock-record-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.mock-record-text {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.mock-record-name {
  font-size: 11px; color: var(--dark);
}
.mock-record-meta {
  font-size: 9px; color: var(--muted);
}
.mock-record-status {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,124,77,0.1);
  color: var(--green);
}

/* ────────────────────────────────────────────
   Section labels
   ──────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 24px;
  max-width: 1000px;
}
.section-sub {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 64px;
}

/* ────────────────────────────────────────────
   Bidirectional explainer (section 2)
   ──────────────────────────────────────────── */
.connection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .connection-grid { grid-template-columns: 1fr; }
}
.connection-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.connection-card-num {
  font-size: 13px;
  color: #9B9B9B;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.connection-card-title {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--dark);
}
.connection-card-desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 32px;
}
.connection-card-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* ────────────────────────────────────────────
   (Return-for-corrections flow / .flow-section
    was removed — replaced by the LIFECYCLE map below.)
   ──────────────────────────────────────────── */

/* ────────────────────────────────────────────
   Features list (stacking sticky cards)
   ──────────────────────────────────────────── */
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card {
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  color: var(--white);
  position: sticky;
  top: 80px;
}
.feature-card-text { display: flex; flex-direction: column; gap: 16px; }
.feature-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 8px;
}
.feature-card-num {
  font-size: 40px;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.feature-card-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.feature-card-title {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.feature-card-desc {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.feature-card-visual {
  height: 340px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  overflow: hidden;
  position: relative;
}
@media (max-width: 900px) {
  .feature-card { grid-template-columns: 1fr; padding: 40px; }
  .feature-card-visual { height: 240px; }
}
.fc-navy   { background: var(--navy); }
.fc-blue   { background: var(--blue); }
.fc-green  { background: var(--green); }
.fc-lime   { background: var(--lime); color: var(--dark); }
.fc-lime   .feature-card-eyebrow { color: rgba(0,0,0,0.6); }
.fc-lime   .feature-card-num { color: rgba(0,0,0,0.3); }
.fc-lime   .feature-card-desc { color: rgba(0,0,0,0.75); }
.fc-orange { background: var(--orange); }

/* ────────────────────────────────────────────
   Form demo (interactive section)
   ──────────────────────────────────────────── */
.demo-section {
  background: var(--cream);
  border-radius: 32px;
  margin: 0 80px;
  padding: 96px 64px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .demo-section { margin: 0 16px; padding: 64px 24px; border-radius: 24px; }
}
.demo-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
}

.form-mock {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px rgba(7,40,52,0.08);
  position: relative;
}
.form-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.form-mock-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.form-mock-status {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.form-mock-status .live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
}
.form-mock-status .live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.3;
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

.form-field {
  margin-bottom: 20px;
  position: relative;
}
.form-field-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.from-crm-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--blue);
  background: rgba(38,136,191,0.1);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.from-crm-pill::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
}
.form-field-input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: var(--field-bg);
  border: 1.5px solid var(--border-color);
  padding: 0 14px;
  font-size: 15px;
  color: var(--dark);
  font-family: inherit;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.form-field-input.prefilled {
  background: rgba(38,136,191,0.04);
  border-color: rgba(38,136,191,0.3);
  animation: prefillIn 0.6s ease-out;
}
@keyframes prefillIn {
  0% { background: rgba(38,136,191,0.25); border-color: var(--blue); }
  100% { background: rgba(38,136,191,0.04); border-color: rgba(38,136,191,0.3); }
}
.form-field-input.flagged {
  border-color: var(--orange);
  background: rgba(255,139,34,0.04);
}
.form-field-flag {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(255,139,34,0.08);
  border: 1px solid rgba(255,139,34,0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--dark);
  line-height: 1.4;
}
.form-field-flag .flag-icon {
  width: 14px; height: 14px;
  background: var(--orange);
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: bold;
}
textarea.form-field-input {
  height: 88px;
  padding: 12px 14px;
  resize: none;
}

.form-mock-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.form-mock-submit-text {
  font-size: 12px;
  color: var(--muted);
}

.demo-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}
.demo-side-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 12px;
}
.demo-side-desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 24px;
}
.demo-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  border: 1px solid var(--border-color);
}
.demo-mode {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.demo-mode:hover { background: var(--cream); }
.demo-mode.active {
  background: rgba(38,136,191,0.06);
  border-color: rgba(38,136,191,0.2);
}
.demo-mode-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--dark);
}
.demo-mode.active .demo-mode-icon {
  background: var(--blue);
  color: #fff;
}
.demo-mode-text { display: flex; flex-direction: column; gap: 2px; }
.demo-mode-title { font-size: 15px; color: var(--dark); font-weight: 500; }
.demo-mode-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ────────────────────────────────────────────
   CTA / Footer
   ──────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 160px 80px;
  position: relative;
  overflow: hidden;
}
.cta-title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 24px;
  max-width: 1000px;
  margin-inline: auto;
}
.cta-sub {
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 40px;
}
.brand-bar {
  height: 4px;
  background: linear-gradient(to right, var(--green) 0%, var(--lime) 21%, var(--orange) 53%, var(--salmon) 70%, var(--blue) 100%);
  border-radius: 2px;
  margin: 0 80px;
}
@media (max-width: 768px) {
  .brand-bar { margin: 0 24px; }
  .cta-section { padding: 96px 24px; }
}

/* ────────────────────────────────────────────
   Hero visual variant — A: PARTICLES
   ──────────────────────────────────────────── */
.particles-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  filter: blur(0.3px);
}
.particle.c-blue   { background: var(--blue); box-shadow: 0 0 12px rgba(38,136,191,0.5); }
.particle.c-lime   { background: var(--lime); box-shadow: 0 0 12px rgba(166,198,50,0.5); }
.particle.c-orange { background: var(--orange); box-shadow: 0 0 12px rgba(255,139,34,0.5); }
.particle.c-green  { background: var(--green); box-shadow: 0 0 10px rgba(0,124,77,0.5); }
.particle.c-navy   { background: var(--navy); box-shadow: 0 0 10px rgba(7,76,103,0.5); }

@keyframes particleRTL {
  0%   { right: var(--start, 25%); opacity: 0; transform: translateY(calc(-50% + var(--yoff, 0px))) scale(0.5); }
  10%  { opacity: 1; transform: translateY(calc(-50% + var(--yoff, 0px))) scale(1); }
  90%  { opacity: 1; transform: translateY(calc(-50% + var(--yoff, 0px))) scale(1); }
  100% { right: var(--end, 75%); opacity: 0; transform: translateY(calc(-50% + var(--yoff, 0px))) scale(0.5); }
}
@keyframes particleLTR {
  0%   { right: var(--end, 75%); opacity: 0; transform: translateY(calc(-50% + var(--yoff, 0px))) scale(0.5); }
  10%  { opacity: 1; transform: translateY(calc(-50% + var(--yoff, 0px))) scale(1); }
  90%  { opacity: 1; transform: translateY(calc(-50% + var(--yoff, 0px))) scale(1); }
  100% { right: var(--start, 25%); opacity: 0; transform: translateY(calc(-50% + var(--yoff, 0px))) scale(0.5); }
}

/* central thin guide line */
.particles-rail {
  position: absolute;
  top: 50%;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(7,40,52,0.08) 20%,
    rgba(7,40,52,0.08) 80%,
    transparent 100%);
}

/* ────────────────────────────────────────────
   Hero visual variant — B: RIBBONS (figure-8)
   ──────────────────────────────────────────── */
.ribbon-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ribbon-path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
@keyframes ribbonDash {
  to { stroke-dashoffset: -40; }
}
@keyframes ribbonDashReverse {
  to { stroke-dashoffset: 40; }
}

/* ────────────────────────────────────────────
   Hero visual variant — C: PULSE PIPELINE
   ──────────────────────────────────────────── */
.pipeline-track {
  position: absolute;
  top: 50%;
  left: 25%;
  right: 25%;
  transform: translateY(-50%);
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  overflow: hidden;
}
.pipeline-track::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(7,40,52,0.04), transparent);
}
.pipeline-pulse {
  position: absolute;
  top: 50%;
  width: 80px;
  height: 32px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 0%, var(--pulse-color, var(--blue)) 50%, transparent 100%);
  filter: blur(2px);
  opacity: 0.85;
}
.pipeline-pulse-top {
  top: calc(50% - 12px);
  background: linear-gradient(90deg, transparent 0%, var(--blue) 50%, transparent 100%);
  animation: pulseRTL 3.5s ease-in-out infinite;
}
.pipeline-pulse-bot {
  top: calc(50% + 12px);
  background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
  animation: pulseLTR 3.5s ease-in-out infinite;
  animation-delay: 1.75s;
}
@keyframes pulseRTL {
  0%   { right: -10%; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { right: 100%; opacity: 0; }
}
@keyframes pulseLTR {
  0%   { right: 100%; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { right: -10%; opacity: 0; }
}
.pipeline-labels {
  position: absolute;
  top: calc(50% + 56px);
  left: 25%;
  right: 25%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* directional arrows for variant C */
.pipeline-arrow {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  font-size: 14px;
  z-index: 2;
}
.pipeline-arrow.top { top: calc(50% - 26px); right: calc(25% - 14px); }
.pipeline-arrow.bot { top: calc(50% + 26px); left: calc(25% - 14px); transform: translateY(-100%); }

/* ────────────────────────────────────────────
   Common helpers
   ──────────────────────────────────────────── */
.muted { color: var(--muted); }
.center { text-align: center; }
.flex-row { display: flex; gap: 8px; align-items: center; }

/* card chip showing "from CRM" badge in stage */
.stage-tag {
  position: absolute;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(7,40,52,0.06);
}

/* ────────────────────────────────────────────
   BUILDER SECTION — no-code builder showcase
   ──────────────────────────────────────────── */
.builder-section { padding-top: 96px; padding-bottom: 96px; background: var(--cream); }

.builder-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}
@media (max-width: 1000px) {
  .builder-grid { grid-template-columns: 1fr; }
}

.builder-tabs { display: flex; flex-direction: column; gap: 10px; }
.builder-tab {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  text-align: right;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px 22px;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  font-family: inherit;
  color: var(--dark);
  align-items: flex-start;
}
.builder-tab:hover {
  border-color: #9B9B9B;
  transform: translateX(-2px);
}
.builder-tab.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.builder-tab-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  flex-shrink: 0;
}
.builder-tab.active .builder-tab-icon {
  background: rgba(255,255,255,0.1);
  color: var(--lime);
}
.builder-tab-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.builder-tab.active .builder-tab-eyebrow { color: var(--lime); }
.builder-tab-label {
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 500;
}
.builder-tab-desc {
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 8px;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}
.builder-tab.active .builder-tab-desc {
  max-height: 120px;
  opacity: 1;
  color: rgba(255,255,255,0.78);
}

/* V1 · HAIRLINE FLOAT — the app window floats on the page surface,
   no heavy dark frame. A 1px hairline + layered soft shadow do the
   elevation work. Generous padding around so the shadow has room to breathe. */
.builder-stage {
  background: transparent;
  border-radius: 14px;
  padding: 24px 8px 60px;
  min-height: 560px;
  position: relative;
  display: flex;
}

/* the inner "app window" — hairline + multi-layer soft shadow */
.builder-app {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(7, 40, 52, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(7, 40, 52, 0.04),
    0 8px 16px -6px rgba(7, 40, 52, 0.08),
    0 24px 48px -16px rgba(7, 40, 52, 0.14),
    0 60px 80px -40px rgba(7, 40, 52, 0.18);
}
.builder-app-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: #FAFAF8;
}
.b-chrome-traffic { display: flex; gap: 6px; }
.b-chrome-traffic span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #DFDFDF;
}
.b-chrome-traffic span:nth-child(1) { background: #FF8B22; }
.b-chrome-traffic span:nth-child(2) { background: #A6C632; }
.b-chrome-traffic span:nth-child(3) { background: #DFDFDF; }
.b-chrome-titlebox { flex: 1; }
.b-chrome-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
}
.b-chrome-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.b-chrome-actions { display: flex; gap: 6px; align-items: center; }
.b-chrome-badge {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,139,34,0.12);
  color: var(--orange);
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.b-chrome-cta {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
}

.builder-app-body {
  flex: 1;
  display: grid;
  min-height: 0;
}
.builder-app-body.cols-3 {
  grid-template-columns: 180px 1fr 200px;
}
.builder-app-body.cols-design {
  grid-template-columns: 1fr 240px;
}
.builder-app-body.cols-pdf {
  grid-template-columns: 1fr 80px 1.1fr;
}
.builder-app-body.cols-steps {
  grid-template-rows: auto 1fr;
}

.b-panel {
  padding: 16px 14px;
  border-left: 1px solid var(--border-color);
  overflow: hidden;
  min-height: 0;
}
.b-panel:first-child { border-left: 1px solid var(--border-color); border-right: none; }
.b-panel:last-child { border-left: none; }
/* RTL: the visual order is right→left. In RTL with grid, the borders should sit between columns. */
.builder-app-body.cols-3 > .b-palette { border-left: 1px solid var(--border-color); border-right: none; }
.builder-app-body.cols-3 > .b-inspector { border-right: 1px solid var(--border-color); border-left: none; }
.builder-app-body.cols-3 > .b-canvas { border: none; }
.b-panel-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}

/* PALETTE chips */
.b-chips { display: flex; flex-direction: column; gap: 6px; }
.b-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #FAFAF8;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--dark);
  cursor: grab;
  transition: all 0.2s ease;
  position: relative;
}
.b-chip:hover {
  background: #fff;
  border-color: #DFDFDF;
}
.b-chip-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--dark);
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.b-chip-label { flex: 1; }
.b-chip-grip {
  color: #9B9B9B;
  display: flex;
  align-items: center;
}
.b-chip.b-chip-dragging {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(38,136,191,0.25);
  transform: translateX(-8px) rotate(-1.5deg);
  z-index: 2;
  animation: chipFloat 2.4s ease-in-out infinite;
}
.b-chip.b-chip-dragging .b-chip-icon { background: var(--blue); color: #fff; }
@keyframes chipFloat {
  0%, 100% { transform: translateX(-8px) rotate(-1.5deg); }
  50%      { transform: translateX(-14px) rotate(-2deg); }
}

/* CANVAS */
.b-canvas {
  padding: 20px 24px;
  overflow-y: hidden;
}
.b-canvas-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}
.b-canvas-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}
.b-canvas-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}

/* form fields shared between stages */
.b-field { margin-bottom: 12px; }
.b-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.b-field-mapped {
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.b-field-prefilled {
  font-size: 9px;
  background: rgba(38,136,191,0.12);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.b-field-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0 10px;
  background: #fff;
  font-size: 12.5px;
  color: var(--dark);
}
.b-field-input.empty { color: #9B9B9B; }
.b-field-input.is-prefilled {
  background: rgba(38,136,191,0.05);
  border-color: rgba(38,136,191,0.3);
  color: var(--dark);
}
.b-field-input.is-file {
  border-style: dashed;
  background: #FAFAF8;
  color: var(--muted);
}

/* drop zone */
.b-drop-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 6px 0;
  position: relative;
  animation: dropPulse 1.8s ease-in-out infinite;
}
.b-drop-bar {
  flex: 1;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
  position: relative;
}
.b-drop-bar::before, .b-drop-bar::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  top: 50%;
  transform: translateY(-50%);
}
.b-drop-bar::before { right: -3px; }
.b-drop-bar::after { left: -3px; }
.b-drop-label {
  font-size: 11px;
  color: var(--blue);
  padding: 4px 10px;
  background: rgba(38,136,191,0.08);
  border: 1px solid rgba(38,136,191,0.3);
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes dropPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.b-add-field {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  background: transparent;
  border: 1px dashed #9B9B9B;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.b-add-field:hover {
  border-color: var(--dark);
  color: var(--dark);
}

/* INSPECTOR */
.b-inspector { background: #FAFAF8; }
.b-inspect-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}
.b-inspect-label {
  color: var(--muted);
}
.b-inspect-value {
  color: var(--dark);
  font-weight: 500;
}
.b-inspect-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-weight: 400;
}
.b-inspect-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--dark);
  color: var(--lime);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  letter-spacing: 0.04em;
}
.b-inspect-pill {
  font-size: 10px;
  background: rgba(38,136,191,0.12);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.b-toggle {
  width: 30px; height: 16px;
  background: #DFDFDF;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.b-toggle span {
  position: absolute;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.b-toggle.b-toggle-on { background: var(--green); }
.b-toggle.b-toggle-on span { left: 16px; }
.b-inspect-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0 14px;
}

/* ─── DESIGN STAGE ─── */
.b-design-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  overflow: hidden;
}
.b-preview-frame {
  background: #FAFAF8;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 40px rgba(7,40,52,0.08);
}
.b-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  font-size: 10px;
  color: var(--muted);
}
.b-preview-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #DFDFDF;
}
.b-preview-url {
  flex: 1;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.b-preview-body { padding: 20px; background: #fff; }
.b-preview-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--dark);
  font-weight: 500;
}
.b-logo-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--blue);
  position: relative;
}
.b-logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  border-left-color: transparent;
}
.b-preview-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.b-preview-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.b-preview-submit {
  margin-top: 14px;
  width: 100%;
  padding: 11px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.b-design-panel { background: #FAFAF8; }
.b-design-section { margin-bottom: 20px; }
.b-color-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.b-swatch {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}
.b-swatch:hover { transform: scale(1.05); }
.b-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--dark);
}
.b-swatch-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}
.b-design-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  color: var(--dark);
}
.b-logo-drop {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px dashed #9B9B9B;
  border-radius: 8px;
  font-size: 12px;
  color: var(--dark);
}
.b-logo-drop-meta {
  margin-right: auto;
  font-size: 10px;
  color: var(--green);
  background: rgba(0,124,77,0.1);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.b-radius-row { display: flex; gap: 6px; }
.b-radius {
  flex: 1;
  height: 36px;
  background: #fff;
  border: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.b-radius.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* ─── PDF STAGE ─── */
.b-pdf-source {
  padding: 20px;
  background: #FAFAF8;
  border-left: 1px solid var(--border-color);
  overflow: hidden;
}
.b-pdf-data-stack { display: flex; flex-direction: column; gap: 8px; }
.b-pdf-data-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
}
.b-pdf-data-row > span:first-child { color: var(--muted); }
.b-pdf-data-row > span:last-child { color: var(--dark); font-weight: 500; }

.b-pdf-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.b-pdf-arrow svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.b-pdf-arrow-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--orange);
  border-radius: 14px;
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.06em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  z-index: 1;
}

.b-pdf-doc-wrap {
  padding: 20px 16px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #f3efe1;
  overflow: hidden;
}
.b-pdf-doc {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  font-size: 10px;
  color: var(--dark);
}
.b-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.b-pdf-header-logo {
  display: flex;
  gap: 8px;
  align-items: center;
}
.b-pdf-header-logo .b-logo-mark { width: 22px; height: 22px; }
.b-pdf-header-name { font-size: 11px; font-weight: 500; }
.b-pdf-header-sub { font-size: 8px; color: var(--muted); letter-spacing: 0.04em; }
.b-pdf-header-id { text-align: left; font-size: 8px; color: var(--muted); }
.b-pdf-header-num {
  font-size: 11px;
  color: var(--dark);
  font-weight: 500;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  letter-spacing: 0.04em;
}
.b-pdf-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  margin-top: 2px;
}
.b-pdf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 10px;
}
.b-pdf-grid > div { display: flex; gap: 6px; }
.b-pdf-grid span { color: var(--muted); flex-shrink: 0; }
.b-pdf-grid strong { font-weight: 500; color: var(--dark); }
.b-pdf-grid-wide { grid-column: span 2; }
.b-pdf-textbox {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 10px;
  color: var(--dark);
  line-height: 1.4;
  background: #FAFAF8;
}
.b-pdf-signature {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}
.b-pdf-sig-line {
  font-size: 9px;
  color: var(--muted);
  border-bottom: 1px solid var(--dark);
  padding: 0 30px 4px;
}
.b-pdf-stamp {
  border: 1.5px solid var(--green);
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
  transform: rotate(-3deg);
  color: var(--green);
}
.b-pdf-stamp > div:first-child {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.b-pdf-stamp-sub { font-size: 7px; margin-top: 1px; opacity: 0.8; }
.b-pdf-footer {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ─── STEPS STAGE ─── */
.b-steps-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 28px 20px;
  background: #FAFAF8;
  border-bottom: 1px solid var(--border-color);
}
.b-step-cell { position: relative; }
.b-step-cell-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.b-step-cell-bullet {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DFDFDF;
  color: var(--muted);
  font-size: 11px;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  flex-shrink: 0;
  z-index: 1;
}
.b-step-cell-line {
  flex: 1;
  height: 2px;
  background: #DFDFDF;
  border-radius: 999px;
}
.b-step-cell.s-done .b-step-cell-bullet { background: var(--green); color: #fff; }
.b-step-cell.s-done .b-step-cell-line { background: var(--green); }
.b-step-cell.s-active .b-step-cell-bullet {
  background: var(--dark);
  color: var(--lime);
  box-shadow: 0 0 0 4px rgba(7,40,52,0.08);
}
.b-step-cell-label {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.b-step-cell.s-active .b-step-cell-label {
  color: var(--dark);
  font-weight: 500;
}

.b-steps-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.b-steps-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.b-steps-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.b-steps-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.b-steps-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.b-step-field-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.b-step-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--dark);
}
.b-step-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.b-step-pill {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--dark);
  cursor: pointer;
}
.b-step-pill.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.b-step-textarea {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  min-height: 56px;
  color: var(--dark);
  line-height: 1.5;
}
.b-step-cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--dark);
  vertical-align: middle;
  margin-right: 1px;
  animation: blinkCursor 1s steps(2) infinite;
}
@keyframes blinkCursor {
  50% { opacity: 0; }
}

.b-steps-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}
.b-steps-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--dark);
  cursor: pointer;
}
.b-steps-btn.b-steps-next {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.b-steps-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.b-saved-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0,124,77,0.15);
}

/* mobile: stack columns inside the stage */
@media (max-width: 700px) {
  .builder-app-body.cols-3   { grid-template-columns: 1fr; }
  .builder-app-body.cols-design { grid-template-columns: 1fr; }
  .builder-app-body.cols-pdf { grid-template-columns: 1fr; }
  .builder-app-body.cols-3 > .b-panel,
  .builder-app-body.cols-design > .b-panel,
  .b-pdf-source { border-left: none; border-bottom: 1px solid var(--border-color); }
  .b-pdf-arrow { display: none; }
  .builder-stage { min-height: 0; }
}

/* ────────────────────────────────────────────
   LIFECYCLE SECTION — full form-journey map
   (Dark island — anchors the page visually)
   ──────────────────────────────────────────── */
.lifecycle-section-wrap {
  background: var(--navy-deep);
  padding: 96px 0;
  /* Break out of the .shell 1440px container so the dark band
     spans the entire viewport edge-to-edge. */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
}
.lifecycle-section {
  background: transparent;
  color: var(--white);
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
}
@media (max-width: 768px) {
  .lifecycle-section-wrap { padding: 72px 0; }
  .lifecycle-section { padding: 0 24px; }
}
.lifecycle-section .section-label { color: var(--lime); }
.lifecycle-section .section-label::before { background: var(--lime); }
.lifecycle-section .section-title { color: var(--white); }
.lifecycle-section .section-sub { color: rgba(255,255,255,0.7); }

/* RAIL */
.lc-rail {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px 24px 28px;
  margin-top: 48px;
  background-image: radial-gradient(circle, rgba(7,40,52,0.05) 1px, transparent 1.5px);
  background-size: 20px 20px;
  background-position: 0 0;
}
.lc-rail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
  padding: 0 8px;
}
.lc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lc-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #DFDFDF;
  border: 2px solid var(--dark);
}
.lc-dot-user   { background: #fff; border-color: var(--blue); }
.lc-dot-system { background: var(--dark); border-color: var(--dark); }
.lc-legend-loop {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.lc-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.lc-cell {
  display: grid;
  grid-template-rows: 96px 56px 96px 44px;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  outline: none;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: opacity 0.2s ease;
}
.lc-cell:not(.active) { opacity: 0.6; }
.lc-cell:hover { opacity: 1; }
.lc-cell.active { opacity: 1; }
.lc-cell:focus-visible .lc-station-circle {
  box-shadow: 0 0 0 3px rgba(38,136,191,0.35);
}

.lc-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lc-zone-user   { align-items: flex-end;   padding-bottom: 4px; }
.lc-zone-system { align-items: flex-start; padding-top: 4px; }
.lc-zone-rail { /* horizontal rail line + vertical connector */ }

.lc-h-line {
  position: absolute;
  height: 2px;
  background: #DFDFDF;
  top: 50%;
  left: -1px;
  right: -1px;
  transform: translateY(-50%);
}
.lc-cell.is-last .lc-h-line { /* leftmost visually in RTL — trim the left side */
  left: 50%;
}
.lc-cell:first-child .lc-h-line { /* rightmost visually in RTL — trim the right side */
  right: 50%;
}
.lc-cell.active .lc-h-line {
  background: linear-gradient(to right, var(--dark), var(--dark));
}

.lc-v-line {
  width: 2px;
  background: #DFDFDF;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 55%;
}
.lc-v-up   { top: 0; }
.lc-v-down { bottom: 0; }
.lc-cell.active .lc-v-line {
  background: var(--dark);
}

.lc-station-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.lc-zone-user .lc-station-wrap   { flex-direction: column-reverse; }
.lc-station-where {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  max-width: 130px;
  text-align: center;
  line-height: 1.35;
}
.lc-station-circle {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #9B9B9B;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.lc-station-circle.lane-user   { border-color: var(--blue); }
.lc-station-circle.lane-system { border-color: var(--dark); background: var(--dark); }
.lc-station-circle.lane-system .lc-station-num { color: #fff; }
.lc-station-num {
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  font-size: 15px;
  color: var(--dark);
  letter-spacing: 0.04em;
}
.lc-cell:hover .lc-station-circle {
  transform: scale(1.06);
}
.lc-cell.active .lc-station-circle {
  background: var(--dark);
  border-color: var(--dark);
  transform: scale(1.14);
  box-shadow: 0 8px 18px rgba(7,40,52,0.2);
}
.lc-cell.active .lc-station-num { color: var(--lime); }

.lc-station-loop-badge {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--cream);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: -5px;
  left: -5px;
}
.lc-cell.active .lc-station-loop-badge {
  border-color: var(--cream);
}

.lc-cell-caption {
  font-size: 13px;
  color: var(--dark);
  letter-spacing: -0.01em;
  padding: 0 6px;
  line-height: 1.3;
  font-weight: 500;
}
.lc-cell:not(.active) .lc-cell-caption {
  color: var(--muted);
}

/* mobile rail — stack cells vertically (only for non-layout mode) */
@media (max-width: 1000px) {
  .lc-cells:not(.lc-layout .lc-cells) { grid-template-columns: 1fr; gap: 0; }
  .lc-cell:not(.lc-layout .lc-cell) {
    grid-template-rows: auto auto auto auto;
    grid-template-columns: 80px 40px 1fr;
    grid-template-areas:
      "where rail caption"
      "circle rail caption";
    padding: 12px 0;
    text-align: right;
  }
  :not(.lc-layout) > .lc-cells .lc-zone-user,
  :not(.lc-layout) > .lc-cells .lc-zone-system { display: contents; }
  :not(.lc-layout) > .lc-cells .lc-zone-rail {
    grid-area: rail;
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }
  :not(.lc-layout) > .lc-cells .lc-h-line { display: none; }
  :not(.lc-layout) > .lc-cells .lc-v-line {
    position: relative;
    left: auto;
    transform: none;
    height: 100%;
    width: 2px;
    margin: 0 auto;
  }
  :not(.lc-layout) > .lc-cells .lc-v-up,
  :not(.lc-layout) > .lc-cells .lc-v-down { top: auto; bottom: auto; }
  :not(.lc-layout) > .lc-cells .lc-station-wrap { flex-direction: row !important; gap: 12px; }
  :not(.lc-layout) > .lc-cells .lc-station-where { max-width: none; text-align: right; }
  :not(.lc-layout) > .lc-cells .lc-cell-caption { text-align: right; padding-top: 0; }
}

/* DETAIL PANEL */
.lc-detail {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px 48px;
  animation: lcDetailIn 0.4s ease;
}
@media (max-width: 768px) {
  .lc-detail { padding: 28px 24px; }
}
@keyframes lcDetailIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lc-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 20px;
}
.lc-detail-meta-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.lc-detail-num {
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  font-size: 24px;
  color: var(--orange);
  letter-spacing: 0.06em;
}
.lc-detail-lane {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lc-detail-lane-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #DFDFDF;
  border: 2px solid var(--dark);
}
.lc-detail-lane.lane-user .lc-detail-lane-dot   { background: #fff; border-color: var(--blue); }
.lc-detail-lane.lane-system .lc-detail-lane-dot { background: var(--dark); border-color: var(--dark); }
.lc-detail-loop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--orange);
  background: rgba(255,139,34,0.1);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lc-detail-title {
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.025em;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: var(--dark);
}
.lc-detail-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lc-nav-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #DFDFDF;
  color: var(--dark);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.lc-nav-btn:hover:not(:disabled) {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.lc-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.lc-nav-count {
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.lc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .lc-detail-grid { grid-template-columns: 1fr; gap: 28px; }
}
.lc-detail-desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--dark);
  margin: 0 0 24px;
}
.lc-detail-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lc-detail-bullets li {
  position: relative;
  padding-right: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.lc-detail-bullets li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  width: 18px;
  height: 1px;
  background: var(--orange);
}
.lc-detail-visual {
  background: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  min-height: 360px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* shared visual card */
.lcv-card {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 18px rgba(7,40,52,0.04);
}

/* 01 - form */
.lcv-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  background: #FAFAF8;
  border-bottom: 1px solid var(--border-color);
  margin: -20px -20px 4px;
  border-radius: 14px 14px 0 0;
}
.lcv-browser-bar > span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #DFDFDF;
}
.lcv-browser-url {
  flex: 1;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  text-align: center;
}
.lcv-form-header {
  display: flex;
  gap: 12px;
  align-items: center;
}
.lcv-form-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue);
  position: relative;
}
.lcv-form-logo::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  border-left-color: transparent;
}
.lcv-form-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
}
.lcv-form-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lcv-form-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.lcv-row { display: flex; flex-direction: column; gap: 4px; }
.lcv-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.lcv-prefill-pill {
  font-size: 9px;
  background: rgba(38,136,191,0.12);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lcv-input {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0 12px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  color: var(--dark);
  background: #fff;
}
.lcv-input-prefilled {
  background: rgba(38,136,191,0.04);
  border-color: rgba(38,136,191,0.3);
}
.lcv-input-typing {
  border-color: var(--dark);
  background: #fff;
}
.lcv-cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--dark);
  margin-right: 1px;
  animation: lcBlink 1s steps(2) infinite;
}
@keyframes lcBlink { 50% { opacity: 0; } }
.lcv-form-submit {
  padding: 12px;
  background: var(--dark);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  margin-top: 6px;
}

/* 02 - ingestion */
.lcv-ingest {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
}
.lcv-ingest-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lcv-mini-form {
  background: #FAFAF8;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 12px;
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lcv-mini-row {
  height: 6px;
  border-radius: 3px;
  background: #DFDFDF;
}
.lcv-mini-row:nth-child(2n) { width: 70%; }
.lcv-ingest-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  text-transform: uppercase;
}
.lcv-ingest-arrows-wrap {
  width: 80px;
  height: 200px;
  position: relative;
}
.lcv-ingest-arrows {
  width: 100%; height: 100%;
}
.lcv-ingest-systems {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lcv-system {
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
}
.lcv-system-ims { background: var(--blue); }
.lcv-system-crm { background: var(--navy-deep); }
.lcv-system-name {
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lcv-system-sub {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 2px;
  margin-bottom: 8px;
}
.lcv-system-rows {
  display: flex;
  gap: 4px;
}
.lcv-system-rows > span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
}
.lcv-system-crm .lcv-system-name { color: var(--lime); }

/* 03 - routing */
.lcv-route-header {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lcv-route-input {
  padding: 10px 14px;
  background: var(--dark);
  color: var(--lime);
  border-radius: 8px;
  font-size: 13px;
  align-self: flex-start;
  font-weight: 500;
}
.lcv-route-branches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 18px;
  border-right: 2px dashed #9B9B9B;
  padding-right: 16px;
}
.lcv-route-branch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.lcv-route-rule {
  color: var(--muted);
  font-size: 11.5px;
  min-width: 110px;
}
.lcv-route-arrow {
  color: #9B9B9B;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lcv-route-target {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--dark);
}
.lcv-route-target.lcv-route-active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.lcv-route-sla {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  text-transform: uppercase;
}
.lcv-route-sla strong { color: var(--dark); }

/* 04 - handler */
.lcv-handler-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.lcv-handler-title {
  font-size: 13.5px;
  font-weight: 500;
}
.lcv-handler-status {
  font-size: 10px;
  padding: 4px 12px;
  background: rgba(255,139,34,0.1);
  color: var(--orange);
  border-radius: 999px;
  letter-spacing: 0.06em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lcv-handler-prof {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #FAFAF8;
  padding: 10px 12px;
  border-radius: 10px;
}
.lcv-handler-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.lcv-handler-prof-text { flex: 1; }
.lcv-handler-prof-name { font-size: 13px; color: var(--dark); }
.lcv-handler-prof-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.lcv-handler-prof-meta {
  font-size: 16px;
  color: #9B9B9B;
}
.lcv-handler-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lcv-handler-field {
  background: #FAFAF8;
  padding: 10px 12px;
  border-radius: 10px;
}
.lcv-handler-label {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.lcv-handler-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--dark);
}
.lcv-handler-flagged {
  border-color: var(--orange);
  background: rgba(255,139,34,0.04);
}
.lcv-flag-icon {
  width: 18px; height: 18px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.lcv-handler-note {
  font-size: 10.5px;
  color: var(--orange);
  margin-top: 6px;
}
.lcv-handler-action {
  margin-top: auto;
  padding: 11px;
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  font-size: 13.5px;
  text-align: center;
}

/* 05 - return */
.lcv-return { gap: 12px; }
.lcv-sms {
  background: #FAFAF8;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
}
.lcv-sms-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  text-transform: uppercase;
}
.lcv-sms-body {
  font-size: 12.5px;
  color: var(--dark);
  line-height: 1.55;
}
.lcv-sms-link {
  color: var(--blue);
  text-decoration: underline;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
}
.lcv-return-arrow {
  text-align: center;
  color: #9B9B9B;
  font-size: 18px;
  line-height: 1;
}
.lcv-return-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lcv-return-frow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--dark);
}
.lcv-return-frow.prefilled {
  background: rgba(38,136,191,0.05);
  border: 1px solid rgba(38,136,191,0.25);
}
.lcv-return-frow.flagged {
  background: rgba(255,139,34,0.06);
  border: 1px solid var(--orange);
}
.lcv-keep {
  font-size: 9.5px;
  color: var(--blue);
  letter-spacing: 0.06em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  text-transform: uppercase;
}
.lcv-flag-bubble {
  font-size: 11px;
  color: var(--orange);
}
.lcv-return-meta {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  text-transform: uppercase;
  margin-top: auto;
}

/* 06 - close timeline */
.lcv-close-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lcv-close-stamp {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0,124,77,0.12);
  color: var(--green);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  text-transform: uppercase;
}
.lcv-close-id {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lcv-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  border-right: 2px solid #DFDFDF;
  padding-right: 18px;
  position: relative;
}
.lcv-tl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  font-size: 12px;
  color: var(--dark);
}
.lcv-tl-time {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  width: 38px;
  flex-shrink: 0;
}
.lcv-tl-dot {
  position: absolute;
  right: -24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #DFDFDF;
  border: 2px solid #fff;
  z-index: 1;
}
.lcv-tl-row.is-primary .lcv-tl-dot {
  background: var(--green);
  width: 14px; height: 14px;
  right: -26px;
}
.lcv-tl-row.is-primary .lcv-tl-text {
  font-weight: 500;
  color: var(--dark);
}
.lcv-close-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
}

/* 07 - personal area */
.lcv-status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.lcv-status-eyebrow {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lcv-status-title { font-size: 16px; font-weight: 500; }
.lcv-status-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--lime);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lcv-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lcv-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #FAFAF8;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}
.lcv-status-row-id {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
  margin-bottom: 2px;
}
.lcv-status-row-t {
  font-size: 12.5px;
  color: var(--dark);
}
.lcv-status-badge {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-family: 'Clash Grotesk', 'Heebo', sans-serif;
}
.lcv-status-green {
  background: rgba(0,124,77,0.12);
  color: var(--green);
}
.lcv-status-orange {
  background: rgba(255,139,34,0.12);
  color: var(--orange);
}
.lcv-status-footer {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border-top: 1px dashed var(--border-color);
}

/* ────────────────────────────────────────────
   LIFECYCLE — dark-island overrides
   (Layered after the base .lc-* rules so they win the cascade.
    Base rules above define LIGHT styling; rules below recolour for the
    dark island so dot-pattern, rails, station chips and the detail card
    all read on var(--navy-deep).)
   ──────────────────────────────────────────── */

/* Rail surface — a thin frosted plane on the deep teal */
.lifecycle-section .lc-rail {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1.5px);
}

/* Legend */
.lifecycle-section .lc-legend-item { color: rgba(255,255,255,0.55); }
.lifecycle-section .lc-legend-dot {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}
.lifecycle-section .lc-dot-user   { background: #fff; border-color: var(--blue); }
.lifecycle-section .lc-dot-system { background: var(--lime); border-color: var(--lime); }

/* Rail lines */
.lifecycle-section .lc-h-line,
.lifecycle-section .lc-v-line   { background: rgba(255,255,255,0.14); }
.lifecycle-section .lc-cell.active .lc-h-line,
.lifecycle-section .lc-cell.active .lc-v-line { background: var(--lime); }

/* Station chips */
.lifecycle-section .lc-station-where { color: rgba(255,255,255,0.55); }
.lifecycle-section .lc-station-circle {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
}
.lifecycle-section .lc-station-num { color: rgba(255,255,255,0.85); }
.lifecycle-section .lc-station-circle.lane-user {
  background: #fff;
  border-color: var(--blue);
}
.lifecycle-section .lc-station-circle.lane-user .lc-station-num { color: var(--navy-deep); }
.lifecycle-section .lc-station-circle.lane-system {
  background: rgba(255,255,255,0.04);
  border-color: rgba(166,198,50,0.7);
}
.lifecycle-section .lc-station-circle.lane-system .lc-station-num { color: var(--lime); }

.lifecycle-section .lc-cell.active .lc-station-circle {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 10px 28px rgba(166,198,50,0.32);
}
.lifecycle-section .lc-cell.active .lc-station-circle .lc-station-num,
.lifecycle-section .lc-cell.active .lc-station-circle.lane-user .lc-station-num,
.lifecycle-section .lc-cell.active .lc-station-circle.lane-system .lc-station-num {
  color: var(--navy-deep);
}
.lifecycle-section .lc-cell:focus-visible .lc-station-circle {
  box-shadow: 0 0 0 3px rgba(166,198,50,0.4);
}

.lifecycle-section .lc-station-loop-badge { border-color: var(--navy-deep); }

.lifecycle-section .lc-cell-caption { color: rgba(255,255,255,0.92); }
.lifecycle-section .lc-cell:not(.active) .lc-cell-caption { color: rgba(255,255,255,0.45); }

/* Detail panel — dark elevated card. The product mockups inside the visual
   area keep their light colours so they read as real screenshots. */
.lifecycle-section .lc-detail {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
.lifecycle-section .lc-detail-head {
  border-bottom-color: rgba(255,255,255,0.10);
}
.lifecycle-section .lc-detail-num { color: var(--orange); }

.lifecycle-section .lc-detail-lane {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}
.lifecycle-section .lc-detail-lane-dot {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}
.lifecycle-section .lc-detail-lane.lane-user .lc-detail-lane-dot {
  background: #fff;
  border-color: var(--blue);
}
.lifecycle-section .lc-detail-lane.lane-system .lc-detail-lane-dot {
  background: var(--lime);
  border-color: var(--lime);
}

.lifecycle-section .lc-detail-title  { color: var(--white); }
.lifecycle-section .lc-detail-desc   { color: rgba(255,255,255,0.85); }
.lifecycle-section .lc-detail-bullets li { color: rgba(255,255,255,0.7); }

.lifecycle-section .lc-nav-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.lifecycle-section .lc-nav-btn:hover:not(:disabled) {
  background: var(--lime);
  color: var(--navy-deep);
  border-color: var(--lime);
}
.lifecycle-section .lc-nav-count { color: rgba(255,255,255,0.6); }

/* The cream visual frame becomes a deeper inset on the dark island */
.lifecycle-section .lc-detail-visual {
  background: rgba(0,0,0,0.22);
  border-color: rgba(255,255,255,0.08);
}

/* ────────────────────────────────────────────
   LIFECYCLE — VERTICAL LAYOUT
   Rail on the right, detail content on the left
   ──────────────────────────────────────────── */
.lc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;  /* RTL: 260px rail on right, content on left */
  gap: 40px;
  align-items: start;
  margin-top: 48px;
  min-width: 0;
  overflow: hidden;
}
.lc-layout > * {
  min-width: 0;
}

/* Rail — vertical sticky sidebar */
.lc-layout .lc-rail {
  margin-top: 0;
  position: sticky;
  top: 100px;
  padding: 20px 16px;
  border-radius: 18px;
}

/* Legend — compact for vertical */
.lc-layout .lc-rail-legend {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
}

/* Cells — vertical stack */
.lc-layout .lc-cells {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each cell — compact clickable row */
.lc-layout .lc-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
  /* Reset the horizontal grid */
  grid-template-columns: unset;
  grid-template-rows: unset;
}
.lc-layout .lc-cell:not(.active) {
  opacity: 1;
}

/* Hide the complex horizontal zone structure */
.lc-layout .lc-zone-rail {
  display: none !important;
}
.lc-layout .lc-cell-user .lc-zone-system,
.lc-layout .lc-cell-system .lc-zone-user {
  display: none !important;
}

/* Zones that remain — inline, no padding */
.lc-layout .lc-zone {
  display: flex;
  align-items: center;
  padding: 0;
}

/* Station wrap — horizontal in vertical rail */
.lc-layout .lc-station-wrap {
  flex-direction: row !important;
  align-items: center;
  gap: 0;
}
.lc-layout .lc-station-where {
  display: none;
}

/* Smaller station circles */
.lc-layout .lc-station-circle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.lc-layout .lc-station-num {
  font-size: 13px;
}

/* Loop badge — adjust position for smaller circle */
.lc-layout .lc-station-loop-badge {
  width: 16px;
  height: 16px;
  font-size: 9px;
  bottom: -3px;
  left: -3px;
}

/* Caption — beside the circle */
.lc-layout .lc-cell-caption {
  font-size: 13.5px;
  padding: 0;
  white-space: nowrap;
  line-height: 1.3;
}

/* Vertical connecting line through circles */
.lc-layout .lc-cell::before {
  content: '';
  position: absolute;
  width: 2px;
  background: rgba(255,255,255,0.14);
  right: 27px; /* center of 38px circle + 8px padding */
  top: 0;
  bottom: 0;
  z-index: 0;
}
.lc-layout .lc-cells > .lc-cell:first-child::before {
  top: 50%;
}
.lc-layout .lc-cells > .lc-cell:last-child::before,
.lc-layout .lc-cells > .lc-cell.is-last::before {
  bottom: 50%;
}

/* Active cell — highlight bar */
.lc-layout .lc-cell.active {
  background: rgba(255,255,255,0.06);
}
.lc-layout .lc-cell:hover:not(.active) {
  background: rgba(255,255,255,0.03);
}
.lc-layout .lc-cell.active::before {
  background: var(--lime);
}

/* Active circle — inherit from dark-island rules, just ensure sizing */
.lc-layout .lc-cell.active .lc-station-circle {
  transform: scale(1.1);
}
.lc-layout .lc-cell:hover .lc-station-circle {
  transform: scale(1.04);
}

/* Detail cards — fill the left content area */
.lc-layout .lc-cards-contents {
  min-width: 0;
}
.lc-layout .lc-cards-contents .lc-detail {
  margin-top: 0;
  border-radius: 20px;
}

/* ─── VERTICAL LAYOUT RESPONSIVE ─── */
@media (max-width: 1000px) {
  .lc-layout {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
  .lc-layout .lc-cell-caption {
    font-size: 12px;
  }
  .lc-layout .lc-station-circle {
    width: 32px;
    height: 32px;
  }
  .lc-layout .lc-station-num {
    font-size: 11px;
  }
  .lc-layout .lc-cell::before {
    right: 24px;
  }
}

@media (max-width: 768px) {
  .lc-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .lc-layout .lc-rail {
    position: static;
    padding: 14px 10px;
    border-radius: 16px;
    margin-bottom: 20px;
  }
  .lc-layout .lc-rail-legend {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  /* On mobile, make the rail a horizontal scrollable strip */
  .lc-layout .lc-cells {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lc-layout .lc-cells::-webkit-scrollbar {
    display: none;
  }
  .lc-layout .lc-cell {
    flex-direction: column;
    min-width: 72px;
    padding: 8px 4px;
    gap: 6px;
    text-align: center;
    border-radius: 10px;
  }
  .lc-layout .lc-cell.active {
    background: rgba(255,255,255,0.08);
  }
  .lc-layout .lc-station-circle {
    width: 30px;
    height: 30px;
  }
  .lc-layout .lc-station-num {
    font-size: 10px;
  }
  .lc-layout .lc-station-loop-badge {
    width: 14px;
    height: 14px;
    font-size: 8px;
    bottom: -2px;
    left: -2px;
  }
  .lc-layout .lc-cell-caption {
    font-size: 10px;
    white-space: nowrap;
    line-height: 1.2;
  }
  /* Switch connecting line to horizontal */
  .lc-layout .lc-cell::before {
    width: auto;
    height: 2px;
    top: 23px;  /* vertically center with 30px circle + 8px top padding */
    right: 0;
    left: 0;
    bottom: auto;
  }
  .lc-layout .lc-cells > .lc-cell:first-child::before {
    top: 23px;
    right: 50%;
    left: 0;
    bottom: auto;
  }
  .lc-layout .lc-cells > .lc-cell:last-child::before,
  .lc-layout .lc-cells > .lc-cell.is-last::before {
    top: 23px;
    left: 50%;
    right: 0;
    bottom: auto;
  }

  /* Detail cards — compact mobile */
  .lc-layout .lc-cards-contents .lc-detail {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .lc-layout .lc-detail-head {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .lc-layout .lc-detail-nav {
    align-self: stretch;
    justify-content: space-between;
  }
  .lc-layout .lc-detail-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  .lc-layout .lc-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lc-layout .lc-detail-desc {
    font-size: 15px;
  }
  .lc-layout .lc-detail-bullets li {
    font-size: 13.5px;
  }
  .lc-layout .lc-detail-visual {
    min-height: 260px;
    padding: 16px;
    border-radius: 14px;
  }
  .lc-layout .lc-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .lc-layout .lc-detail-meta-line {
    flex-wrap: wrap;
    gap: 8px;
  }
  .lc-layout .lc-detail-num {
    font-size: 20px;
  }
}

/* ─── VERTICAL LAYOUT — Small mobile (≤480px) ─── */
@media (max-width: 480px) {
  .lc-layout .lc-cell {
    min-width: 62px;
    padding: 6px 3px;
  }
  .lc-layout .lc-station-circle {
    width: 26px;
    height: 26px;
  }
  .lc-layout .lc-station-num {
    font-size: 9px;
  }
  .lc-layout .lc-cell-caption {
    font-size: 9px;
  }
  .lc-layout .lc-cell::before {
    top: 19px;
  }
  .lc-layout .lc-cells > .lc-cell:first-child::before {
    top: 19px;
  }
  .lc-layout .lc-cells > .lc-cell:last-child::before,
  .lc-layout .lc-cells > .lc-cell.is-last::before {
    top: 19px;
  }
  .lc-layout .lc-cards-contents .lc-detail {
    padding: 16px 12px;
  }
  .lc-layout .lc-detail-visual {
    min-height: 220px;
    padding: 12px;
  }
  .lc-layout .lc-detail-title {
    font-size: 22px;
  }

  /* Compact inner visuals */
  .lc-layout .lcv-ingest {
    grid-template-columns: 1fr 40px 1fr;
  }
  .lc-layout .lcv-route-branches {
    margin-right: 10px;
    padding-right: 10px;
  }
  .lc-layout .lcv-route-branch {
    flex-wrap: wrap;
    gap: 4px;
  }
  .lc-layout .lcv-route-rule {
    font-size: 10px;
    min-width: auto;
  }
  .lc-layout .lcv-route-target {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* tweak panel polish */
.tweak-hero-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.tweak-hero-swatch {
  aspect-ratio: 1.4 / 1;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.tweak-hero-swatch.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38,136,191,0.18);
}

/* ════════════════════════════════════════════
   RESPONSIVE — comprehensive mobile/tablet
   ════════════════════════════════════════════ */

/* ─── Tablet (≤1100px) ─── */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 100px;
  }
  .hero-stage {
    height: 400px;
  }
  .stage-card {
    width: 240px;
    padding: 16px;
  }
  .stage-card.right { right: 24px; }
  .stage-card.left  { left: 24px; }

  .builder-grid {
    grid-template-columns: 280px 1fr;
  }
}

/* ─── Small tablet (≤900px) ─── */
@media (max-width: 900px) {
  .hero {
    gap: 32px;
    padding-top: 80px;
  }
  .hero-stage {
    height: 340px;
  }
  .stage-card {
    width: 200px;
    padding: 14px;
    border-radius: 12px;
  }
  .stage-card.right { right: 16px; }
  .stage-card.left  { left: 16px; }
  .stage-card-title { font-size: 16px; margin-bottom: 10px; }
  .mock-row { margin-bottom: 6px; }
  .mock-record { padding: 6px; gap: 8px; }

  .builder-grid {
    grid-template-columns: 1fr;
  }
  .builder-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .builder-tab {
    min-width: 220px;
    flex-shrink: 0;
  }

  .builder-app-body.cols-3 {
    grid-template-columns: 140px 1fr 160px;
  }
  .builder-app-body.cols-pdf {
    grid-template-columns: 1fr 60px 1fr;
  }
}

.cta-inner h3 {
  font-size: clamp(24px, 5.5vw, 36px);
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 40px;
    gap: 24px;
  }
  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    text-align: center;
  }

  .hero-stage {
    height: 280px;
    border-radius: 16px;
    margin-top: 24px;
  }
  .stage-card {
    width: 160px;
    padding: 12px;
    border-radius: 10px;
  }
  .stage-card.right { right: 8px; }
  .stage-card.left  { left: 8px; }
  .stage-card-label { font-size: 9px; margin-bottom: 8px; }
  .stage-card-title { font-size: 14px; margin-bottom: 8px; }
  .mock-row-label { font-size: 9px; }
  .mock-row-field { height: 24px; font-size: 10px; }
  .mock-record { font-size: 10px; padding: 5px; margin-bottom: 4px; }
  .mock-record-avatar { width: 20px; height: 20px; font-size: 8px; }
  .stage-tag { font-size: 9px; padding: 3px 8px; }

  .section-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .section-sub {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .builder-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .builder-tabs {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .builder-tab {
    min-width: 200px;
    padding: 16px;
    border-radius: 14px;
  }
  .builder-tab-label { font-size: 16px; }

  .builder-stage {
    min-height: 400px;
    padding: 16px 4px 40px;
  }
  .builder-app-body.cols-3 {
    grid-template-columns: 1fr;
  }
  .builder-app-body.cols-design {
    grid-template-columns: 1fr;
  }
  .builder-app-body.cols-pdf {
    grid-template-columns: 1fr;
  }
  .builder-app-body.cols-3 > .b-palette { display: none; }
  .builder-app-body.cols-3 > .b-inspector { display: none; }
  .b-pdf-arrow { display: none; }
  .b-pdf-source {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }

  .lifecycle-section-wrap { padding: 56px 0; }
  .lifecycle-section { padding: 0 16px; }

  .lc-rail {
    padding: 16px 12px 20px;
    border-radius: 16px;
  }
  .lc-rail-legend { gap: 12px; margin-bottom: 8px; }
  .lc-legend-item { font-size: 10px; }

  .lc-detail {
    padding: 20px 16px;
    border-radius: 16px;
    margin-top: 20px;
  }
  .lc-detail-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .lc-detail-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  .lc-detail-desc { font-size: 15px; }
  .lc-detail-bullets li { font-size: 13.5px; }
  .lc-detail-visual {
    min-height: 280px;
    padding: 16px;
    border-radius: 14px;
  }
  .lc-nav-btn { width: 36px; height: 36px; font-size: 15px; }

  .lead-section {
    padding: 64px 16px;
  }
  .cta-inner h3 {
    font-size: clamp(24px, 5.5vw, 36px);
  }
}

/* ─── Small mobile (≤480px) ─── */
@media (max-width: 480px) {
  .section-padding { padding: 56px 16px; }

  .hero {
    padding-top: 70px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-eyebrow { font-size: 11px; }

  .hero-stage {
    height: 220px;
  }
  .stage-card {
    width: 130px;
    padding: 10px;
  }
  .stage-card-title { font-size: 12px; }
  .mock-row { display: none; }
  .mock-record:nth-child(n+3) { display: none; }

  .builder-tab { min-width: 180px; }
  .builder-stage { min-height: 320px; }

  .b-steps-progress {
    grid-template-columns: repeat(4, 1fr);
    padding: 16px 12px 12px;
  }
  .b-step-cell-label { font-size: 9px; }
  .b-step-cell-bullet { width: 20px; height: 20px; font-size: 9px; }
  .b-steps-body { padding: 16px; }
  .b-steps-title { font-size: 18px; }
  .b-steps-actions { flex-wrap: wrap; gap: 10px; }

  .lc-detail-grid { gap: 20px; }
  .lc-detail-visual { min-height: 240px; padding: 12px; }

  /* Lifecycle rail - compact cells */
  .lifecycle-section .lc-cells { gap: 0; }
  .lc-station-circle { width: 38px; height: 38px; }
  .lc-station-num { font-size: 12px; }
  .lc-cell-caption { font-size: 11px; }
  .lc-station-where { font-size: 8px; }

  /* Ingestion visual */
  .lcv-ingest { grid-template-columns: 1fr 50px 1fr; }
  .lcv-mini-form { width: 72px; padding: 10px 8px; }
  .lcv-system { padding: 10px; }
  .lcv-system-name { font-size: 14px; }

  /* Route visual */
  .lcv-route-branches { margin-right: 12px; padding-right: 12px; }
  .lcv-route-branch { flex-wrap: wrap; gap: 6px; }
  .lcv-route-rule { min-width: auto; font-size: 10.5px; }
  .lcv-route-target { font-size: 10.5px; padding: 4px 10px; }
}
