/* W17-e-launch: the homepage's live demo, the press kit additions and /whats-new.
 * Phone first; the site's own tokens, so light and dark follow the page. */

.w17l-demo .w17l-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 900px) { .w17l-demo .w17l-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; } }
.w17l-demo .lede { margin-top: 12px; }
.w17l-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.w17l-form label { flex-basis: 100%; font-weight: 600; color: var(--ink); }
.w17l-form input {
  flex: 1 1 200px; min-width: 0; height: 50px; border-radius: var(--m19-radius-md); border: 1px solid var(--line-2);
  background: var(--surface); padding: 0 16px; font: inherit; font-size: var(--m19-text-md); color: var(--ink);
}
.w17l-form input:focus-visible { outline: var(--m19-focus-ring); outline-offset: var(--m19-focus-offset); }
.w17l-form .btn { flex: 0 0 auto; min-height: 50px; }
.w17l-try { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.w17l-try-h { margin: 18px 0 0; font-size: var(--t-small); color: var(--ink-3); }
.w17l-try a.chip { min-height: 44px; height: auto; text-decoration: none; }
.w17l-try a.chip:focus-visible { outline: var(--m19-focus-ring); outline-offset: var(--m19-focus-offset); }
.w17l-status { min-height: 1.5em; margin: 14px 0 0; color: var(--ink-2); }
.w17l-status[data-state="error"] { color: var(--err); }
.w17l-phone {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 9 / 16; margin-inline: auto;
  border-radius: var(--m19-radius-xl); border: 1px solid var(--line-2); background: var(--surface-2); overflow: hidden;
  box-shadow: var(--m19-shadow-lg);
}
.w17l-phone iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.w17l-phone-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--m19-space-8); text-align: center; color: var(--ink-2); font-size: var(--m19-type-title); font-weight: 500; line-height: var(--m19-type-title-leading); letter-spacing: var(--m19-type-title-track); text-wrap: balance; }
/* Until a page arrives the frame is a calm tinted panel with one sentence, never an empty grey box
   (site-design image audit, 2026-12-02). */
.w17l-phone[data-state="empty"] { background: var(--m19-panel-ember); border-color: transparent; box-shadow: none; }
.w17l-phone[data-state="shown"] .w17l-phone-empty { display: none; }
/* Before anything is shown, a phone column held a 9:16 frame -- about 700px of an empty box under the
   form (assessment, 2026-11-29). Until a page arrives it is a short, quiet placeholder; the frame takes its
   full height when the first page lands, which the person asked for, so nothing moves under them unasked. */
@media (max-width: 900px) {
  .w17l-phone[data-state="empty"] { aspect-ratio: auto; height: 120px; }
  .w17l-phone[data-state="empty"] iframe { visibility: hidden; }
}
/* Redesign-2 (2026-12-02): at rest the phone shows the real first page the demo draws for its first
   example (web/assets/site/manifest.json), so the frame is never an empty box; a person's own page
   replaces it. The phone keeps a phone's size on every screen. */
.w17l-stage { display: grid; place-items: center; min-inline-size: 0; padding: clamp(16px, 4vw, 48px); border-radius: var(--m19-radius-panel); background: var(--m19-surface); box-shadow: var(--m19-shadow-sm); }
.w17l-demo .w17l-phone, .w17l-demo .w17l-phone[data-state="empty"] {
  inline-size: min(100%, 340px); max-width: 340px; block-size: auto; aspect-ratio: 9 / 16; border: 6px solid var(--m19-line-strong); border-radius: var(--m19-radius-panel);
  background: var(--m19-surface-2); box-shadow: var(--m19-shadow-panel);
}
.w17l-phone-rest { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; }
.w17l-phone[data-state="shown"] .w17l-phone-rest { display: none; }
.w17l-demo .w17l-phone[data-state="empty"] iframe { visibility: hidden; }
.w17l-demo .w17l-phone-empty {
  inset: auto var(--m19-space-3) var(--m19-space-3); display: block; padding: var(--m19-space-2) var(--m19-space-4); border-radius: var(--m19-radius-pill);
  background: color-mix(in oklab, var(--m19-surface) 92%, transparent); box-shadow: var(--m19-shadow-md); font-size: var(--m19-text-sm); font-weight: var(--m19-weight-semibold); color: var(--m19-ink);
}
@media (max-width: 900px) {
  .w17l-demo .w17l-phone[data-state="empty"] { aspect-ratio: 9 / 16; height: auto; }
}
.w17l-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.w17l-next[hidden] { display: none; }
.w17l-note { margin-top: 12px; font-size: var(--t-small); color: var(--ink-3); }
.w17l-jump { margin: 12px 0 0; font-size: var(--t-small); }

/* /press additions */
.w17l-kit .btn { margin-top: 12px; }
.w17l-video { width: 100%; height: auto; border-radius: var(--m19-radius-lg); border: 1px solid var(--line-2); background: var(--surface-2); }
.w17l-shots { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
@media (min-width: 900px) { .w17l-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.w17l-shots figure { margin: 0; }
/* The line after the screenshots is one link on its own ("What's new"), not a
   word in a sentence: it measured 84x21 on a phone (interaction crawl
   2026-11-16), so it gets a thumb's 44px. */
.w17l-shots + p > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
.w17l-shots img { width: 100%; height: auto; border-radius: var(--m19-radius-md); border: 1px solid var(--line-2); }
.w17l-shots figcaption { margin-top: 6px; font-size: var(--t-small); color: var(--ink-3); }

/* /whats-new */
.w17l-wn { max-width: 760px; margin-inline: auto; padding: 32px 16px 64px; }
.w17l-wn h1 { margin: 8px 0 0; }
.w17l-wn .w17l-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; }
.w17l-wn .w17l-links a { min-height: 44px; display: inline-flex; align-items: center; }
.w17l-wn h2 { margin: 36px 0 8px; font-size: var(--t-h3); }
.w17l-wn ol { margin: 0; padding: 0; list-style: none; }
.w17l-wn li { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.w17l-wn .w17l-meta { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--ink-3); }
.w17l-wn .w17l-meta code { font-family: var(--mono); }
/* What's new: plain-language notes, one card per change a person would notice (2026-11-29). */
.w17l-wn .w17l-note-item { padding: var(--m19-space-4) 0; border-top: 1px solid var(--m19-line); }
.w17l-wn .w17l-note-item h3 { margin: 0; font-size: var(--m19-text-body); font-weight: var(--m19-weight-semibold); }
.w17l-wn .w17l-note-item p { margin: 6px 0 0; }
.w17l-wn .w17l-note-item .w17l-meta { margin-top: 6px; }
.w17l-wn .w17l-raw { margin-top: var(--m19-space-10); padding-top: var(--m19-space-2); border-top: 1px solid var(--m19-line-strong); }
.w17l-wn .w17l-raw p { margin: 8px 0 0; color: var(--m19-ink-2); }
