/* Círculos em Rede — PWA home wireframe */

:root {
  --c-lilas: #8a61e9;
  --c-lilas-dark: #6d4fd4;
  --c-primary: #667eea;
  --c-secondary: #764ba2;
  --gradient-header: linear-gradient(145deg, #667eea 0%, #764ba2 55%, #6d4fd4 100%);
  --gradient-cta: linear-gradient(135deg, #667eea 0%, #8a61e9 100%);
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --ink-muted: #6c757d;
  --surface: #ffffff;
  --border: #e8e2f4;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-height: 7.5rem;
  --dock-nav-fab-base: 2.35rem;
  --dock-nav-fab-size: calc(var(--dock-nav-fab-base) * 1.492);
  --dock-nav-icon-size: calc(var(--dock-nav-fab-base) * 0.85);
  --sidebar-w: 15.5rem;
}

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

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-height) + var(--safe-bottom));
}

.app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
}

/* —— Header hero —— */
.app-hero {
  position: relative;
  z-index: 0;
  color: #fff;
  padding: 0.85rem 1.15rem 2.75rem;
  overflow: hidden;
  min-height: 17rem;
  background-color: #667eea;
  background-image: url('../assets/header-hero-bg.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.app-hero > * {
  position: relative;
  z-index: 1;
}

.app-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5rem;
  pointer-events: none;
  z-index: 2;
}

.app-hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.app-topbar__start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-topbar__end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.app-brand__mark {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-brand__mark svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

.app-brand__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-brand__text span {
  display: block;
  font-size: 0.68rem;
  opacity: 0.88;
  font-weight: 500;
}

.app-menu-btn {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.app-menu-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.2);
}

.app-menu-btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

.app-hero__inner {
  display: flex;
  align-items: flex-end;
  min-height: 8.5rem;
  padding-bottom: 0.25rem;
}

.app-hero__copy {
  max-width: 52%;
}

.app-hero__copy h1 {
  margin: 0 0 0.5rem;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(40, 30, 90, 0.2);
}

.app-hero__copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(40, 30, 90, 0.25);
}

/* —— Main content —— */
.app-main {
  padding: 0 1.15rem 1.5rem;
  position: relative;
  z-index: 1;
}

.app-home-account {
  margin-bottom: 0.85rem;
}

.app-home-account--guest {
  padding: 0.95rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(102, 126, 234, 0.04);
}

.app-home-account__guest-text {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #5a6478;
}

.app-home-account__login {
  border: none;
  border-radius: 0.65rem;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.app-home-account__main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(26, 35, 50, 0.06);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}

.app-home-account__avatar {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-home-account__avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-home-account__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-home-account__text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2332;
}

.app-home-account__text em {
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #5a6478;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-home-account__pending {
  color: #e53935;
  font-size: 0.65rem;
  vertical-align: middle;
}

.app-home-account__chev {
  flex: 0 0 1rem;
  width: 1rem;
  opacity: 0.45;
}

.app-home-account + .app-home-notices:not([hidden]) {
  margin-top: 0;
}

.app-home-notices[hidden] + .app-cta-find,
.app-home-account[hidden] + .app-home-notices[hidden] + .app-cta-find {
  margin-top: 0;
}

.app-main__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.app-main__cards .app-card-link {
  margin-bottom: 0;
}

.app-cta-find {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 4.35rem;
  margin: 0 0 1.25rem;
  padding: 1.2rem 1.25rem;
  border: none;
  border-radius: 16px;
  background: var(--gradient-cta);
  color: #fff;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(102, 126, 234, 0.42);
  text-decoration: none;
  position: relative;
  z-index: 3;
}

.app-home-notices[hidden] + .app-cta-find {
  margin-top: 0;
}

.app-cta-find:hover {
  filter: brightness(1.03);
  color: #fff;
}

.app-cta-find__icon {
  flex: 0 0 1.5rem;
  opacity: 0.95;
}

.app-cta-find__label {
  flex: 1;
}

.app-cta-find__chev {
  flex: 0 0 1.1rem;
  opacity: 0.9;
}

.app-card-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 1rem 1rem 1rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(26, 35, 50, 0.06);
  text-decoration: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.app-card-link:hover {
  border-color: #d6bcfa;
  box-shadow: 0 6px 22px rgba(138, 97, 233, 0.12);
}

.app-card-link__icon {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(138, 97, 233, 0.12);
  color: var(--c-lilas-dark);
}

.app-card-link__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.app-card-link__body {
  flex: 1;
  min-width: 0;
  padding-top: 0.1rem;
}

.app-card-link__body strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.app-card-link__body span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.app-card-link__chev {
  flex: 0 0 1rem;
  align-self: center;
  color: var(--c-lilas);
}

