/* PassPal App Shell — production fixed header/footer */
:root{
  --pp-shell-max:1220px;
  --pp-shell-ink:#08233a;
  --pp-shell-soft:#60718d;
  --pp-shell-blue:#2f64ff;
  --pp-shell-purple:#7657ff;
  --pp-shell-bg:#f2faff;
  --pp-shell-line:rgba(0,43,69,.08);
  --pp-shell-line-strong:rgba(191,211,239,.78);
  --pp-shell-card:rgba(255,255,255,.92);
  --pp-shell-shadow:0 22px 54px rgba(7,29,53,.10);
  --pp-shell-shadow-soft:0 10px 24px rgba(7,29,53,.07);
  --pp-shell-radius:28px;
}

.pp-shell-header,
.pp-shell-footer,
.pp-shell-header *,
.pp-shell-footer *{
  box-sizing:border-box;
}

.pp-shell-header a,
.pp-shell-footer a{
  text-decoration:none;
}

.pp-shell-header img,
.pp-shell-footer img{
  max-width:100%;
  height:auto;
}

.pp-shell-container{
  width:min(calc(100% - 32px), var(--pp-shell-max));
  margin-inline:auto;
}

/* Header */
.pp-shell-header{
  position:sticky;
  top:0;
  z-index:1000;
  padding:10px 0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg, rgba(242,250,255,.94), rgba(242,250,255,.70));
  backdrop-filter:saturate(160%) blur(18px);
  -webkit-backdrop-filter:saturate(160%) blur(18px);
  border-bottom:1px solid rgba(0,43,69,.045);
}

.pp-header-inner{
  min-height:68px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
}

.pp-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:var(--pp-shell-ink);
}

.pp-brand-mark{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:16px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.96);
  border:1px solid var(--pp-shell-line);
  box-shadow:0 12px 24px rgba(53,81,149,.14);
}

.pp-brand-mark img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.pp-brand-copy{
  display:grid;
  gap:2px;
  min-width:0;
}

.pp-brand-copy strong{
  color:var(--pp-shell-ink);
  font-size:1.02rem;
  line-height:1;
  letter-spacing:-.02em;
}

.pp-brand-copy span{
  color:var(--pp-shell-soft);
  font-size:.82rem;
  line-height:1.15;
  white-space:nowrap;
}

.pp-desktop-nav{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:6px;
  border-radius:999px;
  background:rgba(255,255,255,.52);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

.pp-desktop-nav a{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:999px;
  color:var(--pp-shell-soft);
  font-weight:760;
  font-size:.96rem;
  letter-spacing:-.01em;
  white-space:nowrap;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}

.pp-desktop-nav a:hover,
.pp-desktop-nav a:focus-visible,
.pp-desktop-nav a.is-active{
  color:var(--pp-shell-ink);
  background:rgba(255,255,255,.92);
  outline:none;
}

.pp-header-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
}

.pp-language{
  position:relative;
}

.pp-language-button{
  min-height:44px;
  min-width:76px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid var(--pp-shell-line);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94), var(--pp-shell-shadow-soft);
  color:var(--pp-shell-ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font:inherit;
  font-weight:850;
}

.pp-chevron{
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  opacity:.65;
}

.pp-language-menu{
  position:absolute;
  top:calc(100% + 9px);
  right:0;
  min-width:190px;
  padding:8px;
  border-radius:18px;
  display:none;
  background:rgba(255,255,255,.98);
  border:1px solid var(--pp-shell-line);
  box-shadow:var(--pp-shell-shadow);
}

.pp-language.is-open .pp-language-menu{
  display:grid;
  gap:4px;
}

.pp-language-menu a{
  min-height:42px;
  padding:0 12px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--pp-shell-ink);
  font-weight:760;
}

.pp-language-menu a:hover,
.pp-language-menu a:focus-visible,
.pp-language-menu a.is-active{
  background:rgba(79,124,255,.08);
  outline:none;
}

.pp-language-menu span{
  color:var(--pp-shell-soft);
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.06em;
}

.pp-header-cta{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 19px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg, var(--pp-shell-blue), var(--pp-shell-purple));
  box-shadow:0 16px 32px rgba(84,94,225,.24);
  font-weight:850;
  white-space:nowrap;
  transition:transform .16s ease;
}

