/* ═══════════════════════════════════════════════════════════════════════════
   FunnelExpert — Onboarding UI
   3-Panel Layout: Chat | Options/Upload | Live Preview
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Brand (FunnelExpert Platform) */
  --ob-dark: #0A394E;
  --ob-dark-hover: #0C4862;
  --ob-accent: #5C7A7A;
  --ob-accent-hover: #6B8C8C;
  --ob-muted: #7D9DA8;
  --ob-surface: #FCFCFC;
  --ob-surface-alt: #F0F4F5;
  --ob-highlight: #EE9232;
  --ob-border: #D3DDE1;
  --ob-text: #0A394E;
  --ob-text-secondary: #5A6F78;
  --ob-text-placeholder: #8A9DA5;

  /* CTA */
  --ob-cta: #ea580c;
  --ob-cta-end: #c2410c;
  --ob-cta-gradient: linear-gradient(to bottom right, #ea580c, #c2410c);
  --ob-cta-shadow: 0 4px 8px rgba(234,88,12,0.4);
  --ob-cta-hover: linear-gradient(to bottom right, #c2410c, #9a3412);

  /* Status */
  --ob-success: #2D7A5E;
  --ob-error: #B83B3B;
  --ob-warning: #C47A1A;
  --ob-info: #3A7D9E;

  /* Elevation */
  --ob-shadow-1: 0 1px 3px rgba(10,57,78,0.07), 0 1px 2px rgba(10,57,78,0.05);
  --ob-shadow-2: 0 4px 12px rgba(10,57,78,0.10), 0 2px 4px rgba(10,57,78,0.07);
  --ob-shadow-3: 0 8px 24px rgba(10,57,78,0.14), 0 4px 8px rgba(10,57,78,0.09);

  /* Radius */
  --ob-radius-sm: 5px;
  --ob-radius-md: 8px;
  --ob-radius-lg: 12px;

  /* Layout */
  --ob-header-h: 56px;
  --ob-input-h: 80px;
  --ob-chat-w: 100%;
  --ob-media-w: 280px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body.onboarding-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ob-text);
  background: var(--ob-surface);
  overflow: hidden;
  height: 100%;
  height: 100dvh; /* dynamic viewport height — accounts for mobile browser chrome */
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.ob-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: var(--ob-header-h);
  background: var(--ob-dark);
  color: #fff;
}

.ob-logo {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ob-logo span {
  color: var(--ob-highlight);
}

/* Language Selector */
.ob-lang-select {
  margin-left: 8px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ob-radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.ob-lang-select:hover,
.ob-lang-select:focus {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.ob-lang-select:focus-visible {
  outline: 2px solid var(--ob-accent, #5C7A7A);
  outline-offset: 2px;
}

.ob-lang-select option {
  background: var(--ob-dark);
  color: #fff;
}

/* Progress */
.ob-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ob-progress-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

.ob-progress-bar {
  display: none;
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  max-width: 200px;
}

.ob-progress-fill {
  height: 100%;
  background: var(--ob-highlight);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ob-progress-count {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ─── Main Layout (2-Panel: Chat 35% | Preview 65%) ─────────────────────── */
.ob-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: calc(100vh - var(--ob-header-h));
  height: calc(100dvh - var(--ob-header-h));
  margin-top: var(--ob-header-h);
  overflow: hidden;
  padding-bottom: 52px;
}

/* Media panel overlays inside chat — no grid change needed */

/* ─── Chat Panel (Left) ─────────────────────────────────────────────────── */
.ob-chat {
  grid-row: 1;
  grid-column: 1;
  display: none;
  flex-direction: column;
  border-right: none;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.ob-layout[data-mobile-tab="chat"] .ob-chat { display: flex; }
.ob-layout[data-mobile-tab="preview"] .ob-preview { display: block; }

.ob-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.ob-chat-messages::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Scroll-to-bottom button */
.ob-scroll-bottom {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ob-border);
  box-shadow: var(--ob-shadow-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.ob-scroll-bottom.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.ob-scroll-bottom:hover {
  background: var(--ob-surface-alt);
  box-shadow: var(--ob-shadow-3);
}

.ob-scroll-bottom svg {
  width: 20px;
  height: 20px;
  color: var(--ob-text);
}

/* Chat Bubbles */
.ob-msg {
  max-width: 88%;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  animation: msgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

.ob-msg-ai {
  align-self: flex-start;
  background: #fff;
  color: var(--ob-text);
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 10px rgba(10,57,78,0.07), 0 1px 3px rgba(10,57,78,0.04);
  border: 1px solid rgba(10,57,78,0.05);
  padding-left: 44px;
}

/* AI avatar */
.ob-msg-ai::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--ob-dark) 0%, #0E5573 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px, cover;
}

.ob-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--ob-dark) 0%, #0C4862 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 3px 10px rgba(10,57,78,0.14);
}

.ob-msg-system {
  align-self: center;
  background: transparent;
  color: var(--ob-text-secondary);
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 14px;
  opacity: 0.7;
}

/* Streaming cursor */
.ob-msg-streaming::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ob-dark);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* AI typing indicator */
.ob-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 16px 20px 16px 42px;
  background: #fff;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(10,57,78,0.08), 0 1px 2px rgba(10,57,78,0.04);
  border: 1px solid rgba(10,57,78,0.06);
  position: relative;
}

/* AI avatar on typing indicator */
.ob-typing::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--ob-dark) 0%, #0E5573 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px, cover;
}

.ob-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--ob-accent);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.ob-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ob-typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* ─── Input Area (inside chat column) ───────────────────────────────────── */
.ob-input-area {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--ob-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* Text input */
.ob-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.ob-textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--ob-border);
  border-radius: var(--ob-radius-lg);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ob-text);
  background: var(--ob-surface);
  resize: none;
  outline: none;
  min-height: 52px;
  max-height: 180px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ob-textarea:focus-visible {
  outline: 2px solid var(--ob-accent, #5C7A7A);
  outline-offset: 2px;
}
.ob-textarea::placeholder {
  color: var(--ob-text-placeholder);
}

.ob-textarea:focus {
  border-color: var(--ob-accent);
  box-shadow: 0 0 0 3px rgba(92,122,122,0.1);
}

.ob-send-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ob-cta-gradient);
  color: #fff;
  border: none;
  border-radius: var(--ob-radius-md);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
  box-shadow: var(--ob-cta-shadow);
}

