/* ============================================================
   Reputation Rocket — styles.css
   Lean Labs Brand System
   ============================================================ */

/* Poppins loaded via <link> in HTML head for non-blocking load */

/* ── Brand Tokens ─────────────────────────────────────────── */
:root {
  --ll-purple: #5b2ee6;
  --ll-purple-dark: #4f25d1;
  --ll-accent: #25c196;
  --ll-magenta: #c026d3;
  --ll-orange: #ff6221;
  --ll-blue: #0c63ff;
  --ll-gradient: linear-gradient(135deg, #752fef 0%, #9333ea 52%, #c026d3 100%);
  --ll-gradient-hover: linear-gradient(135deg, #8747ff 0%, #a855f7 52%, #d946ef 100%);
  --ll-btn-primary-bg: #5b2ee6;
  --ll-dark: #232031;
  --ll-dark-alt: #1b1828;
  --ll-white: #ffffff;
  --ll-off-white: #f8f8fa;
  --ll-light-purple: #eadafd;
  --ll-purple-tint: rgba(117, 47, 239, 0.09);
  --ll-purple-tint-light: rgba(117, 47, 239, 0.05);
  --ll-purple-border: rgba(117, 47, 239, 0.22);
  --ll-heading: #0d0d0d;
  --ll-body: rgba(43, 43, 43, 0.5);
  --ll-muted: #93949f;
  --ll-border: #e8e8ec;
  --ll-border-light: #f0f0f2;
  --ll-success: #25c196;
  --ll-success-bg: #ecfdf3;
  --ll-page-bg: radial-gradient(ellipse 85% 72% at 50% 30%, rgb(233, 239, 255) 0%, rgb(255, 255, 255) 48%, rgb(243, 237, 255) 100%);
  --ll-nav-bg: transparent;
  --ll-stepper-bg: linear-gradient(106deg, rgb(255, 255, 255) 26%, rgb(233, 239, 255) 105%);
  --ll-stepper-shadow: 6px 8px 28px rgba(29, 0, 68, 0.08);
  --ll-stepper-radius: 16px;
  --ll-brand-gradient: radial-gradient(120% 120% at 80% 20%, rgba(117, 47, 239, 1) 0%, rgb(20, 20, 22) 50%, rgb(42, 42, 46) 100%);
  --ll-brand-border: #2b2b2b;
  --ll-chat-messages-bg: #f7f8fc;
  --ll-chat-message-avatar-bg: rgba(117, 47, 239, 0.08);
  --ll-pending-badge-bg: #f0f0f2;
  --ll-pending-badge-text: #93949f;
  --ll-active-badge-bg: rgba(117, 47, 239, 0.12);
  --ll-active-badge-text: #5b2ee6;
  --ll-done-badge-bg: rgba(37, 193, 150, 0.12);
  --ll-done-badge-text: #25c196;
  --radius-chat-card: 20px;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(29, 0, 68, 0.07);
  --shadow-lg: 0 12px 48px rgba(29, 0, 68, 0.1);
  --transition: 0.2s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--ll-body);
  background: var(--ll-page-bg);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  color: var(--ll-heading);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 2.25rem; }

p { color: var(--ll-body); }
a { color: var(--ll-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.text-primary {
  color: var(--ll-btn-primary-bg);
}

.btn-primary {
  background: var(--ll-btn-primary-bg);
  color: var(--ll-white);
  box-shadow: -1px 0 4px rgba(117,47,239,0.2), 1px 0 4px rgba(54,14,109,0.22), 0 1px 4px rgba(250,18,227,0.1);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(117, 47, 239, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-secondary {
  background: var(--ll-white);
  color: var(--ll-heading);
  border: 1px solid var(--ll-border);
}
.btn-secondary:hover {
  border-color: var(--ll-purple);
  color: var(--ll-purple);
  background: var(--ll-purple-tint);
}

.btn-tertiary {
  background: var(--ll-white);
  color: var(--ll-btn-primary-bg);
  border: 1px solid var(--ll-border);
}

.btn-tertiary:hover {
  border-color: var(--ll-purple);
  color: var(--ll-purple);
  background: var(--ll-purple-tint);
}

.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 0.875rem;
}

#btn-regenerate .btn-regenerate-icon {
  flex-shrink: 0;
}

.btn-lg {
  height: 50px;
  width: 214px;
  padding: 0 32px;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-icon {
  width: 48px;
  padding: 0;
}

/* ── Top header (Figma-centered brand lockup) ─────────────── */
.site-header {
  padding: 60px 24px 32px;
  background: var(--ll-nav-bg);
}

.site-header-inner {
  max-width: 736px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.site-header-side {
  min-width: 0;
}

.site-header-brand {
  justify-self: center;
  text-align: center;
}

.site-header-actions {
  position: absolute;
  right: 24px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ll-heading);
}

.nav-title {
  white-space: nowrap;
}

.rr-logo-icon,
.nav-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.nav-powered {
  font-size: 0.8125rem;
  color: var(--ll-muted);
}

.nav-start-over {
  font-family: var(--font-family);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ll-purple);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-start-over:hover {
  color: var(--ll-purple-dark);
  text-decoration: underline;
}

.nav-start-over:active {
  filter: brightness(0.97);
}

/* ── Progress (card on gradient) ──────────────────────────── */
.progress-shell {
  padding: 0 24px 64px;
  display: flex;
  justify-content: center;
}

.progress-bar {
  width: 100%;
  max-width: 736px;
  height: 128px;
  padding: 18px 34.83px;
  background: var(--ll-stepper-bg);
  border-radius: var(--ll-stepper-radius);
  box-shadow: var(--ll-stepper-shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  position: relative;
}

.progress-step.done {
  opacity: 0.5
}

.progress-kicker {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ll-muted);
  order: 2;
  margin-top: 5px;
  margin-bottom: 2px;
}

.progress-dot {
  order: 1;
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  border: 1.5px solid var(--ll-muted);
  color: var(--ll-muted);
  background: var(--ll-white);
  z-index: 1;
  transition: all 0.4s ease;
}
.progress-dot::before {
  content: '';
  width: 16px;
  height: 16px;
  background: currentColor;
  display: block;
  -webkit-mask: var(--progress-icon) center / contain no-repeat;
  mask: var(--progress-icon) center / contain no-repeat;
}
.progress-dot[data-icon="welcome"] { --progress-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 11V7.5a1.5 1.5 0 0 1 3 0V11h.5V5.5a1.5 1.5 0 0 1 3 0V11h.5V7.5a1.5 1.5 0 0 1 3 0V12h.5a1.5 1.5 0 0 1 1.3 2.25l-2.4 4.15A5.2 5.2 0 0 1 11.4 21H10a6 6 0 0 1-6-6v-2.5a1.5 1.5 0 0 1 3 0V15' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.progress-dot[data-icon="chat"] { --progress-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15' fill='none'%3E%3Cpath d='M1.41113 10.3111C1.50915 10.5584 1.53098 10.8294 1.47379 11.0891L0.763794 13.2825C0.740917 13.3937 0.746832 13.5089 0.780978 13.6172C0.815124 13.7255 0.876369 13.8233 0.958905 13.9013C1.04144 13.9793 1.14253 14.0349 1.25259 14.0629C1.36265 14.0909 1.47803 14.0903 1.58779 14.0611L3.86313 13.3958C4.10827 13.3472 4.36215 13.3684 4.59579 13.4571C6.01939 14.1219 7.63204 14.2626 9.14923 13.8543C10.6664 13.446 11.9906 12.5149 12.8883 11.2254C13.7859 9.93585 14.1992 8.37073 14.0553 6.80616C13.9114 5.24159 13.2196 3.77811 12.1018 2.67393C10.9841 1.56974 9.51226 0.895822 7.94605 0.77106C6.37984 0.646299 4.81988 1.07872 3.54142 1.99202C2.26296 2.90533 1.34815 4.24082 0.95839 5.76289C0.568631 7.28495 0.728974 8.89577 1.41113 10.3111Z' stroke='%2393949F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.progress-dot[data-icon="review"] { --progress-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3 2.7 5.48 6.05.88-4.38 4.27 1.03 6.02L12 16.8l-5.4 2.85 1.03-6.02-4.38-4.27 6.05-.88L12 3Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.progress-dot[data-icon="post"] { --progress-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m22 2-7 20-4-9-9-4 20-7Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M22 2 11 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.progress-dot[data-icon="video"] { --progress-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='5' width='16' height='14' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m10 9 5 3-5 3V9Z' fill='black'/%3E%3C/svg%3E"); }
.progress-step.done .progress-dot::before {
  --progress-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5 12 4 4 10-10' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.progress-step.active .progress-dot {
  background: var(--ll-purple);
  border: 2.5px solid var(--ll-active-badge-bg);
  color: var(--ll-white);
}

.progress-step.done .progress-dot {
  background: var(--ll-accent);
  border-color: var(--ll-accent);
  color: var(--ll-white);
}

.progress-label {
  order: 3;
  font-size: 0.75rem;
  color: var(--ll-muted);
  margin-top: 0;
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.3s ease;
}
.progress-step.active .progress-label {
  color: var(--ll-heading);
  font-weight: 600;
}
.progress-step.done .progress-label {
  color: var(--ll-heading);
}

.progress-badge {
  order: 4;
  font-size: 0.625rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 2px 6px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--ll-muted);
  color: var(--ll-pending-badge-text);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.progress-step.active .progress-badge {
  background: var(--ll-active-badge-bg);
  border-color: transparent;
  color: var(--ll-active-badge-text);
}
.progress-step.done .progress-badge {
  background: var(--ll-done-badge-bg);
  border-color: transparent;
  color: var(--ll-done-badge-text);
}

.progress-connector {
  position: absolute;
  top: 15px;
  left: 44px;
  right: 12px;
  height: 3px;
  background: #93949f;
  border-radius: 100px;
  z-index: 0;
  transition: background 0.4s ease;
}
.progress-step.done .progress-connector {
  background: var(--ll-accent);
}
.progress-step.active .progress-connector {
  /* Half progress toward the next step: purple left, inactive gray right */
  background: linear-gradient(
    to right,
    var(--ll-purple) 0%,
    var(--ll-purple) 50%,
    var(--ll-muted) 50%,
    var(--ll-muted) 100%
  );
}
.progress-step:last-child .progress-connector { display: none; }
.nav { display: none; }
.nav-right { display: none; }
/* ── Screens ──────────────────────────────────────────────── */
.screen {
  display: none;
  flex: 1;
  padding: 0 24px 64px;
  animation: screenFadeIn 0.4s ease;
}
.screen.active { display: flex; flex-direction: column; align-items: center; }

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-content {
  width: 100%;
  max-width: 736px;
}

.screen-content.narrow { max-width: 480px; }

/* Post step needs room for three platform cards side by side */
#screen-post .screen-content {
  max-width: min(1040px, 100%);
}

.screen-header {
  text-align: center;
}
.screen-header h1,
.screen-header h2,
.screen-header h3 { margin-bottom: 24px; }
.screen-header h1 {
  max-width: 736px;
  margin-left: auto;
  margin-right: auto;
}
.screen-header p {
  color: var(--ll-body);
  line-height: 1.5;
  font-weight: 500;
  max-width: 736px;
  margin: 0 auto;
}
#screen-chat .screen-header {
  width: 544px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
#screen-chat .screen-header p {
  font-size: 1rem;
  line-height: 1.4;
}

/* ── Screen 1: Welcome ───────────────────────────────────── */
.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.welcome-cta {
  display: flex;
  justify-content: center;
}

.welcome-media {
  width: 544px;
  max-width: 100%;
}
.welcome-media:empty {
  display: none;
}

.welcome-video {
  display: block;
  width: 100%;
  max-width: 544px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.welcome-callout {
  width: 544px;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--ll-white);
  border: 1px solid var(--ll-border-light);
  border-radius: 16px;
  box-shadow: 4px 8px 12px rgba(29, 0, 68, 0.08);
  font-size: 0.875rem;
  color: var(--ll-body);
  line-height: 1.5;
}
.welcome-callout p {
  color: #93949f;
  font-size: 0.875rem;
  line-height: 1.5;
}
.welcome-callout strong {
  color: #212121;
  font-weight: 600;
}
.welcome-callout-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ll-purple-tint);
  color: var(--ll-purple);
}
.welcome-callout-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.welcome-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #93949f;
  margin: -1px 0 0;
}
.welcome-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dev-note {
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--ll-purple-tint);
  border-left: 3px solid var(--ll-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.75rem;
  color: var(--ll-purple);
  line-height: 1.5;
}
.dev-note code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: rgba(118, 18, 250, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.6875rem;
}

