/* Client Discovery — cinematic full-screen slideshow (prototype).
   Built entirely from the existing site's tokens: var(--first-color) (black)
   as the discovery background, var(--color--first-color) (white) as primary
   text, var(--grey) as secondary text, var(--blue)/var(--blue2) as accent,
   var(--font--primary-font) as the typeface, and the site's own .display-1
   headline scale - the same dark-section language already used elsewhere on
   designedbyjakub.webflow.io, just given a full-screen, one-question-at-a-
   time stage instead of a scrolling section. */

html.dbj-disco-lock, body.dbj-disco-lock {
  overflow: hidden;
  height: 100%;
}

.dbj-discovery {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: radial-gradient(ellipse 120% 90% at 50% -10%, #11131a 0%, var(--first-color) 55%), var(--first-color);
  color: #fff;
  font-family: var(--font--primary-font);
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */
.dbj-disco-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 56px) 0;
  flex-shrink: 0;
}
.dbj-disco-logo {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.dbj-disco-progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.dbj-disco-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.5s cubic-bezier(.4, 0, .2, 1);
}
.dbj-disco-exit {
  font-size: .85rem;
  color: var(--grey);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.dbj-disco-exit:hover { color: #fff; }

/* ---------- scene stage ---------- */
.dbj-disco-stage {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}
.dbj-disco-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.dbj-disco-scene {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(28px);
}
.dbj-disco-scene.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
}
.dbj-disco-scene.is-leaving-back { transform: translateY(28px); }
.dbj-disco-scene.is-leaving-fwd { transform: translateY(-28px); }

/* min-height (not height) + a flex column lets short scenes center nicely,
   while a scene whose content is taller than the viewport grows past it from
   the top instead of being symmetrically (and unreachably) clipped the way
   `justify-content: center` directly on the scrollable element would. */
.dbj-disco-scene-inner {
  box-sizing: border-box;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px clamp(20px, 6vw, 90px) 110px;
}

.dbj-disco-kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue2);
  margin-bottom: -4px;
}
.dbj-disco-sub {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--grey);
  line-height: 1.5;
}
.dbj-disco-hint { font-size: .85rem; color: var(--grey); opacity: .8; }

/* headline: reuses the site's own .display-1.second_white scale (3rem /
   2.4rem / 1.6rem) - just give it zero default bottom margin so we control
   spacing per scene via the flex `gap`. The shared stylesheet ships a global
   rule that hides .display-1.second_white/.long_text until Webflow's IX3
   runtime reveals them on scroll - this page never loads that runtime, so
   override it back to visible (#dbj-discovery is an id, so it wins over the
   original ":not(...) :is(...)" rule's specificity even with !important). */
#dbj-discovery .display-1.second_white,
#dbj-discovery .display-1.long_text {
  visibility: visible !important;
}
.dbj-disco-scene .display-1.second_white { margin-bottom: 0; }
.dbj-disco-scene .display-1 { margin-bottom: 0; color: #fff; }

/* ---------- option cards (business stage, services, starting point) ---------- */
.dbj-disco-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin-top: 6px;
}
.dbj-disco-card {
  position: relative;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 26px 24px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.dbj-disco-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.3); }
.dbj-disco-card.is-selected { border-color: var(--blue2); background: rgba(3, 186, 247, 0.1); }
.dbj-disco-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.dbj-disco-card-desc { font-size: .88rem; color: var(--grey); line-height: 1.45; }
.dbj-disco-card-check {
  position: absolute; top: 18px; right: 18px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: transparent;
  transition: all .18s ease;
}
.dbj-disco-card.is-selected .dbj-disco-card-check {
  background: var(--blue2); border-color: var(--blue2); color: #04121a;
}

/* ---------- giant conversational input (name) ---------- */
.dbj-disco-input-giant {
  width: 100%;
  max-width: 720px;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 600;
  padding: 6px 2px 14px;
  outline: none;
  transition: border-color .2s ease;
}
.dbj-disco-input-giant:focus { border-color: var(--blue2); }
.dbj-disco-input-giant::placeholder { color: rgba(255, 255, 255, 0.28); }

