/* The public demo page at /demo.
 *
 * Only the page around the walkthrough. The walkthrough itself is the real app
 * at /plan?demo=…&tour=1 — a spotlight tour over live screens, styled by
 * plan.css — which is the point: if this page needed its own version of a
 * question screen, the demo would drift.
 */

/* The page sits a shade darker than the launcher card, so the card — the
   thing the home page's "see inside a real plan" click promised — reads as
   the one bright object on the page. */
.demo-body {
  background: var(--paper-alt);
}

.demo-top {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.demo-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.demo-hero {
  max-width: 40rem;
  padding: 3rem 0 2rem;
}

.demo-hero h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
}

.demo-hero__meta {
  font-size: 0.875rem;
  color: var(--gray);
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
  max-width: 34rem;
}

/* -------------------------------------------------------- the launcher */

.demo-launch {
  border: 2.5px solid var(--green);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 2px 4px rgba(56, 56, 59, 0.07), 0 12px 32px rgba(56, 56, 59, 0.11);
  padding: 2rem 2.25rem;
  margin: 0.5rem 0 3rem;
  max-width: 44rem;
}

.demo-launch h2 {
  margin-top: 0;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
}

.demo-launch p {
  color: var(--ink-soft);
}

.demo-launch__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.25rem;
}

/* -------------------------------------------------------------- the close */

.demo-close {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 4rem;
}

.demo-close__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 2.5rem;
}

.ladder {
  margin: 0;
}

.ladder dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-top: 1rem;
}

.ladder dd {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.demo-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* Launch pricing anchor. Disappears on its own when PRICING.planLaunch is
   null — there is no separate switch to remember. */
.demo-was {
  margin-left: 0.3rem;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 0.8em;
}

/* -------------------------------------------- the other three samples */

.demo-others {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.demo-others__lede {
  font-size: 0.9375rem;
  color: var(--gray);
  margin: 0 0 0.5rem;
}

.demo-others__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.demo-others__list li {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.demo-others__list a {
  font-weight: 600;
}

.demo-others__list span::before {
  content: '— ';
  color: var(--gray);
}

/* ------------------------------------------------------ the testimonial */

.demo-quote {
  margin: 2.5rem 0 0;
  max-width: 44rem;
}

.demo-quote blockquote {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--green);
  padding-left: 1.1rem;
}

.demo-quote figcaption {
  margin: 0.6rem 0 0 1.35rem;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
}

/* -------------------------------------------------------- the sticky bar */

.demo-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -4px 16px rgba(56, 56, 59, 0.08);
}

.demo-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.demo-bar__label {
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.demo-bar__label b {
  color: var(--ink);
}

.demo-bar__alt {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

@media (max-width: 700px) {
  /* On a phone the bar keeps only the two actions; the product name is the
     page they are already on. */
  .demo-bar__label {
    display: none;
  }

  .demo-bar__alt {
    margin-left: 0;
    white-space: normal;
  }

  .demo-bar__inner {
    justify-content: space-between;
  }
}

.demo-bar .btn--primary {
  white-space: nowrap;
}

/* The one-line "who built it" under the quote, at the moment of asking for
   money. Sits with the quote, not with the buttons below it. */
.demo-by {
  margin: 1rem 0 0;
  max-width: 44rem;
}