/* ── Screen 2: Chat ───────────────────────────────────────── */
.chat-container {
  border-radius: var(--radius-chat-card);
  overflow: hidden;
  box-shadow: 4px 8px 24px rgba(29, 0, 68, 0.08);
  border: none;
  margin-top: 24px;
  background: var(--ll-white);
  height: 560px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #fbfbfd;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ll-border-light);
}

.chat-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-header-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ll-heading);
  letter-spacing: -0.02em;
}
.chat-header-sub {
  font-size: 0.75rem;
  color: var(--ll-muted);
  margin-top: 0;
  line-height: 1.4;
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.chat-status-dot {
  width: 9.56px;
  height: 9.56px;
  border-radius: 50%;
  background: var(--ll-accent);
  box-shadow: none;
}

.chat-status-label {
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--ll-body);
  line-height: 1.4;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 28px 20px 20px;
  background: var(--ll-white);
  display: flex;
  flex-direction: column;
  gap: 26px;
  scroll-behavior: smooth;
}

.chat-message-row.agent {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: min(499px, 100%);
}

.chat-message-avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border-radius: 999px;
  background: var(--ll-chat-message-avatar-bg);
  position: relative;
}
.chat-message-avatar::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15' fill='none'%3E%3Cpath d='M1.41113 10.3111C1.50915 10.5584 1.53098 10.8294 1.47379 11.0891L0.763794 13.2825C0.740917 13.3937 0.746832 13.5089 0.780978 13.6172C0.815124 13.7255 0.876369 13.8233 0.958905 13.9013C1.04144 13.9793 1.14253 14.0349 1.25259 14.0629C1.36265 14.0909 1.47803 14.0903 1.58779 14.0611L3.86313 13.3958C4.10827 13.3472 4.36215 13.3684 4.59579 13.4571C6.01939 14.1219 7.63204 14.2626 9.14923 13.8543C10.6664 13.446 11.9906 12.5149 12.8883 11.2254C13.7859 9.93585 14.1992 8.37073 14.0553 6.80616C13.9114 5.24159 13.2196 3.77811 12.1018 2.67393C10.9841 1.56974 9.51226 0.895822 7.94605 0.77106C6.37984 0.646299 4.81988 1.07872 3.54142 1.99202C2.26296 2.90533 1.34815 4.24082 0.95839 5.76289C0.568631 7.28495 0.728974 8.89577 1.41113 10.3111Z' stroke='%2393949F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  line-height: 0;
}