.ob-send-btn:hover {
  background: var(--ob-cta-hover);
}

.ob-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ob-send-btn svg {
  width: 20px;
  height: 20px;
}

/* Option cards — inline chat response buttons */
.ob-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  padding: 4px 0;
}

/* Staggered entrance for each option */
.ob-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--ob-dark) 0%, #0C4862 100%);
  border: none;
  border-radius: var(--ob-radius-lg);
  font-family: inherit;
  font-size: 0.88rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 52px;
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10,57,78,0.15);
  opacity: 0;
  transform: translateY(8px);
  animation: optionIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ob-option-card:nth-child(1) { animation-delay: 0.05s; }
.ob-option-card:nth-child(2) { animation-delay: 0.1s; }
.ob-option-card:nth-child(3) { animation-delay: 0.15s; }
.ob-option-card:nth-child(4) { animation-delay: 0.2s; }
.ob-option-card:nth-child(5) { animation-delay: 0.25s; }

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

.ob-option-card:hover {
  background: linear-gradient(135deg, #0C4862 0%, #0E5573 100%);
  box-shadow: 0 4px 16px rgba(10,57,78,0.25);
  transform: translateY(-2px);
}

.ob-option-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(10,57,78,0.2);
}

.ob-option-card.selected {
  background: linear-gradient(135deg, #0E5573 0%, #0A394E 100%);
  box-shadow: 0 0 0 2px var(--ob-highlight), 0 4px 12px rgba(10,57,78,0.2);
}

.ob-option-card .ob-opt-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.ob-option-card .ob-opt-label {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.ob-option-card .ob-opt-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  font-weight: 400;
}

/* Arrow indicator */
.ob-option-card::after {
  content: '\2192';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  color: rgba(255,255,255,0.3);
  font-size: 1.1rem;
  transition: all 0.25s;
}

.ob-option-card:hover::after {
  color: var(--ob-highlight);
  transform: translateY(-50%) translateX(0);
}

/* Skip button — inline in chat */
.ob-skip-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(10,57,78,0.05);
  border: 1px solid rgba(10,57,78,0.1);
  border-radius: 24px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ob-accent);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 42px;
  opacity: 0;
  animation: optionIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.ob-skip-btn::before {
  content: '\2192';
  font-size: 0.9rem;
  opacity: 0.5;
}

.ob-skip-btn:hover {
  background: rgba(10,57,78,0.08);
  border-color: var(--ob-accent);
  color: var(--ob-text);
  transform: translateX(2px);
}

/* ─── Media Panel (overlays inside chat when active) ───────────────────── */
.ob-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(180deg, #f8fafb 0%, #f0f4f5 100%);
  overflow-y: auto;
  padding: 28px 24px;
  display: none;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.has-media .ob-media {
  display: block;
}

.ob-media-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ob-text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Style Cards (Visual Select) */
.ob-style-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-style-card {
  position: relative;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid var(--ob-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--ob-shadow-1);
}

.ob-style-card:hover {
  border-color: var(--ob-accent);
  box-shadow: var(--ob-shadow-2);
}

.ob-style-card.selected {
  border-color: var(--ob-dark);
  box-shadow: 0 0 0 1px var(--ob-dark), var(--ob-shadow-2);
  background: rgba(10,57,78,0.02);
}

.ob-style-card.selected::after {
  content: '\2713';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 22px;
  height: 22px;
  background: var(--ob-dark);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ob-style-preview {
  display: flex;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.ob-style-swatch {
  flex: 1;
}

.ob-style-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ob-text);
}

.ob-style-desc {
  font-size: 0.78rem;
  color: var(--ob-text-secondary);
  margin-top: 2px;
}

/* AI Recommendation Badge */
.ob-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(238,146,50,0.08);
  border: 1px solid rgba(238,146,50,0.2);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ob-highlight);
  margin-top: 6px;
}

/* Feature Toggles */
.ob-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--ob-border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.ob-feature-item.active {
  border-color: var(--ob-dark);
  background: rgba(10,57,78,0.02);
}

.ob-feature-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.ob-feature-info {
  flex: 1;
  min-width: 0;
}

.ob-feature-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ob-text);
}

.ob-feature-tier {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 3px;
  margin-left: 6px;
}

.ob-tier-free { background: rgba(45,122,94,0.1); color: var(--ob-success); }
.ob-tier-pro { background: rgba(238,146,50,0.1); color: var(--ob-highlight); }
.ob-tier-superhost { background: rgba(10,57,78,0.08); color: var(--ob-dark); }

/* Toggle Switch */
.ob-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

.ob-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ob-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: var(--ob-border);
  transition: background 0.2s;
}

.ob-toggle input:checked + .ob-toggle-track {
  background: var(--ob-dark);
}

.ob-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10,57,78,0.2);
  transition: left 0.2s;
}

.ob-toggle input:checked ~ .ob-toggle-knob {
  left: 21px;
}

/* ─── Upload Hero Header ───────────────────────────────────────────────── */
.ob-upload-hero {
  text-align: center;
  padding: 16px 12px 12px;
}

.ob-upload-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(238,146,50,0.12);
  color: var(--ob-highlight, #EE9232);
  margin-bottom: 8px;
}

.ob-upload-hero-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ob-dark, var(--bg-primary));
  margin-bottom: 4px;
}

.ob-upload-hero-sub {
  font-size: 0.82rem;
  color: rgba(10,57,78,0.5);
  line-height: 1.4;
}