.pp-header-cta:hover,
.pp-header-cta:focus-visible{
  transform:translateY(-1px);
  outline:none;
}

.pp-menu-button{
  display:none;
  width:44px;
  height:44px;
  border-radius:15px;
  border:1px solid var(--pp-shell-line);
  background:rgba(255,255,255,.92);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94), var(--pp-shell-shadow-soft);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  font:inherit;
}

.pp-menu-button span,
.pp-menu-button span::before,
.pp-menu-button span::after{
  content:"";
  width:19px;
  height:2px;
  border-radius:999px;
  background:var(--pp-shell-ink);
  display:block;
  position:relative;
  transition:.18s ease;
}

.pp-menu-button span::before{position:absolute;top:-6px}
.pp-menu-button span::after{position:absolute;top:6px}
.pp-menu-button[aria-expanded="true"] span{background:transparent}
.pp-menu-button[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
.pp-menu-button[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}

.pp-mobile-menu{
  padding:0 0 10px;
}

.pp-mobile-panel{
  display:grid;
  gap:8px;
  padding:12px;
  border-radius:24px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--pp-shell-line);
  box-shadow:var(--pp-shell-shadow);
}

.pp-mobile-panel > a{
  min-height:48px;
  display:flex;
  align-items:center;
  padding:0 16px;
  border-radius:16px;
  color:var(--pp-shell-ink);
  background:rgba(245,249,255,.74);
  border:1px solid rgba(0,43,69,.045);
  font-weight:800;
}

.pp-mobile-panel > a.is-active{background:rgba(79,124,255,.10)}

.pp-mobile-cta-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:4px;
}

.pp-mobile-cta{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  font-weight:850;
}

.pp-mobile-cta-primary{
  color:#fff;
  background:linear-gradient(135deg, var(--pp-shell-blue), var(--pp-shell-purple));
}

.pp-mobile-cta-secondary{
  color:var(--pp-shell-ink);
  background:rgba(255,255,255,.95);
  border:1px solid var(--pp-shell-line);
}

/* Footer */
.pp-shell-footer{
  padding:26px 0 34px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.pp-footer-card{
  position:relative;
  overflow:hidden;
  border-radius:var(--pp-shell-radius);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84));
  border:1px solid var(--pp-shell-line);
  box-shadow:var(--pp-shell-shadow);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.pp-footer-card::before{
  content:"";
  position:absolute;
  right:-72px;
  top:-74px;
  width:260px;
  height:260px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(122,92,255,.12), transparent 62%);
  pointer-events:none;
}

.pp-footer-main{
  position:relative;
  display:grid;
  grid-template-columns:minmax(330px, 1.12fr) minmax(160px, .50fr) minmax(250px, .72fr);
  gap:clamp(42px, 6vw, 104px);
  align-items:start;
  padding:34px 36px 30px;
}

.pp-footer-brand{min-width:0}
.pp-footer-brand-link{margin-bottom:24px}

.pp-footer-statement{
  margin:0;
  max-width:42ch;
  color:var(--pp-shell-soft);
  font-size:1.04rem;
  line-height:1.56;
}

.pp-footer-statement strong{color:var(--pp-shell-ink)}

.pp-footer-support{
  margin:18px 0 0;
  max-width:48ch;
  color:var(--pp-shell-soft);
  line-height:1.6;
}

.pp-footer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.pp-footer-actions a{
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--pp-shell-ink);
  background:rgba(255,255,255,.88);
  border:1px solid var(--pp-shell-line);
  font-weight:850;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
}

.pp-footer-actions a:last-child{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--pp-shell-blue),var(--pp-shell-purple));
}

.pp-footer-col{
  display:grid;
  gap:13px;
}

.pp-footer-col h2{
  margin:0 0 6px;
  color:var(--pp-shell-ink);
  font-size:1.02rem;
  line-height:1.1;
  letter-spacing:-.02em;
}

.pp-footer-col a{
  color:var(--pp-shell-soft);
  line-height:1.35;
  font-weight:650;
}

.pp-footer-col a:hover,
.pp-footer-col a:focus-visible{
  color:var(--pp-shell-ink);
  outline:none;
}

.pp-footer-accordion{display:none}