.chat-bubble {
  max-width: 82%;
  padding: 24px;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: bubbleIn 0.3s ease;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.agent {
  background: var(--ll-white);
  border: 1px solid #f1edf8;
  border-radius: 16px;
  box-shadow: 4px 8px 6px rgba(29, 0, 68, 0.04);
  align-self: flex-start;
  color: #212121;
  flex: 1;
  max-width: none;
  font-weight: 600;
}

.chat-bubble.user {
  background: var(--ll-purple);
  color: var(--ll-white);
  border-radius: 8px;
  align-self: flex-end;
  min-width: 54px;
  min-height: 38px;
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Typing indicator */
.typing-indicator {
  display: none;
  align-self: flex-start;
  background: var(--ll-white);
  border-radius: 12px 12px 12px 4px;
  margin: 0 20px 20px;
}
.typing-indicator.visible { display: flex; }

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ll-muted);
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-bar {
  display: flex;
  gap: 16px;
  padding: 0 24px 24px;
  background: var(--ll-white);
  border-top: none;
}

.chat-input-bar input {
  flex: 1;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--ll-heading);
  background: var(--ll-white);
  outline: none;
  transition: border-color var(--transition);
}
.chat-input-bar input:focus {
  border-color: var(--ll-purple);
  box-shadow: 0 0 0 3px rgba(117, 47, 239, 0.12);
}
.chat-input-bar input::placeholder { color: var(--ll-muted); }
.chat-input-bar input:disabled { opacity: 0.6; cursor: not-allowed; }

.chat-send-btn {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--ll-btn-primary-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { filter: brightness(1.06); transform: scale(1.04); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
.chat-send-btn svg {
  width: 20px;
  height: 20px;
  color: var(--ll-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-privacy-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--ll-muted);
}

.chat-privacy-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Draft-ready panel (in chat) — Figma 10890:759; tints track --ll-* theme vars */
.chat-draft-prompt {
  display: none;
  padding: 0 20px 12px;
  background: var(--ll-white);
  flex-shrink: 0;
}
.chat-draft-prompt.visible {
  display: block;
}

.chat-draft-prompt__card {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ll-purple) 24%, #e2e2e8);
  background: linear-gradient(
    92deg,
    color-mix(in srgb, var(--ll-purple-tint-light) 55%, white) 0%,
    color-mix(in srgb, var(--ll-purple-tint) 28%, white) 100%
  );
  box-shadow: 4px 8px 6px rgba(29, 0, 68, 0.04);
  overflow: hidden;
  max-width: 100%;
}

.chat-draft-prompt__header {
  text-align: center;
  padding: 22px 20px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--ll-purple) 18%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ll-purple) 7%, white) 0%,
    color-mix(in srgb, var(--ll-purple) 4%, white) 100%
  );
}

.chat-draft-prompt__headline {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ll-purple);
  letter-spacing: -0.02em;
}

.chat-draft-prompt__emoji {
  margin-right: 2px;
}

.chat-draft-prompt__body {
  padding: 22px 20px 24px;
  background: color-mix(in srgb, var(--ll-white) 92%, var(--ll-purple-tint-light));
  border-radius: 0 0 15px 15px;
}

.chat-draft-prompt__subhead {
  margin: 0 0 18px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ll-heading);
}

