/* Lead page public rendering — layouts from sample HTML templates */

:root {
  --lp-lead-bg: #f4f3ef;
  --lp-lead-surface: #ffffff;
  --lp-lead-surface-soft: #efede7;
  --lp-lead-text: #171714;
  --lp-lead-muted: #6d6b63;
  --lp-lead-border: #deddd7;
  --lp-lead-accent: #1f4d3a;
  --lp-lead-accent-hover: #173c2d;
  --lp-lead-accent-soft: #edf4f0;
  --lp-lead-error: #b42318;
  --lp-lead-success: #2f6a4f;
  --lp-lead-radius: 18px;
  --lp-lead-shadow: 0 18px 55px rgba(26, 26, 22, 0.1);
  --lp-lead-max: 1040px;
  --lp-lead-serif: Georgia, "Times New Roman", serif;
}

.lp-lead-page {
  min-height: 100vh;
  background: var(--lp-lead-bg);
  color: var(--lp-lead-text);
  font-family: var(--font-sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  line-height: 1.5;
}

.lp-lead-template-multi_step {
  --lp-lead-bg: #f7f6f2;
  --lp-lead-accent: #9a642b;
  --lp-lead-accent-hover: #74491e;
  --lp-lead-accent-soft: #f3e9dc;
  --lp-lead-radius: 22px;
  --lp-lead-max: 1180px;
  --lp-lead-shadow: 0 20px 70px rgba(43, 35, 24, 0.09);
}

.lp-lead-template-top_image {
  --lp-lead-bg: #f5f4f0;
  --lp-lead-accent: #243e33;
  --lp-lead-accent-hover: #182b23;
  --lp-lead-accent-soft: #edf2ef;
  --lp-lead-radius: 22px;
  --lp-lead-max: 940px;
  --lp-lead-shadow: 0 20px 70px rgba(35, 31, 24, 0.09);
}

.lp-lead-shell {
  width: min(calc(100% - 32px), var(--lp-lead-max));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.lp-lead-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  margin-bottom: 20px;
}

.lp-lead-brand-bar.is-centered {
  justify-content: center;
}

.lp-lead-brand {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-lead-brand-logo {
  display: flex;
  align-items: center;
  max-width: min(100%, 220px);
}

.lp-lead-brand-logo img {
  display: block;
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lp-lead-brand-note {
  color: var(--lp-lead-muted);
  font-size: 0.84rem;
}

.lp-lead-card {
  overflow: hidden;
  background: var(--lp-lead-surface);
  border: 1px solid rgba(23, 23, 20, 0.06);
  border-radius: var(--lp-lead-radius);
  box-shadow: var(--lp-lead-shadow);
}

.lp-lead-card-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
}

.lp-lead-card-experience {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  min-height: 720px;
}

.lp-lead-card-top {
  display: flex;
  flex-direction: column;
}

.lp-lead-page.is-submitted .lp-lead-card-split,
.lp-lead-page.is-submitted .lp-lead-card-experience {
  grid-template-columns: 1fr;
}

.lp-lead-media-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
}

.lp-lead-focal-picker {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
          user-select: none;
}

.lp-lead-focal-picker[data-focal-dragging="1"] {
  cursor: grabbing;
}

.lp-lead-focal-picker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.lp-lead-focal-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #2563eb) 85%, #fff);
  box-shadow: 0 0 0 1px rgb(15 23 42 / 35%);
  pointer-events: none;
}

.lp-lead-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lp-lead-visual,
.lp-lead-story,
.lp-lead-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #2a2a26;
}

.lp-lead-visual::after,
.lp-lead-story::after,
.lp-lead-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lp-lead-visual::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.06) 58%);
}

.lp-lead-story::after {
  background: linear-gradient(180deg, rgba(28, 21, 14, 0.12), rgba(28, 21, 14, 0.76));
}

.lp-lead-hero::after {
  background: linear-gradient(
    180deg,
    rgba(13, 18, 15, 0.08) 0%,
    rgba(13, 18, 15, 0.2) 42%,
    rgba(13, 18, 15, 0.78) 100%
  );
}

.lp-lead-visual {
  min-height: 720px;
}

.lp-lead-story {
  display: flex;
  min-height: 720px;
  padding: 40px;
}

.lp-lead-story-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.lp-lead-hero {
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: 42px;
}

