/* FPT Academy: phone optimisation (max-width 768px). Desktop is not affected. */
.fptm-more { display: none; }
.fptm-dots { display: none; }

@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  html.fptm-lock, html.fptm-lock body { overflow: hidden; }
  body { font-size: 16px; line-height: 1.5; }
  img, video, iframe, svg { max-width: 100%; }
  img { height: auto; }

  /* Typography */
  h1, .hero h1, .shell-hero h1, .page-banner h1, .article-hero h1, .fptb-hero h1 { font-size: clamp(28px, 8vw, 32px) !important; line-height: 1.15; }
  h2, .section h2, .cta h2 { font-size: clamp(22px, 6vw, 24px); line-height: 1.25; }
  h3 { font-size: 18px; line-height: 1.3; }
  p, li { line-height: 1.5; }
  .hero .eyebrow { font-size: 12px; letter-spacing: 0.08em; line-height: 1.4; margin: 14px 0 10px; max-height: 2.8em; overflow: hidden; }
  .section-label { font-size: 12px; }

  /* Spacing */
  .section { padding: 48px 0; }
  .cta { padding: 44px 0; }
  .shell-hero, .page-banner { padding: 40px 0; }
  .fptb-hero__inner { padding: 28px 20px 36px; gap: 12px; }
  .fptb-hero p { font-size: 16px; }
  .article-hero { padding: 36px 0 28px; }

  /* Header: slim sticky bar and full-screen menu */
  header { position: sticky; top: 0; }
  .nav { height: 64px; }
  .logo { width: auto; height: 48px; }
  .menu { min-width: 44px; min-height: 44px; font-size: 26px; background: none; border: 0; color: #7a0f2e; }
  .links { top: 64px; }
  .links.open {
    display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 64px; height: calc(100dvh - 64px); overflow-y: auto;
    padding: 8px 20px 120px; box-shadow: none; background: #fff; -webkit-overflow-scrolling: touch;
  }
  .links.open a, .links.open .nav-qualifications > a { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: flex-start; text-align: left; font-size: 17px; border-bottom: 1px solid #edf1f4; border-radius: 0; padding: 0 4px; }
  .links.open .qualification-menu { display: none; }
  .links.open .nav-qualifications { width: 100%; }
  .links.open .login { margin-top: 14px; justify-content: center; border: 2px solid #7a0f2e; border-radius: 10px; min-height: 48px; }

  /* Ecosystem bar: compact, four pills fit, label hidden */
  .fpt-eco__inner { padding: 4px 12px; gap: 0; }
  .fpt-eco__home { min-height: 30px; }
  .fpt-eco__home-name { font-size: 14px; }
  .fpt-eco__journey { width: 100%; gap: 2px; justify-content: space-between; scroll-snap-type: x proximity; }
  .fpt-eco__label, .fpt-eco__sep { display: none; }
  .fpt-eco__step { min-height: 40px; gap: 5px; padding: 0 6px 0 2px; font-size: 13px; scroll-snap-align: start; }
  .fpt-eco__num { width: 22px; height: 22px; font-size: 11px; }

  /* Hero: call to action on the first screen */
  .hero-inner { padding: 22px 0 28px; }
  .powered-by { padding: 6px 14px 6px 8px; min-height: 0; gap: 8px; }
  .powered-by span { font-size: 13px; }
  body.rpl-mode .powered-by img.powered-by-tree { width: 32px; height: 31px; }
  .hero p { font-size: 16px; }
  .hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .hero-seal { width: 150px; height: 150px; margin: 24px auto 0; padding: 14px; }
  .hero-seal img { width: 120px; height: 120px; }

  /* Buttons and taps */
  .hero-actions a, .cta-actions a, .mini-action, .form-grid button[type="submit"] { min-height: 48px; display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; text-align: center; }
  .primary, .secondary { min-height: 48px; box-sizing: border-box; max-width: 100%; }
  .cta-actions { display: flex; flex-direction: column; gap: 10px; }
  .links a, .fpt-footer a, button, [role="button"], input[type="submit"] { min-height: 44px; }
  input, select, textarea { font-size: 16px; min-height: 44px; }

  /* Compact card grids */
  .proof-inner { padding: 6px 0; }
  .proof-item { padding: 10px 0; }
  .explain-card, .check-card, .not-guarantee, .evidence-intro { padding: 20px; }
  .section .lead { font-size: 16px; }
  .benefit-grid, .process {
    display: flex; grid-template-columns: none; gap: 12px; margin-top: 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
    margin-left: -19px; margin-right: -19px; padding-left: 19px; padding-right: 19px; scroll-padding-left: 19px;
  }
  .benefit-grid::-webkit-scrollbar, .process::-webkit-scrollbar { display: none; }
  .benefit-grid > *, .process > * { flex: 0 0 78%; scroll-snap-align: start; padding: 18px 16px; }
  .benefit-icon { width: 38px; height: 38px; font-size: 18px; margin-bottom: 8px; }
  .fptm-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
  .fptm-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d3c3c9; }
  .fptm-dots span.on { background: #7a0f2e; }

  /* Show more for long lists */
  .is-collapsed > *:nth-child(n+4) { display: none; }
  .fptm-more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 10px; padding: 0 18px; border: 2px solid #7a0f2e; border-radius: 10px; background: #fff; color: #7a0f2e; font: inherit; font-weight: 800; cursor: pointer; }
  .evidence { padding: 12px 14px; }

  /* FAQ */
  .faq-button { min-height: 52px; }

  /* Footer: accordions and 2x2 apps */
  .fpt-footer__main { padding: 28px 20px 20px; gap: 18px; }
  .fpt-footer__logo { width: 64px; height: 64px; padding: 5px; border-radius: 12px; }
  .fpt-footer__seal { width: 56px; height: 56px; }
  .fpt-footer__brand { gap: 10px; }
  .fpt-footer__name { font-size: 22px; }
  .fpt-footer__desc { font-size: 15px; line-height: 1.5; }
  .fpt-footer__heading { margin: 0 0 12px; font-size: 13px; }
  .fpt-footer__heading.fptm-acc { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin: 0; cursor: pointer; border-top: 1px solid rgba(255,255,255,.2); }
  .fpt-footer__heading.fptm-acc::after { content: "+"; font-size: 22px; line-height: 1; }
  .fpt-footer__heading.fptm-acc[aria-expanded="true"]::after { content: "\2212"; }
  .fptm-acc-panel[hidden] { display: none; }
  .fpt-footer__journey { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; list-style: none; margin: 8px 0; }
  .fpt-footer__journey .fpt-footer__app { min-height: 56px; padding: 8px 10px; }
  .fpt-footer__journey .fpt-footer__app-name { font-size: 14px; }
  .fpt-footer__phone { font-size: 24px; }
  .fpt-footer__bottom-inner { padding: 14px 20px; gap: 8px; }
  .fpt-footer { padding-bottom: 76px; }
}
@media (max-width: 400px) { .fpt-eco__step { font-size: 12.5px; padding-right: 4px; } }

@media (max-width: 768px) {
  .fpt-eco__step { gap: 4px; padding: 0 3px 0 0; font-size: 12.5px; }
  .fpt-eco__num { width: 20px; height: 20px; }
  .fpt-eco__journey { gap: 0; }
  .hero-seal { width: 120px; height: 120px; margin: 18px auto 0; padding: 10px; }
  .hero-seal img { width: 100px; height: 100px; }
  .hero-inner { padding: 18px 0 22px; }
}

@media (max-width: 768px) {
  .fpt-footer__bottom { padding-bottom: 72px; }
  .section { padding: 40px 0; }
  .section .lead, .section p { font-size: 15px; line-height: 1.5; }
  .section h2 { margin-bottom: 10px; }
  .explain-card, .check-card, .not-guarantee, .evidence-intro, .faq-item { padding: 16px; }
  .explain-card h3, .check-card h3, .not-guarantee h3, .evidence-intro h3 { margin: 0 0 8px; }
  .checks li { padding: 8px 0; gap: 10px; }
  .eligibility, .evidence-wrap, .split { gap: 14px; margin-top: 16px; }
  .faq-button { padding: 12px 14px; font-size: 16px; }
  .membership-form-section .container, .cta-inner { padding-top: 0; padding-bottom: 0; }
  .proof-item { padding: 8px 0; }
}
@media (max-width: 768px) {
  .faq-item { padding: 0; }
  .faq-button { font-size: 15px; padding: 10px 14px; min-height: 48px; }
  .faq { gap: 10px; }
}
@media (max-width: 400px) {
  .fpt-eco__step { font-size: 12px; gap: 3px; padding: 0 2px 0 0; }
  .fpt-eco__num { width: 18px; height: 18px; font-size: 10px; }
  .fpt-eco__inner { padding-left: 8px; padding-right: 8px; }
}