.chat-draft-prompt__platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.chat-draft-prompt__mini {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: var(--ll-white);
  border: 1px solid color-mix(in srgb, var(--ll-purple) 22%, #e6e6ec);
  border-radius: 10px;
}

.chat-draft-prompt__mini-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ll-purple-tint-light) 40%, var(--ll-white));
}

.chat-draft-prompt__mini-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.chat-draft-prompt__mini-icon--empty {
  background: var(--ll-pending-badge-bg);
}

.chat-draft-prompt__mini-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.chat-draft-prompt__mini-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ll-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-draft-prompt__mini-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  padding: 4px 10px 4px 8px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--ll-purple) 9%, white);
  color: var(--ll-purple);
}

.chat-draft-prompt__mini-status-text {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.chat-draft-prompt__mini-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-draft-prompt__mini-status-icon svg {
  display: block;
}

.chat-draft-prompt__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chat-draft-prompt__cta {
  min-height: 50px;
  min-width: 214px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ll-white) !important;
  border-radius: var(--radius-md);
}

.chat-draft-prompt__cta svg {
  flex-shrink: 0;
  color: inherit;
}

.chat-draft-prompt__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ll-muted);
  text-align: center;
  max-width: 36ch;
}

@media (max-width: 640px) {
  .chat-draft-prompt__platforms {
    grid-template-columns: 1fr;
  }
  .chat-draft-prompt__mini-name {
    white-space: normal;
  }
}

/* ── Screen 3: Draft ──────────────────────────────────────── */
.draft-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ll-border-light);
  background: var(--ll-white);
  margin-top: 24px;
}

.draft-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ll-border-light);
}
.draft-card-header span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ll-heading);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--ll-purple-tint);
  color: var(--ll-purple);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.draft-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding-top: 30px;
  flex: 1;
}
.draft-tab {
  appearance: none;
  border: 1px solid var(--ll-border);
  background: var(--ll-white);
  color: var(--ll-heading);
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  justify-content: center;
  flex: 1;
  min-height: 74px;
}
.draft-tab-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.draft-tab-icon img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
}
.draft-tab-icon--empty {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--ll-border-light);
  border: 1px solid var(--ll-border);
}
.draft-tab-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}
.draft-tab:hover {
  border-color: var(--ll-purple);
  color: var(--ll-purple);
}
.draft-tab.active {
  background: var(--ll-purple-tint);
  color: var(--ll-purple);
  border-color: var(--ll-purple);
}
.draft-tab.is-approved:not(.active) {
  border-color: color-mix(in srgb, var(--ll-success) 45%, var(--ll-border));
}
.draft-tab.is-approved.active {
  border-color: var(--ll-success);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ll-success) 35%, transparent);
}
.draft-tab-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ll-success);
  flex-shrink: 0;
}

.draft-card-body { padding: 20px; }

.draft-tip {
  margin-left: 20px;
  margin-right: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ll-purple-border);
  background: var(--ll-purple-tint-light);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.draft-tip .draft-tip-icon {
  color: var(--ll-purple);
}

.draft-tip .draft-tip-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ll-heading);
  line-height: 1.5;
}

.star-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.star-rating .star {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.star-rating .star:hover { transform: scale(1.15); }
.star-rating .star svg { width: 28px; height: 28px; }
.star-rating .star.filled svg { fill: url(#starGradient); stroke: none; }
.star-rating .star.empty svg { fill: none; stroke: var(--ll-border); stroke-width: 1.5; }

.draft-textarea-wrap {
  position: relative;
  display: flex;
}

.draft-textarea {
  width: 100%;
  min-height: 240px;
  padding: 16px 100px 16px 16px;
  border: 1px solid var(--ll-border);
  border-radius: var(--radius-md);
  background: var(--ll-white);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ll-heading);
  font-weight: 500;
  resize: vertical;
  outline: none;
  transition: all var(--transition);
}
.draft-textarea:focus {
  border-color: var(--ll-purple);
  border-style: solid;
  background: var(--ll-white);
}

.draft-textarea-wrap:has(.draft-textarea:focus) .edit-hint {
  display: none;
}

.edit-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--ll-white);
  border: 1px solid var(--ll-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.edit-hint:hover {
  border-color: var(--ll-purple);
  background: var(--ll-purple-tint);
}
.edit-hint svg { stroke: var(--ll-purple); }

.draft-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px;
}
.draft-approve-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.draft-copy-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 260px;
  text-align: right;
  justify-content: flex-end;
}
.draft-copy-hint-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ll-muted);
}
.draft-copy-hint-text {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ll-muted);
}

.draft-what-next {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ll-purple-border);
  background: var(--ll-purple-tint-light);
}

.draft-what-next-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--ll-purple-tint);
  color: var(--ll-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.draft-what-next-body {
  min-width: 0;
  flex: 1;
}
.draft-what-next-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ll-heading);
  line-height: 1.35;
}
.draft-what-next-desc {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ll-body);
}

.draft-screen-footer,
.post-screen-footer {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--ll-border);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.draft-footer-privacy {
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ll-muted);
}
.draft-footer-privacy-icon {
  flex-shrink: 0;
  color: var(--ll-muted);
}
.draft-screen-footer .btn-lg {
  width: 100%;
  max-width: 300px;
}

/* ── Screen 4: Post ───────────────────────────────────────── */
.post-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}
.post-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--ll-purple-tint-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.post-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ll-purple);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.post-progress-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ll-muted);
  white-space: nowrap;
}

.post-screen-head {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.post-progress-rich {
  margin: 28px 0 20px;
  padding: 20px 20px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ll-purple-tint);
 }

.post-progress-rich-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.post-progress-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ll-muted);
  margin-bottom: 4px;
}
.post-progress-headline {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ll-heading);
  line-height: 1.3;
}
.post-progress-cheer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 220px;
  line-height: 1.35;
}
.post-progress-cheer-emoji {
  font-size: 3rem;
  line-height: 1;
  color: var(--ll-heading);
  flex-shrink: 0;
}
.post-progress-cheer .h3 {
  font-weight: 700;
  font-size: 1rem;
}
.post-progress-bar-wrap {
  max-width: 100%;
  width: stretch;
}
.post-progress-bar-wrap .post-progress-bar {
  height: 10px;
}