.lp-lead-visual.is-empty,
.lp-lead-story.is-empty,
.lp-lead-hero.is-empty {
  background: linear-gradient(160deg, #3a463f, #1d2621);
}

.lp-lead-visual-copy,
.lp-lead-hero-copy,
.lp-lead-story-copy {
  position: relative;
  z-index: 2;
}

.lp-lead-visual-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
}

.lp-lead-visual-copy p,
.lp-lead-hero-copy p,
.lp-lead-story-copy p {
  max-width: 31rem;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.6;
}

.lp-lead-visual-title,
.lp-lead-story-copy h1,
.lp-lead-hero-copy h1,
.lp-lead-headline,
.lp-lead-step-title,
.lp-lead-thankyou-headline {
  margin: 0;
  font-family: var(--lp-lead-serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lp-lead-visual-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.15;
}

.lp-lead-story-copy h1,
.lp-lead-hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.96;
}

.lp-lead-story-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-lead-steps-mini {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.lp-lead-steps-mini div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.lp-lead-steps-mini span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
}

.lp-lead-form-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px;
}

.lp-lead-card-experience .lp-lead-form-panel {
  padding: 34px 42px 40px;
}

.lp-lead-card-top .lp-lead-form-panel {
  padding: 34px 42px 42px;
}

.lp-lead-eyebrow,
.lp-lead-step-kicker {
  margin: 0 0 12px;
  color: var(--lp-lead-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Minimal intro eyebrow — overridable via document.eyebrowColor */
.lp-lead-intro .lp-lead-eyebrow {
  color: var(--lp-lead-eyebrow-color, var(--lp-lead-accent));
}

.lp-lead-visual .lp-lead-eyebrow,
.lp-lead-hero .lp-lead-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.lp-lead-headline {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.lp-lead-subheadline,
.lp-lead-step-intro {
  margin: 14px 0 0;
  color: var(--lp-lead-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.lp-lead-benefits {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.lp-lead-benefits li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  color: #373730;
  font-size: 0.95rem;
}

.lp-lead-benefits li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--lp-lead-checkmark-color, var(--lp-lead-accent)) 14%,
    #ffffff
  );
  color: var(--lp-lead-checkmark-color, var(--lp-lead-accent));
  font-size: 0.78rem;
  font-weight: 900;
}

.lp-lead-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--lp-lead-border);
}

.lp-lead-section + .lp-lead-section {
  margin-top: 28px;
}

.lp-lead-section-heading {
  margin-bottom: 16px;
}

.lp-lead-section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.lp-lead-section-heading p {
  margin: 6px 0 0;
  color: var(--lp-lead-muted);
  font-size: 0.9rem;
}

.lp-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lp-lead-form-steps {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lp-lead-progress {
  margin-bottom: 34px;
}

.lp-lead-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--lp-lead-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.lp-lead-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lp-lead-surface-soft);
}

.lp-lead-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--lp-lead-accent);
  transition: width 240ms ease;
}

.lp-lead-step-shell {
  display: flex;
  flex: 1 1;
  flex-direction: column;
}

.lp-lead-step {
  animation: lp-lead-fade 220ms ease;
}

@keyframes lp-lead-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-lead-step-title {
  max-width: 42rem;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.lp-lead-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.lp-lead-field {
  display: grid;
  gap: 7px;
}

.lp-lead-field-full {
  grid-column: 1 / -1;
}

.lp-lead-field label {
  color: #31312d;
  font-size: 0.88rem;
  font-weight: 700;
}

.lp-lead-required {
  color: var(--lp-lead-error);
}

.lp-lead-field input,
.lp-lead-field textarea,
.lp-lead-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--lp-lead-border);
  border-radius: 10px;
  background: #fff;
  color: var(--lp-lead-text);
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.lp-lead-field textarea {
  min-height: 100px;
  resize: vertical;
}

.lp-lead-field input:focus,
.lp-lead-field textarea:focus,
.lp-lead-field select:focus {
  border-color: var(--lp-lead-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-lead-accent) 14%, transparent);
}

.lp-lead-checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
}

.lp-lead-checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  padding: 0;
  accent-color: var(--lp-lead-accent);
}

.lp-lead-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.lp-lead-option-card {
  position: relative;
  display: flex;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--lp-lead-border);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.lp-lead-option-card:hover {
  transform: translateY(-1px);
  border-color: #c3b7a8;
}

