.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell__main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(30 41 59 / 0.9);
  background: rgb(2 6 23 / 0.95);
  backdrop-filter: blur(10px);
}

.site-header__container,
.site-footer__container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header__container {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgb(248 250 252);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-header__logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
}

.site-header__action {
  border-radius: 0.75rem;
  border: 1px solid rgb(71 85 105);
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(226 232 240);
  transition: all 0.2s ease;
}

.site-header__action:hover {
  border-color: rgb(148 163 184);
  background: rgb(15 23 42);
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  border-top: 1px solid rgb(30 41 59);
  background: rgb(2 6 23 / 0.98);
  backdrop-filter: blur(10px);
}

.site-footer__container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgb(148 163 184);
  font-size: 0.875rem;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__link {
  font-weight: 600;
  color: rgb(226 232 240);
  transition: color 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link[aria-current='page'] {
  color: rgb(34 211 238);
}

@media (max-width: 640px) {
  .site-header__container { min-height: 4.5rem; }
  .site-footer__links { gap: 1rem; flex-wrap: wrap; }
}

@media (min-width: 640px) {
  .site-footer__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.portfolio-filter {
  border: 1px solid rgb(51 65 85);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(148 163 184);
}

.portfolio-filter.is-active {
  border-color: rgb(34 211 238);
  color: rgb(224 242 254);
  background: rgb(8 47 73);
}

.portfolio-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 80%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.portfolio-card {
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .portfolio-carousel {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
  }
}

.mobile-viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mobile-viewport::-webkit-scrollbar { display: none; }

.mobile-slide {
  scroll-snap-align: start;
  min-height: calc(100vh - 8.5rem);
}

.mobile-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.mobile-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgb(51 65 85);
}

.mobile-dot.is-active {
  background: rgb(34 211 238);
}

/* Launcher de MiniApps 5 Horas ------------------------------------------------ */
:root {
  --launcher-bg: #07111f;
  --launcher-surface: rgb(255 255 255 / 0.08);
  --launcher-surface-strong: rgb(255 255 255 / 0.14);
  --launcher-border: rgb(255 255 255 / 0.18);
  --launcher-text: #f8fafc;
  --launcher-muted: #b9c6d8;
  --launcher-accent: #37d4ff;
}

.app-launcher {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--launcher-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgb(55 212 255 / 0.24), transparent 28rem),
    radial-gradient(circle at 84% 4%, rgb(129 140 248 / 0.28), transparent 24rem),
    linear-gradient(145deg, #06101d 0%, #0b1530 46%, #101728 100%);
  overflow-x: hidden;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.app-launcher *,
.app-launcher *::before,
.app-launcher *::after {
  box-sizing: border-box;
}

.app-launcher a {
  color: inherit;
  text-decoration: none;
}

.launcher-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 78rem);
  min-height: 4.75rem;
  margin: 0 auto;
  padding: max(0.75rem, env(safe-area-inset-top)) 0 0.75rem;
  backdrop-filter: blur(18px);
}

.launcher-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.launcher-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 0.26);
  border-radius: 1.05rem;
  color: #05111f;
  font-weight: 900;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, #6ee7f9, #38bdf8 45%, #a78bfa);
  box-shadow: 0 18px 42px rgb(56 189 248 / 0.22);
}

.launcher-brand strong,
.launcher-brand small {
  display: block;
}

.launcher-brand strong {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  letter-spacing: -0.03em;
}