/* ---------- standard dark form fields ---------- */
.dbj-disco-field { max-width: 640px; }
.dbj-disco-field + .dbj-disco-field { margin-top: 18px; }
.dbj-disco-label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.dbj-disco-input, .dbj-disco-textarea, .dbj-disco-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #fff;
  box-sizing: border-box;
}
.dbj-disco-select option { color: #000; }
.dbj-disco-textarea { min-height: 100px; resize: vertical; }
.dbj-disco-input:focus, .dbj-disco-textarea:focus, .dbj-disco-select:focus {
  outline: none; border-color: var(--blue2);
}
.dbj-disco-input::placeholder, .dbj-disco-textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
.dbj-disco-error {
  color: #ff8a73; font-size: .88rem; margin-top: 10px; display: none; max-width: 640px;
}
.dbj-disco-error.show { display: block; }

/* ---------- chips (multi-select objectives / audience) ---------- */
.dbj-disco-chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.dbj-disco-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 40px;
  padding: 11px 20px;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s ease;
}
.dbj-disco-chip.is-selected { background: var(--blue); border-color: var(--blue); }
.dbj-disco-chip:hover { border-color: rgba(255, 255, 255, 0.45); }

/* ---------- deliverables (grouped by category) ---------- */
.dbj-disco-deliv-group { max-width: 760px; width: 100%; }
.dbj-disco-deliv-group + .dbj-disco-deliv-group { margin-top: 28px; }
.dbj-disco-deliv-group-title {
  font-size: .95rem; font-weight: 600; color: var(--blue2);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px;
}
.dbj-disco-deliv-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dbj-disco-deliv-row:last-child { border-bottom: none; }
.dbj-disco-deliv-checkbox {
  width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--blue2);
}
.dbj-disco-deliv-label { flex: 1; font-size: .98rem; cursor: pointer; }
.dbj-disco-deliv-shared {
  font-size: .68rem; color: var(--grey); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 2px 8px; margin-left: 8px; white-space: nowrap;
}
.dbj-disco-qty {
  display: flex; align-items: center; gap: 8px; color: var(--grey); font-size: .85rem;
}
.dbj-disco-qty input {
  width: 56px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px; color: #fff; padding: 6px 8px; font-family: inherit; text-align: center;
}

