/* Guided demo (/demo). Sits on top of landing.css: nav, buttons, stage, calc controls
   come from there; this file only adds the hero, stepper, step layout and booking cards. */

.demo-hero { margin-top: 12px; }
.demo-hero .inner { max-width: 60em; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px); }
.demo-hero h1 { margin-bottom: 22px; font-size: clamp(38px, 4.6vw, 72px); line-height: 1; color: var(--gn-stage-ink); }

/* Stepper */
.walk { padding-top: clamp(32px, 4vw, 56px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 clamp(20px, 2.5vw, 32px); padding: 0; list-style: none; scroll-margin-top: 84px; }
.steps button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px;
  border: 1px solid var(--gn-hairline); border-radius: var(--gn-r-ctl); background: var(--gn-surface);
  font: 500 14.5px/1.25 var(--gn-font); color: var(--gn-muted); text-align: left; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.steps b {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gn-hairline-strong); font: 600 13px var(--gn-mono); color: var(--gn-muted);
}
.steps button:not(:disabled):hover { border-color: var(--gn-hairline-strong); color: var(--gn-ink); }
.steps button[aria-selected="true"] { border-color: var(--gn-focus); color: var(--gn-ink); }
.steps button[aria-selected="true"] b { border: 0; background: var(--gn-grad); color: #fff; }
.steps button.done b { border-color: var(--gn-ok); background: var(--gn-ok-bg); color: var(--gn-ok-ink); }
.steps button:disabled { cursor: not-allowed; opacity: .55; }

/* Step layout: explanation left, the thing right */
.step { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.step[hidden], .made[hidden], .paid[hidden], #create[hidden] { display: none; }
.calc.mock { gap: 14px; padding: clamp(20px, 2.4vw, 28px); }
.step h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; }
.explain { position: sticky; top: 164px; }
.points { display: grid; gap: 12px; margin-top: 22px; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; }
.points i { margin-top: 4px; color: var(--gn-link); }
.explain > .btn, .paid { margin-top: 24px; }
.paid { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Mock merchant UI (form, order, webhook) */
.mock label, .grid2 label { display: grid; gap: 4px; font-size: 14px; color: var(--gn-muted); }
.mock input, .grid2 input {
  width: 100%; min-height: 42px; padding: 8px 14px; border: 1px solid var(--gn-hairline-strong);
  border-radius: var(--gn-r-ctl); background: var(--gn-page); font: 500 16px var(--gn-font); color: var(--gn-ink);
}
.mock input:focus, .grid2 input:focus { outline: none; border-color: var(--gn-focus); box-shadow: 0 0 0 3px var(--gn-selected); }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.mock-head small { font: 12px var(--gn-mono); font-weight: 400; color: var(--gn-muted); }
.made { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--gn-hairline); }
.made code, .mono { font-family: var(--gn-mono); font-size: 14px; overflow-wrap: anywhere; }
.paylink { text-decoration: none; }
.paylink:hover code { outline: 1px solid var(--gn-focus); }
.made code { display: block; padding: 12px 14px; border-radius: var(--gn-r-ctl); background: var(--gn-surface-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px; border-radius: var(--gn-r-pill); font: 500 13px var(--gn-font); }
.chip.ok { background: var(--gn-ok-bg); color: var(--gn-ok-ink); }
.row b { font-weight: 500; text-align: right; }

.side { display: grid; gap: 12px; }
/* Order + webhook together fit a 768px-tall laptop. */
.side .row { padding-block: 9px; }
.side .row strong { font-size: 18px; }
.hook { display: grid; gap: 10px; padding: clamp(18px, 2.2vw, 22px) clamp(20px, 2.4vw, 28px); border-radius: var(--gn-r-stage); background: var(--gn-stage); border: 1px solid var(--gn-stage-line); color: var(--gn-stage-ink); }
.hook .mock-head small { color: var(--gn-stage-muted); }
.hook pre { margin: 0; overflow-x: auto; font: 12.5px/1.45 var(--gn-mono); color: var(--gn-stage-ink); }

/* The real checkout, framed */
.frame { border-radius: var(--gn-r-stage); border: 1px solid var(--gn-hairline); overflow: hidden; background: var(--gn-surface); box-shadow: var(--gn-shadow-float); }
/* Fits the screen under the nav + stepper, so the coin list and the done popup are never cut off. */
.frame { scroll-margin-top: 76px; }
.frame iframe { display: block; width: 100%; height: clamp(520px, calc(100svh - 200px), 820px); border: 0; }

/* Calculator extras */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rev label { display: flex; justify-content: space-between; gap: 12px; }
.rev label b { color: var(--gn-ink); }
.save strong.grad { width: fit-content; }

/* Booking */
.call { scroll-margin-top: 72px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.person {
  display: grid; grid-template-columns: 72px 1fr; grid-template-rows: 1fr auto; gap: 18px 20px; align-items: start;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--gn-r-stage); border: 1px solid var(--gn-hairline); background: var(--gn-surface);
}
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--gn-surface-2); }
.person h3 { font-size: 22px; }
.person .role { margin: 2px 0 10px; font: 13px var(--gn-mono); color: var(--gn-muted); }
.person p:last-child { color: var(--gn-muted); }
.person .btn { grid-column: 1 / -1; }
.person[hidden] { display: none; }
.call .note a { color: var(--gn-link); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .frame iframe { height: calc(100svh - 92px); }
  .step, .people { grid-template-columns: 1fr; }
  .explain { position: static; }
  /* Phone: show the order / calculator before the button that moves on. */
  #step-3, #step-4 { row-gap: 0; }
  #step-3 .explain, #step-4 .explain { display: contents; }
  #step-3 .explain > .btn, #step-4 .save, #step-4 .ctas { order: 2; }
  #step-3 .side, #k-calc { margin-top: 24px; }
  .demo-hero .ctas .btn { width: 100%; }
}
@media (max-width: 560px) {
  .steps button span { font-size: 13px; }
  .grid2 { grid-template-columns: 1fr; }
}
