/* ============================================================
   How it works - guide page with interactive walkthroughs
   ============================================================ */

/* ---------- page hero ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(28px, 4.5vh, 56px));
  padding-bottom: clamp(28px, 4vh, 48px);
  text-align: center;
  background:
    radial-gradient(800px 380px at 20% -10%, rgba(74, 114, 255, 0.1), transparent 60%),
    radial-gradient(800px 380px at 80% -10%, rgba(191, 72, 255, 0.1), transparent 60%),
    var(--paper);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; }
.page-hero .section-sub { margin-left: auto; margin-right: auto; max-width: 620px; }
.hero-jump { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- big flow (the four steps from the deck) ---------- */
.flow-band { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
  position: relative;
}
.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flow-step .num {
  font: 800 0.72rem/1 var(--font-head);
  letter-spacing: 0.14em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.flow-step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; }
.flow-step p { font-size: 0.87rem; line-height: 1.6; color: var(--ink-soft); }
.flow-step::after {
  content: "→";
  position: absolute;
  right: -17px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--ink-dim);
  z-index: 1;
}
.flow-step:last-child::after { display: none; }

/* ---------- member walkthrough (sticky stepper) ---------- */
.walk-head { max-width: 660px; }
.walk-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  margin-top: 44px;
  /* stretch, so the stage is as tall as the step list rather than a fixed box
     with dead space under the mock - the home page's tour grid does the same */
  align-items: stretch;
}
.walk-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* start, not stretch: a sticky item needs slack inside its row to move in,
     and this column is what sets the row's height */
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.walk-step {
  text-align: left;
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
}
.walk-step:hover { background: var(--paper-soft); }
.walk-step.on { background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); }
.walk-step .w-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font: 800 0.95rem var(--font-head);
  color: var(--ink-dim);
  transition: all 0.25s ease;
}
.walk-step.on .w-num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(107, 93, 255, 0.35); }
.walk-step h3 { font-size: 1rem; font-weight: 800; }
.walk-step p { font-size: 0.86rem; line-height: 1.6; color: var(--ink-soft); margin-top: 6px; }

.walk-stage {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 85% 10%, rgba(191, 72, 255, 0.12), transparent 60%),
    radial-gradient(500px 260px at 10% 90%, rgba(74, 114, 255, 0.12), transparent 60%),
    var(--paper-soft);
  /* a floor only - the real height comes from the stretched grid row */
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.walk-screen {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.walk-screen.on { opacity: 1; transform: none; pointer-events: auto; }

/* step 1 - invite */
.invite-card { text-align: center; }
/* these two had no rules anywhere, so the circle's initial rendered as a bare
   letter and the meta line as run-on text */
.invite-card .preview-logo {
  width: 62px; height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--logo-bg, var(--grad));
  display: flex; align-items: center; justify-content: center;
  font: 800 1.5rem var(--font-head);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.invite-card .preview-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font: 600 0.82rem var(--font-body);
  color: var(--ink-dim);
}
.invite-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  background: var(--paper-soft);
  border: 1.5px dashed var(--ink-dim);
  border-radius: 99px;
  padding: 12px 20px;
  font: 600 0.85rem monospace;
  color: var(--ink-soft);
}
.invite-link b { color: var(--blue); }

/* step 2 - playground */
.playground .mock-label { margin-top: 18px; }
.playground input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #93c5fd, #c4b5fd, #f0abfc);
  outline: none;
  margin: 18px 0 6px;
}
.playground input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: var(--shadow-md);
  cursor: grab;
}
.playground .mock-pill { cursor: pointer; }
.find-match-btn { width: 100%; margin-top: 22px; }

/* The form and the match are two states of the same bubble. Stacking a result
   panel under the button pushed the mock past the stage, so the bubble flips
   instead: filters out, green check in. */
.playground .pg-done { display: none; }
.playground.matched .pg-form { display: none; }
.playground.matched .pg-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 4px 6px;
  animation: pg-flip 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pg-flip { from { opacity: 0; transform: scale(0.94); } }
.pg-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: #059669;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  animation: pg-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pg-pop { from { transform: scale(0); } }
.pg-check svg { width: 30px; height: 30px; }
.pg-done b { font: 800 1.3rem var(--font-head); color: var(--ink); }
.pg-who { font: 600 0.95rem var(--font-body); color: var(--ink-soft); margin-top: 8px; }
.pg-who span { font-weight: 800; color: var(--ink); }
.pg-detail { font: 600 0.8rem var(--font-body); color: var(--ink-dim); margin-top: 5px; }
.pg-done .btn { margin-top: 20px; }

/* step 3 - prompt deck */
.deck-wrap { text-align: center; width: 100%; max-width: 420px; }
.deck {
  position: relative;
  height: 240px;
  cursor: pointer;
  perspective: 900px;
}
.deck-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: var(--deep);
  color: #fff;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  overflow: hidden;
}
.deck-card::before {
  content: "";
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(191, 72, 255, 0.35);
  filter: blur(50px);
  right: -40px; top: -40px;
}
.deck-card.behind1 { transform: translateY(12px) scale(0.96); opacity: 0.55; z-index: -1; }
.deck-card.behind2 { transform: translateY(24px) scale(0.92); opacity: 0.25; z-index: -2; }
.deck-card.leaving { transform: translateX(120%) rotate(9deg); opacity: 0; }
.deck-card b { font: 700 0.66rem/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: #cabdff; margin-bottom: 14px; }
.deck-card .q { font: 600 1.15rem/1.5 var(--font-body); }
.deck-hint { margin-top: 18px; font-size: 0.82rem; color: var(--ink-dim); }

/* step 4 - connections */
.connect-stack { width: 100%; max-width: 420px; }

/* ---------- founders section ---------- */
.founder-band { background: var(--deep); color: #fff; }
.founder-band .eyebrow { color: #cabdff; }
.founder-band .section-title { color: #fff; }
.founder-band .section-sub { color: rgba(255, 255, 255, 0.7); }
.founder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}
.founder-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.founder-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.4);
}
.founder-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.founder-card p { font-size: 0.86rem; line-height: 1.65; color: rgba(255, 255, 255, 0.62); }
.founder-card .step-tag {
  position: absolute;
  top: 18px; right: 18px;
  font: 800 0.68rem var(--font-head);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

/* ---------- ice-breaker quote band ---------- */
.ice-band { text-align: center; }
.ice-band blockquote {
  font: 700 clamp(1.3rem, 2.8vw, 1.9rem) var(--font-head);
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto;
  color: var(--ink);
}
.ice-band blockquote em { font-style: normal; }
.ice-band .who { margin-top: 22px; color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow-step::after { display: none; }
  /* two rows, like the home page: the tab nav and its bubble over the stage */
  .walk-grid { grid-template-columns: 1fr; gap: 20px; }
  .walk-steps { display: none; }
  .tour-mnav { display: block; }
  .founder-grid { grid-template-columns: 1fr 1fr; }

  /* Adaptive height: the ACTIVE screen returns to the flow and sets the stage's
     height, so the padding around each mock is even instead of it floating in a
     fixed box (see the same fix on the home page's tour). */
  .walk-stage { min-height: 0; }
  .walk-screen.on { position: relative; inset: auto; }
}
@media (max-width: 560px) {
  .flow-steps { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
}

/* inline stroke icons sitting in running text */
.invite-link svg,
.deck-hint svg,
.inline-ico svg { width: 15px; height: 15px; flex-shrink: 0; vertical-align: -3px; }
.deck-hint, .inline-ico { display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