/* ─── Upload Areas ──────────────────────────────────────────────────────── */
.ob-upload-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-upload-area {
  padding: 18px;
  background: #fff;
  border: 2px dashed var(--ob-border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ob-upload-area:hover,
.ob-upload-area.drag-over {
  border-color: var(--ob-accent);
  background: rgba(92,122,122,0.03);
}

.ob-upload-area.has-files {
  border-style: solid;
  border-color: var(--ob-dark);
}

.ob-upload-icon {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.ob-upload-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ob-text);
}

.ob-upload-hint {
  font-size: 0.78rem;
  color: var(--ob-text-secondary);
  margin-top: 2px;
}

.ob-upload-count {
  font-size: 0.72rem;
  color: var(--ob-muted);
  margin-top: 4px;
}

/* Upload Thumbnails */
.ob-upload-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}

.ob-upload-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--ob-radius-sm);
  object-fit: cover;
  border: 1px solid var(--ob-border);
}

.ob-upload-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--ob-error);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Preview Panel (Right) ─────────────────────────────────────────────── */
.ob-preview {
  grid-row: 1;
  grid-column: 1;
  display: none;
  background: var(--ob-dark);
  overflow-y: auto;
  position: relative;
  min-width: 0;
}

/* Browser chrome simulation for preview */
.ob-preview-chrome {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #1a2332;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ob-preview-dots {
  display: flex;
  gap: 5px;
}

.ob-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ob-preview-dot:nth-child(1) { background: #ff5f57; }
.ob-preview-dot:nth-child(2) { background: #febc2e; }
.ob-preview-dot:nth-child(3) { background: #28c840; }

.ob-preview-url {
  flex: 1;
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 48px 40px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  background: linear-gradient(168deg, #0E4560 0%, #0A394E 40%, #061F2E 100%);
}

.ob-preview-empty svg {
  width: 64px;
  height: 64px;
  color: rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.ob-preview-empty p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
}

.ob-preview-empty .ob-preview-steps {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.ob-preview-empty .ob-preview-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ob-preview-empty .ob-preview-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(238,146,50,0.3);
  flex-shrink: 0;
}

.ob-preview-empty .ob-preview-step.done .ob-preview-step-dot {
  background: var(--ob-highlight);
}

/* ── Scroll wrapper for generated preview ── */
.ob-preview-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── Iframe preview (real website after generation) ── */
.ob-preview-iframe-wrap {
  position: absolute;
  /* Start below the sticky browser-chrome bar (~44px) so the controls and
     iframe are not hidden behind it. */
  inset: 44px 0 0 0;
  z-index: 5;
  background: var(--ob-dark);
  display: flex;
  flex-direction: column;
}

.ob-preview-iframe {
  width: 100%;
  flex: 1;
  min-height: 0;
  border: none;
  display: block;
}

/* ── Preview controls (Free/Pro view + per-section visibility) ── */
.ob-preview-controls {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--ob-surface, #fff);
  border-bottom: 1px solid var(--ob-border);
  max-height: 38%;
  overflow-y: auto;
}

.ob-preview-viewtoggle {
  display: inline-flex;
  gap: 4px;
  width: fit-content;
  padding: 3px;
  background: var(--ob-surface-alt, #f0f4f5);
  border-radius: var(--ob-radius-xl, 9999px);
}

.ob-preview-viewtoggle button {
  border: 0;
  background: transparent;
  padding: 6px 18px;
  min-height: 32px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ob-text-secondary, #5a6f78);
}

.ob-preview-viewtoggle button.active {
  background: var(--ob-dark);
  color: #fff;
}

.ob-preview-sectiontoggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ob-preview-sectionchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  min-height: 32px;
  border: 1px solid var(--ob-border);
  background: var(--ob-surface, #fff);
  color: var(--ob-text, #0a394e);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, background .15s;
}

.ob-preview-sectionchip.off {
  opacity: 0.45;
  text-decoration: line-through;
  background: var(--ob-surface-alt, #f0f4f5);
}

.ob-preview-sectiontier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--ob-highlight, #ee9232);
  color: #fff;
}

.ob-preview-controls-note {
  font-size: 14px;
  color: var(--ob-text-secondary, #5a6f78);
  line-height: 1.4;
}

/* Touch devices: raise the compact preview pills to the 44px tap-target
   minimum (a11y). Mouse/fine-pointer keeps the dense 32px desktop look. */
@media (pointer: coarse) {
  .ob-preview-viewtoggle button,
  .ob-preview-sectionchip {
    min-height: 44px;
  }
}

/* ── Generation Overlay (full-screen status while building) ── */
.ob-gen-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,57,78,0.97);
  backdrop-filter: blur(16px);
  transition: opacity 0.5s ease-out, background 0.5s ease-out;
}

.ob-gen-overlay.error {
  pointer-events: auto;
}

.ob-gen-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.5s ease-out;
}

.ob-gen-spinner svg {
  color: var(--ob-highlight);
  animation: spin 3s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.ob-gen-error-icon svg {
  color: #B83B3B;
}

.ob-gen-status {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin: 0;
  max-width: 240px;
  line-height: 1.3;
}

.ob-gen-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ob-highlight);
  letter-spacing: 0.04em;
}

.ob-gen-overlay .ob-btn-retry {
  margin-top: 8px;
  padding: 12px 32px;
  background: var(--ob-highlight);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  pointer-events: auto;
}

.ob-gen-overlay .ob-btn-retry:hover {
  opacity: 0.85;
}

/* ── Preview Header (compact sticky, once sections arrive) ── */
.ob-preview-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(10,57,78,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ob-preview-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ob-highlight);
  flex-shrink: 0;
}

.ob-preview-status-dot.building {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(238,146,50,0.3); }
  50%      { box-shadow: 0 0 12px 4px rgba(238,146,50,0.25); }
}

.ob-preview-status-dot.done {
  background: var(--ob-success);
  animation: none;
}

.ob-preview-status-text {
  flex: 1;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.ob-preview-count {
  padding: 3px 12px;
  background: rgba(238,146,50,0.1);
  color: var(--ob-highlight);
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Preview Sections (skeleton + reveal) */
.ob-preview-section {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1),
              filter 0.8s ease-out;
  position: relative;
  min-height: 120px;
}

.ob-preview-section.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.ob-preview-section.skeleton {
  min-height: 140px;
}

.ob-preview-section.skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(238,146,50,0.04) 0%, transparent 70%);
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.02); }
}