.platform-grid--rich {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.platform-card--rich {
  text-align: left;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.platform-card--rich:hover {
  transform: translateY(-1px);
}
.platform-card--rich.platform-card--posted {
  border-color: color-mix(in srgb, var(--ll-success) 55%, var(--ll-border-light));
  box-shadow: 0 2px 14px color-mix(in srgb, var(--ll-success) 14%, rgba(0, 0, 0, 0.06));
}
.platform-card--rich .platform-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.platform-card-status--pending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ll-purple);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: 1px dashed color-mix(in srgb, var(--ll-purple) 45%, var(--ll-border));
  background: var(--ll-purple-tint-light);
}
.platform-card-status-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px dashed var(--ll-purple);
  flex-shrink: 0;
}
.platform-card-label-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ll-success);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--ll-success-bg);
  border: 1px solid color-mix(in srgb, var(--ll-success) 35%, transparent);
}
.platform-card-label-confirmed svg {
  flex-shrink: 0;
}
.platform-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-direction: column; 
  text-align: left;
}
.platform-card-brand h4 {
  margin: 0 0 2px;
  font-size: 1rem;
}
.platform-card-brand p {
  margin: 0;
  font-size: 0.8125rem;
}
.platform-card-logo-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.platform-card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.platform-card-stars {
  display: flex;
  gap: 3px;
  padding: 14px 0;
  justify-content: center;
}
.platform-card-star {
  display: flex;
  color: #e3a008;
  line-height: 0;
}
.platform-card-star svg {
  width: 18px;
  height: 18px;
}

.platform-card-snippet {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ll-heading);
  text-align: left;
  font-weight: 500;
}
.platform-card-actions {
  padding: 16px 0;
}
.platform-card-actions--stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-card-actions--stack .btn {
  justify-content: center;
}
.platform-card-actions--split {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.platform-card-actions--split .btn {
  flex: 1 1 calc(50% - 10px);
  justify-content: center;
}
.platform-card-foot-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ll-muted);
  text-align: left;
}
.platform-card-foot-hint .platform-card-lock {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ll-muted);
}
.platform-card-confirmed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 18px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ll-success);
}
.platform-card-confirmed-meta svg {
  flex-shrink: 0;
}
.platform-card--rich .card-details--rich {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--ll-border-light);
}
.platform-card-confirm-g2 {
  margin: 12px 18px 18px;
}

.btn-icon-right {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}
.platform-card--rich .btn-sm .btn-icon-right {
  margin-left: 8px;
}

.post-why-confirm {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ll-purple-border);
  background: var(--ll-purple-tint-light);
}
.post-why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--ll-purple-tint);
  color: var(--ll-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-why-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ll-heading);
}
.post-why-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ll-body);
}

.post-screen-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ll-border-light);
}
.post-footer-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-footer-privacy {
  justify-self: center;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ll-muted);
}
.post-footer-privacy-icon {
  flex-shrink: 0;
  color: var(--ll-muted);
}
.post-footer-cta {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 280px;
  margin-left: auto;
}
.post-footer-cta .btn-lg {
  width: 100%;
}
.post-continue-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ll-muted);
  text-align: right;
  width: 100%;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 8px;
  width: 100%;
  align-items: start;
}

.platform-hint {
  font-size: 0.6875rem;
  color: var(--ll-muted);
  margin-top: 6px;
  font-style: italic;
}

.platform-card {
  background: var(--ll-white);
  border: 1px solid var(--ll-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.platform-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.platform-card.posted {
  border-color: var(--ll-success);
  background: var(--ll-success-bg);
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ll-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.platform-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--ll-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.platform-card.posted .platform-icon {
  background: rgba(107, 201, 80, 0.15);
}
.platform-card.posted .platform-icon svg {
  stroke: var(--ll-success);
}

.platform-card h4 {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--ll-heading);
}
.platform-card p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.platform-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}
.platform-status.ready {
  background: var(--ll-gradient);
  color: var(--ll-white);
  cursor: pointer;
  transition: all var(--transition);
}
.platform-status.ready:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}
.platform-status.done {
  background: var(--ll-success);
  color: var(--ll-white);
}

/* G2 / fields-flow per-field copy */
.platform-card.flow-fields { text-align: left; }
.platform-card.flow-fields h4,
.platform-card.flow-fields .platform-status,
.platform-card.flow-fields .platform-icon { text-align: center; }
.platform-card.flow-fields .platform-icon { margin-left: auto; margin-right: auto; }
.platform-card.flow-fields .platform-hint { text-align: center; }

