/* ============================================================================
   Duas de Vila — Manual de Marca · Estilos de componentes
   ----------------------------------------------------------------------------
   Cópia local (site é publicado como projeto independente no Netlify, então
   não pode depender de "../assets" fora da pasta site/). Fonte de verdade
   fica em assets/css/manual.css na raiz do projeto — replique manualmente
   qualquer mudança de componente compartilhado nos dois arquivos.

   Depende de tokens.css (carregue-o ANTES deste arquivo).
   Organização: reset → base → layout → nav → blocos de conteúdo →
   componentes (logo, cores, tipografia, aplicações) → utilitários → print.
   ========================================================================== */

/* ---------------------------------------------------------------- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--rosa-profundo); outline-offset: 3px; border-radius: 4px; }

/* ---- Ícones de linha (sprite inline, sem emoji e sem fonte externa) ---- */
.icon {
  width: 20px; height: 20px; flex-shrink: 0; display: inline-block;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -4px;
}

/* ----------------------------------------------------------------- Base ---- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
strong { color: var(--text); font-weight: 700; }
::selection { background: var(--rosa-chiclete); color: var(--rosa-escuro); }

/* Barra de progresso de leitura (topo). */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--rosa-chiclete), var(--amarelo)); transition: width .1s linear; }

/* --------------------------------------------------------------- Layout ---- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* ---- Sidebar fixa (desktop) ---- */
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-sm);
  background: var(--surface-muted);
  border-right: 1px solid var(--outline-soft);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; }
.brand__mark {
  width: 44px; height: 44px; border-radius: var(--r-full); flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  color: var(--rosa-escuro); background: var(--rosa-chiclete);
  box-shadow: inset 0 0 0 3px var(--amarelo);
}
.brand__name { font-family: var(--font-head); font-weight: 800; color: var(--rosa-profundo); font-size: 1.05rem; line-height: 1.1; }
.brand__ver { font-size: var(--fs-xs); color: var(--text-soft); font-weight: 600; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--text-soft); padding: 8px 12px 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md);
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav a .icon { width: 18px; height: 18px; }
.nav a:hover { background: var(--surface-sunk); }
.nav a.is-active { background: var(--rosa-chiclete); color: var(--rosa-escuro); transform: scale(.98); }
.sidebar__foot { margin-top: auto; padding: 12px 8px 4px; font-size: var(--fs-xs); color: var(--text-soft); border-top: 1px solid var(--outline-soft); }

/* ---- Topbar (mobile) ---- */
.topbar { display: none; }

/* ---- Conteúdo ---- */
.content { min-width: 0; }
.section { max-width: var(--content-max); margin-inline: auto; padding: var(--sp-section) var(--sp-md); scroll-margin-top: 24px; }
.section + .section { border-top: 1px solid var(--outline-soft); }
.kicker { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .16em; color: var(--rosa-profundo);
  background: var(--surface-muted); padding: 6px 14px; border-radius: var(--r-full); margin-bottom: 18px; }
.section > h2 { font-size: var(--fs-h1); margin-bottom: 14px; }
.section__lead { font-size: var(--fs-lead); max-width: 62ch; color: var(--text-body); }
.subhead { font-size: var(--fs-h3); margin: var(--sp-lg) 0 var(--sp-sm); color: var(--text); }
.subhead--icon { display: flex; align-items: center; gap: 10px; }
.subhead--icon .icon { width: 22px; height: 22px; color: var(--rosa-profundo); }

/* -------------------------------------------------------------- Hero/Capa -- */
.hero { position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center;
  text-align: center; padding: var(--sp-xl) var(--sp-md); border-top: none; }
.hero__blob { position: absolute; border-radius: var(--r-full); filter: blur(90px); pointer-events: none; opacity: .55; }
.hero__blob--1 { width: 460px; height: 460px; background: var(--rosa-chiclete); top: -8%; left: -6%; }
.hero__blob--2 { width: 520px; height: 520px; background: var(--amarelo); bottom: -12%; right: -8%; opacity: .45; }
.hero__inner { position: relative; z-index: 1; max-width: 780px; text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; }
.hero__doc { letter-spacing: .22em; }
.hero__tagline { font-size: var(--fs-lead); color: var(--text-body); margin-top: var(--sp-md); }
.hero__pill { margin-top: var(--sp-lg); display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: var(--r-full); background: var(--surface-card);
  box-shadow: var(--shadow-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); }
