/* ==========================================================================
   Página «Aplicação dos Hinários» (descarga para Android e instalação no iPhone)
   Usa o cabeçalho escuro global (.library-hero) do portal-tx.css
   ========================================================================== */
.ax-section { background: #f4f8ff; padding: 56px 0 104px; font-family: "Inter", sans-serif; color: #0b1a3d; overflow-x: clip; }
.ax-wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ── cabeçalho ── */
.ax-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font: 500 11px "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.ax-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; font: 600 15px "Inter", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .3s, background .3s, color .3s, box-shadow .3s; }
.ax-btn:hover { transform: translateY(-2px); }
.ax-btn-w { background: #fff; color: #0057e5; }
.ax-btn-w:hover { background: #e8f0ff; color: #0048c0; box-shadow: 0 14px 30px rgba(0, 10, 60, .35); }
.ax-btn-o { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.ax-btn-o:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ax-btn-p { background: #0057e5; color: #fff; }
.ax-btn-p:hover { background: #0048c0; color: #fff; box-shadow: 0 14px 30px rgba(0, 87, 229, .32); }
.ax-block { display: flex; width: 100%; }
.ax-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; padding: 0; margin: 30px 0 0; }
.ax-stats li { color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 300; }
.ax-stats strong { font: 500 24px "Manrope", sans-serif; color: #fff; margin-right: 6px; }

/* ── capturas do ecrã ── */
.ax-showcase { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 34px); margin: 0 auto 56px; position: relative; padding: 0 4px; }
.ax-showcase figure { margin: 0; flex: 0 1 260px; border-radius: 34px; padding: 8px; background: #0b1a3d; box-shadow: 0 30px 70px rgba(0, 20, 90, .38); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ax-showcase figure:hover { transform: translateY(-8px); }
.ax-showcase img { display: block; width: 100%; border-radius: 27px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.ax-showcase .ax-mid { flex-basis: 290px; transform: translateY(-26px); }
.ax-showcase .ax-mid:hover { transform: translateY(-34px); }

/* ── cartões de descarga ── */
.ax-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.ax-card { position: relative; padding: 28px 26px 26px; border-radius: 30px; background: #fff; border: 1px solid #dfe8fa; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .3s; }
.ax-card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(0, 60, 170, .12); }
.ax-card.is-rec { border-color: #0057e5; box-shadow: 0 24px 54px rgba(0, 87, 229, .18); }
.ax-rec { position: absolute; top: -13px; left: 24px; padding: 5px 14px; border-radius: 999px; background: #0057e5; color: #fff; font: 600 11.5px "Inter", sans-serif; }
.ax-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ax-ic { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, #2f7bff, #0057e5); color: #fff; font-size: 26px; }
.ax-android .ax-ic { background: linear-gradient(135deg, #3ddc84, #1a9b57); }
.ax-ios .ax-ic { background: linear-gradient(135deg, #3a3f4b, #0b1220); }
.ax-card h2 { margin: 0; font: 600 21px "Manrope", sans-serif; letter-spacing: -.02em; }
.ax-card header p { margin: 2px 0 0; color: #5b6b8a; font-size: 13.5px; }
.ax-meta { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0 0 16px; }
.ax-meta li { padding: 10px 12px; border-radius: 14px; background: #f1f6ff; }
.ax-meta small { display: block; color: #5b6b8a; font-size: 11px; font-weight: 500; }
.ax-meta strong { display: block; margin-top: 2px; font: 600 14px "Manrope", sans-serif; }
.ax-steps { counter-reset: p; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.ax-steps li { counter-increment: p; position: relative; padding-left: 40px; color: #43527a; font-size: 14.5px; line-height: 1.6; }
.ax-steps li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e4eeff; color: #0057e5; font: 700 13px "Manrope", sans-serif; }
.ax-steps b { color: #0b1a3d; font-weight: 600; }
.ax-steps a { color: #0057e5; }
.ax-chip { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e4eeff; color: #0057e5; font-size: 12px; vertical-align: middle; }
.ax-note, .ax-soon { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: #f1f6ff; color: #43527a; font-size: 13.5px; line-height: 1.55; }
.ax-note i, .ax-soon i { color: #0057e5; margin-right: 6px; }
.ax-sha { margin-top: 18px; font-size: 13px; color: #5b6b8a; }
.ax-sha summary { cursor: pointer; color: #0057e5; font-weight: 500; }
.ax-sha code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #0b1a3d; color: #bcd6ff; font-size: 11px; word-break: break-all; }
/* destaca o cartão do aparelho de quem visita */
.ax-grid.ax-ios .ax-ios { order: -1; }
.ax-grid.ax-android .ax-android { order: -1; }

/* ── funcionalidades e perguntas ── */
.ax-h2 { margin: 64px 0 24px; font: 600 clamp(26px, 3vw, 34px) "Manrope", sans-serif; letter-spacing: -.03em; text-align: center; }
.ax-feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ax-feat > div { padding: 24px 22px; border-radius: 24px; background: #fff; border: 1px solid #dfe8fa; transition: transform .35s, border-color .3s; }
.ax-feat > div:hover { transform: translateY(-4px); border-color: #0057e5; }
.ax-feat i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #e4eeff; color: #0057e5; font-size: 20px; }
.ax-feat h3 { margin: 14px 0 6px; font: 600 16px "Manrope", sans-serif; }
.ax-feat p { margin: 0; color: #5b6b8a; font-size: 14px; line-height: 1.6; }
.ax-faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.ax-faq details { border-radius: 20px; background: #fff; border: 1px solid #dfe8fa; padding: 0 22px; }
.ax-faq summary { padding: 18px 0; cursor: pointer; font: 600 15.5px "Manrope", sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary::after { content: "+"; flex: none; color: #0057e5; font-size: 22px; line-height: 1; transition: transform .3s; }
.ax-faq details[open] summary::after { transform: rotate(45deg); }
.ax-faq p { margin: 0 0 18px; color: #43527a; line-height: 1.7; font-size: 14.5px; }
.ax-faq a { color: #0057e5; }
.ax-dev { margin: 44px 0 0; text-align: center; color: #5b6b8a; font-size: 14px; }
.ax-dev a { color: #0057e5; text-decoration: none; }

@media (max-width: 1000px) {
  .ax-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .ax-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ax-section { padding: 36px 0 80px; }
  .ax-showcase { margin-top: 0; }
  .ax-showcase figure:not(.ax-mid) { display: none; }
  .ax-showcase .ax-mid { flex-basis: 250px; transform: none; }
  .ax-feat { grid-template-columns: minmax(0, 1fr); }
  .ax-btn { width: 100%; }
  .ax-cta { flex-direction: column; }
  .ax-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
