/**
 * Estilos da pagina "Apps" (Velloznet).
 * Carregado apenas quando is_page('apps') e verdadeiro.
 * Tokens de cor/espacamento vem de :root em style.css. Classes de secao
 * (.section, .section-head, .eyebrow, .section-title, .section-sub) e de botao
 * sao reaproveitadas de style.css / home.css. O botao fantasma
 * .sobre-btn-ghost e a barra .sobre-breadcrumb vivem em sobre-nos.css; como as
 * duas paginas nunca carregam juntas, redeclaramos os poucos itens necessarios
 * aqui para manter a pagina Apps autossuficiente.
 */

.page-apps .hs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-apps .hs::-webkit-scrollbar {
  display: none;
  height: 0;
}

/* Migalha de pao e botoes reutilizados do design "Sobre Nos". */
.page-apps .sobre-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.1em;
  color: #e3c3d7;
}

.page-apps .sobre-breadcrumb a {
  color: #e3c3d7;
}

.page-apps .sobre-breadcrumb a:hover {
  color: var(--brand-orange);
}

.page-apps .sobre-breadcrumb span[aria-hidden] {
  color: var(--brand-orange);
}

.page-apps .sobre-breadcrumb > span:last-child {
  color: #fff;
}

.sobre-btn-ghost {
  min-height: 52px;
  padding: 16px 28px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.sobre-btn-ghost:hover,
.sobre-btn-ghost:focus {
  background: #fff;
  color: var(--brand-purple);
  border-color: #fff;
}

.sobre-btn-purple-outline {
  min-height: 52px;
  padding: 15px 22px;
  background: transparent;
  color: var(--brand-purple);
  border: 2px solid var(--brand-purple);
}

.sobre-btn-purple-outline:hover,
.sobre-btn-purple-outline:focus {
  background: var(--brand-purple);
  color: #fff;
}

.section-title--left {
  text-align: left;
}

/* ===== HERO ===== */
.apps-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #4d123f 0%, #621851 48%, #a136eb 96%, #ec731c 130%);
}

.apps-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 80% at 82% 18%, rgba(255, 255, 255, 0.16), rgba(77, 18, 63, 0) 60%);
  pointer-events: none;
}

