/* ========================================================
   @preguicacapitalista · sistema visual
   Baseado em SKILL.md v2 — Bricolage Grotesque + DM Mono
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,700;12..96,800&family=DM+Mono:wght@300;400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* paleta marca-mãe */
  --canvas: #F8F4ED;
  --tinta: #1A1815;
  --neon: #00FF88;
  --dark: #0A0A0A;

  /* tipografia */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'DM Mono', 'Consolas', monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  /* paleta do cluster atual (sobrescrito via JS) */
  --cluster-fundo: var(--canvas);
  --cluster-acento1: var(--tinta);
  --cluster-acento2: #6B7A4F;
  --cluster-texto: var(--tinta);
}

/* ===== reset minimalista ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.5;
  background: var(--cluster-fundo);
  color: var(--cluster-texto);
  min-height: 100vh;
  font-stretch: 80%;
  letter-spacing: -0.01em;
  transition: background 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ===== layout container ===== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ===== wordmark (header global) ===== */
header.wordmark {
  padding: 1.25rem 0 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.wm-1 {
  font-family: var(--display);
  font-weight: 300;
  font-stretch: 80%;
  letter-spacing: -0.04em;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
}
.wm-2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.04em;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
}
.wm-2 .lista {
  background-image: linear-gradient(180deg, transparent 0%, transparent 50%, var(--neon) 50%, var(--neon) 92%, transparent 92%);
  padding: 0 0.05em;
}
header.wordmark a { display: contents; }

/* nos posts de cluster, o marker neon some */
body.in-cluster .wm-2 .lista {
  background-image: none;
  padding: 0;
}

/* ===== HOME / HUB ===== */
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.3;
  margin: 0 0 0.5rem;
  max-width: 16em;
}
.promessa {
  font-family: var(--mono);
  font-size: 0.95rem;
  margin: 0 0 3rem;
  opacity: 0.7;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.5rem;
}
.social-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.social-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.social-btn.whatsapp { background: #25D366; color: #fff; }
.social-btn.instagram { background: var(--tinta); color: var(--canvas); }
.social-btn.instagram::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.4em;
  vertical-align: -0.05em;
  background: var(--neon);
  border-radius: 4px;
}
.social-btn.whatsapp::before { content: "✱ "; }

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.cluster-card {
  display: block;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cluster-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.cluster-card.empty { cursor: not-allowed; position: relative; }
.cluster-card.empty:hover { transform: none; box-shadow: none; }
.cluster-card.empty::after {
  content: 'EM BREVE';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.55rem;
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
}
.cluster-card .cc-nome {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.04em;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 0.2em;
}
.cluster-card .cc-op {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.cluster-card .cc-desc {
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.cluster-card .cc-stats {
  font-family: var(--mono);
  font-size: 0.78rem;
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  opacity: 0.65;
}

/* ===== PÁGINA DE KIT ===== */
.kit-hero {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid currentColor;
  margin-bottom: 2rem;
  border-color: var(--cluster-acento1);
  opacity: 1;
}
.kit-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  line-height: 0.95;
  margin-bottom: 0.5rem;
  color: var(--cluster-acento1);
}
.kit-hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.kit-hero .meta {
  font-family: var(--mono);
  font-size: 0.85rem;
  opacity: 0.8;
}
.kit-hero .meta span { margin-right: 1rem; }

.section-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  background: var(--cluster-fundo);
  padding: 0.75rem 0;
  z-index: 10;
}
.section-nav button {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--cluster-acento1);
  border-radius: 999px;
  background: transparent;
  color: var(--cluster-texto);
  transition: all 0.15s ease;
}
.section-nav button.active {
  background: var(--cluster-acento1);
  color: var(--cluster-fundo);
}
.section-nav button:hover:not(.active) { background: rgba(0,0,0,0.05); }

.section-header {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: -0.03em;
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--cluster-acento1);
}