.card-details {
  margin-top: 12px;
  border-top: 1px solid var(--ll-border-light);
  padding-top: 10px;
}
.card-details summary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ll-purple);
  cursor: pointer;
  padding: 4px 0;
  outline: none;
  list-style: none;
}
.card-details summary::-webkit-details-marker { display: none; }
.card-details summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  transition: transform var(--transition);
}
.card-details[open] summary::before { transform: rotate(90deg); }
.card-details-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-row {
  background: var(--ll-off-white);
  border: 1px solid var(--ll-border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.field-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ll-heading);
  line-height: 1.35;
  flex: 1;
}
.field-body {
  font-size: 0.8125rem;
  color: var(--ll-body);
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.btn-copy {
  appearance: none;
  border: 1px solid var(--ll-border);
  background: var(--ll-white);
  color: var(--ll-purple);
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-copy:hover { border-color: var(--ll-purple); background: var(--ll-purple-tint); }

.btn-confirm {
  appearance: none;
  margin-top: 12px;
  width: 100%;
  background: var(--ll-gradient);
  color: var(--ll-white);
  border: none;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(118, 18, 250, 0.3);
  transition: all var(--transition);
}
.btn-confirm:hover { filter: brightness(1.08); }

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.skip-link {
  font-size: 0.875rem;
  color: var(--ll-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.skip-link:hover { color: var(--ll-purple); }

/* Review complete confirm overlay */
/* [hidden] must win over display:flex — without this rule the modal can show on every screen */
.review-complete-overlay[hidden] {
  display: none !important;
}
.review-complete-overlay:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: auto;
}
.review-complete-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
}
.review-complete-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 28, 0.55);
  backdrop-filter: blur(4px);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.review-complete-modal {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: var(--ll-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ll-border-light);
  padding: 28px 24px 24px;
  text-align: center;
}
.review-complete-modal h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ll-dark);
}
.review-complete-hint {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ll-muted);
}
.review-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* HubSpot lead capture (no URL params + hubspotPortalId/hubspotFormId in CLIENT_CONFIG) */
.hubspot-lead-modal[hidden] {
  display: none !important;
}
.hubspot-lead-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: auto;
}
.hubspot-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 450;
}
.hubspot-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 28, 0.55);
  backdrop-filter: blur(4px);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.hubspot-lead-modal__dialog {
  position: relative;
  max-width: 480px;
  width: 100%;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: var(--ll-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ll-border-light);
  padding: 28px 24px 24px;
  padding-top: 24px;
  text-align: left;
}
.hubspot-lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  color: var(--ll-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
.hubspot-lead-modal__close:hover {
  color: var(--ll-heading);
  background: rgba(0, 0, 0, 0.06);
}
.hubspot-lead-modal__close:focus {
  outline: none;
  color: var(--ll-heading);
  box-shadow: 0 0 0 2px var(--ll-white), 0 0 0 4px var(--ll-purple);
}
.hubspot-lead-modal__close:focus:not(:focus-visible) {
  box-shadow: none;
}
.hubspot-lead-modal__close:focus-visible {
  outline: none;
  color: var(--ll-heading);
  box-shadow: 0 0 0 2px var(--ll-white), 0 0 0 4px var(--ll-purple);
}
.hubspot-lead-modal__title {
  margin: 0 40px 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ll-heading);
  line-height: 1.3;
}
.hubspot-lead-modal__hint {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ll-muted);
}
.hubspot-lead-modal__form {
  min-height: 120px;
  /* Inputs: neutral “style guide” look; submit uses client theme (`--ll-btn-primary-bg` from applyClientTheme). */
  --hubspot-input-bg: rgba(0, 0, 0, 0.05);
  --hubspot-input-border: rgba(0, 0, 0, 0.15);
  --hubspot-input-radius: 8px;
  --hubspot-input-placeholder: rgba(0, 0, 0, 0.6);
}
.hubspot-lead-modal__form .hs-form,
.hubspot-lead-modal__form iframe {
  max-width: 100%;
}
.hubspot-lead-modal__form .hs-form {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.4;
}
.hubspot-lead-modal__form .hs-form fieldset {
  max-width: none;
  border: 0;
  margin: 0;
  padding: 0;
}
.hubspot-lead-modal__form .hs-form fieldset.form-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
@media (max-width: 520px) {
  .hubspot-lead-modal__form .hs-form fieldset.form-columns-2 {
    grid-template-columns: 1fr;
  }
}
.hubspot-lead-modal__form .hs-form .hs-form-field {
  float: none;
  width: 100% !important;
  margin: 0 0 16px;
}
.hubspot-lead-modal__form .hs-form .hs-form-field > label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ll-heading);
}
.hubspot-lead-modal__form .hs-form .hs-form-field > label .hs-form-required {
  color: var(--ll-muted);
  margin-left: 2px;
}
.hubspot-lead-modal__form .hs-form .hs-input {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 50px;
  margin: 0;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ll-heading);
  background: var(--hubspot-input-bg);
  border: 1px solid var(--hubspot-input-border);
  border-radius: var(--hubspot-input-radius);
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.hubspot-lead-modal__form .hs-form .hs-input::placeholder {
  color: var(--hubspot-input-placeholder);
  opacity: 1;
}
.hubspot-lead-modal__form .hs-form .hs-input:hover {
  border-color: rgba(0, 0, 0, 0.22);
}
.hubspot-lead-modal__form .hs-form .hs-input:focus {
  outline: none;
  border-color: var(--ll-purple);
  background: var(--ll-white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ll-purple) 32%, transparent);
}
.hubspot-lead-modal__form .hs-form textarea.hs-input {
  min-height: 120px;
  resize: vertical;
}
.hubspot-lead-modal__form .hs-form select.hs-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(0,0,0,0.45)' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.hubspot-lead-modal__form .hs-form .hs-field-desc,
.hubspot-lead-modal__form .hs-form .hs-richtext,
.hubspot-lead-modal__form .hs-form .legal-consent-container .hs-form-booleancheckbox label,
.hubspot-lead-modal__form .hs-form .legal-consent-container p {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ll-muted);
}
.hubspot-lead-modal__form .hs-form .hs-error-msgs label,
.hubspot-lead-modal__form .hs-form .hs-error-msg {
  font-size: 0.8125rem;
  color: #c62828;
  margin-top: 4px;
}
.hubspot-lead-modal__form .hs-form .hs_submit {
  margin-top: 4px;
  margin-bottom: 0;
}
.hubspot-lead-modal__form .hs-form .hs_submit .actions {
  padding: 0;
  margin: 0;
}
.hubspot-lead-modal__form .hs-form .hs-button,
.hubspot-lead-modal__form .hs-form input[type='submit'],
.hubspot-lead-modal__form .hs-form input.hs-button.primary {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ll-white) !important;
  text-align: center;
  cursor: pointer;
  background: var(--ll-btn-primary-bg) !important;
  border: 1px solid color-mix(in srgb, var(--ll-white) 14%, transparent);
  border-radius: var(--radius-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 10px color-mix(in srgb, var(--ll-purple) 22%, transparent);
  transition:
    filter 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.hubspot-lead-modal__form .hs-form .hs-button:hover,
.hubspot-lead-modal__form .hs-form input[type='submit']:hover,
.hubspot-lead-modal__form .hs-form input.hs-button.primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 22px color-mix(in srgb, var(--ll-purple) 30%, transparent);
}
.hubspot-lead-modal__form .hs-form .hs-button:active,
.hubspot-lead-modal__form .hs-form input[type='submit']:active,
.hubspot-lead-modal__form .hs-form input.hs-button.primary:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
.hubspot-lead-modal__form .hs-form .hs-button:disabled,
.hubspot-lead-modal__form .hs-form input[type='submit']:disabled,
.hubspot-lead-modal__form .hs-form input.hs-button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hubspot-lead-modal__loading,
.hubspot-lead-modal__error {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ll-dark);
  color: var(--ll-white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 200;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast svg {
  width: 18px;
  height: 18px;
  stroke: var(--ll-success);
  fill: none;
  stroke-width: 2;
}

/* ── Screen 5: Video ──────────────────────────────────────── */
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ll-border-light);
  background: var(--ll-white);
  margin-top: 24px;
}