.app-card-link__badge {
  flex: 0 0 auto;
  align-self: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--c-lilas);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.app-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  background: #f3f0f9;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.app-banner--setembro {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding: 0.9rem 0.85rem;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(246, 214, 67, 0.55);
  border-top: 3px solid #f6d643;
  background: linear-gradient(135deg, #fffef5 0%, #fff8dc 100%);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.app-banner--setembro:hover {
  border-color: #e6c620;
  box-shadow: 0 4px 16px rgba(246, 214, 67, 0.25);
}

.app-banner--setembro__icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.app-banner--setembro__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.app-banner--setembro__body strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7a6200;
}

.app-banner--setembro__body span {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.app-banner--setembro--launch .app-banner--setembro__body strong {
  color: #7a6200;
}

.app-home-mural {
  margin: 0 1.15rem 1rem;
  padding: 1rem 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(76, 81, 191, 0.14);
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.65), #fff 55%);
}

.app-home-mural__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.app-home-mural__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4c51bf;
}

.app-home-mural__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.app-home-mural__all {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4c51bf;
  text-decoration: none;
  padding-top: 0.35rem;
}

.app-home-mural__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.app-home-mural__card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(76, 81, 191, 0.1);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.app-home-mural__card:hover {
  border-color: rgba(76, 81, 191, 0.28);
}

.app-home-mural__photo {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  background: #eef2ff;
}

.app-home-mural__photo--empty {
  display: block;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.app-home-mural__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.app-home-mural__text strong {
  font-size: 0.88rem;
}

.app-home-mural__text span {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-banner--setembro--launch {
  border-top-width: 4px;
  box-shadow: 0 4px 20px rgba(246, 214, 67, 0.35);
}

.app-banner--setembro--launch .app-banner--setembro__body strong {
  color: #5a4800;
}

.hub-campanhas-card--launch {
  border-top: 3px solid #f6d643;
}

.hub-campanhas-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.hub-campanhas-stat {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fffef5;
  border: 1px solid rgba(246, 214, 67, 0.45);
  text-align: center;
}

.hub-campanhas-stat strong {
  display: block;
  font-size: 1.25rem;
  color: #7a6200;
  line-height: 1.1;
}

.hub-campanhas-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.hub-campanhas-stories {
  margin: 0 0 0.85rem;
}

.hub-campanhas-stories__title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.hub-campanhas-stories__more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
}

.hub-campanhas-stories .setembro-stories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hub-campanhas-stories .setembro-story {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fffef5;
  border: 1px solid rgba(246, 214, 67, 0.45);
}

.hub-campanhas-stories .setembro-story__photo {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.hub-campanhas-stories .setembro-story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-campanhas-stories .setembro-story__title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.3;
}

.hub-campanhas-stories .setembro-story__meta {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.hub-campanhas-stories .setembro-story__excerpt {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  font-style: normal;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-campanhas-stories .setembro-story__roteiro {
  display: none;
}

.app-banner__chev {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  color: #9a7b00;
  opacity: 0.85;
}

.app-banner svg {
  flex: 0 0 1.25rem;
  color: var(--c-lilas);
  margin-top: 0.1rem;
}

.app-banner__heart {
  flex: 0 0 1rem;
  margin-left: auto;
  color: var(--c-lilas);
  opacity: 0.7;
}

/* —— Bottom nav —— */
.app-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  width: 100%;
  max-width: none;
  padding: 0.35rem 0.85rem calc(0.42rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -6px 28px rgba(26, 35, 50, 0.08);
  overflow: visible;
}

.app-dock__head {
  display: none;
}

.app-dock__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.app-dock__brand-mark {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  color: var(--c-lilas-dark);
}

.app-dock__brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-dock__brand-text {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-dock__item {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.55rem 0.12rem 0.32rem;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
  height: auto;
  align-self: end;
}

.app-dock__item--roteiros.app-dock__item--active,
.app-dock__item--active {
  color: var(--c-lilas-dark);
}

.app-dock__item--active::before {
  content: '';
  position: absolute;
  top: 0.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
}

.app-dock__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--dock-nav-icon-size);
  height: var(--dock-nav-icon-size);
  color: inherit;
}

.app-dock__icon-wrap svg,
.app-dock__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  flex-shrink: 0;
  color: inherit;
}

.app-dock__label {
  white-space: nowrap;
  color: inherit;
}

.app-dock__fab-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0;
  align-self: end;
  position: relative;
  z-index: 2;
}

.app-dock__fab {
  width: var(--dock-nav-fab-size);
  height: var(--dock-nav-fab-size);
  border: none;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(calc(var(--dock-nav-fab-base) * -0.55));
}