/* ===== item card ===== */
.item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.item-image {
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid rgba(0,0,0,0.05);
}
.item-image img {
  max-width: 240px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  .item-image { background: rgba(255,255,255,0.92); }
  .item-image img { mix-blend-mode: normal; }
}
.item-cat {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--cluster-acento1);
  color: var(--cluster-fundo);
  flex-shrink: 0;
}
.item-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
}
.tier {
  padding: 0.85rem 0.85rem 1rem;
  border: 1px solid var(--cluster-acento1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.default {
  background: var(--cluster-acento1);
  color: var(--cluster-fundo);
}
.tier.bloqueado {
  border-style: dashed;
  opacity: 0.6;
}
.tier-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}
.tier-modelo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.tier-preco {
  font-family: var(--mono);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.tier-spec {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.buy-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tier-cta {
  padding: 0.5rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: center;
  display: block;
  transition: all 0.15s ease;
  position: relative;
}
.tier-cta::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.45em;
  vertical-align: 0.05em;
}
.tier-cta.ml::before { background: #FFE600; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.tier-cta.shopee::before { background: #EE4D2D; }
.tier.default .tier-cta { border-color: var(--cluster-fundo); }
.tier-cta:hover { background: var(--cluster-texto); color: var(--cluster-fundo); }
.tier.default .tier-cta:hover { background: var(--cluster-fundo); color: var(--cluster-acento1); }
.tier-bloqueado-msg {
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.85;
  line-height: 1.35;
}

/* ===== footer comum ===== */
footer.global {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid currentColor;
  border-color: rgba(0,0,0,0.15);
  font-family: var(--mono);
  font-size: 0.78rem;
  opacity: 0.7;
  line-height: 1.5;
}
footer.global p { margin-bottom: 0.3em; }

/* ===== back link ===== */
.back {
  font-family: var(--mono);
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.back:hover { opacity: 1; }

/* ===== breadcrumb ===== */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.4;
}
.breadcrumb .bc-link {
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.breadcrumb .bc-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .bc-current { font-weight: 500; opacity: 1; }
.breadcrumb .bc-sep { opacity: 0.4; margin: 0 0.3em; }

/* ===== loading state ===== */
.loading {
  font-family: var(--mono);
  opacity: 0.5;
  padding: 2rem 0;
  text-align: center;
}

/* ===== utilitários ===== */
.muted { opacity: 0.6; }
.hidden { display: none !important; }

/* ===== busca no kit ===== */
.search-wrap {
  margin-bottom: 1.5rem;
}
.search-wrap input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--cluster-acento1);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--cluster-texto);
  outline: none;
  transition: border-color 0.15s ease;
}
.search-wrap input:focus { border-color: var(--cluster-acento2); border-width: 2px; padding: calc(0.7rem - 1px) calc(1rem - 1px); }
.search-wrap input::placeholder { opacity: 0.5; }

.item.hidden-by-search { display: none; }
.no-results {
  font-family: var(--mono);
  font-size: 0.9rem;
  opacity: 0.6;
  text-align: center;
  padding: 2rem 0;
}

/* ===== página /sobre ===== */
.sobre { padding-top: 1rem; }
.sobre-hero {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.04em;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.sobre-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 3rem;
  max-width: 28em;
}
.sobre section { margin-bottom: 2.5rem; }
.sobre h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: -0.03em;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--neon);
  text-shadow: 0 0 0 transparent;
  background-image: linear-gradient(180deg, transparent 0%, transparent 65%, var(--neon) 65%, var(--neon) 95%, transparent 95%);
  display: inline;
  padding: 0 0.1em;
  color: var(--tinta);
}
.sobre p { margin-bottom: 1rem; max-width: 38em; }
.sobre ul.clusters-mini {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}
.sobre ul.clusters-mini li {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--tinta);
}
.sobre ul.clusters-mini strong { font-family: var(--display); font-weight: 800; }
.sobre a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sobre a:hover { text-decoration-color: var(--neon); }

/* ===== microinterações ===== */
.cluster-card, .tier-cta, .section-nav button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease;
}
.cluster-card:focus-visible, .tier-cta:focus-visible, .section-nav button:focus-visible, .search-wrap input:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

/* ===== botões de compartilhamento ===== */
.share-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.share-btn {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--cluster-acento1, var(--tinta));
  color: var(--cluster-fundo, var(--canvas));
  border: 1px solid var(--cluster-acento1, var(--tinta));
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.share-btn.outline {
  background: transparent;
  color: var(--cluster-acento1, var(--tinta));
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }

/* ===== modo escuro automático ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1A1815;
    --tinta: #F8F4ED;
  }
  body:not(.in-cluster) {
    background: #1A1815;
    color: #F8F4ED;
  }
  body:not(.in-cluster) .cluster-card {
    /* paletas dos clusters continuam puras — mas suavizamos um pouco com sombra */
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
  }
  body:not(.in-cluster) footer.global { border-color: rgba(255,255,255,0.15); }
  .sobre h2 { color: #F8F4ED; }
}

/* ===== print friendly (se ela printar pra mostrar pra alguém) ===== */
@media print {
  body { background: white; color: black; }
  header.wordmark, .section-nav, footer.global, .back { display: none; }
  .tier { page-break-inside: avoid; }
  a { color: black; text-decoration: underline; }
  a::after { content: " (" attr(href) ")"; font-size: 0.7em; opacity: 0.7; }
}
