/*
 * Identidade Notado — valores reproduzidos exatamente de
 * notado/notado-site/index.html (fonte canônica da marca, usada em toda a
 * coleção de sites de clientes, e-mails transacionais e banners) e
 * notado/intake-lps/src/components/ui.tsx (componente Logo/LogoLockup
 * oficial). Nunca inventados nesta rodada — ver relatório
 * FECHAMENTO-VISUAL-V1.md seções 2-5 pra evidência completa.
 */
:root {
  --ink: #211A17;       /* notado-site/index.html:24 */
  --cream: #FBF7F3;     /* "porcelain", notado-site/index.html:25 */
  --cream-2: #F1E6DC;   /* "sand", notado-site/index.html:26 */
  --line: #E7D9CC;      /* notado-site/index.html:27 */
  --slate: #6E5F52;     /* "muted", notado-site/index.html:28 */
  --accent: #F0522B;    /* "coral", notado-site/index.html:22 */
  --accent-deep: #C23B1A; /* "coral-deep", notado-site/index.html:23 */
  --accent-wash: #FBE4DB; /* tinta clara do coral — só usada nesta POC, pra estado selecionado sem virar bloco sólido laranja */
  --ok: #4C7A5E;
  --warn: #B4552E;
  --display: 'Fredoka', sans-serif; /* headings/logo — notado-site/index.html:29-30 */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* corpo — notado-site/index.html:29-30 */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); }
body { -webkit-tap-highlight-color: transparent; }

.app-shell { max-width: 480px; margin: 0 auto; padding: 16px 16px 32px; min-height: 100vh; display: flex; flex-direction: column; }

.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.app-header h1 { font-size: 1.05rem; margin: 0; font-weight: 800; }
.poc-tag { font-size: 0.62rem; font-weight: 700; background: var(--ink); color: var(--cream); padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.link-btn { background: none; border: none; font-size: 0.75rem; color: var(--slate); text-decoration: underline; padding: 8px; cursor: pointer; }

.app-header-normal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 24px; }
.brand-row { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-wordmark { font-family: var(--display); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.brand-dot { display: inline-block; width: 0.19em; height: 0.19em; background: var(--accent); border-radius: 50%; margin-left: 0.03em; vertical-align: baseline; }
.brand-ext { color: var(--accent); margin-left: 0.04em; }
.app-header-normal h1 { font-family: var(--display); font-size: 1.5rem; font-weight: 500; margin: 0; }
.app-header-normal .step-lead { margin: 6px auto 0; max-width: 300px; text-align: center; }

.progress-wrap { margin-bottom: 16px; }
.progress-track { height: 6px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); transition: width 0.2s; }
.progress-label { font-size: 0.7rem; color: var(--slate); margin-top: 4px; display: block; }

.step-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; flex: 1; }
.step-card h2 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 4px; font-weight: 500; }
.step-lead { font-size: 0.85rem; color: var(--slate); margin: 0 0 16px; }

.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.field-hint { font-size: 0.75rem; color: var(--slate); margin: 0 0 6px; }

