:root {
  --accent: #c76f64;
  --ink: #303030;
  --paper: #ffffff;
  --ink-soft: rgba(48, 48, 48, 0.72);
  --paper-soft: rgba(255, 255, 255, 0.78);
  --paper-line: rgba(255, 255, 255, 0.42);
  --shadow: 0 24px 58px rgba(48, 48, 48, 0.2);
}

* {
  box-sizing: border-box;
  /* No accidental double-tap-to-zoom; pinch-zoom + scroll stay available. */
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(
      180deg,
      #ffffff 0,
      rgba(255, 255, 255, 0.96) 250px,
      rgba(255, 255, 255, 0.7) 430px,
      rgba(255, 255, 255, 0) 650px
    ),
    var(--accent);
  background-repeat: no-repeat;
  font-family: "DM Sans", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

h1,
h2,
p,
figure {
  margin: 0;
}

svg {
  display: block;
}

.tour-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  display: grid;
  width: min(1320px, calc(100% - 48px));
  height: 78px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
}

.tour-header::before {
  position: absolute;
  z-index: -1;
  inset: 8px -12px;
  background: rgba(199, 111, 100, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 9px 28px rgba(48, 48, 48, 0.08);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

body.has-scrolled .tour-header::before {
  opacity: 1;
}

.tour-brand,
.exit-link,
.tour-progress {
  display: inline-flex;
  align-items: center;
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom language dropdown — a styled trigger + our own menu, so the option
   list is clean and legible instead of the browser's native (dark) popup. */
.lang-select {
  position: relative;
}

.lang-trigger {
  display: grid;
  grid-template-columns: 16px auto 14px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(48, 48, 48, 0.14);
  font: 800 12px/1 "Manrope", Arial, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.lang-trigger:hover {
  box-shadow: 0 10px 26px rgba(48, 48, 48, 0.2);
  transform: translateY(-1px);
}

.lang-trigger:focus-visible {
  outline: none;
  border-color: rgba(199, 111, 100, 0.55);
  box-shadow: 0 0 0 3px rgba(199, 111, 100, 0.16), 0 10px 26px rgba(48, 48, 48, 0.18);
}

.lang-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.lang-current {
  text-align: left;
}

.lang-chevron {
  width: 13px;
  height: 13px;
  color: rgba(48, 48, 48, 0.55);
  transition: transform 220ms ease;
}

.lang-select[data-open="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  border-radius: 13px;
  box-shadow: 0 18px 40px rgba(48, 48, 48, 0.22);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--ink);
  border-radius: 9px;
  font: 700 12px/1.1 "Manrope", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lang-option + .lang-option {
  margin-top: 2px;
}

.lang-option:hover {
  background: rgba(48, 48, 48, 0.06);
}

.lang-option.is-selected {
  color: var(--accent);
  background: rgba(199, 111, 100, 0.12);
}

.lang-option.is-selected::after {
  content: "✓";
  margin-left: auto;
  padding-left: 14px;
  font-weight: 800;
}

.tour-brand {
  width: max-content;
  gap: 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.tour-brand strong span {
  color: var(--accent);
}

body.has-scrolled .tour-brand strong span {
  color: var(--paper);
}

.tour-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--accent);
  background: var(--paper);
  border-radius: 4px;
}

.tour-mark svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.tour-progress {
  gap: 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tour-progress span {
  letter-spacing: 0.09em;
}

.tour-progress b {
  padding: 7px 9px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 3px;
}

.exit-link {
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

html[lang="hi"] body,
html[lang="mr"] body {
  font-family: "Noto Sans Devanagari", "DM Sans", Arial, sans-serif;
}

html[lang="hi"] .welcome-copy h1,
html[lang="hi"] .step-copy h2,
html[lang="hi"] .trail-finish h2,
html[lang="mr"] .welcome-copy h1,
html[lang="mr"] .step-copy h2,
html[lang="mr"] .trail-finish h2 {
  font-family: "Noto Sans Devanagari", "DM Sans", Arial, sans-serif;
  font-weight: 700;
}

.exit-link svg {
  width: 17px;
  height: 17px;
}

.discovery-trail {
  position: relative;
  /* Cap narrower than the viewport so the walkthrough stays contained and does
     not feel oversized when the window is maximised on a large desktop. */
  width: min(1120px, 100%);
  min-height: 4511px;
  margin: 0 auto;
  overflow: hidden;
}

.trail-route {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.trail-route path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.route-edge {
  stroke: rgba(48, 48, 48, 0.82);
  stroke-width: 20;
}

.route-paper {
  stroke: var(--paper);
  stroke-width: 15;
}

.route-progress {
  stroke: var(--accent);
  stroke-width: 3;
}

.route-marker {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(48, 48, 48, 0.26);
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
  will-change: left, top, transform;
}

.route-marker::after {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  content: "";
  animation: marker-pulse 1.8s ease-out infinite;
}

.route-marker svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.trail-note {
  position: absolute;
  z-index: 5;
  display: grid;
  min-width: 146px;
  min-height: 48px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(48, 48, 48, 0.18);
  border-radius: 5px;
  box-shadow: 0 10px 24px rgba(48, 48, 48, 0.14);
  opacity: 0.38;
  transform: translate3d(-50%, calc(-50% + var(--parallax-y, 0px)), 0) scale(0.92);
  transition: opacity 360ms ease, transform 420ms ease, color 260ms ease, background 260ms ease;
  pointer-events: none;
}

.trail-note > svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  color: var(--paper);
  background: var(--accent);
  border-radius: 50%;
}

.trail-note span,
.trail-note small,
.trail-note b {
  display: block;
}

.trail-note small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.58;
}

.trail-note b {
  margin-top: 2px;
  font-size: 10px;
}

.trail-note.active {
  opacity: 1;
  transform: translate3d(-50%, calc(-50% + var(--parallax-y, 0px)), 0) scale(1.06);
  animation: note-arrive 600ms cubic-bezier(0.2, 0.75, 0.22, 1) both;
}

.trail-note.reached {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  opacity: 0.94;
}

/* Seated on the serpentine's centre-crossings (x≈600 / 50%), one just after each
   step, so every "Milestone" badge sits ON the curve instead of floating beside it. */
.note-one {
  top: 1260px;
  left: 50%;
}

.note-two {
  top: 1974px;
  left: 50%;
}

.note-three {
  top: 2772px;
  left: 50%;
}

.note-four {
  top: 3528px;
  left: 50%;
}

.trail-welcome,
.trail-step,
.trail-finish {
  position: relative;
  /* No z-index here on purpose: the scenes must NOT form a stacking context,
     so the route line can sit above the screenshot cards while the text panels
     (.step-copy, z-index 3) still sit above the route. */
}

.trail-welcome {
  display: grid;
  height: 546px;
  grid-template-columns: minmax(330px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 70px;
  padding: 110px 8% 62px;
}

.trail-label,
.step-kicker {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trail-label {
  color: var(--paper);
}

.welcome-copy {
  position: relative;
  z-index: 3;
}

.welcome-copy h1 {
  margin-top: 14px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.trail-welcome .trail-label {
  color: var(--accent);
}

.welcome-lede {
  max-width: 520px;
  margin-top: 20px;
  color: rgba(48, 48, 48, 0.8);
  font-size: 16px;
  line-height: 1.58;
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.format-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(48, 48, 48, 0.2);
  border-radius: 4px;
  box-shadow: 0 7px 18px rgba(48, 48, 48, 0.09);
  font-size: 10px;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.format-row span:hover {
  box-shadow: 0 11px 25px rgba(48, 48, 48, 0.15);
  transform: translateY(-3px);
}

.format-row svg {
  width: 14px;
  height: 14px;
}

.start-trail {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 17px;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.start-trail svg {
  width: 17px;
  height: 17px;
  animation: nudge-down 1.7s ease-in-out infinite;
}

.screen-card {
  position: relative;
  /* Sit behind the route line so the trail reads as one continuous path the
     cards rest on. The route only grazes card edges here, never their bodies. */
  z-index: 1;
  overflow: hidden;
  background: var(--paper);
  border: 0;
  border-radius: 7px;
  box-shadow: var(--shadow);
  transform-origin: center;
  transition: box-shadow 260ms ease;
}

/* Step 3 stacks two cards that the route genuinely passes through, so keep them
   above the line — the route weaves cleanly behind them instead of over them. */
.step-three .screen-card {
  z-index: 3;
}

.screen-card::after {
  position: absolute;
  z-index: 3;
  top: -8%;
  left: -18%;
  width: 20px;
  height: 116%;
  background: rgba(255, 255, 255, 0.34);
  content: "";
  opacity: 0;
  transform: rotate(10deg);
  pointer-events: none;
}

.trail-step.active .screen-card::after {
  animation: screen-sweep 950ms 180ms ease-out both;
}

.screen-card:hover {
  box-shadow: 0 30px 72px rgba(48, 48, 48, 0.27);
}

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
}

.welcome-screen {
  align-self: center;
  transform: rotate(1.25deg);
}

.welcome-screen img {
  transform: scale(1.01);
}

.screen-card figcaption {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #21aa60;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(33, 170, 96, 0.14);
}

.trail-step {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(530px, 1.3fr);
  align-items: center;
  gap: 7%;
  padding: 70px 8%;
}

.step-one,
.step-two {
  height: 714px;
}

.step-three {
  height: 882px;
  grid-template-columns: minmax(530px, 1.3fr) minmax(300px, 0.7fr);
}

.step-three .creation-visual {
  grid-column: 1;
  grid-row: 1;
}

.step-three .step-copy {
  grid-column: 2;
  grid-row: 1;
}

.feature-connectors {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.feature-connectors > path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.feature-connectors marker path {
  fill: #14141a;
  stroke: none;
}

.feature-connectors .connector-line {
  stroke: #14141a;
  stroke-width: 3;
  stroke-linecap: round;
  marker-end: url(#feature-arrowhead);
}

.has-motion .feature-connectors .connector-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.has-motion .step-three.active .feature-connectors .connector-line,
.has-motion .step-three.passed .feature-connectors .connector-line {
  animation: draw-connector 900ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

/* Reveal the three arrows ONE BY ONE (each ~after the previous finishes) so a
   visitor's eye is walked through the features in turn, not all at once. Each
   arrow lands just after its own feature card has faded in (see the matching
   .feature-list-strong stagger below). */
.feature-connectors .connector-one {
  animation-delay: 150ms !important;
}

.feature-connectors .connector-two {
  animation-delay: 1000ms !important;
}

.feature-connectors .connector-three {
  animation-delay: 1850ms !important;
}

/* The connectors depend on the precise two-column geometry — hide them once the
   layout tightens/stacks so they never point at the wrong place on small screens. */
@media (max-width: 980px) {
  .feature-connectors { display: none; }
}

.mobile-feature-hint {
  display: none;
}

.step-four {
  height: 714px;
  align-items: end;
  padding-bottom: 55px;
}

.listing-outcome {
  height: 546px;
  align-items: start;
  padding-top: 65px;
}

.step-two,
.step-four {
  grid-template-columns: minmax(530px, 1.3fr) minmax(300px, 0.7fr);
}

.step-copy {
  position: relative;
  z-index: 3;
  max-width: 410px;
  isolation: isolate;
}

.step-copy::before {
  position: absolute;
  z-index: -1;
  inset: -28px -22px;
  background: var(--accent);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-number {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 29px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.step-number::after {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  content: "";
  opacity: 0;
}

.trail-step.active .step-number,
.step-number:hover {
  color: var(--ink);
  background: var(--paper);
  transform: rotate(-7deg) scale(1.05);
}

.trail-step.active .step-number::after {
  animation: number-pulse 1.7s ease-out infinite;
}

.step-kicker {
  color: rgba(48, 48, 48, 0.66);
}

.step-copy h2 {
  max-width: 340px;
  margin-top: 5px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 39px;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

.step-description {
  max-width: 385px;
  margin-top: 19px;
  color: rgba(48, 48, 48, 0.8);
  font-size: 14px;
  line-height: 1.58;
}

.feature-list {
  display: grid;
  max-width: 365px;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  min-height: 54px;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 5px;
  box-shadow: 0 9px 22px rgba(48, 48, 48, 0.11);
  opacity: 1;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.feature-list li:hover,
.trail-step.active .feature-list-strong li {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(48, 48, 48, 0.16);
  transform: translateX(6px);
}

.trail-step.active .feature-list li {
  animation: feature-focus 2.4s ease-in-out infinite alternate;
}

.trail-step.active .feature-list li:nth-child(2) {
  animation-delay: 180ms;
}

.trail-step.active .feature-list li:nth-child(3) {
  animation-delay: 360ms;
}

.feature-list svg {
  width: 34px;
  height: 34px;
  justify-self: center;
  padding: 8px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  stroke-width: 1.8;
}

.feature-list span,
.feature-list b,
.feature-list small {
  display: block;
}

.feature-list b {
  font-size: 12px;
  line-height: 1.2;
}

.feature-list small {
  margin-top: 3px;
  color: currentColor;
  font-size: 9.5px;
  line-height: 1.25;
  opacity: 0.7;
}

.step-screen {
  width: 100%;
  max-width: 680px;
  justify-self: center;
}

.step-one .step-screen {
  max-width: 630px;
  max-height: 630px;
}

.step-one .step-screen img {
  transform: scale(1.015);
}

.profile-screen {
  max-height: 630px;
}

.profile-crop {
  height: 624px;
  overflow: hidden;
}

.profile-crop img {
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
}

.image-callout {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--paper);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(48, 48, 48, 0.2);
  font-size: 10px;
  font-weight: 800;
}

.image-callout svg {
  width: 15px;
  height: 15px;
}

.trail-step.active .image-callout {
  animation: callout-nudge 1.9s ease-in-out infinite;
}

.login-callout {
  top: 53%;
  right: 7%;
}

.profile-callout {
  top: 9%;
  right: 7%;
}

.creation-visual {
  position: relative;
  min-height: 720px;
}

.details-screen {
  position: absolute;
  top: 10px;
  right: 0;
  width: 92%;
  max-height: 630px;
}

.details-screen img {
  width: 100%;
}

.details-callout {
  top: 10%;
  right: 7%;
}

.feature-screen {
  position: absolute;
  z-index: 5;
  right: auto;
  bottom: 12px;
  left: 0;
  width: 84%;
  transform: rotate(-1.5deg);
}

.feature-screen figcaption svg {
  width: 15px;
  height: 15px;
}

.share-screen {
  max-width: 600px;
}

.share-callout {
  right: 7%;
  bottom: 8%;
}

.listing-title-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.listing-icon {
  display: grid;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.2);
}

.listing-icon svg {
  width: 27px;
  height: 27px;
}

.listing-copy h2 {
  max-width: 360px;
}

.listing-screen {
  width: 100%;
  max-width: 720px;
  justify-self: center;
}

.listing-callout {
  right: 6%;
  bottom: 7%;
}

.trail-finish {
  display: grid;
  height: 395px;
  /* Start-aligned with a tall top pad so the content sits below the animated
     completion check (the route lands just above "You're all set"). */
  align-content: start;
  justify-items: center;
  padding: 118px 24px 50px;
  text-align: center;
}

.trail-finish h2 {
  margin-top: 9px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.primary-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 0 19px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.primary-cta svg {
  width: 17px;
  height: 17px;
}

.replay-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  color: rgba(48, 48, 48, 0.7);
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.replay-button svg {
  width: 13px;
  height: 13px;
}

.screen-card > img,
.profile-crop img {
  cursor: zoom-in;
}

.image-preview {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px;
  color: var(--paper);
  background: rgba(48, 48, 48, 0.96);
  border: 0;
}

.image-preview[open] {
  display: grid;
  place-items: center;
}

.image-preview::backdrop {
  background: rgba(48, 48, 48, 0.76);
}

.image-preview-inner {
  position: relative;
  display: grid;
  width: min(1100px, 94vw);
  height: min(880px, 90vh);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 12px;
}

.image-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.image-preview p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.image-preview button {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: -12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.image-preview button svg {
  width: 19px;
  height: 19px;
}

.has-motion .reveal {
  opacity: 0;
  transition: opacity 680ms ease, transform 760ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.has-motion .reveal.from-left {
  transform: translate3d(-54px, 18px, 0);
}

.has-motion .reveal.from-right {
  transform: translate3d(54px, 18px, 0);
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.has-motion .feature-list li {
  opacity: 0;
  transform: translateY(13px);
  transition: opacity 430ms ease, transform 430ms ease, background 220ms ease, color 220ms ease;
}

.has-motion .is-visible .feature-list li,
.has-motion .trail-step.active .feature-list li {
  opacity: 1;
  transform: translateY(0);
}

.has-motion .feature-list li:nth-child(2) {
  transition-delay: 90ms;
}

.has-motion .feature-list li:nth-child(3) {
  transition-delay: 180ms;
}

.has-motion .trail-step.active .feature-list-strong li {
  transform: translateX(6px);
}

/* Step-3 features fade in ONE BY ONE, each just before its arrow draws to it, so
   the whole "here's what you can do" reveal reads as a guided sequence. Scoped to
   the strong list so the other steps keep their quick, near-together reveal. */
.has-motion .step-three .feature-list-strong li:nth-child(1) { transition-delay: 0ms; }
.has-motion .step-three .feature-list-strong li:nth-child(2) { transition-delay: 850ms; }
.has-motion .step-three .feature-list-strong li:nth-child(3) { transition-delay: 1700ms; }

@keyframes nudge-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes marker-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes note-arrive {
  0% {
    opacity: 0;
    margin-top: 18px;
  }
  100% {
    opacity: 1;
    margin-top: 0;
  }
}

@keyframes screen-sweep {
  0% {
    left: -18%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes number-pulse {
  0% {
    opacity: 0.75;
    transform: scale(0.82);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes feature-focus {
  0% {
    box-shadow: 0 9px 22px rgba(48, 48, 48, 0.11);
  }
  100% {
    box-shadow: 0 13px 28px rgba(48, 48, 48, 0.2);
  }
}

@keyframes callout-nudge {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -5px;
  }
}

@keyframes draw-connector {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 980px) {
  .trail-welcome,
  .trail-step,
  .step-two,
  .step-four {
    grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr);
    gap: 5%;
    padding-right: 5%;
    padding-left: 5%;
  }

  .step-two,
  .step-four {
    grid-template-columns: minmax(430px, 1.22fr) minmax(260px, 0.78fr);
  }

  .step-three {
    grid-template-columns: minmax(430px, 1.22fr) minmax(260px, 0.78fr);
  }

  .welcome-copy h1 {
    font-size: 50px;
  }

  .step-copy h2 {
    font-size: 34px;
  }

  .step-number {
    width: 58px;
    height: 58px;
    font-size: 25px;
  }
}

@media (max-width: 760px) {
  .tour-header {
    width: calc(100% - 32px);
    height: 68px;
    grid-template-columns: 1fr auto;
  }

  .tour-progress {
    display: none;
  }

  .exit-link span {
    display: none;
  }

  .header-actions {
    gap: 5px;
  }

  .lang-trigger {
    min-height: 36px;
    grid-template-columns: auto 12px;
    gap: 6px;
    padding: 0 12px;
    font-size: 11px;
  }

  .lang-trigger .lang-icon {
    display: none;
  }

  .exit-link {
    width: 32px;
    height: 36px;
    justify-content: center;
  }

  .discovery-trail {
    --mobile-safe: clamp(26px, 7vw, 32px);
    min-height: 0;
    padding-left: 0;
  }

  .trail-route {
    left: 0;
    width: 100%;
    /* Mobile stacks cards full-width; keep the line behind them as before. */
    z-index: 0;
  }

  .route-marker {
    z-index: 1;
  }

  .screen-card,
  .step-three .screen-card {
    z-index: 2;
  }

  .trail-note {
    display: none;
  }

  .feature-connectors {
    display: none;
  }

  .mobile-feature-hint {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--paper);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-feature-hint svg {
    width: 17px;
    height: 17px;
    animation: nudge-down 1.7s ease-in-out infinite;
  }

  .route-edge {
    stroke-width: 9;
  }

  .route-paper {
    stroke-width: 5;
  }

  .route-progress {
    stroke-width: 2;
  }

  .trail-welcome,
  .trail-step,
  .step-two,
  .step-four {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 78px var(--mobile-safe) 56px;
  }

  .trail-welcome {
    padding-top: 104px;
  }

  .trail-step {
    scroll-margin-top: 78px;
  }

  .step-one,
  .step-three {
    flex-direction: column;
  }

  .step-two,
  .step-four {
    flex-direction: column-reverse;
  }

  .step-three {
    padding-bottom: 62px;
  }

  .listing-outcome {
    padding-top: 84px;
  }

  .listing-title-row {
    gap: 11px;
  }

  .listing-icon {
    width: 52px;
    height: 52px;
  }

  .listing-icon svg {
    width: 22px;
    height: 22px;
  }

  .listing-copy h2 {
    max-width: none;
  }

  .listing-screen {
    width: 100%;
  }

  .welcome-copy h1 {
    font-size: 45px;
  }

  .welcome-lede {
    max-width: 310px;
    font-size: 15px;
    line-height: 1.62;
  }

  .welcome-screen {
    transform: none;
  }

  .step-copy {
    width: 100%;
    max-width: none;
    background: var(--accent);
    border-radius: 8px;
  }

  .step-copy::before {
    inset: -22px -12px;
  }

  .step-heading {
    align-items: flex-start;
  }

  .step-number {
    width: 58px;
    height: 58px;
    font-size: 25px;
  }

  .step-copy h2 {
    max-width: 270px;
    font-size: 32px;
  }

  .step-description {
    margin-top: 21px;
    font-size: 14px;
    line-height: 1.65;
  }

  .feature-list {
    width: 100%;
    max-width: none;
    gap: 10px;
    margin-top: 24px;
  }

  .feature-list li {
    min-height: 60px;
    grid-template-columns: 42px 1fr;
    padding: 9px 12px;
  }

  .feature-list svg {
    width: 36px;
    height: 36px;
  }

  .feature-list b {
    font-size: 13px;
  }

  .feature-list small {
    font-size: 10.5px;
  }

  .step-screen,
  .profile-screen {
    width: 100%;
    max-height: none;
  }

  .profile-crop {
    height: auto;
    max-height: 520px;
  }

  .creation-visual {
    width: 100%;
    min-height: 500px;
  }

  .details-screen {
    width: 100%;
  }

  .feature-screen {
    right: auto;
    left: 0;
    width: 90%;
  }

  .image-callout {
    min-height: 32px;
    max-width: calc(100% - 20px);
    padding: 0 9px;
    font-size: 8px;
  }

  .image-preview {
    padding: 14px;
  }

  .image-preview-inner {
    width: 100%;
    height: calc(100dvh - 28px);
  }

  .image-preview button {
    top: 2px;
    right: 2px;
  }

  .trail-finish {
    height: auto;
    min-height: 480px;
    align-content: center;
    padding: 90px var(--mobile-safe) 78px;
  }

  .trail-finish h2 {
    max-width: 320px;
    font-size: 31px;
  }

  .format-row {
    gap: 9px;
  }

  .format-row span {
    min-height: 42px;
    padding: 0 12px;
    font-size: 11px;
  }

  .start-trail,
  .primary-cta {
    min-height: 48px;
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .discovery-trail {
    padding-left: 0;
  }

  .trail-route {
    width: 100%;
  }

  .tour-brand strong {
    font-size: 13px;
  }

  .tour-mark {
    width: 32px;
    height: 32px;
  }

  .welcome-copy h1 {
    font-size: 38px;
    line-height: 1;
  }

  .format-row span {
    width: 100%;
  }

  .step-heading {
    gap: 10px;
  }

  .step-copy h2 {
    font-size: 30px;
  }

  .step-description {
    font-size: 14px;
  }

  .creation-visual {
    min-height: 440px;
  }

  .login-callout {
    left: 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Revisions ────────────────────────────────────────────────────────────
   Header bar removed — only the language picker floats, top-left. */
.tour-lang {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 16px;
}

/* Brand mark — centred at the top, logo only (no chip/button around it). */
.tour-logo {
  position: fixed;
  z-index: 50;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.tour-logo img {
  display: block;
  height: 26px;
  width: auto;
}

@media (max-width: 760px) {
  .tour-logo {
    top: 20px;
  }
  .tour-logo img {
    height: 20px;
  }
}

/* Traveler marker: an arrow while it travels; a check mark once it reaches the
   end (and it stops turning — rotation is zeroed in journey.js). */
.route-marker .marker-check { display: none; }
.route-marker.is-complete .marker-arrow { display: none; }
.route-marker.is-complete .marker-check { display: block; }
.route-marker.is-complete {
  background: var(--accent);
  border-color: var(--paper);
}
.route-marker.is-complete::after { animation: none; opacity: 0; }
