/* Revisão nacional 2026-08 — densidade, legibilidade e escala institucional */
.p-shell {
  width: min(1320px, calc(100% - 56px));
}
.p-section {
  padding: 74px 0;
}
.p-section h2 {
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: 1.04;
  max-width: 900px;
}
.p-section p {
  font-size: 16px;
  line-height: 1.68;
}
.p-two {
  gap: 48px;
}
.p-section-head {
  margin-bottom: 34px;
}
.p-intro .p-two > div:last-child p {
  font-size: 17px;
}
.p-trust .p-shell {
  min-height: 76px;
}
.p-trust b {
  font-size: 14px;
}
.p-trust > div > div:first-child span {
  font-size: 13px;
}
.p-trust-tags span {
  font-size: 11px;
}
.p-solution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.p-solution-photo {
  height: 280px;
}
.p-solution-body {
  padding: 24px;
}
.p-solution h3 {
  font-size: 23px;
}
.p-solution p,
.p-solution li {
  font-size: 14px;
  line-height: 1.6;
}
.p-solution-body > small {
  font-size: 11px;
}
.p-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.p-steps .step {
  min-height: 158px;
  padding: 20px;
}
.p-steps .step h3 {
  font-size: 16px;
}
.p-steps .step p {
  font-size: 14px;
}
.p-security-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.p-security-grid article {
  padding: 25px;
}
.p-security-grid h3 {
  font-size: 21px;
}
.p-security-grid p {
  font-size: 14px;
}
.p-story-points b {
  font-size: 17px;
}
.p-contact-grid {
  gap: 48px;
}
.p-client-access {
  padding: 42px 0;
}
.p-client-access h2 {
  font-size: 30px;
}
.course-card p {
  font-size: 14px;
}
.course-meta {
  font-size: 12px;
}
.tag {
  font-size: 11px;
}
.p-course-grid .course-image {
  height: 240px;
}
/* Login: menos vazio, mais foco e hierarquia */
.modal-card:has(.login-card) {
  width: min(540px, 100%);
  padding: 30px 34px;
  border-radius: 24px;
}
.login-card {
  max-width: none;
}
.login-card .brand {
  margin-bottom: 22px;
}
.login-card .eyebrow {
  margin-bottom: 8px;
}
.login-card h2 {
  font-size: 34px;
  margin: 0 0 7px;
}
.login-card > p {
  font-size: 14px;
  margin: 0 0 22px;
}
.login-card .form-stack {
  gap: 12px;
}
.login-card label {
  font-size: 13px;
}
.login-card .input {
  min-height: 50px;
  margin-top: 5px;
  background: #f9fbfa;
  border-color: #d5dfdb;
  font-size: 15px;
}
.login-card .btn {
  min-height: 50px;
  margin-top: 4px;
  font-size: 15px;
}
.login-security-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}
.password-wrap {
  position: relative;
}
.password-wrap .input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--green);
  font-weight: 800;
}
/* Painel: tipografia mais confortável sem inflar cartões */
.dashboard {
  grid-template-columns: 272px 1fr;
}
.sidebar {
  width: 272px;
}
.workspace {
  grid-column: 2;
}
.sidebar nav {
  gap: 4px;
}
.side-link {
  font-size: 14px;
  padding: 11px 12px;
}
.user-mini b {
  font-size: 14px;
}
.user-mini small {
  font-size: 12px;
}
.workspace-content {
  padding: 28px 32px;
  max-width: 1600px;
}
.page-title h1 {
  font-size: 32px;
}
.page-title p {
  font-size: 14px;
}
.panel {
  padding: 22px;
}
.panel p {
  font-size: 14px;
}
.data-table {
  font-size: 13px;
}
.data-table th {
  font-size: 11px;
}
.kpi small {
  font-size: 11px;
}
.kpi .trend {
  font-size: 12px;
}
.integration {
  font-size: 14px;
}
.badge {
  font-size: 11px;
}
.workspace-header {
  height: 68px;
}
.workspace-actions {
  align-items: center;
}
.notification-button {
  position: relative;
}
.notification-dot {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #c34d43;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  padding: 0 4px;
  border: 2px solid #fff;
}
.notification-list {
  display: grid;
  gap: 8px;
}
.notification-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 14px;
  cursor: pointer;
}
.notification-item.unread {
  background: #f1f8f5;
  border-color: #bfd9d0;
}
.notification-item b,
.notification-item small {
  display: block;
}
.notification-item p {
  margin: 5px 0;
  font-size: 13px;
}
.notification-item small {
  color: var(--muted);
}
/* Cora + equipe de 10 assistentes */
.cora-command {
  background: linear-gradient(135deg, #052e28, #0b5b4d);
  color: #fff;
  border-radius: 26px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.cora-command:after {
  content: '✦';
  position: absolute;
  right: 22px;
  top: -42px;
  font-size: 170px;
  color: rgba(239, 198, 108, 0.09);
}
.cora-command h2 {
  font-size: 32px;
  margin: 5px 0 10px;
}
.cora-command p {
  color: #c9ddd7;
  max-width: 720px;
}
.cora-command .btn {
  width: max-content;
}
.cora-status {
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 18px;
  z-index: 1;
}
.cora-status b,
.cora-status span {
  display: block;
}
.cora-status b {
  font-size: 20px;
  color: var(--gold2);
}
.cora-status span {
  font-size: 12px;
  color: #c6d9d3;
  margin-top: 4px;
}
.agent-grid.revamp-agents {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.agent-card.chief {
  grid-column: 1/-1;
  border-color: #d5bd7f;
  background: linear-gradient(135deg, #fffdf7, #f7fbf9);
}
.agent-number {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 900;
}
.agent-card p {
  font-size: 13px;
}
.agent-rolechips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.agent-rolechips span {
  font-size: 9px;
  padding: 4px 7px;
  background: #eef4f2;
  border-radius: 999px;
}
.privacy-note {
  background: #fff8e8;
  border: 1px solid #ead7a9;
  padding: 13px 15px;
  border-radius: 13px;
  font-size: 12px;
  color: #6f5a27;
}
/* Demonstrações guiadas substituem vídeos genéricos */
.p-experience {
  padding: 72px 0;
}
.p-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.p-video-card {
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.p-video-card:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 29, 25, 0.08), rgba(2, 29, 25, 0.92));
}
.p-video-card video {
  display: none;
}
.p-video-card > div {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 24px;
  z-index: 2;
}
.p-video-card b,
.p-video-main b {
  font-size: 23px;
}
.p-play {
  width: 44px;
  height: 44px;
  font-size: 14px;
}
.guided-demo {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.guided-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
}
.guided-step span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gold);
  color: #17312d;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.guided-step b,
.guided-step small {
  display: block;
}
.guided-step small {
  color: #bdd0ca;
  margin-top: 3px;
}
@media (max-width: 1100px) {
  .p-shell {
    width: min(100% - 38px, 1320px);
  }
  .p-solution-grid {
    grid-template-columns: 1fr 1fr;
  }
  .p-solution:last-child {
    grid-column: 1/-1;
  }
  .p-video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .p-video-main {
    grid-column: auto;
  }
  .p-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .workspace {
    grid-column: 1;
  }
}
@media (max-width: 760px) {
  .p-section {
    padding: 58px 0;
  }
  .p-section h2 {
    font-size: clamp(31px, 9vw, 43px);
  }
  .p-solution-grid,
  .p-video-grid,
  .p-security-grid {
    grid-template-columns: 1fr;
  }
  .p-solution:last-child {
    grid-column: auto;
  }
  .p-solution-photo {
    height: 240px;
  }
  .p-steps {
    grid-template-columns: 1fr;
  }
  .modal-card:has(.login-card) {
    padding: 26px 22px;
  }
  .login-card h2 {
    font-size: 30px;
  }
  .workspace-content {
    padding: 16px;
  }
  .cora-command {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .agent-grid.revamp-agents {
    grid-template-columns: 1fr;
  }
  .agent-card.chief {
    grid-column: auto;
  }
  .p-video-card {
    min-height: 285px;
  }
}

/* PWA install experience */
.pwa-install-header {
  background: #eef6f3;
  color: #0a6555;
  border: 1px solid #cfe1da;
  white-space: nowrap;
}
.pwa-install-header:hover {
  background: #e2f0eb;
}
.p-nav-install {
  border: 0;
  border-radius: 10px;
  background: #eaf4f0;
  color: #07584a;
  font-weight: 850;
  padding: 11px 13px;
  cursor: pointer;
}
.pwa-install-mini {
  font-weight: 900;
  color: #0a6555;
}
.pwa-install-banner {
  display: none;
}
.pwa-how {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.pwa-how span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e4f0ec;
  color: #0a6555;
  font-weight: 900;
}
.pwa-app-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #073d35;
  color: #f0c96c;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 8px 24px rgba(7, 61, 53, 0.18);
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .p-shell {
    width: calc(100% - 28px);
  }
  .p-section {
    padding: 52px 0;
  }
  .p-section p,
  .p-intro .p-two > div:last-child p,
  .p-intel-copy p,
  .p-human-card > p,
  .p-contact-copy p {
    font-size: 16px;
    line-height: 1.68;
  }
  .p-slide-content p {
    font-size: 17px;
    line-height: 1.58;
  }
  .p-eyebrow,
  .p-kicker {
    font-size: 12px;
  }
  .p-proof-row span {
    font-size: 10.5px;
    padding: 8px 10px;
  }
  .p-trust b {
    font-size: 15px;
  }
  .p-trust > div > div:first-child span {
    font-size: 13.5px;
  }
  .p-trust-tags span {
    font-size: 11.5px;
  }
  .p-solution h3 {
    font-size: 24px;
  }
  .p-solution p,
  .p-solution li {
    font-size: 15px;
    line-height: 1.62;
  }
  .p-solution-body > small {
    font-size: 12px;
  }
  .p-security-grid h3 {
    font-size: 21px;
  }
  .p-security-grid p {
    font-size: 15px;
  }
  .p-story-points small {
    font-size: 11.5px;
  }
  .p-story-points b {
    font-size: 19px;
  }
  .p-contact-badges span {
    font-size: 11px;
  }
  .course-card h3 {
    font-size: 21px;
  }
  .course-card p {
    font-size: 15px;
  }
  .course-meta {
    font-size: 12px;
  }
  .tag {
    font-size: 11.5px;
  }
  .lead-form label,
  .form-stack label {
    font-size: 13px;
  }
  .input,
  input,
  select,
  textarea {
    font-size: 16px !important;
    min-height: 50px;
  }
  .btn,
  .p-btn {
    min-height: 48px;
    font-size: 15px;
  }
  .btn.small {
    min-height: 40px;
    font-size: 13px;
  }
  .page-title h1 {
    font-size: 29px;
  }
  .page-title p,
  .panel p {
    font-size: 15px;
  }
  .side-link {
    font-size: 15px;
    min-height: 46px;
  }
  .data-table {
    font-size: 13.5px;
  }
  .data-table th {
    font-size: 11px;
  }
  .kpi small {
    font-size: 12px;
  }
  .kpi b {
    font-size: 27px;
  }
  .kpi .trend {
    font-size: 12px;
  }
  .badge {
    font-size: 11.5px;
  }
  .notification-item p,
  .agent-card p {
    font-size: 14.5px;
  }
  .p-board-top {
    font-size: 12px;
  }
  .p-board-cards span {
    font-size: 12px;
  }
  .p-footer-grid small,
  .p-footer-links {
    font-size: 13px;
  }
  .p-video-card b,
  .p-video-main b {
    font-size: 23px;
  }
  .guided-step small {
    font-size: 13px;
    line-height: 1.45;
  }
  .pwa-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 94;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #dbe6e2;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 22px 70px rgba(6, 45, 38, 0.24);
    backdrop-filter: blur(16px);
  }
  .pwa-install-banner b,
  .pwa-install-banner small {
    display: block;
  }
  .pwa-install-banner b {
    font-size: 14px;
    line-height: 1.2;
  }
  .pwa-install-banner small {
    font-size: 12px;
    line-height: 1.3;
    color: var(--muted);
    margin-top: 3px;
  }
  .pwa-install-banner .btn {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 13px;
  }
  .pwa-banner-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #667671;
    font-size: 22px;
    cursor: pointer;
  }
  .pwa-banner-visible .float.whatsapp {
    bottom: calc(160px + env(safe-area-inset-bottom));
  }
  .pwa-banner-visible .ai-float {
    bottom: calc(98px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 430px) {
  .pwa-install-banner {
    grid-template-columns: auto 1fr auto;
    padding: 11px;
  }
  .pwa-install-banner .pwa-app-mark {
    width: 42px;
    height: 42px;
  }
  .pwa-install-banner .pwa-banner-close {
    position: absolute;
    right: 5px;
    top: -31px;
    background: #fff;
    border: 1px solid #dbe6e2;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(6, 45, 38, 0.12);
  }
  .pwa-install-banner small {
    font-size: 11.5px;
  }
  .pwa-install-banner .btn {
    padding: 9px 11px;
  }
}
@media (display-mode: standalone) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .pwa-install-header,
  .p-nav-install,
  .pwa-install-mini,
  .pwa-install-banner {
    display: none !important;
  }
}

/* 2026-08-21 — desktop install cleanup + master navigation hardening */
.p-section,
#inicio {
  scroll-margin-top: 96px;
}
@media (min-width: 1101px) {
  .pwa-install-header,
  .p-nav-install {
    display: none !important;
  }
}
@media (min-width: 861px) {
  .pwa-install-mini {
    display: none !important;
  }
}
@media (max-width: 1100px) {
  .dashboard .sidebar {
    transform: translateX(-102%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.18);
  }
  .dashboard .sidebar.open {
    transform: none;
  }
}
