/* "Try Haven's set-up": the page uses the site's look (style.css); the preview screen uses Haven's own
   colours (haven-theme.css, copied from Haven) and sizes, drawn at 1920 × 1080 and scaled to fit. */
.try { padding-top: 40px; padding-bottom: 64px; max-width: 1560px; } /* wider than the other pages: Haven needs the room */
.try-head h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; color: var(--night); margin: 0 0 14px; }
.try-grid { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); grid-template-areas: "answers preview"; gap: 28px 36px; align-items: start; }
.answers { grid-area: answers; }
.preview { grid-area: preview; }
.why { margin-top: 36px; max-width: 900px; }
.why h2 { font-size: 24px; margin: 0 0 6px; }

/* The answers */
.answers { display: grid; gap: 14px; }
.answers fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 16px 14px; margin: 0; }
.answers legend { font-weight: 700; padding: 0 6px; color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.25; cursor: pointer; }
.opt input:checked + span { border-color: var(--night); background: var(--surface); font-weight: 700; box-shadow: inset 0 0 0 1px var(--night); }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The preview */
.preview { position: sticky; top: 16px; }
.summary { font-size: 22px; margin: 0 0 12px; color: var(--ink); }
.frame { --s: 0.5; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.screen { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; background: #F4EFE6; }
.screen-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }

/* What a tile does, and why */
.about { display: flex; gap: 18px; align-items: flex-start; margin: 18px 0 8px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.about[hidden] { display: none; }
.about-pic svg { width: 48px; height: 48px; fill: var(--night); }
.about h3 { margin: 0 0 4px; }
.about p { margin: 0 0 6px; color: var(--muted); }
.reasons { padding-left: 1.2em; margin: 8px 0 18px; max-width: 70ch; }
.reasons li { margin: 6px 0; }
.reasons .note { color: var(--muted); }

@media (max-width: 900px) {
  /* Phones and tablets: the screen stays at the top while the answers scroll under it. */
  .try-grid { grid-template-columns: 1fr; grid-template-areas: "preview" "answers"; }
  .preview { top: 0; z-index: 2; background: var(--bg); padding: 10px 0 12px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; border-bottom: 1px solid var(--line); }
  .preview .small { display: none; }
  .summary { font-size: 17px; margin-bottom: 8px; }
}