.hero__dot { width: 9px; height: 9px; border-radius: var(--r-full); background: var(--rosa-profundo); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.8);} }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--text-soft);
  animation: bob 1.8s infinite; z-index: 1; }
.hero__scroll .icon { width: 26px; height: 26px; }
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* --------------------------------------------------- Logomarca tipográfica -- */
/* Wordmark renderizado em fonte real (não imagem) — é uma marca tipográfica. */
.wordmark { font-family: var(--font-head); font-weight: 800; line-height: .95; letter-spacing: -.02em; }
.wordmark .w-duas, .wordmark .w-vila { color: var(--rosa-profundo); display: block; }
.wordmark .w-de   { color: var(--text-soft); font-weight: 600; font-style: italic; letter-spacing: 0; }
.wordmark .w-dot  { color: var(--amarelo); }               /* pingo/acento canário */
/* Empilhada: duas linhas — "Duas" / "de Vila" (conector "de" pequeno),
   alinhada à esquerda para "Duas" e "Vila" ficarem sobrepostos. */
.wordmark--stack { font-size: clamp(2.5rem, 6vw, 4rem); display: inline-block; text-align: left; }
.wordmark--stack .w-duas { display: block; }
.wordmark--stack .w-de   { display: inline; font-size: 1em; margin: 0 .14em 0 0; }
.wordmark--stack .w-vila { display: inline; }
.wordmark--h { display: inline-flex; align-items: baseline; gap: .28em; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.wordmark--h .w-duas, .wordmark--h .w-vila { display: inline; }
.wordmark--h .w-de { font-size: .5em; }
.wordmark--knockout .w-duas, .wordmark--knockout .w-vila { color: #fff; }
.wordmark--knockout .w-de { color: rgba(255,255,255,.7); }
.wordmark--knockout .w-dot { color: var(--amarelo); }

/* Grid genérico responsivo p/ cartões */
.grid { display: grid; gap: var(--sp-md); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--bento { grid-template-columns: repeat(12, 1fr); }

.card { background: var(--surface-card); border: 1px solid var(--outline-soft); border-radius: var(--r-lg);
  padding: var(--sp-md); box-shadow: var(--shadow-sm); }
.card__ico { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center;
  margin-bottom: 14px; }
.card__ico .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.card p { font-size: var(--fs-sm); }
.tint-pink   { background: color-mix(in srgb, var(--rosa-chiclete) 22%, transparent); color: var(--rosa-profundo); }
.tint-yellow { background: color-mix(in srgb, var(--amarelo) 28%, transparent); color: var(--amarelo-escuro); }
.tint-mint   { background: color-mix(in srgb, var(--menta) 30%, transparent); color: var(--menta-escuro); }

/* Vitrine do logo (fundo neutro para o wordmark respirar) */
.stage { border-radius: var(--r-xl); padding: var(--sp-lg); display: grid; place-items: center; min-height: 240px;
  border: 1px solid var(--outline); position: relative; overflow: hidden; }
.stage--light { background: var(--surface-card); }
.stage--beige { background: var(--bege); }
.stage--pink  { background: var(--rosa-chiclete); }
.stage--yellow{ background: var(--amarelo); }
.stage--dark  { background: var(--cacau); }
.stage__tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-head); font-weight: 700;
  font-size: var(--fs-xs); padding: 4px 12px; border-radius: var(--r-full); background: rgba(255,255,255,.55);
  backdrop-filter: blur(4px); color: var(--text); }
.stage--dark .stage__tag, .stage--pink .stage__tag { background: rgba(255,255,255,.2); color: #fff; }

/* Respiro / clear space */
.clearspace { display: grid; place-items: center; padding: var(--sp-md); background: var(--surface-sunk); border-radius: var(--r-md); }
.clearspace__box { position: relative; padding: 40px; border: 2px dashed color-mix(in srgb, var(--rosa-profundo) 40%, transparent); border-radius: var(--r-sm); }
.clearspace__box::before { content: ""; position: absolute; inset: 18px; border: 1px solid color-mix(in srgb, var(--amarelo) 70%, transparent); border-radius: 4px; }
.clearspace__D { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--rosa-profundo); }

/* ------------------------------------------------------------- Paleta ------ */
.swatches { display: grid; gap: var(--sp-md); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--outline); background: var(--surface-card); box-shadow: var(--shadow-sm); }
.swatch__chip { height: 120px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; }
.swatch__ratio { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; padding: 3px 8px; border-radius: var(--r-full); background: rgba(255,255,255,.7); color: #333; }
.swatch__body { padding: 14px 16px; }
.swatch__name { font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: .95rem; }
.swatch__role { font-size: var(--fs-xs); color: var(--text-soft); margin-bottom: 10px; }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: var(--fs-xs); color: var(--text-body); background: var(--surface-sunk); border-radius: var(--r-sm); padding: 6px 8px; margin-top: 6px; }
.copyline button { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 700; font-size: 11px; color: var(--rosa-profundo); }
.copyline button:hover { text-decoration: underline; }
.copyline.copied button { color: var(--ok); }