/* ---------- moodboard tiles (creative direction) ---------- */
.dbj-disco-mood-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; max-width: 980px;
}
.dbj-disco-mood-tile {
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden; cursor: pointer; background: rgba(255,255,255,.03);
  transition: border-color .18s ease, transform .18s ease;
}
.dbj-disco-mood-tile:hover { transform: translateY(-3px); }
.dbj-disco-mood-tile.is-selected { border-color: var(--blue2); }
.dbj-disco-mood-swatch { height: 110px; position: relative; overflow: hidden; }
.dbj-disco-mood-label { padding: 12px 14px; font-size: .92rem; font-weight: 600; }
.dbj-disco-mood-swatch.pattern-lines { background: repeating-linear-gradient(100deg, #fff1 0 2px, transparent 2px 22px); }
.dbj-disco-mood-swatch.pattern-blocks { background: linear-gradient(135deg, var(--blue) 0 40%, #fff2 40% 70%, var(--blue2) 70% 100%); }
.dbj-disco-mood-swatch.pattern-serif { background: var(--grey); display:flex; align-items:center; justify-content:center; }
.dbj-disco-mood-swatch.pattern-serif::after { content:"Aa"; font-family: Georgia, serif; font-size: 2.4rem; color: #fff; }
.dbj-disco-mood-swatch.pattern-grid { background-image: linear-gradient(#fff2 1px, transparent 1px), linear-gradient(90deg, #fff2 1px, transparent 1px); background-size: 18px 18px; background-color: #0c0f16; }
.dbj-disco-mood-swatch.pattern-dots { background-image: radial-gradient(#03baf7 2.5px, transparent 2.5px); background-size: 16px 16px; background-color: #0c0f16; }
.dbj-disco-mood-swatch.pattern-diagonal { background: repeating-linear-gradient(45deg, var(--blue2) 0 10px, #0c0f16 10px 26px); }

/* ---------- budget / estimate ---------- */
.dbj-disco-budget-row { display: flex; gap: 20px; flex-wrap: wrap; max-width: 640px; }
.dbj-disco-amount {
  font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 700; line-height: 1;
  color: #fff; letter-spacing: -.02em;
}
.dbj-disco-amount .unit { font-size: .4em; color: var(--grey); font-weight: 500; margin-left: 6px; }
.dbj-disco-compare-bar {
  position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,.1);
  max-width: 640px; margin-top: 8px;
}
.dbj-disco-compare-fill { position: absolute; left:0; top:0; height: 100%; border-radius: 6px; background: var(--blue); transition: width .6s cubic-bezier(.16,1,.3,1); }
.dbj-disco-compare-marker {
  position: absolute; top: -6px; width: 2px; height: 22px; background: #fff; opacity: .6;
}
.dbj-disco-banner {
  max-width: 640px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  padding: 16px 20px; background: rgba(255,255,255,.04);
}
.dbj-disco-banner.status-within, .dbj-disco-banner.status-below { border-color: rgba(3,186,247,.4); background: rgba(3,186,247,.08); }
.dbj-disco-banner.status-above { border-color: rgba(255,138,115,.4); background: rgba(255,138,115,.08); }
.dbj-disco-banner-title { font-weight: 600; margin-bottom: 4px; }
.dbj-disco-banner-detail { font-size: .9rem; color: var(--grey); line-height: 1.5; }
.dbj-disco-disclaimer { font-size: .78rem; color: var(--grey); opacity: .75; max-width: 640px; }

/* ---------- timeline ---------- */
.dbj-disco-timeline-bar {
  display: flex; width: 100%; max-width: 760px; height: 14px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,.08);
}
.dbj-disco-timeline-seg { height: 100%; transform-origin: left; transform: scaleX(0); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.dbj-disco-timeline-seg.is-in { transform: scaleX(1); }
.dbj-disco-timeline-legend { display: flex; flex-wrap: wrap; gap: 16px; max-width: 760px; margin-top: 4px; }
.dbj-disco-timeline-item { font-size: .82rem; color: var(--grey); display: flex; align-items: center; gap: 8px; }
.dbj-disco-timeline-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ---------- priority delivery toggle ---------- */
.dbj-disco-priority-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 760px; }

/* ---------- bento reveal (screen 15) ---------- */
.dbj-disco-bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(90px, auto);
  gap: 12px; max-width: 980px; width: 100%;
}
.dbj-disco-tile {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
  padding: 18px 20px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.dbj-disco-tile-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.dbj-disco-tile-value { font-size: 1.15rem; font-weight: 600; line-height: 1.3; word-break: break-word; }
.dbj-disco-tile-edit {
  position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--grey);
  font-size: .72rem; cursor: pointer; font-family: inherit; text-decoration: underline;
}
.dbj-disco-tile-edit:hover { color: #fff; }
.dbj-disco-tile.span-2 { grid-column: span 2; }
.dbj-disco-tile.span-4 { grid-column: span 4; }

/* ---------- bottom controls ---------- */
.dbj-disco-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(20px, 6vw, 90px) 26px;
  background: linear-gradient(to top, var(--first-color) 40%, transparent);
}
.dbj-disco-controls-left { display: flex; align-items: center; gap: 14px; }
.dbj-disco-btn-back {
  background: none; border: 1px solid rgba(255,255,255,.22); color: #fff;
  border-radius: 40px; padding: 12px 22px; font-size: .95rem; font-family: inherit; cursor: pointer;
  transition: border-color .18s ease;
}
.dbj-disco-btn-back:hover { border-color: rgba(255,255,255,.5); }
.dbj-disco-btn-back[hidden] { display: none; }
.dbj-disco-btn-next {
  background: #fff; color: #000; border: none; border-radius: 40px;
  padding: 14px 30px; font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .2s ease;
}
.dbj-disco-btn-next:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,255,255,.12); }
.dbj-disco-btn-next:disabled { opacity: .35; cursor: not-allowed; }
.dbj-disco-keyhint { font-size: .78rem; color: var(--grey); opacity: .7; }

/* ---------- live scope panel (right side) ---------- */
.dbj-disco-side {
  flex: 0 0 400px;
  width: 400px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.015);
  overflow-y: auto;
  padding: 36px 30px 140px;
}
.dbj-side-empty {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  color: var(--grey);
}
.dbj-side-empty svg { opacity: .8; }
.dbj-side-empty p { font-size: .9rem; max-width: 220px; line-height: 1.5; }

.dbj-side-section { margin-bottom: 30px; }
.dbj-side-section:last-child { margin-bottom: 0; }
.dbj-side-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 14px;
}

.dbj-side-profile { display: flex; align-items: center; gap: 14px; }
.dbj-side-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem; color: #fff;
}
.dbj-side-profile-name { font-weight: 600; font-size: 1.05rem; }
.dbj-side-profile-company { font-size: .85rem; color: var(--grey); }

.dbj-side-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dbj-side-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 40px; padding: 8px 14px 8px 10px;
  font-size: .85rem; color: #fff;
}
.dbj-side-chip svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue2); }