/* Gold sweep on section reveal */
.ob-preview-section .ob-sweep {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(110deg, transparent 0%, rgba(238,146,50,0.06) 30%, rgba(238,146,50,0.12) 50%, rgba(238,146,50,0.06) 70%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
}

.ob-preview-section.just-arrived .ob-sweep {
  animation: sweepIn 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes sweepIn {
  from { transform: translateX(-110%); opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

/* Preview Section Placeholder Content */
.ob-section-placeholder {
  padding: 24px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.ob-section-placeholder h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ob-highlight);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ob-section-placeholder p {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  line-height: 1.6;
}

.ob-section-placeholder p strong {
  display: block;
  font-size: 1em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.ob-section-placeholder p em {
  color: rgba(255,255,255,0.6);
  font-size: 0.9em;
  font-style: italic;
}

.ob-section-placeholder p span {
  display: block;
  margin-top: 4px;
  font-size: 0.9em;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ─── Locked Section (Blur/Lock Overlay) ───────────────────────────────── */
.ob-preview-section.ob-locked .ob-section-placeholder {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

/* Retry button is now inside .ob-gen-overlay */

.ob-preview-status-dot.error {
  background: #B83B3B;
  animation: none;
}

.ob-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 57, 78, 0.55);
  border-radius: 8px;
}

.ob-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(234,88,12,0.9), rgba(194,65,12,0.9));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(234,88,12,0.35);
}

.ob-lock-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ob-lock-hint {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  text-align: center;
  margin: 0;
}

/* ─── Toast Notifications ───────────────────────────────────────────────── */
.ob-toast-container {
  position: fixed;
  top: calc(var(--ob-header-h) + 8px);
  right: 8px;
  left: 8px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.ob-toast {
  padding: 10px 16px;
  background: rgba(10,57,78,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(238,146,50,0.12);
  border-radius: var(--ob-radius-md);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  max-width: 100%;
  gap: 8px;
  pointer-events: auto;
  animation: toastIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}

.ob-toast.out {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}

.ob-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ob-toast-icon.gen { background: rgba(238,146,50,0.1); }
.ob-toast-icon.done { background: rgba(45,122,94,0.1); }
.ob-toast-icon.ai { background: rgba(58,125,158,0.1); }

.ob-toast-icon svg {
  width: 12px;
  height: 12px;
}

.ob-toast-icon.gen svg { color: var(--ob-highlight); }
.ob-toast-icon.done svg { color: var(--ob-success); }
.ob-toast-icon.ai svg { color: var(--ob-info); }

.ob-toast strong {
  color: var(--ob-surface);
  font-weight: 600;
}

/* ─── Research Toast (persistent with progress bar) ────────────────────── */
.ob-toast--research {
  border-color: rgba(58, 125, 158, 0.2);
  align-items: flex-start;
}
.ob-toast-research-content {
  flex: 1;
  min-width: 0;
}
.ob-toast-research-text {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 6px;
}
.ob-toast-research-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.ob-toast-research-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, rgba(58,125,158,0.6), rgba(238,146,50,0.8));
  border-radius: 2px;
  animation: researchBarPulse 2s ease-in-out infinite;
}
@keyframes researchBarPulse {
  0%   { width: 15%; margin-left: 0; }
  50%  { width: 40%; margin-left: 30%; }
  100% { width: 15%; margin-left: 85%; }
}

/* ─── Publish Screen ────────────────────────────────────────────────────── */
.ob-publish {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
  text-align: center;
}

.ob-publish h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ob-dark);
}

.ob-publish p {
  font-size: 0.92rem;
  color: var(--ob-text-secondary);
  max-width: 400px;
}

.ob-publish-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}

.ob-input {
  padding: 12px 14px;
  border: 1px solid var(--ob-border);
  border-radius: var(--ob-radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ob-text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.ob-input:focus {
  border-color: var(--ob-accent);
}
.ob-input:focus-visible {
  outline: 2px solid var(--ob-accent, #5C7A7A);
  outline-offset: 2px;
}

.ob-input::placeholder {
  color: var(--ob-text-placeholder);
}

.ob-btn-primary {
  padding: 14px 28px;
  background: var(--ob-cta-gradient);
  color: #fff;
  border: none;
  border-radius: var(--ob-radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--ob-cta-shadow);
  transition: background 0.2s;
  min-height: 44px;
}

.ob-btn-primary:hover {
  background: var(--ob-cta-hover);
}

.ob-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ob-btn-secondary {
  padding: 10px 20px;
  background: var(--ob-dark);
  color: #fff;
  border: none;
  border-radius: var(--ob-radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
}

.ob-btn-secondary:hover {
  background: var(--ob-dark-hover);
}

/* ─── Error / Validation ────────────────────────────────────────────────── */
.ob-error {
  font-size: 0.78rem;
  color: var(--ob-error);
  margin-top: 2px;
}

.ob-input.has-error {
  border-color: var(--ob-error);
}

/* ─── Mobile Layout ─────────────────────────────────────────────────────── */
.ob-mobile-tabs {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--ob-border);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.ob-mobile-tabs-inner {
  display: flex;
  height: 52px;
}

.ob-mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.68rem;
  color: var(--ob-text-secondary);
  cursor: pointer;
  min-height: 44px;
  transition: color 0.2s;
}

.ob-mobile-tab.active {
  color: var(--ob-dark);
  font-weight: 600;
}

.ob-mobile-tab svg {
  width: 20px;
  height: 20px;
}


/* ─── Reduced Motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ob-msg,
  .ob-preview-section,
  .ob-toast {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .ob-msg-streaming::after,
  .ob-typing-dot,
  .ob-preview-status-dot.building,
  .ob-gen-spinner svg,
  .ob-preview-section.skeleton::before {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Cookie Consent Banner
   ═══════════════════════════════════════════════════════════════════════════ */

[x-cloak] { display: none !important; }

.ob-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 8px 72px;
}

.ob-cookie-inner {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ob-dark);
  color: var(--ob-surface);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(10,57,78,0.3), 0 4px 8px rgba(10,57,78,0.15);
}

.ob-cookie-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ob-cookie-text p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ob-muted);
  margin-bottom: 12px;
}