.launcher-brand small {
  margin-top: 0.1rem;
  color: var(--launcher-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.launcher-header__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--launcher-border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: #e0f2fe;
  font-size: 0.875rem;
  font-weight: 800;
  background: rgb(255 255 255 / 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.launcher-header__back:hover,
.launcher-header__back:focus-visible {
  border-color: rgb(125 211 252 / 0.8);
  background: rgb(14 165 233 / 0.18);
  transform: translateY(-1px);
}

.launcher-main {
  width: min(100% - 2rem, 78rem);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.launcher-controls,
.launcher-apps-panel {
  border: 1px solid var(--launcher-border);
  border-radius: 2rem;
  background: var(--launcher-surface);
  box-shadow: 0 18px 54px rgb(0 0 0 / 0.18);
  backdrop-filter: blur(18px);
}

.launcher-controls {
  padding: clamp(1rem, 3vw, 1.35rem);
}

.launcher-search {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.3rem;
  border: 1px solid var(--launcher-border);
  border-radius: 1.25rem;
  padding: 0 1rem;
  background: rgb(255 255 255 / 0.1);
}

.launcher-search:focus-within {
  border-color: rgb(55 212 255 / 0.82);
  box-shadow: 0 0 0 4px rgb(55 212 255 / 0.14);
}

.launcher-search__icon {
  color: var(--launcher-accent);
  font-size: 1.3rem;
  font-weight: 900;
}

.launcher-search input {
  width: 100%;
  min-height: 3rem;
  border: 0;
  outline: 0;
  color: var(--launcher-text);
  font: inherit;
  font-weight: 700;
  background: transparent;
}

.launcher-search input::placeholder {
  color: rgb(203 213 225 / 0.74);
}

.launcher-filters {
  display: flex;
  gap: 0.65rem;
  margin: 1rem -0.15rem 0;
  padding: 0.15rem 0.15rem 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.launcher-filters::-webkit-scrollbar {
  display: none;
}

.launcher-filter {
  flex: 0 0 auto;
  min-height: 2.75rem;
  border: 1px solid var(--launcher-border);
  border-radius: 999px;
  padding: 0 1rem;
  color: #dbeafe;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
}

.launcher-filter.is-active,
.launcher-filter:hover,
.launcher-filter:focus-visible {
  border-color: rgb(55 212 255 / 0.82);
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
}

.launcher-results {
  min-height: 1.4rem;
  margin: 0.65rem 0 0;
  color: var(--launcher-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.launcher-apps-panel {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.launcher-apps-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.launcher-eyebrow,
.launcher-apps-panel__header h1 {
  margin: 0;
}

.launcher-eyebrow {
  color: var(--launcher-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.launcher-apps-panel__header h1 {
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.launcher-apps-panel__count {
  flex: 0 0 auto;
  border: 1px solid var(--launcher-border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: #cffafe;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgb(2 6 23 / 0.22);
}

.launcher-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.9rem;
}

.launcher-app-button {
  display: grid;
  place-items: center;
  gap: 0.8rem;
  min-height: 11rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 1.5rem;
  padding: 1rem;
  text-align: center;
  color: var(--launcher-text);
  background: linear-gradient(145deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.06));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 16px 38px rgb(0 0 0 / 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.launcher-app-button:hover,
.launcher-app-button:focus-visible {
  border-color: rgb(125 211 252 / 0.78);
  outline: 0;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.08));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 22px 50px rgb(0 0 0 / 0.24);
  transform: translateY(-3px);
}

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

.launcher-app-button__icon {
  display: grid;
  place-items: center;
  width: clamp(4.9rem, 9vw, 6.2rem);
  height: clamp(4.9rem, 9vw, 6.2rem);
  border-radius: 1.65rem;
  color: #04111f;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  box-shadow: 0 18px 38px rgb(0 0 0 / 0.26), inset 0 1px 0 rgb(255 255 255 / 0.38);
}

.launcher-app-button__icon--seguro { background: linear-gradient(135deg, #c4b5fd, #6366f1); }
.launcher-app-button__icon--odonto { background: linear-gradient(135deg, #7dd3fc, #0ea5e9); }
.launcher-app-button__icon--escola { background: linear-gradient(135deg, #86efac, #22c55e); }

.launcher-app-button__text {
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.launcher-empty {
  margin: 1rem 0 0;
  border: 1px dashed rgb(255 255 255 / 0.22);
  border-radius: 1rem;
  padding: 1rem;
  color: var(--launcher-muted);
  text-align: center;
  font-weight: 800;
  background: rgb(2 6 23 / 0.18);
}

@media (max-width: 639px) {
  .launcher-header,
  .launcher-main {
    width: min(100% - 1rem, 38rem);
  }

  .launcher-header__back {
    padding-inline: 0.85rem;
    font-size: 0.8rem;
  }

  .launcher-apps-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .launcher-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .launcher-app-button {
    min-height: 9.25rem;
    border-radius: 1.25rem;
  }
}

@media (min-width: 700px) {
  .launcher-app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .launcher-main {
    padding-top: 1.5rem;
  }
}
