/* Pontual Escuta — área do cliente. Mobile-first, sem fontes/bibliotecas externas (carrega rápido com sinal ruim). */
:root {
  --green-700: #0a6b35;
  --green-600: #0e9447;
  --green-100: #dcf3e4;
  --green-50: #f0faf3;
  --ink: #12231a;
  --muted: #566a5f;
  --line: #d9e5dd;
  --bg: #f4f8f5;
  --card: #ffffff;
  --danger: #b42318;
  --danger-bg: #fef1ef;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(18, 35, 26, .06), 0 6px 18px rgba(18, 35, 26, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  min-height: 100vh;
}
[hidden] { display: none !important; }
a { color: var(--green-700); }

#app { max-width: 480px; margin: 0 auto; padding: 16px 16px 8px; }
.screen { animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- topo ---------- */
.brand { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--green-700); line-height: 1.1; }
.brand-name small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.place {
  display: inline-block; margin: 0 0 14px; padding: 7px 12px;
  background: var(--green-100); color: var(--green-700);
  border-radius: 999px; font-size: 14px; font-weight: 600;
}

h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; outline: none; }
h2 { font-size: 18px; margin: 0 0 10px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 12px; }
.time { display: inline-block; margin: 0 0 18px; padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- cards do início ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  min-height: 132px; padding: 16px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font: inherit; color: var(--ink); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.card:active { transform: scale(.97); }
.card .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 24px; }
.card .label { font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; }
.c-search .ico { background: #e2eeff; } .c-cart .ico { background: var(--green-100); }
.c-idea .ico { background: #fff3c4; }   .c-service .ico { background: #ece4ff; }
.c-star .ico { background: #ffe9c7; }   .c-other .ico { background: #e9eeeb; }
.card:focus-visible, .btn:focus-visible, .pill:focus-visible, .back:focus-visible, .chip:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* ---------- escolha da loja ---------- */
.picker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.picker.attention { border-color: var(--danger); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 8px 14px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.notice { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

/* ---------- retomar rascunho ---------- */
.resume { background: #fff8e1; border: 1px solid #f1dc93; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.resume p { margin: 0 0 10px; font-size: 15px; }

/* ---------- formulário ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 4px -8px; padding: 0 10px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--green-700); cursor: pointer; border-radius: 12px; }
.field { margin-bottom: 18px; }
label, .label-text { display: block; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 500; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="tel"], textarea, select {
  width: 100%; min-height: 52px; padding: 13px 14px;
  font: inherit; font-size: 16px; /* 16px evita o zoom automático do iPhone */ color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(14, 148, 71, .16); }
[aria-invalid="true"] { border-color: var(--danger) !important; background: var(--danger-bg); }
.field-error { min-height: 0; margin: 6px 0 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.field-error:empty { display: none; }

.chips { display: flex; gap: 8px; }
.chip { flex: 1; min-height: 46px; padding: 8px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green-100); border-color: var(--green-600); color: var(--green-700); }

.photo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; background: #fff; border: 1.5px dashed #9db8a8; border-radius: 14px; font: inherit; font-weight: 700; color: var(--green-700); cursor: pointer; }
.photo-preview { display: flex; align-items: center; gap: 12px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.photo-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.photo-preview span { flex: 1; font-size: 14px; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 20px; background: var(--green-600); color: #fff; border: 2px solid var(--green-600); border-radius: 16px; font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: transform .12s ease, background .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn.primary { width: 100%; min-height: 58px; font-size: 18px; box-shadow: 0 6px 16px rgba(14, 148, 71, .28); }
.btn.ghost { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.loading::after { content: ""; width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }
.row.end { margin: 18px 0 8px; }
.hint { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

.banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.banner.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c2bc; }
.banner.ok { background: var(--green-50); color: var(--green-700); border: 1px solid #b8e2c5; }
.offline { position: sticky; top: 0; z-index: 10; padding: 10px 16px; background: #3b3b3b; color: #fff; text-align: center; font-size: 14px; font-weight: 600; }

/* ---------- sucesso ---------- */
.success { text-align: center; padding: 18px 0 8px; }
.success .lead { margin-bottom: 18px; }
.check { width: 92px; height: 92px; margin-bottom: 8px; }
.check-circle { fill: var(--green-50); stroke: var(--green-600); stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw .6s .05s ease forwards; }
.check-mark { fill: none; stroke: var(--green-600); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .55s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.protocol { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 18px; background: #fff; border: 1px dashed #9db8a8; border-radius: 16px; }
.protocol span { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.protocol strong { font-size: 20px; letter-spacing: .02em; font-variant-numeric: tabular-nums; word-break: break-all; }

.contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; box-shadow: var(--shadow); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--muted); }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--green-600); }

.foot { text-align: center; padding: 12px 16px 24px; font-size: 13px; }
.foot a { display: inline-block; padding: 13px 10px; } /* área de toque ≥ 44 px */

@media (max-width: 359px) {
  h1 { font-size: 25px; }
  .card { min-height: 120px; padding: 14px; }
  .card .label { font-size: 13px; }
}
@media (min-width: 520px) { #app { padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .check-circle, .check-mark { stroke-dashoffset: 0; }
}

/* ---------- página de privacidade ---------- */
.doc h1 { font-size: 24px; }
.doc h2 { margin-top: 22px; font-size: 17px; }
.doc p, .doc li { color: #2b3d33; }
.doc ul { padding-left: 20px; }
