/* Página "Conheça o sistema". As cores e fontes da marca vêm de site.css. */

.page-open { background: var(--navy); color: var(--white); padding-block: clamp(48px, 7vw, 88px); }
.page-open h1 { margin-top: 22px; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.page-open p { margin-top: 20px; max-width: 36em; font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.5; color: #e4e9f4; }
.page-open .pill { color: var(--green); }

/* Selo "Em breve" */
.soon { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #fdf0d5; color: #6b4300; font-size: .75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }

/* Seletor de perfil */
.profiles { background: var(--paper); padding-bottom: var(--section); }
.profiles__tabs { position: sticky; top: 73px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.tablist { display: flex; gap: 8px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 18px;
  border: 1px solid #b9c3d6; border-radius: 999px;
  background: var(--white); color: var(--navy);
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.tab:hover { border-color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.panel { display: none; padding-top: clamp(32px, 5vw, 56px); }
.panel.is-active { display: block; }
.panel__head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.panel__key { margin-top: 12px; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); font-weight: 600; color: var(--blue); }
.panel__note { margin-top: 12px; color: var(--muted); }
.panel__head .soon { margin-bottom: 12px; }

.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); margin-top: 28px; }
.topics li { display: flex; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.topics svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.topics .is-trust { grid-column: 1 / -1; padding: 16px 18px; margin-block: 6px 12px; border: 1px solid var(--green); border-radius: 14px; background: var(--white); }

/* Carrossel de telas */
.shots {
  --ph-w: min(320px, calc(100vw - 72px));
  position: relative;
  display: flex; align-items: stretch; gap: 24px;
  margin-top: 32px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.shot { flex: none; display: flex; flex-direction: column; width: var(--ph-w); margin: 0; scroll-snap-align: start; }
.shot .ph { flex: 1; display: flex; flex-direction: column; }
.shot .ph__screen { flex: 1; }
.shot:first-child { margin-left: auto; }
.shot:last-child { margin-right: auto; }
.shot figcaption { margin-top: 12px; text-align: center; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.shot figcaption small { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--muted); }

.dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.dots[hidden] { display: none; }
.dot { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #aab5ca; }
.dot[aria-current="true"]::before { background: var(--blue); }

/* Um celular só: texto ao lado no computador */
@media (min-width: 900px) {
  .panel--side.is-active { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "head shots" "topics shots"; grid-template-rows: auto 1fr; gap: 0 clamp(40px, 7vw, 96px); }
  .panel--side .panel__head { grid-area: head; }
  .panel--side .topics { grid-area: topics; grid-template-columns: 1fr; align-self: start; }
  .panel--side .shots { grid-area: shots; margin: 0; padding: 0; overflow: visible; }
  .panel--side .shot { width: 320px; }
}
@media (min-width: 1100px) {
  .shots { --ph-w: 320px; justify-content: center; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .shot:first-child, .shot:last-child { margin-inline: 0; }
}

/* Moldura de celular */
.ph {
  --ph-bg: #f7f7f7; --ph-ink: #111; --ph-soft: #4d4d4d; --ph-mute: #676767; --ph-line: #e6e6e6;
  overflow: hidden;
  border: 6px solid #15192a;
  border-radius: 36px;
  background: var(--ph-bg);
  color: var(--ph-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}
.ph__screen { display: flex; flex-direction: column; min-height: 620px; }
.ph__main { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.ph__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 14px 12px; background: #fff; border-bottom: 1px solid var(--ph-line); font-size: 18px; font-weight: 700; }
.ph__pill { flex: none; padding: 3px 10px; border: 1px solid var(--ph-line); border-radius: 999px; background: #f7f7f7; color: var(--ph-soft); font-size: 12px; font-weight: 500; }
.ph__notice { padding: 8px 10px; border: 1px solid #c9dcf4; border-radius: 10px; background: #ebf3fc; color: #17488f; font-size: 12px; text-align: center; }
.ph__nav { display: flex; background: #fff; border-top: 1px solid var(--ph-line); }
.ph__nav span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 10px; color: var(--ph-mute); font-size: 11px; font-weight: 500; }
.ph__nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph__nav .on { color: var(--ph-ink); font-weight: 600; }

.ph-stories { display: flex; gap: 12px; padding: 10px 12px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--ph-line); }
.ph-story { flex: none; width: 58px; text-align: center; font-size: 10px; line-height: 1.25; color: var(--ph-soft); }
.ph-story b { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 4px; border: 2px solid transparent; border-radius: 50%; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #2780cf, #1fa98a) border-box; color: var(--ph-soft); font-size: 15px; }

.ph-card { overflow: hidden; border: 1px solid var(--ph-line); border-radius: 16px; background: #fff; }
.ph-card__in { padding: 12px 14px; }
.ph-card__t { display: block; font-size: 14px; font-weight: 700; }
.ph-card__s { display: block; margin-top: 1px; color: var(--ph-mute); font-size: 12px; }
.ph-card__foot { padding: 9px 14px; border-top: 1px solid var(--ph-line); background: #f7f7f7; color: var(--ph-soft); font-size: 12px; }
.ph-num { display: block; margin-top: 8px; font-size: 38px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.ph-num--m { font-size: 28px; }
.ph-num__cap { display: block; margin-top: 2px; color: var(--ph-soft); font-size: 13px; font-weight: 500; }

.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ph-line); }
.ph-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ph-grid > div { padding: 9px 12px; border-right: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); }
.ph-grid > div:nth-child(2n) { border-right: 0; }
.ph-grid--3 > div:nth-child(2n) { border-right: 1px solid var(--ph-line); }
.ph-grid--3 > div:nth-child(3n) { border-right: 0; }
.ph-grid b { display: block; font-size: 21px; line-height: 1.15; }
.ph-grid small { display: block; color: var(--ph-mute); font-size: 11px; line-height: 1.25; }
.ph-grid .alert { color: #b3202c; }

.ph-rows > li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--ph-line); }
.ph-rows strong { display: block; font-size: 13px; font-weight: 600; }
.ph-rows small { display: block; color: var(--ph-mute); font-size: 11.5px; line-height: 1.3; }

.ph-tag { flex: none; display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ph-tag--ok { background: #e3f5ee; color: #0b6049; }
.ph-tag--no { background: #fde9ea; color: #ac1f2a; }
.ph-tag--wait { background: #efefef; color: #4d4d4d; }
.ph-tag--census { background: #fdf0d5; color: #6b4300; }

.ph-bar { display: block; height: 7px; margin-top: 4px; border-radius: 999px; background: #eeeeee; overflow: hidden; }
.ph-bar i { display: block; height: 100%; border-radius: inherit; background: #1fa98a; }
.ph-barrow { padding: 8px 14px; border-top: 1px solid var(--ph-line); font-size: 12px; }
.ph-barrow > span:first-child { display: flex; justify-content: space-between; gap: 8px; }
.ph-barrow b { flex: none; font-weight: 700; }
.ph-barrow em { display: block; margin-top: 2px; color: var(--ph-mute); font-size: 11.5px; font-style: italic; }

.ph-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.ph-filters span { padding: 4px 10px; border: 1px solid #d6d6d6; border-radius: 999px; background: #fff; color: var(--ph-soft); font-size: 11.5px; }
.ph-filters .on { border-color: #111; background: #111; color: #fff; font-weight: 600; }
.ph-field { display: block; margin-top: 6px; font-size: 11px; color: var(--ph-soft); }
.ph-field i { display: block; margin-top: 2px; padding: 5px 9px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; color: var(--ph-mute); font-size: 12px; font-style: normal; }
.ph-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ph-cta { display: block; padding: 11px; border-radius: 12px; background: #111; color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.ph-cta--line { background: #fff; border: 1px solid #111; color: #111; }
.ph-result { padding: 7px 10px; border-radius: 10px; background: #e3f5ee; color: #0b6049; font-size: 12px; font-weight: 600; text-align: center; }
.ph-warn { padding: 8px 12px; border: 1px solid #f0d9a6; border-radius: 12px; background: #fdf6e6; color: #5f3c00; font-size: 12px; }

/* Chamada de demonstração */
.ph-roll > li { padding: 8px 14px; border-top: 1px solid var(--ph-line); }
.ph-roll__name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.ph-roll__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-mark { min-height: 40px; border: 1px solid #c4c4c4; border-radius: 10px; background: #fff; color: #4d4d4d; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ph-mark[data-mark="P"][aria-pressed="true"] { background: #e3f5ee; border-color: #0b6049; color: #0b6049; }
.ph-mark[data-mark="F"][aria-pressed="true"] { background: #fde9ea; border-color: #ac1f2a; color: #ac1f2a; }
.ph-conclude { display: block; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: #111; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* Catálogo */
.catalog { background: var(--white); padding-block: var(--section); }
.catalog .pill { color: var(--blue); }
.catalog h2 { margin-top: 22px; }
.catalog__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); align-items: start; margin-top: 36px; }
.catalog details { border-top: 1px solid var(--line); }
.catalog summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.catalog summary::-webkit-details-marker { display: none; }
.catalog summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--blue); }
.catalog details[open] summary::after { content: "−"; }
.catalog details p { padding-bottom: 18px; color: var(--muted); }

/* Educacenso */
.census { background: var(--blue); color: var(--white); padding-block: var(--section); }
.census .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.census h2 { margin-top: 22px; }
.census__lead p { margin-top: 20px; }
.census__list li { padding-block: 18px; border-top: 1px solid rgba(255,255,255,.55); }
.census__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.55); }
.census__list strong { display: block; margin-bottom: 2px; font-size: 1.125rem; }

/* Simples de começar */
.start { background: var(--green); color: var(--navy); padding-block: var(--section); }
.start h2 { margin-top: 22px; max-width: 20em; }
.start__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.start__item { padding: 24px; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.start__item h3 { margin-bottom: 8px; }

/* Segurança e suporte */
.trust { background: var(--paper); padding-block: var(--section); }
.trust .pill { color: var(--blue); }
.trust h2 { margin-top: 22px; }

/* Em breve */
.next { background: var(--white); padding-block: var(--section); }
.next h2 { margin-top: 0; }
.next__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.next__item { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.next__item h3 { margin-top: 10px; }
.next__item p { margin-top: 6px; color: var(--muted); }

@media (max-width: 960px) {
  .topics, .catalog__list, .next__grid { grid-template-columns: 1fr; }
  .census .wrap { grid-template-columns: 1fr; }
  .start__grid { grid-template-columns: 1fr; }
  .catalog details:last-child { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .profiles__tabs { top: 65px; }
  .topics .is-trust { margin-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .shots { scroll-behavior: auto; }
}
