:root {
  --bg: #f7f5fb;
  --surface: #ffffff;
  --stroke: #e6e1ef;
  --text: #141018;
  --muted: #5d526b;
  --accent: #f4b41a;
  --accent-ink: #1b1203;
  --accent-2: #5b2b82;
  --accent-2-ink: #ffffff;
  --radius: 16px;
  --pill: 999px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body.public-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 24%, rgba(91, 43, 130, 0.12), transparent 60%),
    radial-gradient(2px 2px at 80% 18%, rgba(244, 180, 26, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), #f6f1fb);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 160px at 15% 20%, rgba(91, 43, 130, 0.18), transparent 70%),
    radial-gradient(220px 140px at 85% 30%, rgba(244, 180, 26, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  pointer-events: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
  padding: 14px 20px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
}

.topbar__left,
.topbar__center,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: #fff;
}

.topbar__left { justify-content: space-between; }
.topbar__center { width: 100%; }
.topbar__right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

.logo img {
  height: 36px;
  display: block;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: #fbfafc;
  font-size: 13px;
  color: var(--muted);
}

.location-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.search-pill {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f4f0fa;
  border-radius: var(--pill);
  padding: 6px 8px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-pill input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 15px;
  outline: none;
}

.search-pill button {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--pill);
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

.search-pill:focus-within {
  box-shadow: 0 12px 28px rgba(91, 43, 130, 0.18);
  transform: translateY(-1px);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
}

.pill--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.hero {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 12px 0 16px;
  max-width: 11ch;
  text-wrap: balance;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn--ghost {
  background: transparent;
}

.btn--secondary {
  background: var(--accent-2);
  color: var(--accent-2-ink);
  border-color: var(--accent-2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 18px 0 10px;
}

.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.chip {
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip--active {
  background: #f2e9fb;
  border-color: #d8c7f3;
  color: #4b2470;
}

.chip:hover {
  border-color: #d8c7f3;
  background: #f8f3ff;
}

.filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card-store {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-store__img {
  height: 140px;
  background: linear-gradient(135deg, #efe6ff, #fff2d6);
  display: grid;
  place-items: center;
}

.card-store__img img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.15));
}

.card-store__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: #fbf8ff;
  font-size: 13px;
  color: var(--muted);
}

.meta-pill strong {
  color: var(--text);
}

.card-store__body {
  padding: 14px;
}

.card-store:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(26, 16, 38, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--pill);
  background: #f2f2f4;
  color: var(--muted);
  font-size: 13px;
}

.badge--accent {
  background: #fff3d6;
  color: #6b4b00;
}

.layout-2col {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 18px;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  height: fit-content;
}

.sidebar__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.list-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-item__thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f6f0ff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.list-item__thumb img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.list-item__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price {
  font-weight: 700;
  color: var(--text);
}

.pill--secondary {
  background: #f2e9fb;
  border-color: #d8c7f3;
  color: #4b2470;
}

.stat-grid {
  display: grid;
  gap: 8px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.stat strong {
  color: var(--text);
}

.qty {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.qty:hover {
  background: #f4e8ff;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-2col {
    grid-template-columns: 1fr;
  }
}

.order-summary {
  display: grid;
  gap: 12px;
}

.order-summary .total {
  font-size: 18px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card,
.pricing-empty {
  height: 100%;
}

.pricing-card__price {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text);
}

.pricing-card__price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.pricing-card__copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.pricing-card__limit {
  margin-top: 12px;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.pricing-card__features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.tick {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(244, 180, 26, 0.15);
  border: 1px solid rgba(244, 180, 26, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a5600;
  font-weight: 900;
  flex: 0 0 auto;
}

.pricing-table-wrap {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  font-size: 14px;
}

.pricing-table th {
  background: #fbf8ff;
  color: var(--text);
}

.pricing-table td {
  color: var(--muted);
}

.pricing-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.public-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.public-card-top {
  margin-top: 18px;
}

.public-section-top {
  margin-top: 22px;
}

.public-hero-panel {
  padding: 24px;
}

.public-hero-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.public-hero-title-reset {
  margin: 0;
}

.public-muted-top {
  margin-top: 6px;
}

.public-badges-top {
  margin-top: 10px;
}

.public-hero-cta {
  margin-left: auto;
}

.public-layout-top {
  margin-top: 18px;
}

.public-section-card {
  margin: 16px 24px;
  padding: 20px;
}

.public-list-top {
  margin-top: 8px;
}

.public-row-inline {
  gap: 10px;
  align-items: flex-start;
}

.public-cta-row {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.public-catalog-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.public-card-title {
  font-weight: 700;
}

.public-card-copy-top {
  margin-top: 4px;
}

.public-badge-top {
  margin-top: 8px;
}

.public-row-start {
  justify-content: flex-start;
}

.public-row-between {
  justify-content: space-between;
}

.public-marketplace-hero {
  margin-bottom: 18px;
}

.public-marketplace-hero-title {
  margin-bottom: 8px;
}

.public-marketplace-intro {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.public-marketplace-intro-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.public-marketplace-chip-row {
  margin: 16px 0;
}

.public-marketplace-filters {
  margin-bottom: 16px;
}

.public-marketplace-card-actions {
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.public-marketplace-card-footer {
  margin-top: 12px;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.public-hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.public-home-hero {
  padding: 80px 40px 60px;
  background-color: #0b0614;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0)),
    radial-gradient(400px 400px at 50% 100%, rgba(91, 43, 130, 0.4), transparent 70%),
    radial-gradient(300px 300px at 10% 10%, rgba(244, 180, 26, 0.15), transparent 70%);
  background-repeat: repeat;
  background-size: 200px 200px, 200px 200px, 200px 200px, 200px 200px, 200px 200px, 200px 200px, 100% 100%, 100% 100%;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.05);
}

.public-home-hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.public-home-hero-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.public-home-hero-copy .eyebrow {
  margin-bottom: 12px;
  color: #f4b41a;
  letter-spacing: 0.2em;
}

.public-home-hero-copy h1 {
  background: linear-gradient(135deg, #ffffff, #d8c7f3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff; /* Fallback */
  margin: 0 auto 16px;
  max-width: 16ch;
}

.public-home-hero-copy p.lead {
  color: #c9bede;
  margin: 0 auto 32px;
  max-width: 680px;
}

.public-home-orbit {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.public-home-orbit::before,
.public-home-orbit::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(91, 43, 130, 0.16);
}

.public-home-orbit::before {
  inset: 26px;
}

.public-home-orbit::after {
  inset: 0;
  border-color: rgba(244, 180, 26, 0.24);
}

.public-home-orbit-core {
  position: relative;
  width: min(100%, 320px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(230, 225, 239, 0.92);
  box-shadow: 0 18px 48px rgba(42, 28, 60, 0.12);
}

.public-home-orbit-core::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 30%, rgba(244, 180, 26, 0.24), rgba(244, 180, 26, 0.02));
  z-index: 0;
}

.public-home-orbit-core > * {
  position: relative;
  z-index: 1;
}

.public-home-orbit-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff6dd;
  color: #7a5600;
  font-size: 12px;
  font-weight: 700;
}

.public-home-orbit-title {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.1;
}

.public-home-orbit-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.public-home-orbit-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.public-home-orbit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.public-home-orbit-item strong {
  display: block;
  font-size: 13px;
}

.public-home-orbit-item span {
  color: var(--muted);
}

.public-home-hero-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.public-home-band-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(230, 225, 239, 0.88);
  box-shadow: 0 10px 28px rgba(42, 28, 60, 0.06);
}

.public-home-band-card strong {
  display: block;
  font-size: 13px;
}

.public-home-band-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.public-home-card-top {
  margin-top: 18px;
}

.public-home-card-title {
  font-weight: 700;
  margin-top: 10px;
}

.public-home-card-copy {
  margin-top: 8px;
}

.public-home-badge-top {
  margin-top: 8px;
}

.public-home-section-gap {
  margin-top: 22px;
}

.public-home-section-copy {
  margin-bottom: 12px;
}

.public-home-step-title {
  margin-top: 8px;
}

.public-home-step-copy {
  margin-top: 6px;
}

.public-ready-panel {
  margin-top: 24px;
}

.public-ready-title {
  margin: 8px 0;
}

.public-talent-avatar {
  width: 140px;
  height: 140px;
  border-radius: 18px;
}

.public-hub-avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
}

.public-sidebar-title-top {
  margin-top: 16px;
}

.public-availability-note {
  margin-top: 8px;
}

.public-availability-list {
  margin-top: 10px;
}

.public-availability-row {
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 0;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-home-hero-grid,
  .public-home-hero-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 12px;
    font-size: 13px;
  }
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Linha da equipa: fica findável, mas lê-se como nota de rodapé e não como
   mais uma opção do menu público. O sublinhado é obrigatório — um link dentro
   de uma frase que só se distingue pela cor não é distinguível para quem não
   separa bem as duas cores (WCAG 1.4.1). */
.footer-note--team {
  margin-top: 14px;
  /* SEM `opacity` E SEM 11px, DE PROPOSITO (2026-08-01).
     A versao anterior desbotava esta linha para 75% a 11px. Medido pela mesma
     formula WCAG que o guarda desta casa usa: 2,97:1 sobre o creme do
     marketplace e 3,90:1 sobre o fundo escuro -- ambos abaixo dos 4,5:1
     exigidos, e a 11px nao ha isencao de texto grande. Sem o desbotamento:
     4,75:1 e 6,14:1.
     E o pior era ficar invisivel ao guarda: MarketplaceFooterContrastGuardTest
     le as CORES DECLARADAS e nao sabe nada de `opacity`. Teste verde por cima
     de um buraco -- o padrao que esta casa ja pagou caro.
     A distincao que se pretendia continua la, feita pelo sublinhado e pelo
     espaco, que e como se distingue sem apagar. */
  font-size: 12px;
}

.footer-note--team a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fade-in {
  animation: fadeIn 0.6s ease both;
}

.rise {
  animation: rise 0.6s ease both;
}

.stagger > * {
  animation: rise 0.6s ease both;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.18s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.3s; }
.stagger > *:nth-child(6) { animation-delay: 0.36s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .topbar {
    flex-direction: row;
    align-items: center;
  }

  .topbar__left { flex: 1; }
  .topbar__center { flex: 2; }
  .topbar__right { flex: 1; justify-content: flex-end; }
}

@media (max-width: 720px) {
  .search-pill button {
    padding: 10px 14px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .public-home-hero {
    padding: 34px 24px 28px;
  }

  .public-home-hero-grid,
  .public-home-hero-band {
    grid-template-columns: 1fr;
  }
}