/* ---------------------------------------------------------- Tipografia ----- */
.type-card { background: var(--surface-card); border: 1px solid var(--outline-soft); border-radius: var(--r-lg); padding: var(--sp-md); box-shadow: var(--shadow-sm); }
.type-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.type-card__fam { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-h3); color: var(--text); }
.type-card__use { font-size: var(--fs-xs); color: var(--text-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.type-card__alpha { font-size: 1.6rem; color: var(--text-body); border-top: 1px solid var(--outline-soft); padding-top: 12px; }
.specimen { border-top: 1px solid var(--outline-soft); padding-top: 16px; margin-top: 16px; display: grid; gap: 18px; }
.specimen__row small { display: block; font-size: var(--fs-xs); color: var(--text-soft); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.specimen--head { font-family: var(--font-head); }
.specimen--body { font-family: var(--font-body); }

/* Tabela de escala */
.scale { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.scale th, .scale td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--outline-soft); }
.scale th { font-family: var(--font-head); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.scale td:first-child { font-family: var(--font-head); font-weight: 700; color: var(--text); }
.scale code { font-family: ui-monospace, Menlo, monospace; font-size: var(--fs-xs); color: var(--rosa-profundo); }

/* ---------------------------------------------------------- Do / Don't ----- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.rule { border-radius: var(--r-lg); padding: var(--sp-md); border: 1px solid; }
.rule--ok { background: var(--ok-bg); border-color: var(--ok-line); }
.rule--no { background: var(--no-bg); border-color: var(--no-line); }
.rule__head { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; margin-bottom: 14px; font-size: var(--fs-h3); }
.rule__head .icon { width: 24px; height: 24px; }
.rule--ok .rule__head { color: var(--ok); }
.rule--no .rule__head { color: var(--no); }
.rule li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); margin-bottom: 10px; }
.rule li .icon { margin-top: 2px; }
.rule--ok li .icon { color: var(--ok); }
.rule--no li .icon { color: var(--no); }

/* ---------------------------------------------------------- Aplicações ----- */
.app-post { background: var(--surface-card); border: 1px solid var(--outline-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); max-width: 380px; margin-inline: auto; }
.app-post__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--outline-soft); }
.app-post__avatar { width: 34px; height: 34px; border-radius: var(--r-full); background: var(--rosa-chiclete); box-shadow: inset 0 0 0 2px var(--amarelo); }
.app-post__user { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); color: var(--text); }
.app-post__img { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(135deg, var(--rosa-chiclete), var(--amarelo)); }
.app-post__cap { padding: 12px 14px; font-size: var(--fs-sm); }
.app-post__cap b { color: var(--rosa-profundo); }

/* Cartão de visita */
.bizcard { width: 100%; max-width: 380px; aspect-ratio: 1.586/1; border-radius: var(--r-md); padding: var(--sp-md);
  position: relative; overflow: hidden; box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease); }
.bizcard:hover { transform: translateY(-4px) scale(1.015); }
.bizcard__blob { position: absolute; border-radius: var(--r-full); filter: blur(24px); opacity: .5; }
.bizcard--front { background: var(--amarelo); display: grid; place-items: center; }
.bizcard--front .bizcard__blob { width: 140px; height: 140px; background: #fff; top: -40px; right: -40px; opacity: .35; }
.bizcard--back { background: var(--rosa-chiclete); display: flex; flex-direction: column; justify-content: space-between; }
.bizcard--back .bizcard__blob { width: 160px; height: 160px; background: var(--rosa-profundo); bottom: -60px; right: -40px; opacity: .35; }
.bizcard__role { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--rosa-escuro); }
.bizcard__name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--rosa-escuro); position: relative; z-index: 1; }
.bizcard__divider { border: none; border-top: 1px dotted var(--rosa-escuro); opacity: .4; margin: 8px 0; }
.bizcard__row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--rosa-escuro); font-weight: 600; position: relative; z-index: 1; }
.bizcard__row .icon { width: 16px; height: 16px; }
.bizcard__quote { font-style: italic; color: var(--rosa-escuro); font-size: var(--fs-sm); position: relative; z-index: 1; }

