/* ==========================================================================
   The tour: what Pinglo does, screen by screen.
   Built on site.css (type, colour, nav, buttons, the form and the FAQ). No 3D club here:
   the real product's screens are the picture, framed as a browser and a phone.
   ========================================================================== */

.tour-page {
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(35, 86, 232, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(216, 255, 58, 0.06), transparent 60%),
    var(--bg);
}

.tour-page h1,
.tour-page h2,
.tour-page h3 {
  font-family: var(--display);
  text-wrap: balance;
}
.tour-page h1 em,
.tour-page h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--optic);
  letter-spacing: 0;
}

/* --- Frames ---------------------------------------------------------------- */

.browser {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f5f7;
  border: 1px solid rgba(238, 242, 255, 0.14);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.browser__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  background: #e6e8ec;
  border-bottom: 1px solid #d5d8de;
}
.browser__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c3c7cf;
}
.browser img {
  width: 100%;
  height: auto;
}

.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 390 / 780;
  border-radius: 38px;
  padding: 10px;
  background: #0d1220;
  border: 1px solid rgba(238, 242, 255, 0.16);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.95), inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 29px;
}

/* --- Hero ------------------------------------------------------------------ */

.tour-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) var(--gutter) clamp(56px, 8vw, 110px);
  max-width: 1440px;
  margin: 0 auto;
}
.tour-hero__copy {
  display: grid;
  gap: 22px;
  align-content: start;
}
.tour-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: 0.95;
  font-weight: 780;
  font-stretch: 106%;
  letter-spacing: -0.04em;
}
.tour-lede {
  font-size: clamp(17px, 1.45vw, 20px);
  color: var(--text-2);
  max-width: 54ch;
}
.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.tour-hero__shots {
  --float-w: clamp(150px, 17vw, 230px);
  position: relative;
  margin: 0;
  padding-bottom: 40px;
}
.tour-hero__shots .browser {
  margin-right: clamp(40px, 9vw, 120px);
}
.phone--float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--float-w);
}
/* The caption stops short of the phone, which overlaps the browser's corner. */
.tour-hero__shots .tour-note {
  max-width: calc(100% - var(--float-w) - 20px);
}
.tour-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-3, rgba(238, 242, 255, 0.5));
}
.tour-note--center {
  text-align: center;
  margin-top: clamp(32px, 5vw, 56px);
}

/* --- Sections --------------------------------------------------------------- */

.tour-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  scroll-margin-top: var(--nav-h);
}
.tour-section__head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.tour-section h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.035em;
}
.tour-section h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* The customer's side: two phones around the three steps. */
.customer-flow {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
  counter-reset: step;
}
.flow-steps li {
  display: grid;
  gap: 8px;
  padding-left: 52px;
  position: relative;
  counter-increment: step;
}
.flow-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--optic);
}
.flow-steps p,
.feature__copy p,
.pilot p {
  color: var(--text-2);
}
.tour-channels {
  margin-top: clamp(32px, 5vw, 56px);
  text-align: center;
  color: var(--text-2);
}
.tour-channels strong {
  color: var(--text);
  font-weight: 600;
}

/* The team's side: screen and words, alternating. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px) 0;
}
.feature--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
}
.feature--flip .feature__copy {
  order: 2;
}
.feature__copy {
  display: grid;
  gap: 12px;
}

/* The pilot, in four steps. */
.pilot {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pilot li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(11, 17, 34, 0.7);
}
.pilot__n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--optic);
}

/* The home page's form section, without its cinematic scroll space. */
.tour-join {
  min-height: 0;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  scroll-margin-top: var(--nav-h);
}
.tour-join::before {
  display: none;
}
.tour-join .join__title {
  font-size: clamp(2.6rem, 5vw, 5rem);
}
.tour-join__try {
  margin-top: 18px;
  color: var(--text-2);
}
.tour-join__try a {
  color: var(--optic);
}
.tour-faq {
  scroll-margin-top: var(--nav-h);
}

/* --- Narrow screens ------------------------------------------------------------ */

@media (max-width: 1000px) {
  .tour-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .customer-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .customer-flow .flow-steps {
    grid-column: 1 / -1;
    order: -1;
  }
  .customer-flow .phone {
    justify-self: center;
  }
  .feature,
  .feature--flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature--flip .feature__copy {
    order: 0;
  }
  .pilot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nav__links {
    display: none;
  }
  .tour-hero__shots .browser {
    margin-right: 64px;
  }
  .tour-hero__shots {
    --float-w: 132px;
  }
  .customer-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .pilot {
    grid-template-columns: minmax(0, 1fr);
  }
}
