/* Nexoora · páginas da prévia grátis (/site/preview/…, /site/acesso/). Só componentes novos, com os tokens do site.css
   (tinta e papel, laranja só em ação e destaque, fios de 1 px). Ver MARCA.md. */

/* formulário curto */
.pv-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pv-intro__text { position: sticky; top: 6.5rem; display: grid; gap: .25rem; }
.pv-intro__text .h2 { max-width: 20ch; }
.pv-ticks { margin-block: .5rem .9rem; }
.pv-ticks li { font-size: 1.05rem; color: var(--ink-2); }
.pv-small { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.pv-form .fld small { font-weight: 400; }
@media (max-width: 860px) { .pv-intro { grid-template-columns: minmax(0, 1fr); } .pv-intro__text { position: static; } }

/* portal */
.pv-status { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; color: var(--ink); margin-bottom: .75rem; }
.pv-status::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); }
.pv-status--ok::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.pv-status--off::before { background: var(--muted); }
.pv-portal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.pv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pv-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pv-card p { color: var(--ink-2); }
.pv-card .help { color: var(--muted); }
.pv-card .btn { margin-top: auto; align-self: flex-start; }
.pv-card__num { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--accent-text) !important; font-variant-numeric: tabular-nums; }
.pv-card__title { font-size: 1.3rem; letter-spacing: -.025em; font-weight: 480; line-height: 1.2; }
.pv-card--quiet { background: transparent; }
.pv-card.night { border-color: transparent; }
.pv-menu { padding: 1.25rem; border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: .9rem; }
.pv-menu__title { font-size: .78rem; font-weight: 550; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pv-menu ul { list-style: none; padding: 0; display: grid; }
.pv-menu li { border-top: 1px solid var(--line); }
.pv-menu li:last-child { border-bottom: 1px solid var(--line); }
.pv-menu li > a { display: block; padding: .75rem 0; font-weight: 500; }
.pv-menu__locked { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: .65rem; padding: .7rem 0; color: var(--muted); }
.pv-menu__locked svg { width: 1rem; height: 1rem; margin-top: .25rem; }
.pv-menu__locked > span { display: grid; font-weight: 500; }
.pv-menu__locked small { font-size: .82rem; font-weight: 400; }
@media (max-width: 1060px) { .pv-portal { grid-template-columns: minmax(0, 1fr); } .pv-cards { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }

/* página da prévia: barra, palco do iframe e vídeo */
.pv-bar { position: sticky; top: 4.25rem; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.pv-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding-block: .65rem; }
.pv-bar__name { font-weight: 550; color: var(--ink); text-decoration: none; letter-spacing: -.01em; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pv-bar__note { font-size: .88rem; color: var(--muted); }
.pv-switch { display: inline-flex; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.pv-switch button { font: inherit; font-size: .85rem; font-weight: 550; padding: .35rem .85rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.pv-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pv-stage { display: flex; justify-content: center; padding: clamp(.75rem, 2vw, 1.5rem); background: var(--tint); }
.pv-frame { display: block; width: 100%; height: calc(100dvh - 10rem); min-height: 32rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: width .25s; }
.pv-stage--mobile .pv-frame { width: 390px; max-width: 100%; height: min(calc(100dvh - 10rem), 844px); }
.pv-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--night); margin-top: 1.5rem; }
.pv-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
  .pv-bar { top: 4.25rem; }
  .pv-bar__note { flex-basis: 100%; order: 3; font-size: .82rem; }
  .pv-switch { display: none; }
  .pv-stage { padding: 0; }
  .pv-frame { border-radius: 0; border-inline: 0; height: calc(100dvh - 9rem); }
}

/* ações e acesso */
.pv-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-block: 1.5rem; }
.pv-actions form { display: contents; }
.pv-access { display: grid; gap: 1rem; max-width: 28rem; margin-block: 1rem 1.5rem; }
.pv-access .btn { justify-self: start; }