/* Regras de embalagem/impresso — lista com marcador afetivo */
.checklist { display: grid; gap: 12px; }
.checklist li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--rosa-profundo);
  flex-shrink: 0; margin-top: 9px; }
.checklist b { color: var(--text); }

/* Faixa de exemplo (embalagem) */
.packband { border-radius: var(--r-lg); padding: var(--sp-lg) var(--sp-md); display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--bege), var(--bege) 22px, var(--surface-muted) 22px, var(--surface-muted) 44px);
  border: 1px solid var(--outline); }
.tape { display: inline-block; background: var(--rosa-chiclete); color: var(--rosa-escuro); font-family: var(--font-head);
  font-weight: 800; padding: 14px 40px; border-radius: var(--r-sm); box-shadow: var(--shadow-md); transform: rotate(-3deg); }

/* --------------------------------------------------------------- Footer ---- */
.foot { max-width: var(--content-max); margin-inline: auto; padding: var(--sp-lg) var(--sp-md);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--outline-soft); color: var(--text-soft); font-size: var(--fs-sm); }
.foot__brand { font-family: var(--font-head); font-weight: 800; color: var(--rosa-profundo); }

/* ------------------------------------------------------------ Utilitários -- */
.stack-lg > * + * { margin-top: var(--sp-md); }
.muted { color: var(--text-soft); }
.note { background: var(--surface-muted); border-left: 3px solid var(--amarelo); border-radius: var(--r-sm);
  padding: 14px 16px; font-size: var(--fs-sm); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs); padding: 6px 14px; border-radius: var(--r-full);
  background: var(--surface-muted); color: var(--text-body); border: 1px solid var(--outline-soft); }

/* Botão de ação (compartilhado entre o manual e o kit de redes sociais) */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700;
  font-size: var(--fs-sm); padding: 12px 22px; border-radius: var(--r-full); background: var(--rosa-profundo);
  color: #fff; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { background: var(--rosa-escuro); transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: var(--surface-card); color: var(--rosa-profundo); border: 1px solid var(--outline); }
.btn--ghost:hover { background: var(--surface-muted); color: var(--rosa-profundo); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Botão de tema — troca o ícone visível conforme data-theme (sem JS de texto). */
.theme-btn { width: 42px; height: 42px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--surface-card); border: 1px solid var(--outline); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease); }
.theme-btn:hover { transform: rotate(-12deg); }
.theme-btn .icon { width: 20px; height: 20px; }
.theme-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: inline-block; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: none; }
.theme-fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; }

/* ------------------------------------------------------------ Responsivo --- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 82%; max-width: 320px; z-index: 70;
    transform: translateX(-105%); transition: transform var(--dur) var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: translateX(0); }
  .backdrop { position: fixed; inset: 0; background: rgba(44,27,26,.45); z-index: 65; opacity: 0; visibility: hidden; transition: opacity var(--dur); }
  .backdrop.is-open { opacity: 1; visibility: visible; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 50; padding: 12px 16px; background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--outline-soft); }
  .topbar__brand { font-family: var(--font-head); font-weight: 800; color: var(--rosa-profundo); }
  .burger { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--rosa-profundo); }
  .burger .icon { width: 22px; height: 22px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--bento > * { grid-column: span 12 !important; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .rules { grid-template-columns: 1fr; }
  .section { padding-left: var(--sp-md); padding-right: var(--sp-md); }
}

/* --------------------------------------------------------------- Print ----- */
@media print {
  .sidebar, .topbar, .theme-fab, .progress, .hero__scroll, .backdrop { display: none !important; }
  .shell { display: block; }
  .section { break-inside: avoid; page-break-inside: avoid; max-width: none; border-top: 1px solid #ddd; }
  body { background: #fff; color: #000; }
  .card, .swatch, .type-card { box-shadow: none; }
}
