/* Z.PAY — shell sticker compartilhado (subpáginas) */
:root {
  --ink: #2a2941;
  --ink-soft: #5c5a7a;
  --mint: #32edbb;
  --amber: #fec34e;
  --lavender: #a694fe;
  --violet: #4840ff;
  --paper: #f0edff;
  --white: #ffffff;
  --font-display: "CameraPlainVariable", Inter, ui-sans-serif, system-ui, sans-serif;
  --background: var(--paper);
  --foreground: var(--ink);
}

* { box-sizing: border-box; }

html {
  background: var(--paper) !important;
  scrollbar-width: thin;
  scrollbar-color: var(--mint) transparent;
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: var(--mint);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover {
  background: #1fd4a3;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.sticker-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(42, 41, 65, 0.13) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: var(--mint) transparent;
}

body.sticker-page::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.sticker-page::-webkit-scrollbar-track {
  background: transparent;
}

body.sticker-page::-webkit-scrollbar-thumb {
  background: var(--mint);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.sticker-page::-webkit-scrollbar-thumb:hover {
  background: #1fd4a3;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.sticker-page ::selection {
  background: var(--amber);
  color: var(--ink);
}

h1, h2, h3, .btn, .kicker, .sub-nav a {
  font-family: var(--font-display);
}

.page-bg-layer,
.page-bg-overlay {
  display: none !important;
}

.page-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Conteúdo acima do footer — rail da Zayla para em sticky no fim */
.page-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-zayla-rail {
  display: none;
}

@media (min-width: 1100px) {
  .page-zayla-rail {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: min(24rem, 28vw);
    pointer-events: none;
  }

  .page-zayla {
    display: block;
    width: min(24rem, 28vw);
    height: auto;
    mix-blend-mode: lighten;
    user-select: none;
    /* position/bottom aplicados por page-zayla.js */
    position: fixed;
    left: 0;
    bottom: 0;
  }

  .page-zayla--flip {
    transform: scaleX(-1);
  }

  .page-body > .page-main,
  .page-body > .termos-main,
  .page-body > .docs-public-main,
  .page-body > .sub-nav-wrap {
    position: relative;
    z-index: 2;
  }

  .sub-footer {
    position: relative;
    z-index: 3;
  }
}

/* ---- Nav ---- */
.sub-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0.85rem 1rem 0;
  pointer-events: none;
}

.sub-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 96%;
  max-width: 1100px;
  min-height: 88px;
  padding: 0.55rem 1rem 0.55rem 1.25rem;
  border: 3px solid var(--ink);
  border-radius: 9999px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.sub-nav .page-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.sub-nav .page-logo img {
  display: block;
  height: 78px;
  width: auto;
}

.sub-nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  border: 3px solid transparent;
  border-radius: 9999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sub-nav-links a:hover,
.sub-nav-links a.is-active {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.sub-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .sub-nav-links { display: flex; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border: 3px solid var(--ink);
  border-radius: 9999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--mint { background: var(--mint); }
.btn--amber { background: var(--amber); }
.btn--lav { background: var(--lavender); }
.btn--ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--amber);
}
.btn--ink:hover { box-shadow: 6px 6px 0 var(--amber); }

/* Map old glass buttons to sticker */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0.72rem 1.25rem;
  border: 3px solid var(--ink);
  border-radius: 9999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-glass:hover {
  background: var(--mint);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-glass.sm {
  height: auto;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

/* ---- Page content ---- */
.page-main,
.termos-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 9999px;
  background: var(--lavender);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kicker--mint { background: var(--mint); }
.kicker--amber { background: var(--amber); }

.page-main h1,
.termos-main h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.page-intro,
.termos-intro {
  margin: 0 0 2.2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

.sticker-card {
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

/* ---- Footer ---- */
.sub-footer {
  margin-top: auto;
  padding: 2.5rem 1.5rem 2rem;
  border-top: 3px solid var(--ink);
  background: var(--white);
}

.sub-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sub-footer-logo {
  height: 72px;
  width: auto;
  display: block;
}

.sub-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.sub-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-footer-links a {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.sub-footer-links a:hover,
.sub-footer-links a.is-active {
  color: var(--violet);
}

.sub-footer--status .sub-footer-inner {
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
}

.sub-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.sub-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.sub-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sub-footer__brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.sub-footer__brand-text span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.sub-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 2.5px solid var(--ink);
  border-radius: 9999px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sub-footer__status:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.sub-footer__status.is-degraded,
.sub-footer__status.is-partial {
  background: var(--amber);
}

.sub-footer__status.is-major,
.sub-footer__status.is-unknown {
  background: #ff6b6b;
  color: var(--white);
}

.sub-footer__status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  border: 2px solid currentColor;
  background: currentColor;
  flex-shrink: 0;
}

.sub-footer__status-ms {
  opacity: 0.75;
  font-weight: 700;
}

.sub-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding-top: 1.1rem;
  border-top: 2px solid rgba(42, 41, 65, 0.12);
}

@media (max-width: 640px) {
  .sub-nav {
    width: 100%;
    border-radius: 22px;
    padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  }

  .sub-nav .page-logo img {
    height: 60px;
  }

  .btn,
  .btn-glass {
    padding: 0.62rem 0.95rem;
    font-size: 0.82rem;
  }
}