.video-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ll-border-light);
}
.video-card-header .video-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ll-heading);
}
.video-card-header .video-title .icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ll-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card-header .video-title .icon-circle svg {
  width: 14px;
  height: 14px;
  stroke: var(--ll-muted);
  fill: none;
  stroke-width: 1.5;
}
.video-card-header .video-powered {
  font-size: 0.75rem;
  color: var(--ll-muted);
}

.video-card-body { padding: 20px; }

.video-status-text {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ll-muted);
}
.video-status-text.error {
  color: #b42318;
}

.video-intro {
  padding: 14px 16px;
  background: var(--ll-off-white);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--ll-heading);
  line-height: 1.6;
  margin-bottom: 20px;
}

.video-questions-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ll-heading);
  font-weight: 600;
  margin-bottom: 12px;
}

.video-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.video-question {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.video-question .q-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ll-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ll-muted);
  flex-shrink: 0;
  margin-top: 1px;
}
.video-question p {
  font-size: 0.875rem;
  color: var(--ll-heading);
  line-height: 1.5;
}

.video-preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ll-dark);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.video-preview .cam-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-preview .cam-icon svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255,255,255,0.4);
  fill: none;
  stroke-width: 1.5;
}
.video-preview span {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--ll-border-light);
}
.video-card-footer .btn-group {
  display: flex;
  gap: 8px;
}

/* Video capture modal */
.video-capture-modal[hidden] {
  display: none !important;
}
.video-capture-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 460;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-capture-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 28, 0.55);
  backdrop-filter: blur(4px);
  border: none;
}
.video-capture-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  background: var(--ll-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ll-border-light);
  padding: 24px;
}
.video-capture-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  color: var(--ll-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.video-capture-modal__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.video-capture-modal__hint {
  margin: 0 0 14px;
  font-size: 0.875rem;
}
.video-capture-modal__questions {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--ll-border-light);
  border-radius: var(--radius-md);
  background: var(--ll-off-white);
}
.video-capture-modal__questions-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ll-muted);
  font-weight: 700;
}
.video-capture-modal__questions-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}
.video-capture-modal__questions-list li {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ll-heading);
}
.video-capture-modal__step {
  display: block;
}
.video-capture-modal__step[hidden] {
  display: none !important;
}
.video-capture-modal__permission {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--ll-border-light);
  border-radius: var(--radius-md);
  background: var(--ll-off-white);
  display: grid;
  gap: 10px;
}
.video-capture-modal__permission-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.video-capture-modal__device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.video-capture-modal__field {
  display: grid;
  gap: 6px;
}
.video-capture-modal__field span {
  font-size: 0.8125rem;
  color: var(--ll-heading);
  font-weight: 600;
}
.video-capture-modal__select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--ll-border);
  border-radius: var(--radius-sm);
  background: var(--ll-white);
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--ll-heading);
  padding: 0 10px;
}
.video-capture-modal__select:focus {
  outline: none;
  border-color: var(--ll-purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ll-purple) 22%, transparent);
}
.video-capture-modal__preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-capture-modal__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.video-capture-modal__meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ll-muted);
}
.video-capture-modal__error {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: #b42318;
}
.video-capture-modal__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.video-capture-modal__upload {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .video-capture-modal__device-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Screen 6: Complete ───────────────────────────────────── */
.celebration-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
}
.celebration-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: var(--ll-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.celebration-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--ll-purple);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 28px 0;
}
.stat { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ll-heading);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--ll-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 300;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 6px;
  height: 6px;
  top: -10px;
  opacity: 0;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.5); }
}

/* ── Screen 7: Negative ───────────────────────────────────── */
.negative-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--ll-purple-tint);
  border: 2px solid var(--ll-purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.negative-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--ll-purple);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empathy-card {
  margin-top: 24px;
  padding: 20px;
  background: var(--ll-purple-tint);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ll-purple-border);
}
.empathy-card p {
  font-size: 0.9375rem;
  color: var(--ll-body);
  line-height: 1.65;
  font-style: italic;
}