.apps-hero__inner {
  position: relative;
  padding-block: clamp(30px, 4.2vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
}

.apps-hero__title {
  margin: 16px 0 0;
  font: 800 clamp(34px, 4.4vw, 60px) / 1.05 var(--font-sans);
  color: #fff;
  letter-spacing: -0.01em;
}

.apps-hero__title span {
  color: var(--brand-orange);
}

.apps-hero__lead {
  margin: 16px 0 0;
  font: 400 clamp(15px, 1.5vw, 19px) / 1.6 var(--font-sans);
  color: #efdce9;
  max-width: 46ch;
  text-wrap: pretty;
}

.apps-hero__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mockup ilustrativo de celular. */
.apps-hero__mock {
  display: flex;
  justify-content: center;
}

/* Imagem real do mockup do app (hero e CTA). */
.apps-hero__img {
  width: min(100%, 460px);
  height: auto;
  border-radius: 24px;
}

.apps-hero__img--sm {
  width: min(100%, 340px);
  border-radius: 20px;
}

.apps-phone {
  width: min(100%, 340px);
  aspect-ratio: 9 / 13;
  border-radius: 34px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 24px 50px rgba(23, 23, 23, 0.28);
}

.apps-phone--sm {
  width: min(100%, 230px);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  padding: 12px;
}

.apps-phone__notch {
  height: 10px;
  width: 70px;
  align-self: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
}

.apps-phone__grid {
  flex: 1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}

.apps-phone__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.apps-phone__grid > span {
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.apps-phone__grid > span.is-orange {
  background: rgba(236, 115, 28, 0.75);
}

.apps-phone__grid > span.is-violet {
  background: rgba(161, 54, 235, 0.6);
}

.apps-phone__bar {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.apps-phone__bar--soft {
  background: rgba(255, 255, 255, 0.14);
}

.apps-phone__caption {
  margin: 0;
  text-align: center;
  font: 600 12px/1.4 var(--font-sans);
  color: #e3c3d7;
}

/* ===== ESCOLHA DE APP ===== */
.apps-escolha__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.apps-escolha__lead {
  margin: 16px 0 0;
  font: 400 clamp(15px, 1.4vw, 17px) / 1.75 var(--font-sans);
  color: #555;
  max-width: 56ch;
  text-wrap: pretty;
}

.apps-escolha__hint {
  margin: 14px 0 0;
  font: 500 clamp(15px, 1.4vw, 17px) / 1.7 var(--font-sans);
  color: var(--brand-purple);
  max-width: 56ch;
}

.apps-escolha__actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  max-width: 520px;
}

.apps-escolha__actions .btn {
  min-height: 54px;
  font-size: 13px;
}

.apps-note {
  margin: 18px 0 0;
  font: 400 13px/1.7 var(--font-sans);
  color: #999;
  max-width: 80ch;
}

.apps-note--center {
  text-align: center;
  margin-inline: auto;
}

.apps-escolha__card {
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: clamp(22px, 2.6vw, 32px);
}

.apps-escolha__card h3 {
  margin: 0;
  font: 700 clamp(17px, 1.8vw, 20px) / 1.35 var(--font-sans);
  color: var(--brand-plum);
}

.apps-escolha__card > p {
  margin: 12px 0 0;
  font: 400 clamp(14px, 1.35vw, 16px) / 1.7 var(--font-sans);
  color: var(--color-muted);
  text-wrap: pretty;
}

.apps-escolha__card .btn--purple {
  margin-top: 18px;
  width: 100%;
}

.apps-escolha__help {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e7dce3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apps-escolha__help-title {
  margin: 0;
  font: 600 13px/1.5 var(--font-sans);
  color: var(--brand-purple);
}

.apps-escolha__help a {
  font: 600 14px/1.5 var(--font-sans);
}

/* ===== PASSO A PASSO ===== */
.apps-steps {
  background: #f7f7f7;
}

.apps-steps__grid {
  list-style: none;
  margin: clamp(24px, 3vw, 42px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.app-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid #ece4e9;
  border-radius: 20px;
  padding: clamp(22px, 2.4vw, 28px);
  box-shadow: 0 6px 22px rgba(23, 23, 23, 0.05);
}

.app-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-step__num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--brand-orange);
  color: #fff;
  font: 800 16px/40px var(--font-sans);
  text-align: center;
}

.app-step__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f7f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-step__title {
  margin: 0;
  font: 700 clamp(16px, 1.6vw, 18px) / 1.35 var(--font-sans);
  color: var(--color-text);
}

.app-step__text {
  margin: 0;
  font: 400 clamp(14px, 1.35vw, 15px) / 1.6 var(--font-sans);
  color: var(--color-muted);
  text-wrap: pretty;
}

/* ===== LISTA DE APPS ===== */
.apps-list {
  scroll-margin-top: 120px;
}

.apps-list__head {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apps-search {
  margin-top: clamp(22px, 2.6vw, 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f7f7;
  border: 1px solid #e7dce3;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  min-height: 56px;
  max-width: 520px;
}

.apps-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font: 500 15px/1 var(--font-sans);
  color: var(--color-text);
  min-height: 52px;
}

.apps-search__clear {
  border: 0;
  background: #e7dce3;
  color: var(--brand-plum);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: 700 14px/1 var(--font-sans);
}

.apps-cats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}

.apps-cat {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: 600 14px/1 var(--font-sans);
  border: 1px solid #e7dce3;
  background: #fff;
  color: var(--brand-plum);
  transition: all 0.2s ease;
}

.apps-cat.is-active {
  background: var(--brand-purple);
  color: #fff;
  border-color: var(--brand-purple);
}

.apps-result {
  margin: 6px 0 0;
  font: 500 14px/1.5 var(--font-sans);
  color: var(--color-muted);
}

.apps-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid #ece4e9;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(23, 23, 23, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-card[hidden] {
  display: none;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(98, 24, 81, 0.12);
}

.app-card__logo {
  height: 88px;
  border-radius: 14px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.app-card__logo span {
  font: 700 clamp(15px, 1.5vw, 17px) / 1.25 var(--font-sans);
  color: var(--brand-purple);
  word-break: break-word;
}

.app-card__tag {
  align-self: flex-start;
  font: 700 10px/1 var(--font-sans);
  letter-spacing: 0.08em;
  color: var(--brand-violet);
  background: #f4ecfb;
  border-radius: 6px;
  padding: 6px 8px;
}

.app-card__desc {
  margin: 0;
  font: 400 13px/1.55 var(--font-sans);
  color: var(--color-muted);
  flex: 1;
}

.app-card__meta {
  margin: 0;
  font: 500 11px/1.4 var(--font-sans);
  color: #999;
}

.app-card__btn {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand-purple);
  color: #fff;
  font: 700 12px/1 var(--font-sans);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.app-card__btn:hover,
.app-card__btn:focus {
  background: var(--brand-orange);
  color: #fff;
}

.apps-empty {
  margin-top: 20px;
  padding: 26px;
  border-radius: 20px;
  background: #f7f7f7;
  border: 1px dashed #d9c4d3;
}

.apps-empty[hidden] {
  display: none;
}

.apps-empty p {
  margin: 0;
  font: 600 15px/1.6 var(--font-sans);
  color: var(--brand-plum);
}

/* ===== CTA AREA DO CLIENTE ===== */
.apps-client-cta {
  background: linear-gradient(105deg, #4d123f 0%, #621851 45%, #a136eb 92%, #ec731c 128%);
  padding: clamp(36px, 4.8vw, 76px) 0;
}

.apps-client-cta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
}

.apps-client-cta__title {
  margin: 0;
  font: 800 clamp(24px, 3.2vw, 38px) / 1.15 var(--font-sans);
  color: #fff;
  text-wrap: pretty;
}

.apps-client-cta__text {
  margin: 12px 0 0;
  font: 400 clamp(15px, 1.4vw, 18px) / 1.65 var(--font-sans);
  color: #f0dde9;
  max-width: 52ch;
  text-wrap: pretty;
}

.apps-client-cta__actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  max-width: 540px;
}

.apps-client-cta__actions .btn {
  min-height: 54px;
  font-size: 13px;
}

/* ===== FAQ ===== */
.apps-faq__wrap {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.apps-faq__list {
  margin-top: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #ece4e9;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(23, 23, 23, 0.04);
}

.faq-item__q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font: 600 clamp(15px, 1.4vw, 17px) / 1.45 var(--font-sans);
  color: var(--color-text);
  min-height: 56px;
}

.faq-item__sign {
  flex: 0 0 auto;
  color: var(--brand-orange);
  font: 700 16px/1 var(--font-sans);
}

.faq-item__a {
  margin: 0;
  padding: 0 20px 20px;
}

.faq-item__a[hidden] {
  display: none;
}

.faq-item__a p {
  margin: 0;
  font: 400 clamp(14px, 1.35vw, 16px) / 1.75 var(--font-sans);
  color: var(--color-muted);
  text-wrap: pretty;
}

/* ===== PASSO A PASSO (PDFs do post type Apps) ===== */
/* Logo do card usando a imagem destacada do app. */
.app-card__logo img {
  max-height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Grupo de botoes: um por passo a passo (PDF) cadastrado no app. */
.app-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Os botoes agora sao links diretos para o PDF, mas mantem o visual anterior.
   O texto vem do titulo cadastrado, por isso preserva a caixa digitada pelo
   usuario e pode quebrar em mais de uma linha sem estourar o card. */
.app-card__actions .app-card__btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Selo indicando que o destino e um PDF (aberto em nova aba). */
.app-card__actions .app-card__btn::before {
  content: "PDF";
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.22);
  font: 700 9px/1 var(--font-sans);
  letter-spacing: 0.06em;
}

@media (max-width: 480px) {
  .apps-cats {
    flex-wrap: nowrap;
  }
}