/* ============================================================
   TrueSaller — shared stylesheet
   Edit colors/fonts here once; every page updates.
   ============================================================ */

:root {
  /* Palette */
  --ink:        #131E19;   /* headlines, body text */
  --ink-soft:   #4C574F;   /* secondary text */
  --ink-faint:  #8B948B;   /* captions, meta */
  --paper:      #F2F3EE;   /* page background */
  --card:       #FFFFFF;   /* cards, panels */
  --rule:       #DBDDD3;   /* hairlines, borders */
  --signal:     #1F3BD8;   /* links, buttons, "verified" marks */
  --signal-dk:  #16299B;   /* button hover */
  --verdict:    #0D6E56;   /* positive verdict marks */
  --flag:       #A8551A;   /* cautions, "what to watch" */

  /* Type */
  --display: "Newsreader", Georgia, serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Rhythm */
  --gap:     clamp(1rem, 3vw, 1.75rem);
  --section: clamp(3.5rem, 9vw, 6.5rem);
  --maxw:    1140px;
  --textw:   68ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.narrow { max-width: var(--textw); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }

p { margin: 0 0 1.1em; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-dk); }

strong { font-weight: 600; }

/* The mono voice: eyebrows, data, receipts. Used everywhere as the
   site's "we show our work" signal. */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.2rem;
  display: block;
}

.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--signal); }

.nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--signal); text-decoration: underline; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 0; }
.hero h1 { max-width: 16ch; }
.hero .lede {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
}

/* The receipt rule — the site's signature. A ledger line of facts
   we can actually stand behind, set in mono like a printed receipt. */
.receipt {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--ink);
  border-bottom: 1px dashed var(--rule);
  padding: 0.9rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.receipt b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section--card { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.7rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }

/* ---------- Verdict card (signature component) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.verdict-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--signal);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.verdict-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -18px rgba(19,30,25,0.4);
}
.verdict-card.is-pending {
  border-top-color: var(--rule);
  background: transparent;
  border-style: dashed;
}

.vc-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.9rem;
}
.is-pending .vc-tag { color: var(--ink-faint); }

.vc-card h3 { margin-bottom: 0.4rem; }

.verdict-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex-grow: 1;
}

.vc-foot {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---------- Methodology list ---------- */

.method {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.method li { border-left: 2px solid var(--verdict); padding-left: 1.1rem; }
.method h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.method p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--signal);
  color: #fff;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border: 0;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease;
}
.btn:hover { background: var(--signal-dk); color: #fff; }
.btn--wide { display: block; width: 100%; text-align: center; padding: 1.05rem 1rem; font-size: 1.05rem; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Disclosure block ---------- */

.disclosure {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--flag);
  background: var(--card);
  padding: 1.3rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.disclosure p:last-child { margin-bottom: 0; }
.disclosure strong { color: var(--ink); }

/* ---------- Article / legal body ---------- */

.doc { padding: clamp(2.5rem, 6vw, 4rem) 0 var(--section); }
.doc h2 { margin-top: 2.4rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.doc ul { padding-left: 1.2rem; color: var(--ink-soft); }
.doc li { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--ink);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.foot-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--signal); text-decoration: underline; }
.foot-fine {
  border-top: 1px dashed var(--rule);
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  max-width: var(--textw);
}

/* ---------- Accessibility & motion ---------- */

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.fade-up { animation: fadeUp 600ms cubic-bezier(.2,.7,.3,1) both; }
.fade-up:nth-child(2) { animation-delay: 80ms; }
.fade-up:nth-child(3) { animation-delay: 160ms; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead .wrap { min-height: 58px; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .nav { gap: 1rem; width: 100%; }
}

/* ============================================================
   ARTE E IMAGENS  (adicionado na v2)
   ============================================================ */

/* ---------- Hero em 2 colunas: texto + rótulo ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1 { max-width: 14ch; }

.hero-art { position: relative; }

.label-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 18px 40px rgba(19,30,25,0.13));
  transition: transform 400ms cubic-bezier(.2,.7,.3,1);
}
.hero-art:hover .label-svg { transform: rotate(0deg) scale(1.015); }

.art-caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: center;
  margin: 1.2rem 0 0;
}

/* ---------- Miniatura nos cards de review ---------- */

.vc-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: -1.6rem -1.6rem 1.3rem;
  width: calc(100% + 3.2rem);
  overflow: hidden;
  background: linear-gradient(135deg, #E7E9E2 0%, #F7F8F4 100%);
  border-bottom: 1px solid var(--rule);
}
.vc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms cubic-bezier(.2,.7,.3,1);
}
.verdict-card:hover .vc-thumb img { transform: scale(1.04); }

/* ---------- Foto do autor (about.html) ---------- */

.author {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  padding: 1.5rem;
  margin: 2rem 0;
}
.author img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--rule);
}
.author-body h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.author-role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.8rem;
}
.author-body p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Imagens dentro de artigos/presell ---------- */

.figure img,
.doc img { max-width: 100%; height: auto; }

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-art { margin-top: 1rem; }
  .label-svg { max-width: 320px; }
}

@media (max-width: 620px) {
  .author { flex-direction: column; gap: 1rem; }
  .author img { width: 80px; height: 80px; }
  .vc-thumb { margin: -1.6rem -1.6rem 1.2rem; width: calc(100% + 3.2rem); }
}

/* ============================================================
   VITRINE DE PRODUTOS  (v3)
   ============================================================ */

.product {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--signal);
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px -20px rgba(19,30,25,0.45);
}
.product.is-pending {
  border-top-color: var(--rule);
  border-style: dashed;
  background: transparent;
}

.p-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #E7E9E2 0%, #F7F8F4 100%);
  border-bottom: 1px solid var(--rule);
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 500ms cubic-bezier(.2,.7,.3,1); }
.product:hover .p-thumb img { transform: scale(1.04); }
.is-pending .p-thumb img { opacity: .75; filter: grayscale(.3); }

.p-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--signal);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
}

.p-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }

.p-cat {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.6rem;
}
.is-pending .p-cat { color: var(--ink-faint); }

.p-body h3 { margin-bottom: 0.6rem; }

.p-hook { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }

.p-points { list-style: none; padding: 0; margin: 0 0 1.3rem;
  font-size: 0.9rem; color: var(--ink-soft); flex-grow: 1; }
.p-points li { padding-left: 1.3rem; position: relative; margin-bottom: 0.45rem; }
.p-points li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--verdict);
  font-weight: 600;
}

.p-price {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  border-top: 1px dashed var(--rule);
  padding-top: 1rem;
  margin-bottom: 1rem;
}
.p-amount { font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--ink); }
.p-note { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); }

.p-fine {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  text-align: center;
  margin: 0.7rem 0 0;
}

.p-soon {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px dashed var(--rule);
  padding-top: 1rem;
  margin-top: auto;
}

/* ---------- Arte SVG nos cards (sem imagem, sem upload) ---------- */
.p-art { background: #F2F3EE; }
.p-art svg { width: 100%; height: 100%; display: block; }
.is-pending .p-art { opacity: .92; }
.product:hover .p-art svg { transform: none; }

/* Fallback elegante quando a foto do produto ainda nao foi enviada */
.p-thumb img { background: #E7E9E2; }

/* ---------- Arte no lugar de fotos (sem imagem quebrada) ---------- */
.figure--art svg { width: 100%; height: auto; display: block; border: 1px solid var(--rule); background: #F4F5F0; }

.author-mono {
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 2rem; font-weight: 600; letter-spacing: 0.02em;
}
@media (max-width: 620px) { .author-mono { width: 80px; height: 80px; font-size: 1.7rem; } }