.dbj-side-items { display: flex; flex-direction: column; gap: 2px; }
.dbj-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: .88rem; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dbj-side-item:last-child { border-bottom: none; }
.dbj-side-item-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue2); flex-shrink: 0; }
.dbj-side-item-label { flex: 1; }
.dbj-side-item-qty { color: var(--grey); font-size: .78rem; white-space: nowrap; }

.dbj-side-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.dbj-side-swatch {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dbj-side-estimate {
  border: 1px solid rgba(3, 186, 247, 0.35);
  background: rgba(3, 186, 247, 0.07);
  border-radius: 16px;
  padding: 18px 20px;
}
.dbj-side-estimate-value { font-size: 1.8rem; font-weight: 700; }
.dbj-side-estimate-sub { font-size: .78rem; color: var(--grey); margin-top: 4px; }

/* new items pop in instead of appearing flat */
@keyframes dbj-side-pop {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dbj-side-new { animation: dbj-side-pop .4s cubic-bezier(.16, 1, .3, 1) both; }

@media (hover: hover) { .dbj-disco-keyhint { display: inline; } }
@media (hover: none) { .dbj-disco-keyhint { display: none; } }

@media screen and (max-width: 1100px) {
  /* the live scope panel is a desktop enhancement - on narrower viewports the
     single-column question-at-a-time flow already works well on its own, and
     a squeezed side panel would just crowd it. */
  .dbj-disco-side { display: none; }
}

@media screen and (max-width: 767px) {
  .dbj-disco-bento { grid-template-columns: repeat(2, 1fr); }
  .dbj-disco-tile.span-2, .dbj-disco-tile.span-4 { grid-column: span 2; }
  .dbj-disco-scene-inner { padding-bottom: 130px; gap: 14px; }
  .dbj-disco-controls { flex-wrap: wrap; }
  .dbj-disco-keyhint { display: none; }
}

@media screen and (max-width: 479px) {
  .dbj-disco-topbar { gap: 14px; }
  .dbj-disco-amount { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dbj-disco-scene, .dbj-disco-progress-fill, .dbj-disco-compare-fill,
  .dbj-disco-timeline-seg, .dbj-disco-btn-next, .dbj-disco-card, .dbj-side-new {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .dbj-disco-scene { transform: none !important; }
}