.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--cream); font-size: 1rem; color: var(--ink); font-family: inherit;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
select.input { appearance: auto; }
textarea.input { resize: vertical; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-inline { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.row-inline .input { flex: 1; }

.card-grid { display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: 8px; }
.option-card {
  text-align: left; border: 1.5px solid var(--line); background: var(--cream); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; min-height: 44px; display: flex; flex-direction: column; gap: 2px;
}
.option-card.selected { border-color: var(--accent); border-width: 2px; background: var(--accent-wash); color: var(--ink); }
.option-title { font-weight: 700; font-size: 0.9rem; }
.option-desc { font-size: 0.72rem; opacity: 0.8; }

.option-pill, .service-row .option-pill {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); background: var(--cream); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; min-height: 44px; font-size: 0.9rem;
}
.option-pill.selected { border-color: var(--accent); background: var(--accent-wash); }
.option-pill.full { width: 100%; }
.pill-check { width: 18px; height: 18px; border: 1.5px solid var(--slate); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.option-pill.selected .pill-check { border-color: var(--accent); background: var(--accent); color: #fff; }
.pill-label { flex: 1; font-weight: 600; }
.pill-note { font-size: 0.7rem; color: var(--slate); }
.pill-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.badge { font-size: 0.62rem; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.badge-sourced { background: #E4F0E7; color: var(--ok); }
.badge-unsourced { background: #F4E8DD; color: var(--warn); }

.service-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.service-row { display: flex; flex-direction: column; gap: 8px; }
.price-control { padding-left: 4px; display: flex; flex-direction: column; gap: 8px; }
.price-control .card-grid { --cols: 2; }

.outro-box { margin: 10px 0 16px; }
.chip-remove { background: none; border: none; color: var(--accent-deep); font-size: 0.72rem; font-weight: 700; cursor: pointer; padding: 6px; }

.repeat-block { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; background: var(--cream-2); }
.repeat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.repeat-title { font-weight: 700; font-size: 0.85rem; }

.btn { border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: 0.9rem; cursor: pointer; min-height: 44px; border: none; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--slate); }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn-small { padding: 10px 14px; font-size: 0.8rem; min-height: 44px; flex-shrink: 0; }

.app-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; position: sticky; bottom: 0; background: var(--cream); padding-top: 8px; }
.error-msg { color: var(--warn); font-size: 0.8rem; font-weight: 600; min-height: 1em; margin: 10px 2px 0; }

.uploader { margin-bottom: 20px; }
.uploader-count { font-size: 0.78rem; font-weight: 700; color: var(--warn); margin: 0 0 8px; }
.uploader-count.complete { color: var(--ok); }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-loading { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--slate); background: var(--cream-2); text-align: center; padding: 4px; }
.thumb-remove { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.95rem; line-height: 1; cursor: pointer; z-index: 2; }
.thumb-replace { position: absolute; bottom: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.85rem; line-height: 24px; text-align: center; cursor: pointer; z-index: 2; }
.thumb-add { display: flex; align-items: center; justify-content: center; background: var(--cream-2); border: 1.5px dashed var(--slate); color: var(--slate); font-size: 0.75rem; font-weight: 700; cursor: pointer; text-align: center; }

.style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.style-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 10px; cursor: pointer; min-height: 44px; }
.style-card.selected { border-color: var(--ink); border-width: 2px; }
.style-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0,0,0,0.1); }
.style-name { font-size: 1.05rem; font-weight: 700; }
.style-body { font-size: 0.72rem; color: var(--slate); }
.style-preview { display: flex; align-items: center; gap: 8px; border: 1.5px solid; border-radius: 10px; padding: 8px 12px; font-size: 0.78rem; margin: 28px 0 8px; }
.swatch-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0,0,0,0.1); flex-shrink: 0; }

.palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.palette-swatch { background: none; border: none; padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.palette-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--sw); border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); display: block; }
.palette-swatch.selected .palette-dot { border-color: var(--ink); box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink); }

.cep-row .input { max-width: 160px; flex: 0 1 160px; }
.field-hint-error { color: var(--warn); font-weight: 600; }

.review-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--cream-2); }
.review-name { font-size: 1.1rem; font-weight: 800; margin: 0; }
.review-sub { font-size: 0.85rem; color: var(--slate); margin: 2px 0 0; }
.review-slug { font-size: 0.78rem; color: var(--ok); margin: 6px 0 0; }
.review-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate); display: block; margin-bottom: 6px; }
.review-card p { margin: 2px 0; font-size: 0.88rem; }

.done-screen { text-align: center; }
.done-screen h2 { margin-bottom: 8px; }
.done-screen .review-card { text-align: left; margin-top: 20px; }

.test-report { font-family: ui-monospace, monospace; }
.test-report h2 { font-family: ui-monospace, monospace; font-weight: 700; } /* tela técnica — mantém monoespaçada mesmo com Fredoka aplicada a h2 nas outras etapas */
.test-total { text-align: center; font-size: 0.85rem; margin-bottom: 16px; }
.test-total strong { font-size: 1.6rem; display: block; margin-top: 2px; }
.test-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.8rem; }
.test-table td { padding: 4px 2px; border-bottom: 1px dashed var(--line); }
.test-table td:last-child { text-align: right; font-weight: 700; }
.test-summary { border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 14px; }
.test-summary p { display: flex; justify-content: space-between; font-size: 0.82rem; margin: 4px 0; }
.test-report .row-inline { margin-bottom: 8px; }
.test-report .btn-outline { width: 100%; justify-content: center; }
