/* ==========================================================================
   Webbotica — Hero Journey
   Owns: the browser window and its interactive business-name preview.
   Knows nothing about headline/copy/CTA.
   ========================================================================== */

.wb-journey {
  max-width: 460px;
  margin-inline-start: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .wb-hero--ready .wb-journey {
    animation: wb-journey-in 0.9s var(--ease-out) 0.35s both;
  }
}

@keyframes wb-journey-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wb-journey__frame {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.wb-journey__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  background: #F7F7F5;
  border-bottom: 1px solid var(--color-border);
  padding: 0 16px;
}

.wb-journey__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12.5px;
  color: var(--color-paragraph);
  max-width: 100%;
}

.wb-journey__url svg { flex-shrink: 0; opacity: 0.55; }

.wb-journey__url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Viewport: fixed height so it doesn't jump as steps reveal ---- */
.wb-journey__viewport {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 36px 32px;
  background: #fff;
}

.wb-journey__stage {
  width: 100%;
  transition: opacity 0.55s var(--ease-out);
}

.wb-journey__stage.is-fading {
  opacity: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- The input: always visible, always real, never fake ---- */
.wb-journey__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 16px;
  margin: 4px 4px 0 4px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  cursor: text;
}

.wb-journey__input-row:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(73, 106, 249, 0.12);
}

.wb-journey__input-row svg {
  flex-shrink: 0;
  color: var(--color-paragraph);
  opacity: 0.6;
}

.wb-journey__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-heading);
  padding: 0;
}

.wb-journey__input::placeholder {
  color: var(--color-paragraph);
}

/* ---- Steps: hidden until the business name is "entered" ---- */
.wb-journey__steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 300px;
  margin-inline: auto;
}

.wb-journey__step {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.wb-journey__step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wb-journey__step-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(73, 106, 249, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-journey__step-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-heading);
}

/* ---- Completion state: connected to the list above it, not floating
   alone in an empty browser ---- */
.wb-journey__complete {
  margin: 20px 0 0;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.wb-journey__complete.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wb-journey__complete-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-paragraph);
}

.wb-journey__complete-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-journey__final {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---- Mobile: browser peeks into the first screen, cropped and faded ---- */
@media (max-width: 860px) {
  .wb-journey {
    position: relative;
    max-width: none;
    margin-inline-start: 0;
    max-height: 48vh;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 98%, transparent 100%);
    mask-image:linear-gradient(to bottom, #000 98%, transparent 100%);
  }

  .wb-journey__viewport {
    min-height: 320px;
    padding: 0;
  }
}