.ob-cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.ob-cookie-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.ob-cookie-btn:active { transform: scale(0.97); }

.ob-cookie-btn-primary {
  background: var(--ob-cta-gradient);
  color: #fff;
  box-shadow: var(--ob-cta-shadow);
}

.ob-cookie-btn-primary:hover {
  background: var(--ob-cta-hover);
}

.ob-cookie-btn-secondary {
  background: var(--ob-accent);
  color: var(--ob-surface);
  box-shadow: var(--ob-shadow-1);
}

.ob-cookie-btn-secondary:hover {
  filter: brightness(0.9);
}

.ob-cookie-details-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--ob-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ob-cookie-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.ob-cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.ob-cookie-cat-label {
  font-size: 0.82rem;
  font-weight: 600;
}

.ob-cookie-cat-status {
  font-size: 0.75rem;
  color: var(--ob-muted);
  font-style: italic;
}

.ob-cookie-cat-desc {
  font-size: 0.75rem;
  color: var(--ob-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.ob-toggle-sm {
  transform: scale(0.8);
  transform-origin: right center;
}

/* Transitions */
.ob-cookie-enter { transition: all 0.4s ease-out; }
.ob-cookie-enter-start { opacity: 0; transform: translateY(20px); }
.ob-cookie-enter-end { opacity: 1; transform: translateY(0); }
.ob-cookie-leave { transition: all 0.3s ease-in; }
.ob-cookie-leave-start { opacity: 1; transform: translateY(0); }
.ob-cookie-leave-end { opacity: 0; transform: translateY(20px); }



/* ═══════════════════════════════════════════════════════════════════════════
   Focused Mode (Discovery Phase — Steps 1-6)
   Full-width centered chat, hero heading, premium landing-page feel
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ob-radius-xl: 20px;
  --ob-focused-max-w: 720px;
}

/* ─── Layout: Single column, centered chat ─────────────────────────────── */
.ob-layout--focused {
  grid-template-columns: 1fr;
  background: linear-gradient(168deg, #f4f7f9 0%, #fff 50%, #f0f5f7 100%);
}

.ob-layout--focused .ob-preview {
  display: none;
}

.ob-layout--focused .ob-chat {
  border-right: none;
  background: transparent;
  display: flex;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

/* Smooth transition when switching focused → builder */
.ob-layout {
  transition: grid-template-columns 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ob-chat {
  transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease;
}

/* ─── Hero Block ───────────────────────────────────────────────────────── */
.ob-hero {
  padding: 20px 14px 12px;
  text-align: center;
  flex-shrink: 0;
}

.ob-hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ob-cta);
  background: rgba(234, 88, 12, 0.07);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.ob-hero-heading {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ob-dark);
  margin-bottom: 16px;
}

.ob-hero-sub {
  font-size: 0.85rem;
  color: var(--ob-text-secondary);
  max-width: min(440px, 100%);
  margin: 0 auto;
  line-height: 1.65;
  margin-bottom: 8px;
}

/* Hero compact: after first user interaction (step >= 2) */
.ob-hero--compact {
  padding: 12px 20px 4px;
}

.ob-hero--compact .ob-hero-heading {
  font-size: 1.15rem;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

/* ─── Focused: Larger chat bubbles ─────────────────────────────────────── */
.ob-layout--focused .ob-chat-messages {
  padding: 8px 12px 20px;
  gap: 16px;
  background: transparent;
}

.ob-layout--focused .ob-msg {
  padding: 16px 20px;
  border-radius: var(--ob-radius-xl);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 92%;
}

.ob-layout--focused .ob-msg-ai {
  border-bottom-left-radius: 6px;
  padding-left: 48px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(10, 57, 78, 0.06);
  box-shadow: 0 4px 20px rgba(10, 57, 78, 0.05), 0 1px 3px rgba(10, 57, 78, 0.03);
}

.ob-layout--focused .ob-msg-user {
  border-bottom-right-radius: 6px;
  background: linear-gradient(135deg, var(--ob-dark) 0%, #0E5573 100%);
  box-shadow: 0 3px 12px rgba(10, 57, 78, 0.15);
}

/* ─── Focused: Input area ──────────────────────────────────────────────── */
.ob-layout--focused .ob-input-area {
  padding: 10px 12px 20px;
  background: transparent;
  border-top: none;
}

.ob-layout--focused .ob-textarea {
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 1rem;
  background: #fff;
  border: 1.5px solid rgba(10, 57, 78, 0.1);
  box-shadow: 0 4px 16px rgba(10, 57, 78, 0.06), 0 1px 3px rgba(10, 57, 78, 0.03);
  min-height: 56px;
}

.ob-layout--focused .ob-textarea:focus {
  border-color: var(--ob-accent);
  box-shadow: 0 0 0 3px rgba(92, 122, 122, 0.1), 0 4px 16px rgba(10, 57, 78, 0.06);
}

.ob-layout--focused .ob-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.ob-layout--focused .ob-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

.ob-layout--focused .ob-input-row {
  gap: 12px;
}

/* ─── Focused: Option cards ────────────────────────────────────────────── */
.ob-layout--focused .ob-options {
  gap: 10px;
}

.ob-layout--focused .ob-option-card {
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--ob-text);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(10, 57, 78, 0.08);
  box-shadow: 0 2px 8px rgba(10, 57, 78, 0.04);
  transition: all 0.2s ease-out;
}

.ob-layout--focused .ob-option-card .ob-opt-hint {
  color: var(--ob-text-secondary);
}

.ob-layout--focused .ob-option-card::after {
  color: rgba(10, 57, 78, 0.2);
}

.ob-layout--focused .ob-option-card:hover {
  border-color: var(--ob-accent);
  box-shadow: 0 4px 16px rgba(10, 57, 78, 0.08);
  transform: translateY(-1px);
}

.ob-layout--focused .ob-option-card:hover::after {
  color: var(--ob-cta);
}

.ob-layout--focused .ob-option-card.selected {
  border-color: var(--ob-dark);
  background: rgba(10, 57, 78, 0.04);
  box-shadow: 0 0 0 2px var(--ob-dark);
}

/* ─── Focused: Typing indicator ────────────────────────────────────────── */
.ob-layout--focused .ob-typing {
  border-radius: var(--ob-radius-xl);
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── Focused: Lighter, slimmer header ─────────────────────────────────── */
.ob-layout--focused ~ .ob-mobile-tabs {
  display: none;
}

.ob-layout--focused ~ .ob-mobile-tabs,
body:has(.ob-layout--focused) .ob-header {
  background: rgba(10, 57, 78, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body:has(.ob-layout--focused) .ob-progress-bar {
  opacity: 0.5;
  max-width: 140px;
}



/* ═══════════════════════════════════════════════════════════════════════════
   Phase 9c — New Onboarding Components (v2 — premium, spacious)
   Platform-Select, Wow-Card, Section-Selector, Matterport, Chat Examples
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Chat Example (italic hint below question) ────────────────────────── */
.ob-msg .ob-example {
  display: block;
  margin-top: 10px;
  font-style: italic;
  font-size: 0.88em;
  opacity: 0.5;
  line-height: 1.5;
}

/* ─── Platform-Select Cards ────────────────────────────────────────────── */
.ob-platform-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

/* 4 cards → 4 columns on wide screens */
@media (min-width: 520px) {
  .ob-platform-select {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ob-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: #fff;
  border: 2px solid rgba(10, 57, 78, 0.14);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: var(--ob-text);
  box-shadow: 0 2px 8px rgba(10, 57, 78, 0.04);
  /* Equal height within row */
  min-height: 88px;
  aspect-ratio: auto;
}

.ob-platform-card:hover {
  border-color: var(--ob-accent);
  box-shadow: 0 8px 24px rgba(10, 57, 78, 0.1);
  transform: translateY(-3px);
}

.ob-platform-card.active {
  border-color: var(--ob-dark);
  background: rgba(10, 57, 78, 0.02);
  box-shadow: 0 0 0 3px rgba(10, 57, 78, 0.12), 0 8px 24px rgba(10, 57, 78, 0.08);
}

.ob-platform-card img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.ob-platform-card .ob-plat-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.ob-platform-card span:last-child {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  text-align: center;
  line-height: 1.2;
}

/* Focus-visible for keyboard navigation */
.ob-platform-card:focus-visible,
.ob-section-item:focus-visible,
.ob-platform-photo:focus-visible {
  outline: 3px solid var(--ob-accent);
  outline-offset: 2px;
}

/* URL input that expands below platform cards */
.ob-platform-url-input {
  width: 100%;
  margin-top: 14px;
  animation: optionIn 0.3s ease;
}

.ob-platform-url-input input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(10, 57, 78, 0.14);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ob-text);
  background: #fff;
  outline: none;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(10, 57, 78, 0.04);
}

.ob-platform-url-input input:focus {
  border-color: var(--ob-accent);
  box-shadow: 0 0 0 4px rgba(92, 122, 122, 0.08), 0 4px 16px rgba(10, 57, 78, 0.06);
}
.ob-platform-url-input input:focus-visible {
  outline: 2px solid var(--ob-accent, #5C7A7A);
  outline-offset: 2px;
}

.ob-platform-url-input input::placeholder {
  color: var(--ob-text-placeholder);
}

.ob-platform-url-submit {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.ob-platform-url-submit button {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.ob-platform-url-submit .ob-btn-confirm {
  background: var(--ob-cta-gradient);
  color: #fff;
  box-shadow: var(--ob-cta-shadow);
}

.ob-platform-url-submit .ob-btn-confirm:hover {
  background: var(--ob-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
}

.ob-platform-url-submit .ob-btn-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ─── Wow-Card (Research Result) ───────────────────────────────────────── */
.ob-wow-card {
  background: #fff;
  border: 2px solid rgba(10, 57, 78, 0.14);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(10, 57, 78, 0.08), 0 2px 8px rgba(10, 57, 78, 0.04);
  animation: optionIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.ob-wow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ob-wow-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ob-text);
  letter-spacing: -0.2px;
}

.ob-wow-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ob-highlight);
  padding: 5px 12px;
  background: rgba(238, 146, 50, 0.08);
  border-radius: 24px;
}

.ob-wow-rating svg {
  width: 16px;
  height: 16px;
  fill: var(--ob-highlight);
}

.ob-wow-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.85rem;
  color: var(--ob-text-secondary);
  margin-bottom: 16px;
}

.ob-wow-stats span {
  white-space: nowrap;
}

.ob-wow-stats span::before {
  content: '·';
  margin-right: 8px;
  color: var(--ob-border);
  font-weight: 700;
}

.ob-wow-stats span:first-child::before {
  display: none;
}

.ob-wow-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 76px;
  overflow: hidden;
}

.ob-wow-amenity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--ob-surface-alt);
  border-radius: 24px;
  font-size: 0.78rem;
  color: var(--ob-text-secondary);
  font-weight: 500;
}

.ob-wow-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ob-wow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.85rem;
}

.ob-wow-badge--photos {
  background: rgba(238, 146, 50, 0.08);
  color: var(--ob-highlight);
}

.ob-wow-badge--tour {
  background: rgba(45, 122, 94, 0.08);
  color: var(--ob-success);
}

.ob-wow-actions {
  display: flex;
  gap: 12px;
}

.ob-wow-actions button {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.ob-wow-actions .ob-btn-confirm {
  background: var(--ob-cta-gradient);
  color: #fff;
  box-shadow: var(--ob-cta-shadow);
}

.ob-wow-actions .ob-btn-confirm:hover {
  background: var(--ob-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

.ob-wow-actions .ob-btn-edit {
  background: transparent;
  color: var(--ob-text-secondary);
  border: 2px solid rgba(10, 57, 78, 0.18);
}

.ob-wow-actions .ob-btn-edit:hover {
  border-color: var(--ob-accent);
  color: var(--ob-text);
  background: rgba(10, 57, 78, 0.02);
}

/* ─── Section-Selector ─────────────────────────────────────────────────── */
.ob-section-select {
  width: 100%;
  animation: optionIn 0.35s ease;
}

.ob-section-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 18px;
  background: rgba(10, 57, 78, 0.05);
  border: 1px solid rgba(10, 57, 78, 0.08);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ob-text-secondary);
}

.ob-section-counter strong {
  color: var(--ob-text);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.ob-section-counter.at-limit strong {
  color: var(--ob-cta);
}

.ob-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-section-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid rgba(10, 57, 78, 0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(10, 57, 78, 0.03);
}

.ob-section-item:hover {
  border-color: rgba(10, 57, 78, 0.22);
  box-shadow: 0 4px 12px rgba(10, 57, 78, 0.06);
  transform: translateY(-1px);
}

.ob-section-item.active {
  border-color: var(--ob-dark);
  background: rgba(10, 57, 78, 0.02);
}

.ob-section-item.locked {
  opacity: 0.55;
  cursor: default;
}

.ob-section-item.locked:hover {
  border-color: rgba(10, 57, 78, 0.12);
  box-shadow: 0 1px 4px rgba(10, 57, 78, 0.03);
  transform: none;
}

.ob-section-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--ob-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background: #fff;
}

/* Checkmark SVG inside — hidden by default, visible when active */
.ob-section-check svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ob-section-item.active .ob-section-check {
  background: var(--ob-dark);
  border-color: var(--ob-dark);
  color: #fff;
}

.ob-section-item.active .ob-section-check svg {
  opacity: 1;
  transform: scale(1);
}

.ob-section-item.locked .ob-section-check {
  background: var(--ob-surface-alt);
  border-color: var(--ob-border);
  color: var(--ob-text-placeholder);
}

.ob-section-item.locked .ob-section-check svg {
  opacity: 0.6;
  transform: scale(1);
}

.ob-section-info {
  flex: 1;
  min-width: 0;
}

.ob-section-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ob-text);
}

.ob-section-tier {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-left: 10px;
  vertical-align: middle;
}

.ob-tier-free {
  background: rgba(10, 57, 78, 0.05);
  color: var(--ob-text-secondary);
}

.ob-tier-pro {
  background: rgba(238, 146, 50, 0.1);
  color: var(--ob-highlight);
}

.ob-tier-superhost {
  background: rgba(45, 122, 94, 0.1);
  color: var(--ob-success);
}

.ob-section-hint {
  font-size: 0.82rem;
  color: var(--ob-text-secondary);
  margin-top: 3px;
}

.ob-section-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(238, 146, 50, 0.05);
  border: 1px solid rgba(238, 146, 50, 0.1);
  border-radius: 14px;
  font-size: 0.82rem;
  color: var(--ob-text-secondary);
  line-height: 1.6;
}