.pp-footer-bottom{
  position:relative;
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:20px 36px 24px;
  border-top:1px solid rgba(0,43,69,.075);
  color:var(--pp-shell-soft);
  font-size:.94rem;
}

/* Responsive */
@media (max-width:1040px){
  .pp-desktop-nav{display:none}
  .pp-menu-button{display:inline-flex}
  .pp-header-cta{display:none}
}

@media (max-width:920px){
  .pp-footer-main{
    grid-template-columns:1fr 1fr;
    gap:30px;
  }
  .pp-footer-brand{grid-column:1 / -1}
}

@media (max-width:700px){
  .pp-shell-container{width:min(calc(100% - 24px), var(--pp-shell-max))}
  .pp-shell-header{padding:8px 0}
  .pp-header-inner{min-height:60px;gap:10px}
  .pp-brand-mark{width:42px;height:42px;flex-basis:42px;border-radius:14px}
  .pp-brand-copy strong{font-size:.98rem}
  .pp-brand-copy span{font-size:.76rem}
  .pp-language-button{min-width:66px;min-height:42px;padding:0 10px}
  .pp-menu-button{width:42px;height:42px;border-radius:14px}
  .pp-mobile-cta-row{grid-template-columns:1fr}

  .pp-footer-card{border-radius:24px}
  .pp-footer-main{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
    padding:22px 20px 18px;
  }

  .pp-footer-desktop-col{display:none}
  .pp-footer-accordion{
    display:grid;
    gap:0;
    border-top:1px solid rgba(0,43,69,.075);
    border-bottom:1px solid rgba(0,43,69,.075);
  }

  .pp-footer-accordion details{border-bottom:1px solid rgba(0,43,69,.075)}
  .pp-footer-accordion details:last-child{border-bottom:none}

  .pp-footer-accordion summary{
    min-height:56px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    color:var(--pp-shell-ink);
    font-weight:850;
    list-style:none;
  }

  .pp-footer-accordion summary::-webkit-details-marker{display:none}
  .pp-footer-accordion summary::after{
    content:"⌄";
    font-size:1.2rem;
    line-height:1;
    transition:transform .16s ease;
  }
  .pp-footer-accordion details[open] summary::after{transform:rotate(180deg)}

  .pp-footer-accordion details a{
    display:block;
    min-height:42px;
    padding:0 0 10px 0;
    color:var(--pp-shell-soft);
    font-weight:700;
  }

  .pp-footer-actions{display:grid;grid-template-columns:1fr}
  .pp-footer-actions a{width:100%}

  .pp-footer-bottom{
    display:grid;
    gap:10px;
    padding:18px 20px 22px;
  }
}

@media (max-width:390px){
  .pp-brand-copy span{display:none}
  .pp-language-button{min-width:58px}
}

@media (prefers-reduced-motion: reduce){
  .pp-shell-header *,
  .pp-shell-footer *,
  .pp-shell-header *::before,
  .pp-shell-header *::after,
  .pp-shell-footer *::before,
  .pp-shell-footer *::after{
    transition:none!important;
    animation:none!important;
  }
}

/* ===== iPad/Safari footer blank-scroll cleanup =====
   Fixes iPad visual-viewport/safe-area extra scroll under the footer.
   Keep this near the end of /assets/css/shell.css.
*/
html,
body{
  overflow-x:hidden;
}

.pp-shell-footer{
  margin-bottom:0 !important;
  padding-bottom:max(20px, env(safe-area-inset-bottom)) !important;
}

.pp-footer-card{
  margin-bottom:0 !important;
}

/* Tablet Safari / iPadOS: reduce footer and page-bottom overhang without hurting desktop. */
@media (min-width:700px) and (max-width:1180px){
  main{
    padding-bottom:0 !important;
  }

  .pp-shell-footer{
    padding-bottom:20px !important;
  }

  .pp-footer-bottom{
    padding-bottom:20px !important;
  }
}

/* iPad landscape often reports desktop-like widths but still has Safari viewport quirks. */
@supports (-webkit-touch-callout:none){
  @media (min-width:700px) and (max-width:1366px){
    body{
      min-height:-webkit-fill-available;
    }

    main{
      padding-bottom:0 !important;
    }

    .pp-shell-footer{
      margin-bottom:0 !important;
      padding-bottom:18px !important;
    }
  }
}