.lp-lead-option-card.is-selected {
  border-color: var(--lp-lead-accent);
  background: var(--lp-lead-accent-soft);
}

.lp-lead-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lp-lead-option-content {
  display: grid;
  gap: 6px;
}

.lp-lead-option-title {
  font-weight: 800;
  line-height: 1.25;
}

.lp-lead-option-description {
  color: var(--lp-lead-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.lp-lead-consent {
  margin: 12px 0 0;
  color: var(--lp-lead-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.lp-lead-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

.lp-lead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 11px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.lp-lead-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.lp-lead-btn-primary {
  border: 1px solid var(--lp-lead-button-color, var(--lp-lead-accent));
  background: var(--lp-lead-button-color, var(--lp-lead-accent));
  color: #fff;
}

.lp-lead-btn-primary:hover:not(:disabled) {
  background: color-mix(
    in srgb,
    var(--lp-lead-button-color, var(--lp-lead-accent-hover)) 82%,
    #000000
  );
}

.lp-lead-btn-secondary {
  border: 1px solid var(--lp-lead-border);
  background: #fff;
  color: var(--lp-lead-text);
}

.lp-lead-btn-block {
  width: 100%;
  margin-top: 20px;
}

.lp-lead-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.lp-lead-form-error {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: var(--lp-lead-error);
  font-size: 0.875rem;
}

.lp-lead-fine-print,
.lp-lead-footer-note {
  margin: 18px 0 0;
  color: #8a887f;
  font-size: 0.75rem;
  text-align: center;
}

.lp-lead-form-panel > .lp-lead-footer-note {
  margin-top: auto;
  padding-top: 18px;
}

.lp-lead-thankyou {
  display: grid;
  place-content: center;
  min-height: 420px;
  text-align: center;
  padding: 24px 0;
}

.lp-lead-thankyou-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: var(--lp-lead-accent-soft);
  color: var(--lp-lead-accent);
  font-size: 1.8rem;
  font-weight: 900;
}

.lp-lead-thankyou-image {
  margin: 0 auto 20px;
  max-width: 320px;
}

.lp-lead-thankyou-image img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.lp-lead-thankyou-headline {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lp-lead-thankyou-text {
  max-width: 30rem;
  margin: 16px auto 0;
  color: var(--lp-lead-muted);
}

.lp-lead-thankyou .lp-lead-btn {
  width: min(100%, 320px);
  margin: 28px auto 0;
}

.lp-lead-preview-shell {
  min-height: 100vh;
}

.lp-lead-preview-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 16px;
  text-align: center;
  background: #171714;
  color: #f8fafc;
  font-size: 0.875rem;
}

.lp-lead-editor-title-input {
  min-width: 140px;
  max-width: 240px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #f9fafb;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.lp-lead-editor-title-input:hover,
.lp-lead-editor-title-input:focus {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.lp-editor-btn-approval {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
}

.lp-editor-btn-approval:hover:not(:disabled) {
  background: #1d4ed8;
}

.lp-editor-btn-approval:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lp-editor-layout.is-preview-mode {
  grid-template-columns: 1fr;
}

.lp-lead-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.lp-lead-template-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-lead-template-card strong {
  font-size: 1rem;
}

.lp-lead-template-card span {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

.lp-lead-template-card:hover {
  border-color: #94a3b8;
}

.lp-lead-template-card.is-selected {
  border-color: var(--lp-lead-accent);
  box-shadow: 0 0 0 1px var(--lp-lead-accent);
}

.lp-lead-editor-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #d7d4cc;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.lp-lead-preview-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-lead-preview-step-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--lp-lead-border);
  border-radius: 999px;
  background: #fff;
  color: var(--lp-lead-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

.lp-lead-preview-step-btn:hover {
  border-color: #b8b6ad;
}

.lp-lead-preview-step-btn.is-active {
  border-color: var(--lp-lead-accent);
  background: var(--lp-lead-accent-soft);
  color: var(--lp-lead-accent);
}

.lp-lead-editor-preview {
  width: 100%;
  max-width: none;
  flex: 1 0 auto;
  min-height: 100%;
  background: transparent;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.lp-lead-editor-preview .lp-lead-page {
  flex: 1 0 auto;
  min-height: 100%;
}

.lp-lead-editor-preview .lp-lead-shell {
  width: min(calc(100% - 48px), var(--lp-lead-max));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.lp-lead-editor-preview .lp-lead-visual,
.lp-lead-editor-preview .lp-lead-story {
  min-height: 560px;
}

/* Lead editor: page sheet fills the canvas under the step toolbar */
.lp-editor-canvas-area:has(.lp-lead-editor-preview-toolbar) .lp-editor-canvas-scroll {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.lp-editor-canvas-area:has(.lp-lead-editor-preview-toolbar) .lp-device-preview-shell {
  width: 100%;
  max-width: none;
  flex: 1 0 auto;
  min-height: 100%;
  padding: 0;
  align-items: stretch;
}

.lp-editor-canvas-area:has(.lp-lead-editor-preview-toolbar) .lp-device-preview-viewport {
  width: 100%;
  max-width: none;
  flex: 1 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.lp-editor-canvas-area:has(.lp-lead-editor-preview-toolbar)
  .lp-device-preview-viewport.is-constrained {
  margin: 24px auto;
  min-height: 0;
  flex: 0 0 auto;
  display: block;
}

.lp-lead-page.is-editable .lp-lead-editable {
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 3px;
  border-radius: 6px;
  transition:
    outline-color 140ms ease,
    background-color 140ms ease;
}

.lp-lead-page.is-editable .lp-lead-editable:hover {
  outline-color: color-mix(in srgb, var(--lp-lead-accent) 55%, transparent);
  background-color: color-mix(in srgb, var(--lp-lead-accent) 8%, transparent);
}

.lp-editor-left-panel .form-field.is-lp-edit-target,
.lp-editor-left-panel .lp-fieldset.is-lp-edit-target,
.lp-editor-left-panel .lp-lead-question-card.is-lp-edit-target {
  border-radius: 8px;
}

.lp-editor-left-panel .is-lp-edit-flash {
  animation: lp-lead-edit-flash 1.1s ease;
}

@keyframes lp-lead-edit-flash {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 0%, transparent);
    background-color: transparent;
  }
  20% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 35%, transparent);
    background-color: color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 12%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    background-color: transparent;
  }
}

.lp-lead-question-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.lp-lead-color-field-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-lead-color-field-controls select {
  flex: 1 1;
  min-width: 0;
}

.lp-lead-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lp-lead-color-brand-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lp-lead-color-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.lp-lead-color-brand-chip span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.lp-lead-color-brand-chip.is-selected {
  border-color: color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 55%, transparent);
  background: color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 14%, transparent);
}

.lp-lead-options-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.lp-lead-options-editor-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-lead-options-editor-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-muted, #a1a1aa);
}

.lp-lead-options-editor-hint {
  font-size: 11px;
  color: var(--lp-muted, #71717a);
  line-height: 1.35;
}

.lp-lead-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-lead-option-row {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.lp-lead-option-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lp-lead-option-row-index {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-muted, #a1a1aa);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-lead-option-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.lp-lead-option-row-actions .btn-link:disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 880px) {
  .lp-lead-card-split,
  .lp-lead-card-experience {
    grid-template-columns: 1fr;
  }

  .lp-lead-visual,
  .lp-lead-story {
    min-height: 300px;
  }

  /* Minimal: image-only on stacked/mobile — form panel already has the copy. */
  .lp-lead-card-split .lp-lead-visual {
    min-height: 220px;
  }

  .lp-lead-card-split .lp-lead-visual-copy {
    display: none;
  }

  .lp-lead-card-split .lp-lead-visual::after {
    display: none;
  }

  .lp-lead-form-panel {
    padding: 34px 26px;
  }

  .lp-lead-option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lp-lead-shell {
    width: min(calc(100% - 18px), var(--lp-lead-max));
    padding: 18px 0 28px;
  }

  .lp-lead-field-grid {
    grid-template-columns: 1fr;
  }

  .lp-lead-field-full {
    grid-column: auto;
  }

  .lp-lead-form-panel {
    padding: 28px 18px;
  }

  .lp-lead-hero {
    min-height: 260px;
    padding: 28px 22px;
  }

  .lp-lead-actions {
    flex-direction: column-reverse;
  }

  .lp-lead-actions .lp-lead-btn {
    width: 100%;
  }
}

