/* ==========================================================================
   Barber — sistema visual da página de vendas local
   Conceito: o "livro-caixa" de uma barbearia rodando em software moderno.
   Tinta + papel + latão (aço, couro, acabamento de navalha) encontram
   precisão de sistema (mono, grade, índice numérico).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* --- claro (padrão) --- */
  --bg: #F3EFE7;
  --surface: #FCFAF5;
  --surface-2: #EAE3D4;
  --ink: #1C1A17;
  --muted: #6B6255;
  --line: #DDD4C0;
  --brass: #8C6A16;
  --brass-strong: #6E5210;
  --red: #8C2E28;
  --ok: #3D6B4A;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1180px;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17140F;
    --surface: #1F1B15;
    --surface-2: #29241C;
    --ink: #F3EFE7;
    --muted: #B3A895;
    --line: #3A342A;
    --brass: #D8AE3F;
    --brass-strong: #EFC65C;
    --red: #C2564D;
    --ok: #6FAE82;
  }
}

:root[data-theme="dark"] {
  --bg: #17140F;
  --surface: #1F1B15;
  --surface-2: #29241C;
  --ink: #F3EFE7;
  --muted: #B3A895;
  --line: #3A342A;
  --brass: #D8AE3F;
  --brass-strong: #EFC65C;
  --red: #C2564D;
  --ok: #6FAE82;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

::selection { background: var(--brass); color: var(--bg); }

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ---------- topo / navegação ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--brass); }
.topnav { display: flex; gap: 28px; flex-wrap: wrap; }
.topnav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.topnav a:hover, .topnav a.active { color: var(--ink); border-color: var(--brass); }

/* ---------- eyebrow / índice ---------- */

.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-strong);
  margin-bottom: 18px;
}
.eyebrow .num { color: var(--muted); }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 76px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-wrap: balance;
  max-width: 15ch;
}
.hero .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .12s ease, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--brass-strong); border-color: var(--brass-strong); color: #17140F; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.status-row .dot { color: var(--ok); }

/* ---------- faixas de ledger ---------- */

.ledger { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.row .idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass);
  padding-top: 6px;
}
.row-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.row-body.reverse { grid-template-columns: 1fr 1.05fr; }
.row-body.reverse .row-text { order: 2; }
.row-body.reverse .row-media { order: 1; }

.row-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.row-text p { color: var(--muted); font-size: 15.5px; max-width: 52ch; margin: 0 0 14px; }
.row-text ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.row-text li {
  font-size: 14.5px;
  padding-left: 20px;
  position: relative;
  color: var(--ink);
}
.row-text li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1px;
  background: var(--brass);
}
.row-text li b { font-weight: 600; }

.row-media img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.35);
}
.row-media figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.row-media { margin: 0; }

@media (max-width: 860px) {
  .row-body, .row-body.reverse { grid-template-columns: 1fr; }
  .row-body.reverse .row-text, .row-body.reverse .row-media { order: initial; }
  .row { grid-template-columns: 1fr; }
  .row .idx { padding-top: 0; }
  .wrap { padding: 0 22px; }
  .topbar-inner { padding: 16px 22px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- specs / tabela técnica ---------- */

.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 24px;
  margin-top: 22px;
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: 14px;
}
.spec dt:first-child { margin-top: 0; }
.spec dd { margin: 4px 0 0; font-size: 14.5px; }
.spec code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 2px;
}

/* ---------- cards de grade (índice de páginas / features) ---------- */

.grid-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.grid-cards .card { flex: 1 1 300px; }
.card {
  background: var(--surface);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
  position: relative;
}
.card:hover { background: var(--surface-2); }
.card .card-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brass);
  letter-spacing: 0.08em;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 12px 0 8px;
}
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card .card-arrow {
  position: absolute;
  right: 24px; bottom: 24px;
  font-family: var(--font-mono);
  color: var(--brass);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
}
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ---------- callout / nota ---------- */

.note {
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-size: 14px;
  margin: 26px 0;
}
.note.warn { border-color: var(--red); }
.note b { color: var(--ink); }

/* ---------- rodapé de seção com CTA ---------- */

.cta-band {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0 0 16px;
  text-wrap: balance;
}
.cta-band p { color: var(--muted); margin: 0 0 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer.site-footer a:hover { color: var(--ink); }

/* ---------- tabela de preços/serviços ---------- */

table.svc {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin-top: 18px;
}
table.svc th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
table.svc td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
table.svc td.price { color: var(--brass-strong); font-weight: 600; }

/* ---------- pill de status ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.pill.warn { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }

/* ---------- preço ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 44px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--brass); box-shadow: 0 24px 60px -30px rgba(0,0,0,.4); }
.price-card .price-tag {
  position: absolute;
  top: -13px;
  left: 36px;
  background: var(--brass);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
}
.price-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 6px;
}
.price-card .price-sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; max-width: 34ch; }
.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.price-amount .period { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-weight: 400; }
.price-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-bottom: 28px; }
.price-features { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-features li { font-size: 14.5px; padding-left: 22px; position: relative; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 13px;
}
.price-card .btn { justify-content: center; width: 100%; }

.faq { margin-top: 10px; max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-family: var(--font-mono); color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; max-width: 60ch; }

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