.notification-fail {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #fed7d7;
  background: #fff5f5;
  color: #742a2a;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ── Chat markdown rendering ──────────────────────────────── */
.chat-bubble strong { font-weight: 600; }
.chat-bubble em { font-style: italic; }
.chat-bubble a {
  color: var(--ll-purple);
  text-decoration: underline;
  word-break: break-all;
}
.chat-bubble.user a { color: rgba(255,255,255,0.9); }

/* ── Error state in chat ──────────────────────────────────── */
.chat-error {
  align-self: center;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #c53030;
}
.chat-error button {
  background: none;
  border: 1px solid #c53030;
  color: #c53030;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 500;
}
.chat-error button:hover { background: #fed7d7; }

/* ── Missing params error ─────────────────────────────────── */
.error-screen {
  text-align: center;
  padding: 64px 24px;
}
.error-screen h3 { margin-bottom: 12px; color: var(--ll-heading); }
.error-screen p { color: var(--ll-muted); margin-bottom: 20px; }
.error-screen code {
  display: block;
  background: var(--ll-off-white);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  text-align: left;
  overflow-x: auto;
  border: 1px solid var(--ll-border-light);
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .platform-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 40px; }
  h2 { font-size: 36px; }
  h3 { font-size: 28px; }

  .screen { padding: 32px 16px 48px; }

  .site-header { padding: 14px 12px 8px; }
  .site-header-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .site-header-side { display: none; }
  .site-header-brand {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .site-header-actions {
    grid-column: 1 / -1;
    justify-self: end;
    width: 100%;
    justify-content: flex-end;
  }
  .nav-title { font-size: 1rem; }
  .nav-powered { display: none; }
  .nav-start-over { padding: 0; font-size: 0.6875rem; }

  .progress-shell { padding: 0 12px 8px; }
  .progress-bar { padding: 14px 12px 10px; }
  .progress-kicker { font-size: 0.45rem; margin-bottom: 6px; }
  .progress-dot { width: 30px; height: 30px; font-size: 0.75rem; }
  .progress-label { font-size: 0.625rem; }
  .progress-badge { font-size: 0.55rem; padding: 2px 6px; }
  .progress-steps {gap: 8px}
  .progress-step {align-items: center;}
  .progress-connector {
    display: none;
  }

  .chat-messages { min-height: 300px; max-height: 380px; }

  .stats-row { gap: 32px; }
  .stat-number { font-size: 1.5rem; }

  .video-card-footer { flex-direction: column; gap: 10px; }
  .video-card-footer .btn-group { width: 100%; }
  .video-card-footer .btn-group .btn { flex: 1; }
  .video-card-footer > .btn { width: 100%; }

  .draft-card-footer { flex-direction: column; gap: 10px; align-items: stretch; }
  .draft-card-footer .btn { width: 100%; }
  .draft-approve-stack { align-items: stretch; }
  .draft-copy-hint { text-align: left; justify-content: flex-start; max-width: none; }
  .draft-what-next { flex-direction: column; align-items: flex-start; }

  .post-actions { flex-direction: column; gap: 12px; }
  .post-actions .btn { width: 100%; }

  .post-progress-rich-top { flex-direction: column; align-items: stretch; }
  .post-progress-cheer { max-width: none; }
  .post-screen-footer {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .post-footer-back,
  .post-footer-privacy,
  .post-footer-cta {
    justify-self: stretch;
  }
  .post-footer-cta {
    align-items: stretch;
    max-width: none;
  }
  .post-continue-sub { text-align: center; }
  .platform-card-actions--split .btn { flex: 1 1 100%; }
}

/* ════════════════════════════════════════════════════════════
   Root directory landing (Figma Lean Labs Style Guide — dark shell)
   ════════════════════════════════════════════════════════════ */
body.rr-directory {
  --rr-dir-bg: #0d0d0d;
  --rr-dir-border: #2b2b2b;
  --rr-dir-text: #ffffff;
  --rr-dir-muted: #949494;
  --rr-dir-card-inner: #141414;
  --rr-dir-glow: rgba(117, 47, 239, 0.45);

  margin: 0;
  min-height: 100vh;
  display: block;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--rr-dir-muted);
  background: var(--rr-dir-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.rr-directory-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--rr-dir-bg);
  opacity: 1;
}

.rr-directory-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 75% 44%, rgba(255, 255, 255, 0.28) 50%, transparent 52%),
    radial-gradient(1px 1px at 32% 78%, rgba(255, 255, 255, 0.4) 50%, transparent 52%),
    radial-gradient(2px 2px at 88% 12%, rgba(255, 255, 255, 0.22) 50%, transparent 52%),
    radial-gradient(1px 1px at 55% 55%, rgba(255, 255, 255, 0.3) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 20% 90%, rgba(255, 255, 255, 0.25) 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 42% 30%, rgba(255, 255, 255, 0.18) 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 68%, rgba(255, 255, 255, 0.32) 50%, transparent 52%);
  background-size: 420px 420px, 380px 380px, 510px 510px, 440px 440px, 360px 360px, 400px 400px, 450px 450px, 390px 390px;
  background-position:
    0 0,
    80px 120px,
    200px 40px,
    -40px 200px,
    160px 160px,
    300px -60px,
    -80px 280px,
    240px 220px;
  opacity: 0.4;
}

.rr-directory-main {
  position: relative;
  z-index: 1;
  max-width: 736px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.rr-directory-header {
  width: 100%;
  display: flex;
  justify-content: center;
}

.rr-directory-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}


.rr-directory-logo {
  display: block;
  width: 32px;
  height: 32px;
}

.rr-directory-brand-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--rr-dir-text);
  letter-spacing: -0.02em;
}

.rr-directory-hero {
  text-align: center;
  width: 100%;
}

.rr-directory-title {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--rr-dir-text);
}

.rr-directory-lead {
  margin: 0;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--rr-dir-muted);
}

.rr-directory-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rr-directory-grid > li {
  margin: 0;
}

.rr-directory-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--rr-dir-border);
  background: linear-gradient(
    106deg,
    rgba(20, 20, 20, 0.92) 0%,
    rgba(13, 13, 13, 0.98) 48%,
    rgba(18, 14, 28, 0.5) 100%
  );
  box-shadow: 6px 8px 28px rgba(29, 0, 68, 0.08);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rr-directory-card:hover {
  text-decoration: none;
  border-color: rgb(255 255 255 / 20%);
  transform: translateY(-2px);
  box-shadow:
    6px 12px 32px rgba(29, 0, 68, 0.12),
    0 0 0 1px rgba(117, 47, 239, 0.12);
}

.rr-directory-card:focus {
  outline: none;
}

.rr-directory-card:focus-visible {
  outline: 2px solid rgb(255 255 255 / 20%);
  outline-offset: 3px;
}

.rr-directory-card-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--rr-dir-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rr-directory-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.rr-directory-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.rr-directory-card-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--rr-dir-text);
  letter-spacing: -0.02em;
}

.rr-directory-card-desc {
  font-size: 0.875rem;
  color: var(--rr-dir-muted);
  line-height: 1.4;
}

.rr-directory-card-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #f5f5f5;
  color: #0d0d0d;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 20px rgba(117, 47, 239, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    filter 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.rr-directory-card:hover .rr-directory-card-cta {
  filter: brightness(1.04);
  box-shadow:
    0 6px 26px rgba(117, 47, 239, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rr-directory-card:active .rr-directory-card-cta {
  transform: scale(0.98);
}

.rr-directory-card-cta-arrow {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
}

.rr-directory-foot {
  margin: 8px 0 0;
  max-width: 48ch;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--rr-dir-muted);
}

@media (max-width: 560px) {
  .rr-directory-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .rr-directory-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .rr-directory-card-cta {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

/* ── Utility ──────────────────────────────────────────────── */
.muted { color: var(--ll-muted); font-size: 0.875rem; }
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 32px; }
