/* Identidade provisória do Elis Studio: creme, verde-escuro e coral (inspirada no site de referência).
   Todas as cores de texto passam em contraste AA (conferido por scripts/contrast-check.mjs).
   Nomes como --rose são históricos: hoje --rose é a cor de ação principal (verde-escuro). */
:root {
  --bg: #f6f0e4;
  --surface: #fffdf8;
  --ink: #172420;
  --muted: #55645e;
  --rose: #172420;
  --rose-ink: #f6f0e4;
  --rose-deep: #263833;
  --blush: #d9e7ac;
  --line: #d3cab6;
  --petal: #ff725e;
  --coral: #c2402b;
  --ok: #1f6b4a;
  --ok-bg: #e4f4ec;
  --warn: #7a4f00;
  --warn-bg: #fff1d6;
  --bad: #a3262f;
  --bad-bg: #fde5e7;
  --info: #234f7a;
  --info-bg: #e3eef9;
  --focus: #1b4fd1;
  /* Tokens com função (cap. 56.3): trocar a identidade = trocar estes valores. */
  --surface-raised: #fffdf8;
  --status-confirmed: var(--ok);
  --status-confirmed-bg: var(--ok-bg);
  --status-done: var(--info);
  --status-done-bg: var(--info-bg);
  --neutral: #4a4045;
  --neutral-bg: #ece8ea;
  --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: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 60px rgba(23, 36, 32, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #172420; --surface: #1f2f2a; --ink: #f6f0e4; --muted: #c9d3c6; --rose: #d9e7ac; --rose-ink: #172420; --rose-deep: #e6f0c4; --coral: #ff8f7b;
    --blush: #263833; --surface-raised: #263833; --line: #3a4c45; --ok: #7fd1a8; --ok-bg: #173226; --warn: #f0c46c; --warn-bg: #3a2d10; --bad: #ff9aa2; --bad-bg: #44181d; --info: #9cc6f2; --info-bg: #17293b; --focus: #8fb2ff; --neutral: #d8cdd2; --neutral-bg: #3a3036;
  }
}
*, *::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(--rose); 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; }
.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); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--rose); }
.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); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); }
.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; } }
