/* Club da Barba — base visual compartilhada (landing, agendamento e painel) */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Serif+Text:ital@0;1&family=Hanken+Grotesk:ital,wght@0,400..700;1,400..600&display=swap');

:root {
  /* Escuro: o preto e o ouro da logo */
  --bg: #000000;
  --surface: #101010;
  --surface-2: #1b1b1b;
  --line: #2b2b2b;
  --text: #f5f2ea;
  --muted: #a3a099;
  --gold: #d9b84a;
  --gold-soft: #f3d977;
  --gold-deep: #a4822d;
  --pri: #d9b84a;
  --pri-hover: #f3d977;
  --on-pri: #0a0a0a;
  --on-gold: #0a0a0a;
  --ok: #6fbf8a;
  --warn: #d9b84a;
  --bad: #e2625c;
  --info: #8fb4d9;
  --shadow: 0 18px 50px rgba(0, 0, 0, .6);
  --display: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --serif: 'DM Serif Text', Georgia, serif;
  --ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  color-scheme: dark;
}
/* Claro: fundo neutro, preto como cor principal e ouro só como detalhe */
:root[data-theme='light'] {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #ececE8;
  --line: #d6d6d0;
  --text: #0a0a0a;
  --muted: #55554f;
  --gold: #7a6410;
  --gold-soft: #5f4e0c;
  --gold-deep: #5f4e0c;
  --pri: #0a0a0a;
  --pri-hover: #262626;
  --on-pri: #f3d977;
  --on-gold: #ffffff;
  --ok: #1f7a43;
  --warn: #7a6410;
  --bad: #b3312b;
  --info: #24608f;
  --shadow: 0 14px 40px rgba(0, 0, 0, .12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 1.25rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text);
  font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; letter-spacing: .005em;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, opacity .2s;
}
.btn:hover { border-color: var(--gold); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-gold { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.btn-gold:hover { background: var(--pri-hover); border-color: var(--pri-hover); }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { min-width: 40px; min-height: 40px; padding: 0 .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { color: var(--bad); }
.btn-icon { width: 42px; min-height: 42px; padding: 0; }

/* Campos */
.field { display: grid; gap: .35rem; }
.field > span { font-size: .85rem; font-weight: 600; }
.field small { color: var(--muted); font-size: .78rem; }
.input, .select {
  width: 100%; min-height: 46px; padding: 0 .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s;
}
.input:focus, .select:focus { border-color: var(--gold); outline: none; }
.input::placeholder { color: var(--muted); opacity: .7; }

/* Etiquetas */
.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .15rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; line-height: 1.4;
  background: var(--surface-2); color: var(--muted);
}
.tag-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.tag-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.tag-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.tag-gold { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.tag-info { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }

/* Botão de tema */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; }
:root[data-theme='light'] .theme-toggle .i-sun,
:root:not([data-theme='light']) .theme-toggle .i-moon { display: none; }

/* Aparecer ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Aviso rápido */
.toast-wrap { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 90; display: grid; gap: .5rem; pointer-events: none; }
.toast {
  background: var(--text); color: var(--bg); padding: .7rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow);
  animation: toast-in .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Títulos: serifa firme, com itálico para dar ritmo */
.titulo { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; }
.titulo em, .it { font-family: var(--display); font-style: italic; font-weight: 400; }
.ouro { color: var(--gold); }
.estrelas { color: var(--gold); letter-spacing: .12em; }

/* Acessibilidade */
.pular { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--pri); color: var(--on-pri); padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s; }
.pular:focus { top: .8rem; }
html[data-fonte='g'] { font-size: 112.5%; }
html[data-fonte='gg'] { font-size: 125%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } .theme-toggle { width: 46px; height: 46px; } }

.btn svg { width: 18px; height: 18px; flex: none; }
.btn-icon svg { width: 20px; height: 20px; }

.como-atalho { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .6); }
.como-atalho > div { width: min(420px, 100%); display: grid; gap: 1rem; padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; }
.como-atalho b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; } .como-atalho ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--muted); }

/* Janela do atalho, com desenho de cada passo */
.como-atalho { overflow-y: auto; align-items: start; }
.como-atalho > .ca-caixa { width: min(560px, 100%); margin: auto; display: grid; gap: 1rem; padding: 1.4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; }
.ca-caixa header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } .ca-caixa header b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.ca-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; }
.ca-sub, .ca-nota, .ca-ou { color: var(--muted); font-size: .92rem; } .ca-ou { text-align: center; font-size: .85rem; }
.ca-nota { border-left: 2px solid var(--gold); padding-left: .7rem; }
.ca-abas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ca-abas button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; }
.ca-abas button[aria-selected='true'] { background: var(--pri); color: var(--on-pri); }
.ca-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.ca-passos li { display: grid; gap: .6rem; align-content: start; padding: .8rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ca-img { display: grid; place-items: center; color: var(--text); } .ca-img svg { width: 100%; max-width: 120px; height: auto; max-height: 190px; }
.ca-t { display: flex; gap: .55rem; font-size: .88rem; line-height: 1.45; color: var(--muted); } .ca-t b { color: var(--text); }
.ca-t i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pri); color: var(--on-pri); font-style: normal; font-weight: 700; font-size: .8rem; }
.como-atalho .ca-t b, .como-atalho .ca-sub b { font-family: inherit; font-size: inherit; font-weight: 700; }
.ca-passos li .ca-t span { min-width: 0; }

/* Bloco 5: o mesmo fundo em todas as janelas (escurece de leve e desfoca o que está atrás) */
#camada .fundo, .ek-fundo, .pg-fundo, .como-atalho { background: rgba(8, 8, 7, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 760px), (prefers-reduced-motion: reduce) { #camada .fundo, .ek-fundo, .pg-fundo, .como-atalho { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); } }