.ob-section-note strong {
  color: var(--ob-highlight);
}

/* ─── Contact Form (Step 5) ───────────────────────────────────────────── */
.ob-contact-form {
  margin-top: 8px;
  padding: 20px;
  background: #fff;
  border: 2px solid rgba(10, 57, 78, 0.10);
  border-radius: 16px;
}
.ob-contact-field {
  margin-bottom: 14px;
}
.ob-contact-field:last-of-type {
  margin-bottom: 8px;
}
.ob-contact-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ob-text-secondary, #5A6F78);
  margin-bottom: 6px;
}
.ob-contact-label svg {
  color: var(--ob-accent, #5C7A7A);
}
.ob-contact-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(10, 57, 78, 0.14);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #FCFCFC;
}
.ob-contact-input:focus {
  outline: none;
  border-color: var(--ob-accent, #5C7A7A);
}
.ob-contact-input:focus-visible {
  outline: 2px solid var(--ob-accent, #5C7A7A);
  outline-offset: 2px;
}
.ob-contact-input.has-error {
  border-color: #B83B3B;
}
.ob-contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.ob-contact-actions .ob-btn-confirm {
  padding: 10px 24px;
  background: var(--ob-dark, #0A394E);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.ob-contact-actions .ob-btn-confirm:hover {
  background: var(--ob-dark-hover, #0C4862);
}
.ob-contact-actions .ob-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ob-skip-btn--inline {
  background: none;
  border: none;
  color: var(--ob-text-secondary, #5A6F78);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ob-skip-btn--inline:hover {
  color: var(--ob-dark, #0A394E);
}

/* ─── Section Generate Button ─────────────────────────────────────────── */
.ob-btn-generate {
  width: 100%;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  background: linear-gradient(to bottom right, #ea580c, #c2410c);
  box-shadow: 0 4px 8px rgba(234, 88, 12, 0.4);
}
.ob-btn-generate:hover {
  background: linear-gradient(to bottom right, #c2410c, #9a3412);
}
.ob-btn-generate svg {
  fill: currentColor;
  stroke: none;
}

/* ─── Matterport Input ─────────────────────────────────────────────────── */
.ob-matterport {
  margin-top: 20px;
  padding: 18px;
  background: #fff;
  border: 2px solid rgba(10, 57, 78, 0.14);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(10, 57, 78, 0.04);
  animation: optionIn 0.3s ease;
}

.ob-matterport-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ob-text);
  margin-bottom: 14px;
}

.ob-matterport-found {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(45, 122, 94, 0.06);
  border: 1px solid rgba(45, 122, 94, 0.12);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ob-success);
  font-weight: 600;
  margin-bottom: 12px;
}

.ob-matterport input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(10, 57, 78, 0.14);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ob-text);
  background: var(--ob-surface-alt);
  outline: none;
  transition: all 0.25s;
}

.ob-matterport input:focus {
  border-color: var(--ob-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(92, 122, 122, 0.08);
}
.ob-matterport input:focus-visible {
  outline: 2px solid var(--ob-accent, #5C7A7A);
  outline-offset: 2px;
}

.ob-matterport-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ob-text-placeholder);
  line-height: 1.5;
}

.ob-matterport-help a {
  color: var(--ob-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ob-matterport-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(238, 146, 50, 0.08);
  color: var(--ob-highlight);
}

/* ─── Platform Photos Grid ─────────────────────────────────────────────── */
.ob-platform-photos {
  margin-bottom: 20px;
}

.ob-platform-photos-label {
  font-size: 0.88rem;
  color: var(--ob-text-secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

.ob-platform-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
}

.ob-platform-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(10, 57, 78, 0.06);
}

.ob-platform-photo:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(10, 57, 78, 0.1);
}

.ob-platform-photo.selected {
  border-color: var(--ob-dark);
  box-shadow: 0 0 0 1px var(--ob-dark), 0 4px 12px rgba(10, 57, 78, 0.12);
}

.ob-platform-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ob-platform-photo-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(10, 57, 78, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(10, 57, 78, 0.1);
}

/* Unselected: subtle plus sign */
.ob-platform-photo:not(.selected) .ob-platform-photo-check::after {
  content: '+';
  font-size: 14px;
  font-weight: 600;
  color: rgba(10, 57, 78, 0.3);
  line-height: 1;
}

.ob-platform-photo.selected .ob-platform-photo-check {
  background: var(--ob-dark);
  border-color: var(--ob-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 57, 78, 0.2);
}

.ob-platform-photos-count {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ob-text-placeholder);
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Responsive Breakpoints (Mobile-First)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 401px+ — Restore from smallest (400px) values ───────────────────── */
@media (min-width: 401px) {
  .ob-hero { padding: 32px 20px 16px; }
  .ob-hero-heading { font-size: 1.7rem; letter-spacing: -0.3px; }
  .ob-hero-sub { font-size: 0.92rem; }
  .ob-layout--focused .ob-chat-messages { padding: 12px 16px 24px; }
  .ob-layout--focused .ob-input-area { padding: 14px 16px 24px; }
  .ob-layout--focused .ob-send-btn { width: 48px; height: 48px; }
  .ob-toast-container { right: 16px; left: auto; }
  .ob-toast { max-width: 340px; }
  .ob-gen-status { font-size: 1.2rem; max-width: 260px; }
  .ob-gen-count { font-size: 1.5rem; }
}

/* ─── 520px+ — Restore Phase 9c components to desktop values ──────────── */
@media (min-width: 520px) {
  .ob-platform-card { padding: 20px 12px; gap: 10px; aspect-ratio: 1 / 1; min-height: 0; }
  .ob-platform-card .ob-plat-emoji { font-size: 2rem; }
  .ob-platform-card span:last-child { font-size: 0.92rem; }
  .ob-platform-url-input input { padding: 16px 20px; font-size: 0.95rem; }
  .ob-platform-url-submit button { padding: 14px 24px; font-size: 0.95rem; }
  .ob-wow-card { padding: 28px; border-radius: 20px; }
  .ob-wow-name { font-size: 1.2rem; }
  .ob-wow-rating { font-size: 1rem; padding: 6px 14px; }
  .ob-wow-stats { font-size: 0.92rem; gap: 6px 16px; }
  .ob-wow-amenity { padding: 6px 14px; font-size: 0.82rem; }
  .ob-wow-actions button { padding: 16px 24px; font-size: 1rem; }
  .ob-section-item { padding: 16px 20px; gap: 14px; }
  .ob-section-check { width: 26px; height: 26px; }
  .ob-section-name { font-size: 0.95rem; }
  .ob-section-tier { padding: 3px 10px; font-size: 0.72rem; }
  .ob-section-note { padding: 16px 20px; font-size: 0.88rem; }
  .ob-matterport { padding: 24px; }
  .ob-matterport-title { font-size: 1rem; }
  .ob-matterport input { padding: 14px 18px; font-size: 0.92rem; }
  .ob-platform-photos-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
  .ob-platform-photo { border-radius: 12px; border-width: 3px; }
  .ob-platform-photo-check { width: 24px; height: 24px; top: 6px; right: 6px; }
}

/* ─── 601px+ — Restore header and chat-messages padding ───────────────── */
@media (min-width: 601px) {
  .ob-header { padding: 0 20px; gap: 16px; }
  .ob-chat-messages { padding: 24px 20px; }
}

/* ─── 769px+ — Restore cookie banner, gen overlay ─────────────────────── */
@media (min-width: 769px) {
  .ob-cookie-banner { padding: 0 16px 16px; }
  .ob-cookie-inner { padding: 20px 24px; border-radius: 12px; }
  .ob-cookie-actions { flex-direction: row; }
  .ob-gen-status { font-size: 1.5rem; max-width: 320px; }
  .ob-gen-count { font-size: 2rem; }
  .ob-gen-overlay-inner { padding: 32px; }
}

/* ─── 901px+ — Desktop 2-panel layout ─────────────────────────────────── */
@media (min-width: 901px) {
  :root { --ob-chat-w: 35%; }

  .ob-layout,
  .ob-layout.has-media {
    grid-template-columns: var(--ob-chat-w) 1fr;
    padding-bottom: 0;
  }

  .ob-chat {
    display: flex;
    border-right: 1px solid var(--ob-border);
  }

  .ob-preview {
    display: block;
    grid-column: 2;
  }

  .ob-mobile-tabs { display: none; }
  .ob-progress-bar { display: block; }
  .ob-input-area { padding-bottom: 16px; }

  .ob-hero { padding: 48px 28px 24px; }
  .ob-hero-heading { font-size: 2.4rem; letter-spacing: -0.6px; }
  .ob-hero-sub { font-size: 1.05rem; }
  .ob-hero--compact { padding: 16px 28px 8px; }
  .ob-hero--compact .ob-hero-heading { font-size: 1.3rem; }

  .ob-layout--focused .ob-chat { max-width: var(--ob-focused-max-w); }
  .ob-layout--focused .ob-chat-messages { padding: 16px 24px 28px; }
  .ob-layout--focused .ob-input-area { padding: 20px 24px 32px; }
  .ob-layout--focused .ob-textarea { border-radius: 24px; padding: 16px 22px; }
  .ob-layout--focused .ob-send-btn { width: 52px; height: 52px; }
}