.app-dock__fab > span,
.app-dock__fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.app-dock__fab svg,
.app-dock__fab-icon svg,
.cer-icon--fab {
  width: calc(1.05rem * 1.492 * 2);
  height: calc(1.05rem * 1.492 * 2);
  display: block;
}

.app-dock__fab-label {
  margin-top: calc(var(--dock-nav-fab-base) * -0.492 + 0.05rem);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--c-lilas-dark);
  white-space: nowrap;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .app-dock {
    --dock-nav-icon-size: calc(var(--dock-nav-fab-base) * 0.85 * 0.75);
    padding: 0.28rem 0.55rem calc(0.34rem + var(--safe-bottom));
  }

  .app-dock__item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.18rem;
    width: 100%;
    padding: 0.34rem 0.08rem 0.22rem;
    font-size: 0.515rem;
    text-align: center;
  }

  .app-dock__label {
    width: 100%;
    text-align: center;
    line-height: 1.05;
    white-space: normal;
  }
}

/* —— Tablet (640px+) —— */
@media (min-width: 640px) {
  .app-hero {
    min-height: 18rem;
    padding: 1rem 1.75rem 3rem;
    background-position: center right;
  }

  .app-hero__inner {
    min-height: 9.5rem;
  }

  .app-hero__copy {
    max-width: 48%;
  }

  .app-hero__copy h1 {
    font-size: 2.65rem;
  }

  .app-hero__copy p {
    font-size: 0.92rem;
    max-width: 22rem;
  }

  .app-main {
    padding: 0 1.75rem 2rem;
  }

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

  .app-cta-find {
    font-size: 1.15rem;
    min-height: 4.5rem;
    margin-bottom: 1.35rem;
  }

  .app-card-link {
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem;
  }

  .app-card-link__chev {
    display: none;
  }

  .app-banner {
    font-size: 0.84rem;
    padding: 1rem 1.1rem;
  }
}

/* —— Tablet landscape / small desktop (900px+) —— */
@media (min-width: 900px) {
  .app-hero {
    min-height: 19rem;
    padding: 1.15rem 2.25rem 3.25rem;
  }

  .app-hero__copy {
    max-width: 42%;
  }

  .app-hero__copy h1 {
    font-size: 3rem;
  }

  .app-hero__copy p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .app-main {
    padding: 0.25rem 2.25rem 2.25rem;
  }

  .app-home-notices[hidden] + .app-cta-find {
    margin-top: 0;
  }
}

/* —— Desktop (1024px+): sidebar + conteúdo —— */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }

  .app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
    margin-top: 0;
  }

  .app-hero {
    grid-column: 2;
    grid-row: 1;
    min-height: 16.5rem;
    padding: 1.35rem 2.5rem 3.5rem;
    border-radius: 0;
  }

  .app-hero__copy {
    max-width: 36rem;
  }

  .app-hero__copy h1 {
    font-size: 3.15rem;
  }

  .app-main {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    padding: 0.25rem 2.5rem 2.5rem;
  }

  .app-home-notices[hidden] + .app-cta-find {
    margin-top: 0;
  }

  .app-main__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 1.15rem;
  }

  .app-card-link {
    flex-direction: row;
    align-items: flex-start;
    padding: 1.2rem 1.15rem;
  }

  .app-card-link__chev {
    display: block;
  }

  .app-cta-find {
    max-width: none;
  }

  .app-dock {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    transform: none;
    grid-column: 1;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    width: var(--sidebar-w);
    max-width: none;
    height: 100vh;
    padding: 1.35rem 1rem 1.5rem;
    border-top: none;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    overflow: visible;
  }

  .app-dock__head {
    display: block;
    margin-bottom: 1.35rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--border);
  }

  .app-dock__item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.875rem;
    border-radius: 10px;
    transition: background 0.15s ease;
    align-self: auto;
    width: auto;
  }

  .app-dock__item--active::before {
    display: none;
  }

  .app-dock__item:hover {
    background: rgba(138, 97, 233, 0.06);
  }

  .app-dock__item--active {
    background: rgba(138, 97, 233, 0.12);
  }

  .app-dock__icon-wrap {
    width: 1.25rem;
    height: 1.25rem;
  }

  .app-dock__label {
    white-space: nowrap;
  }

  .app-dock__fab-wrap {
    order: 10;
    flex: 0 0 auto;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    align-self: auto;
  }

  .app-dock__fab {
    width: 100%;
    height: 2.85rem;
    border-radius: 12px;
    transform: none;
    margin-bottom: 0.35rem;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.24);
  }

  .app-dock__fab svg,
  .app-dock__fab-icon svg,
  .cer-icon--fab {
    width: 2.7rem;
    height: 2.7rem;
  }

  .app-dock__fab-label {
    display: block;
    margin-top: 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
  }
}

