/* The example page (9 Nov 2026): the real app, from its own copy at exemplo.pronto-apps.com, in a
   frame (tools/prospects/paginas.mjs makes the pages). Outside the frame: Pronto's page. */
:root { --ink: #121614; --muted: #56625C; --mist: #EDF1EE; --line: #D8E0DA; --green: #0B6B4C; --green-deep: #08513A; --lime: #D6F26A; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--mist); }
img { max-width: 100%; height: auto; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 5px; font: 800 23px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark svg { width: 18px; height: 18px; margin-top: 2px; }
.bar-label { color: var(--muted); font-size: 14px; }
.bar-home { margin-left: auto; color: var(--green); font-weight: 600; font-size: 14px; text-decoration: none; }
.bar-home:hover { text-decoration: underline; }
.bar-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 10px; white-space: nowrap; }
.bar-cta svg { flex: none; width: 17px; height: 17px; }
.bar-cta:hover { background: var(--green-deep); }

.ex { display: grid; grid-template-columns: 300px 820px; gap: 36px; justify-content: center; align-items: start; padding: 28px 24px 48px; }
.ex-story { position: sticky; top: 84px; }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.kicker .by { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ex-story h1 { margin: 0 0 10px; font: 800 34px/1.08 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.025em; }
.lead { margin: 0 0 16px; color: #2B3530; }
.small { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.ex-frame iframe { display: block; width: 820px; height: 1180px; border: 0; border-radius: 18px; background: var(--mist); }
.vid-chip[hidden], .other-lang[hidden] { display: none !important; }
.ex-frame noscript p { padding: 24px; background: #fff; border-radius: 14px; }

/* Narrower than the story beside two phones: the story on top, the frame under it. */
@media (max-width: 1215px) { .ex { grid-template-columns: 820px; gap: 18px; } .ex-story { position: static; } }
/* Narrower than two phones: the frame shows one at a time (its own switch) and takes the screen. */
@media (max-width: 867px) {
  /* The frame first, so the app's own bar at the bottom is in sight when the page opens (11 Nov 2026,
     Hugo: "nos exemplos falta a barra na parte de baixo"); the story under it, and on a firm's page
     its name stays in sight in the bar at the top. */
  .ex { display: flex; flex-direction: column; align-items: stretch; padding: 0; }
  .ex-frame { order: 1; }
  .ex-story { order: 2; padding: 14px 16px 24px; }
  .ex-story h1 { font-size: 22px; margin-bottom: 2px; }
  .ex-story .lead, .ex-story .vid-chip { display: none; }
  .small { margin: 2px 0 0; }
  .ex-frame iframe { width: 100%; height: calc(100svh - 57px); border-radius: 0; }
  .bar-label { display: none; }
  .bar-label.bar-firm { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
  .bar-firm + .bar-home { margin-left: 0; flex: none; }
}
@media (max-width: 440px) { .bar-cta svg { display: none; } }
@media (max-width: 374px) { .bar { gap: 8px; } .bar-cta { padding: 9px 11px; } }

/* 16 Nov 2026: the tour beside the phones (relatorio/app/exemplo-computador/mensagens.md). With the script, the page
   never scrolls: on a window of 1024 px or more, the story, the tour's card, the extras and «Quero uma assim» in the
   column on the left and the frame (opened with ?painel=fora) filling the rest; narrower, only the frame, with
   «✦ Extras» in the bar. --bar-h is the bar's height, measured by exemplo.js. */
.bar-extras, .ex-side[hidden] { display: none; }
.ex-side { display: grid; gap: 12px; margin: 16px 0 0; }
.ex-guide, .ex-extras { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ex-guide { border: 2px solid var(--lime); }
.ex-g-n { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.ex-g-t { margin: 0 0 6px; font-size: 18px; line-height: 1.25; font-weight: 700; }
.ex-g-x { margin: 0; font-size: 15px; color: #2B3530; }
.ex-g-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.ex-g-next { font: inherit; font-size: 15px; font-weight: 600; line-height: 1; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; }
.ex-g-next:hover { background: var(--green-deep); }
.ex-g-link { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; cursor: pointer; }
.ex-extras h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; font-weight: 700; }
.ex-extras p { margin: 0 0 10px; font-size: 14px; color: #2B3530; }
.ex-g-ghost { font: inherit; font-size: 14px; font-weight: 600; line-height: 1; background: #fff; color: var(--green); border: 1.5px solid var(--green); border-radius: 10px; padding: 9px 14px; cursor: pointer; }
.ex-g-ghost:hover { background: #F2F8F4; }
.ex-g-ghost:disabled, .ex-langs button:disabled, .bar-extras:disabled { opacity: 0.5; cursor: default; }
.ex-extras details { margin-top: 10px; font-size: 14px; }
.ex-extras summary { color: var(--green); font-weight: 600; cursor: pointer; }
.ex-extras ul { list-style: none; margin: 8px 0 0; padding: 0; }
.ex-extras li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.ex-extras li b { font-weight: 600; white-space: nowrap; }
.ex-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ex-want { background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 12px; }
.ex-want:hover { filter: brightness(0.96); }
.ex-langs { display: flex; gap: 6px; width: 100%; }
.ex-langs button { font: inherit; font-size: 13px; font-weight: 600; line-height: 1; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.ex-langs button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
@media (min-width: 1024px) {
  html.painel, html.painel body { height: 100%; overflow: hidden; }
  html.painel .ex { grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); gap: 28px; justify-content: stretch; align-items: stretch;
    height: calc(100dvh - var(--bar-h, 57px)); max-width: 2200px; margin: 0 auto; padding: 18px 24px; }
  html.painel .ex-story { position: static; overflow-y: auto; padding: 2px 6px 12px 0; }
  html.painel .ex-story h1 { font-size: 30px; }
  html.painel .ex-frame { min-width: 0; min-height: 0; }
  html.painel .ex-frame iframe { width: 100%; height: 100%; }
}
@media (max-width: 1023px) {
  html.ex-js .ex { display: block; padding: 0; }
  html.ex-js .ex-story { display: none; }
  html.ex-js .ex-frame iframe { width: 100%; height: calc(100dvh - var(--bar-h, 57px)); border-radius: 0; }
  html.ex-js .bar-extras:not([hidden]) { display: inline-flex; align-items: center; margin-left: auto; flex: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--green);
    background: #fff; border: 1.5px solid var(--green); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
  html.ex-js .bar-extras:not([hidden]) ~ .bar-home { display: none; }
}
/* «Sim, quero experimentar» on a firm's own page (17 Nov 2026) */
.ex-try { border: 0; cursor: pointer; font-family: inherit; font-size: inherit; width: 100%; }
.ex-try[disabled] { opacity: .6; cursor: default; }
.ex-try-q { margin: 0 0 8px; font-weight: 600; }
.ex-try-ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mist, #EDF1EE); font-weight: 600; }
.ex-try-wa { display: inline-block; margin-top: 6px; }
/* 17 Nov 2026: on a computer the column scrolls inside, and the request (the question, the button, the prices and the
   languages) stays in sight at its foot; the tour's card keeps its height (exemplo.js) and the extras' line has its place
   from the start, so nothing jumps; on a short window the text at the top gets smaller. */
.kicker span, .ex-story h1, .ex-g-t, .ex-try-q { text-wrap: balance; }
.lead, .small, .ex-g-x, .ex-extras p { text-wrap: pretty; }
.ex-list-ph { height: 21px; margin: 10px 0 0; }
.ex-try-fail { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF4E5; border: 1px solid #F3C98B; font-weight: 600; }
.ex-try-fail-wa { color: var(--green); }
@media (min-width: 1024px) {
  html.painel .ex-story { overscroll-behavior: contain; scrollbar-width: thin; }
  html.painel .ex-cta { position: sticky; bottom: 0; z-index: 2; margin-top: -4px; padding: 16px 0 6px; background: linear-gradient(to bottom, rgba(237, 241, 238, 0), var(--mist) 14px); }
  html.painel .ex-guide { min-height: 200px; }
}
@media (min-width: 1024px) and (max-height: 960px) {
  html.painel .ex-story h1 { font-size: 26px; margin-bottom: 6px; }
  html.painel .ex-story .lead { font-size: 14.5px; line-height: 1.45; margin-bottom: 10px; }
  html.painel .ex-side { gap: 10px; margin-top: 12px; }
  html.painel .ex-guide, html.painel .ex-extras { padding: 12px 14px; }
  html.painel .ex-g-x { font-size: 14.5px; }
  html.painel .ex-extras p { font-size: 13.5px; margin-bottom: 8px; }
  html.painel .ex-want { padding: 10px 16px; }
}
