/* Cores do Elis Studio: bege de base, verde-escuro para títulos e navegação, coral para ação.
   Modo único: claro. Sem modo escuro (decisão de 30/10/2026). Ver docs/sistema-de-design.md.
   Nomes como --rose são históricos: hoje --rose é a cor de AÇÃO (coral).
   Todas as cores de texto passam em contraste AA: scripts/contrast-check.mjs confere os pares. */
:root {
  --bg: #f5efe2;            /* bege de base */
  --surface: #fffcf5;       /* cartões */
  --surface-2: #ece3cf;     /* áreas recuadas */
  --ink: #14231f;           /* texto: verde quase preto */
  --muted: #53625c;
  --green: #1f4a3d;         /* verde-escuro: navegação ativa, blocos da marca */
  --green-ink: #f5efe2;
  --rose: #c2402b;          /* coral: ação principal (botões, seleção). Nome histórico. */
  --rose-ink: #fffcf5;
  --rose-deep: #a8341f;     /* coral ao passar o mouse */
  --coral: #c2402b;
  --blush: #e3ead6;         /* verde-claro: destaque suave */
  --rose-soft: #f8ddd5;     /* coral suave: selo de escassez */
  --line: #d5cab3;
  --petal: #ff725e;         /* detalhe decorativo, nunca texto */
  --ok: #1f6b4a;
  --ok-bg: #e2f2ea;
  --warn: #7a4f00;
  --warn-bg: #fff0d2;
  --bad: #a3262f;
  --bad-bg: #fde3e5;
  --info: #234f7a;
  --info-bg: #e2edf8;
  --focus: #1b4fd1;
  /* Tokens com função: trocar a identidade = trocar estes valores. */
  --surface-raised: #fffcf5;
  --status-confirmed: var(--ok);
  --status-confirmed-bg: var(--ok-bg);
  --status-done: var(--info);
  --status-done-bg: var(--info-bg);
  --neutral: #4a4045;
  --neutral-bg: #ebe6e8;
  --status-review: var(--neutral);
  --status-review-bg: var(--neutral-bg);
  --calendar-select: var(--rose);
  --calendar-select-ink: var(--rose-ink);
  --radius: 22px;
  --nail: 999px 999px 14px 14px; /* ponta de unha: o desenho que marca a identidade */
  --display: Georgia, "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 60px rgba(20, 35, 31, 0.12);
  color-scheme: light;
}
/* Paletas da plataforma Elis Gestão: cada negócio escolhe uma (Configurações > Aparência).
   Só os valores mudam; os papéis são os mesmos (--green = cor da marca, --rose = cor de ação).
   Todas passam em contraste AA: scripts/contrast-check.mjs confere as quatro. */
:root[data-paleta="rose"] {
  --bg: #fbf1ee; --surface: #fffaf8; --surface-2: #f3dfda; --surface-raised: #fffaf8;
  --ink: #2a1220; --muted: #6b5560; --green: #5b2338; --green-ink: #fbf1ee;
  --rose: #b8355d; --rose-ink: #fffaf8; --rose-deep: #99284a; --coral: #b8355d;
  --blush: #f6e1e6; --rose-soft: #fbdde4; --line: #e3cbc6; --petal: #f08aa5;
  --shadow: 0 18px 60px rgba(42, 18, 32, 0.12);
}
:root[data-paleta="serena"] {
  --bg: #eef3f2; --surface: #fbfdfc; --surface-2: #dbe6e4; --surface-raised: #fbfdfc;
  --ink: #10272c; --muted: #4d6166; --green: #17414a; --green-ink: #eef3f2;
  --rose: #ac4d25; --rose-ink: #fffdfa; --rose-deep: #8f3f1c; --coral: #ac4d25;
  --blush: #d9e8e4; --rose-soft: #f7ddd0; --line: #c4d3d0; --petal: #e98a5c;
  --shadow: 0 18px 60px rgba(16, 39, 44, 0.12);
}
:root[data-paleta="noir"] {
  --bg: #f6f3ec; --surface: #fffdf8; --surface-2: #e9e3d5; --surface-raised: #fffdf8;
  --ink: #1c1a17; --muted: #5c574d; --green: #1c1a17; --green-ink: #f6f3ec;
  --rose: #8a6417; --rose-ink: #fffdf8; --rose-deep: #6f4f10; --coral: #8a6417;
  --blush: #efe6cf; --rose-soft: #f3e3bd; --line: #d8cfbd; --petal: #c9a24a;
  --shadow: 0 18px 60px rgba(28, 26, 23, 0.12);
}
/* Nunito: letra arredondada, fácil de ler (licença OFL, arquivo em /fonts). Site e gestão. */
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-wght.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--body); min-height: 100vh; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Ação principal = coral. Ação secundária = contorno verde. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--rose); background: var(--rose); color: var(--rose-ink); font-weight: 600; text-decoration: none; transition: transform 0.12s, background 0.12s; }
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn.ghost:hover { background: var(--blush); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="time"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.err { color: var(--bad); font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 8px 0; min-height: 44px; }
.check input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--rose); }
.notice { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; background: var(--info-bg); color: var(--info); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.toast-zone { position: fixed; left: 0; right: 0; bottom: 16px; display: grid; justify-items: center; gap: 8px; pointer-events: none; z-index: 90; padding: 0 16px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; max-width: 520px; box-shadow: var(--shadow); pointer-events: auto; }
.toast.bad { background: var(--bad); color: #fff; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