/* —— Wide desktop (1280px+) —— */
@media (min-width: 1280px) {
  .app-hero {
    min-height: 18rem;
    padding-inline: 3rem;
  }

  .app-hero__copy h1 {
    font-size: 3.5rem;
  }

  .app-main {
    padding-inline: 3rem;
  }

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

.hub-campanhas-sheet {
  z-index: 55;
}

.hub-campanhas-box {
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
}

.hub-campanhas-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hub-campanhas-head__text h2 {
  margin: 0;
  font-size: 1.15rem;
}

.hub-campanhas-head__sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.hub-campanhas-close {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-muted);
}

.hub-campanhas-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.hub-campanhas-card__hero {
  background: #fff8dc;
  text-align: center;
  font-size: 2.5rem;
  padding: 1rem;
  line-height: 1;
}

.hub-campanhas-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.hub-campanhas-greet {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hub-campanhas-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.1rem;
}

.hub-campanhas-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hub-campanhas-steps {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hub-campanhas-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hub-campanhas-actions .hub-roteiros-btn {
  text-align: center;
  text-decoration: none;
}

/* —— Onboarding (minha roda pronta) —— */

.cer-onboarding-open {
  overflow: hidden;
}

.cer-onboarding-sheet {
  z-index: 70;
}

.cer-onboarding-box {
  max-width: 42rem;
  width: 100%;
  max-height: min(92vh, 52rem);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.cer-onboarding-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.cer-onboarding-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cer-onboarding-head__sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.cer-onboarding-head__text {
  flex: 1 1 auto;
  min-width: 0;
}

.cer-onboarding-back,
.cer-onboarding-close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.cer-onboarding-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.cer-onboarding-welcome {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0.25rem 0 0.5rem;
}

.cer-onboarding-welcome__icon {
  display: flex;
  justify-content: center;
  color: var(--c-primary);
  margin-bottom: 0.15rem;
}

.cer-onboarding-welcome__icon svg {
  width: 4.5rem;
  height: 4.5rem;
}

.cer-onboarding-welcome__lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
}

.cer-onboarding-welcome__hint {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}

.cer-onboarding-btn {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.78rem 1rem;
  cursor: pointer;
  border: none;
}

.cer-onboarding-btn--primary {
  color: #fff;
  background: var(--gradient-cta);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.cer-onboarding-btn--ghost {
  color: var(--ink-soft);
  background: transparent;
}

.cer-onboarding-body .hub-roteiros-objetivos,
.cer-onboarding-body .hub-roteiros-list {
  margin-bottom: 0.75rem;
}

.cer-onboarding-body .hub-roteiros-link-btn {
  margin-top: 0.25rem;
}

/* Home — card "Sua próxima roda" */
#app-home-pronta:not([hidden]) {
  margin: 0 0 1rem;
}

.app-home-pronta__inner {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.28);
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.1) 0%, rgba(255, 255, 255, 0.98) 55%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.app-home-pronta__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667eea;
}

.app-home-pronta__status {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4c51bf;
}

.app-home-pronta__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #1a2332;
}

.app-home-pronta__meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #5c667a;
}

.app-home-pronta__sync {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
  font-weight: 600;
}

.app-home-pronta__sync--pending {
  color: #b7791f;
}

.app-home-pronta__sync--ok {
  color: #2f855a;
}

.app-home-pronta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.app-home-pronta__play,
.app-home-pronta__detail {
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.55rem 0.95rem;
}

.app-home-pronta__play {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.28);
}

.app-home-pronta__detail {
  background: #fff;
  color: #4c51bf;
  border: 1px solid rgba(102, 126, 234, 0.35);
}

.app-dock__fab--pronta {
  box-shadow: 0 4px 18px rgba(102, 126, 234, 0.42), 0 0 0 3px rgba(255, 255, 255, 0.85);
  animation: app-fab-pronta-pulse 2.4s ease-in-out infinite;
}

@keyframes app-fab-pronta-pulse {
  0%, 100% { transform: translateY(calc(var(--dock-nav-fab-base) * -0.55)) scale(1); }
  50% { transform: translateY(calc(var(--dock-nav-fab-base) * -0.55)) scale(1.04); }
}

.cer-login-invite-open {
  overflow: hidden;
}

.cer-login-invite-box {
  max-width: 22rem;
  width: 100%;
  padding: 1.25rem 1.2rem 1.35rem;
}

.cer-login-invite-box h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cer-login-invite__lead {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4a5568;
}

.cer-login-invite__hint {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #718096;
}

.cer-login-invite__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cer-login-invite__actions .hub-roteiros-btn {
  width: 100%;
  justify-content: center;
}

.cer-login-invite__later {
  background: transparent;
}
