/* Vibe-coder & agent cockpit for /lovable-bolt-replit-eu-ai-act. Loaded after shell.css, home.css and guides.css.
   Surfaces #000 #181818 #1F1F1F #272727, #313131 borders, one accent #10B981 on the single filled button. */
.vc {
  display: grid; gap: 12px; min-width: 0; margin-top: 4px; padding: 16px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 120px), var(--s1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 48px -32px rgba(16, 185, 129, 0.35);
}
@media (min-width: 641px) { .vc { padding: 16px 18px; } }
.vc > * { min-width: 0; }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide .vc .vc-title { margin: 0; padding: 0; box-shadow: none; font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.vc-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 2px 9px; border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.38); color: #6EE7B7; font: 500 0.6875rem/1rem var(--mono);
}
.vc-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; box-shadow: 0 0 8px #10B981; }
@media (max-width: 420px) { .vc-live-x { display: none; } }

/* 1. App URL scanner */
.vc-scan { display: grid; gap: 8px; }
@media (min-width: 641px) { .vc-scan { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.vc-scan input {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 16px; border-radius: 9999px;
  border: 1px solid var(--line); background: #000000; color: var(--ink); font: 400 1rem/1.5rem var(--font);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.vc-scan input::placeholder { color: var(--ink-3); opacity: 1; }
.vc-scan input:focus-visible { outline: none; border-color: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.vc-scan input[aria-invalid="true"] { border-color: #F87171; }
.vc-scan .btn { min-height: 44px; }
.vc-scan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
@media (min-width: 641px) { .vc-scan-foot { grid-column: 1 / -1; } }
.guide .vc .vc-hint { margin: 0; color: #FCA5A5; font: 500 0.75rem/1rem var(--mono); }
.guide .vc .vc-sub { margin: 0; color: var(--ink-3); font: 500 0.75rem/1rem var(--mono); }
.guide .vc a.vc-report { font: 600 0.8125rem/1.25rem var(--font); color: var(--ink); white-space: nowrap; }

/* 2. Builder prompt switcher */
.vc-builder { min-width: 0; border-radius: 12px; border: 1px solid var(--line); background: #000000; overflow: hidden; }
.vc-tabs {
  display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--s2); border-bottom: 1px solid var(--line);
}
.vc-tabs::-webkit-scrollbar { display: none; }
.vc-tab {
  flex: none; min-height: 36px; padding: 6px 12px; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--ink-2); font: 600 0.8125rem/1.125rem var(--font); white-space: nowrap;
  transition: color 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.vc-tab:hover { color: var(--ink); }
.vc-tab:focus-visible { outline: 2px solid #10B981; outline-offset: -2px; }
.vc-tab[aria-selected="true"] { color: var(--ink); background: var(--s1); border-color: rgba(16, 185, 129, 0.55); }
@media (max-width: 640px) {
  .vc-tabs { flex-wrap: wrap; padding: 4px; }
  .vc-tab { flex: 1 1 auto; min-height: 36px; padding: 4px 10px; }
}
.vc-code-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--s3); color: var(--ink-3); font: 500 0.75rem/1rem var(--mono); }
.vc-copy {
  flex: none; min-height: 32px; padding: 4px 14px; border-radius: 9999px; border: 1px solid #10B981; background: rgba(16, 185, 129, 0.12); cursor: pointer;
  color: var(--ink); font: 600 0.75rem/1rem var(--mono); transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.vc-copy:hover { background: rgba(16, 185, 129, 0.22); }
.vc-copy[data-copied] { color: #6EE7B7; }
.vc-builder pre {
  margin: 0; padding: 10px 12px; max-height: 158px; overflow: auto; overscroll-behavior: contain;
  font: 400 0.75rem/1.125rem var(--mono); color: #CFE8F7; white-space: pre-wrap; overflow-wrap: anywhere;
}
@media (max-width: 640px) { .vc-builder pre { max-height: 216px; } }

/* 3. Free / Pro toggle + live badge.js preview */
.vc-plan { display: grid; gap: 10px; align-items: center; }
@media (min-width: 641px) { .vc-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.vc-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #000000; border: 1px solid var(--line); }
.vc-seg button {
  min-width: 0; min-height: 40px; padding: 6px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--ink-2); font: 600 0.8125rem/1.125rem var(--font); text-align: center; overflow-wrap: anywhere;
  transition: color 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.vc-seg button:hover { color: var(--ink); }
.vc-seg button:active { transform: scale(0.97); }
.vc-seg button:focus-visible { outline: 2px solid #10B981; outline-offset: 2px; }
.vc-seg button[aria-pressed="true"] { color: var(--ink); background: var(--s3); border-color: var(--line); }
.vc-seg button[data-vc-plan="pro"][aria-pressed="true"] { background: rgba(16, 185, 129, 0.13); border-color: rgba(16, 185, 129, 0.55); }
.vc-stage {
  display: flex; align-items: center; min-width: 0; min-height: 50px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 100%, rgba(16, 185, 129, 0.10), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, 0.025) 23px 24px),
    #0A0A0A;
  overflow-x: auto; scrollbar-width: none;
}
.vc-stage::-webkit-scrollbar { display: none; }
.vc-badge { max-width: 100%; min-height: 30px; }

/* 4. Upgrade CTAs */
.vc-ctas { display: grid; gap: 8px; }
@media (min-width: 641px) { .vc-ctas { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.guide .vc .vc-ctas .btn { min-height: 44px; white-space: normal; text-align: center; font-size: 0.9375rem; line-height: 1.25rem; }
.vc[data-plan="pro"] a.vc-pro { border-color: #10B981; background: rgba(16, 185, 129, 0.08); }
.guide .vc .plan-line { margin: 0; font-size: 0.75rem; line-height: 1.125rem; }

.vc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vc-express { margin-top: 10px; display: grid; gap: 8px; }
@media (min-width: 641px) { .vc-express { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center; } }
.vc-express input[type="email"], .vc-express select {
  width: 100%; min-width: 0; min-height: 40px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #000000; color: var(--ink); font: 500 0.875rem/1.25rem var(--font);
}
.vc-express select { padding-right: 28px; }
.vc-express input[type="email"]:focus, .vc-express select:focus { outline: none; border-color: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.vc-express-btn { min-height: 40px; padding: 8px 16px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .vc-scan input, .vc-seg button, .vc-tab, .vc-copy { transition: none; }
  .vc-seg button:active { transform: none; }
}

/* Hero: scanner and both upgrade CTAs (€199, €19/mo) end above the 844px fold on 390px phones;
   both CTAs above 945px on 1440x960. Mobile reorders with CSS `order` only; the DOM order is unchanged. */
@media (max-width: 640px) {
  .guide.guide-vc { padding-top: 72px; }
  .guide.guide-vc h1 { font-size: 1.65rem; line-height: 2rem; margin-bottom: 0; }
  .guide.guide-vc article { gap: 10px; }
  .guide.guide-vc p.lead { font-size: 0.92rem; line-height: 1.375rem; }
  #vc-cockpit { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
  #vc-cockpit > .vc-head { order: 1; }
  #vc-cockpit > .vc-scan { order: 2; }
  #vc-cockpit > .vc-ctas { order: 3; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #vc-cockpit > .vc-builder { order: 4; }
  #vc-cockpit > .vc-plan { order: 5; }
  #vc-cockpit > .plan-line { order: 6; }
  .guide .vc .vc-ctas .btn { padding: 8px 14px; font-size: 0.875rem; line-height: 1.125rem; text-wrap: balance; }
}
@media (min-width: 641px) {
  .guide.guide-vc { padding-top: 96px; }
  .guide.guide-vc article { gap: 12px; }
  .guide.guide-vc h1 { font-size: 2.35rem; line-height: 1.12; margin-bottom: 0; }
  .guide.guide-vc p.lead { font-size: 1rem; line-height: 1.5rem; }
}
.vc-scan .vc-scan-btn { border-color: #10B981; background: rgba(16, 185, 129, 0.12); color: var(--ink); }
.vc-scan .vc-scan-btn:hover { background: rgba(16, 185, 129, 0.22); }
