/* /try/: the Sunday Visit app in a phone frame (the demo itself is /try/app/, scripts/try-demo.mjs).
   Phones: the words, then the phone, then the notes. Wider screens: the words on the left, the phone beside them. */
.sv-try {
  width: calc(100% - 32px);
  width: min(100% - 32px, 66rem);
  margin: 0 auto;
  padding: 20px 0 40px;
  display: grid;
  gap: 20px;
}
.sv-try-intro .sv-page-lead { margin-bottom: 0; }
/* The phone is always a real phone's screen, 390 x 844 (the Penpot boards' size), so the app lays out exactly as
   it does on a phone. try.js scales the whole phone down, never stretching it, until all of it fits on the screen
   below the site header. Without JavaScript the demo can't run anyway, so it shows at full size. */
.sv-try-phone { position: relative; width: 100%; height: 864px; overflow-x: clip; scroll-margin-top: 84px; }
.sv-try-device {
  position: absolute;
  top: 0;
  left: 50%;
  width: 410px;
  height: 864px;
  margin-left: -205px;
  padding: 10px;
  border-radius: 54px;
  background: #13243b;
  box-shadow: 0 18px 50px rgba(19, 36, 59, 0.22);
  transform-origin: top left;
}
.sv-try-frame {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  border-radius: 44px;
  background: #f6f1e8;
}
.sv-try-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.sv-try-full { background: #fff; color: #1f4a39; box-shadow: inset 0 0 0 2px #1f4a39; }
.sv-try-about ul { padding-left: 1.2em; }
/* "Go straight to a game": four links to /play/, each a full-height tap target. */
.sv-try-about ul.sv-try-games { list-style: none; padding-left: 0; }
.sv-try-games a { display: inline-block; min-height: 48px; padding: 11px 0; box-sizing: border-box; font-weight: 600; }
/* "Send it to someone": the first name, then the link (hidden until try.js runs). */
.sv-try-send[hidden] { display: none; }
.sv-try-send label { display: block; font-weight: 600; color: #13243b; margin: 0 0 6px; }
.sv-try-send input {
  display: block; width: 100%; max-width: 24rem; box-sizing: border-box; min-height: 56px;
  font: 400 1.1875rem/1.4 "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif; color: #13243b;
  background: #f6f1e8; border: 1.5px solid rgba(19, 36, 59, .25); border-radius: 12px; padding: .65rem .875rem; margin: 0;
}
.sv-try-send input:focus-visible { outline: 3px solid #8a6420; outline-offset: 3px; }
.sv-try-send-help { color: #4f4a42; margin: 8px 0 14px; }
.sv-try-send-result { margin: 14px 0 0; }
.sv-try-send-result input { margin-top: 8px; max-width: 100%; font-size: 1.125rem; }
/* The way to the stores is /site/get-app.css's block (PLAY-FUNNEL): the visitor's own store on a phone, both stores
   and a code to scan on a computer. Here it sits in the page's own card, so it keeps to the card's width. */
.sv-try .sv-getapp { margin: 14px 0 18px; }
.sv-try-marks { color: #4f4a42; font-size: 1.125rem; }

/* WebViews before Chrome 84 and Safari 14.1 ignore flex gap, so the buttons would touch. Engines that far back never know inset (Chrome 87 / Safari 14.1)
   either, so they get the same spacing as margins instead; anything newer keeps the gaps above. */
@supports not (inset: 0) {
  .sv-try-actions { gap: normal; margin: -6px -6px 22px; }
  .sv-try-actions > * { margin: 6px; }
}

@media (min-width: 900px) {
  .sv-try {
    grid-template-columns: minmax(0, 1fr) 410px;
    grid-template-areas: "intro phone" "about phone";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: start;
    padding-top: 36px;
  }
  .sv-try-intro { grid-area: intro; }
  .sv-try-about { grid-area: about; }
  .sv-try-phone { grid-area: phone; position: sticky; top: 100px; }
  .sv-try-full { display: none; }
}
