:root {
  --ground: #FFFBF3;
  --ink: #2B1D14;
  --ink2: #4A3828;
  --muted: #6B5848;
  --line: #EADFCF;
  --line2: #D8C9B3;
  --sun: #F5B82E;
  --sun-soft: #FDF0CC;
  --teal: #1F7A6D;
  --teal-ink: #1F6B5F;
  --teal-soft: #DDF0EC;
  --card: #FFFFFF;
  --danger: #B3261E;
  --danger-soft: #FBE4E1;
  --font-d: 'Bricolage Grotesque', system-ui, sans-serif;
  --font: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground); line-height: 1.5; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3 { font-family: var(--font-d); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.container { max-width: 1264px; margin: 0 auto; padding: 0 48px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabeçalho */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 700; font-size: 24px; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--sun); font-weight: 700; flex: 0 0 auto; }
.avatar-sm { width: 40px; height: 40px; font-size: 14px; }
.avatar-md { width: 56px; height: 56px; font-size: 18px; }
.avatar-lg { width: 96px; height: 96px; font-size: 32px; font-family: var(--font-d); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.link-btn { background: none; border: none; padding: 10px 6px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-align: center; }
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: #E8A91A; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; border-radius: 999px; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn-ghost { background: transparent; }
.btn-soft { background: var(--teal-soft); color: var(--teal-ink); }
.btn-dashed { background: var(--ground); border: 1px dashed var(--muted); color: var(--ink2); }
.btn-lg { min-height: 54px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Etiquetas */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill-premium { background: var(--ink); color: var(--sun); }
.pill-destaque { background: var(--sun); color: var(--ink); }
.pill-ok { background: var(--teal-soft); color: var(--teal-ink); }
.pill-cert { border: 1px solid var(--teal-ink); color: var(--teal-ink); padding: 3px 12px; }
.pill-info { background: var(--sun-soft); color: var(--ink); }
.pill-gray { background: var(--line); color: var(--ink2); }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--sun-soft); font-size: 15px; }
.chip-line { background: transparent; border: 1px solid var(--line); }

/* Cartões e formulários */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); }
.textarea { padding: 12px; min-height: 110px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; font-weight: 400; color: var(--ink); }
.check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { flex: 1 1 180px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 14px; font-weight: 700; font-size: 16px; color: var(--ink); background: #fff; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); }
.choice.is-on { border: 2px solid var(--sun); background: var(--sun-soft); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > * { flex: 1 1 220px; min-width: 0; }

.notice { padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.notice-ok { background: var(--teal-soft); color: var(--teal-ink); font-weight: 700; }
.notice-err { background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.notice-info { background: var(--sun-soft); color: var(--ink); }

/* Página inicial */
.hero { padding: 64px 0 72px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-art { flex: 1 1 380px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.hero-lead { margin: 20px 0 32px; max-width: 560px; font-size: 20px; color: var(--muted); }
.kicker { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--sun-soft); font-weight: 700; font-size: 14px; }
.searchbox { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.searchbox .field { flex: 1 1 180px; padding: 8px 12px; font-size: 13px; }
.searchbox .select { border: none; padding: 0; min-height: 44px; font-size: 17px; background: transparent; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; }
.art { display: flex; flex-direction: column; gap: 16px; padding: 36px; border-radius: 36px; background: var(--sun); }
.art-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 24px; background: #fff; }
.art-toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }

.section { padding: 72px 0; }
.section-alt { background: var(--sun-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.section-lead { margin-bottom: 32px; font-size: 18px; color: var(--muted); }
.section-dark .section-lead { color: #E8DCC8; }
.cat-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.cat { flex: 1 1 270px; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.cat-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sun-soft); }
.cat-name { font-family: var(--font-d); font-size: 22px; font-weight: 700; }
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.step-n { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--sun); font-family: var(--font-d); font-size: 22px; font-weight: 700; }
.plans { display: flex; flex-wrap: wrap; gap: 20px; }
.plan { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 24px; background: #fff; color: var(--ink); }
.plan-hot { background: var(--sun); }
.plan h3 { font-size: 26px; }
.price { font-family: var(--font-d); font-size: 32px; font-weight: 700; }
.price small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-hot .price small { color: var(--ink); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }

/* Pesquisa */
.page { padding: 40px 0 72px; }
.crumbs { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.page h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 28px; }
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.side { flex: 1 1 260px; max-width: 320px; }
.main { flex: 999 1 560px; min-width: 0; }
.result { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.result-body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.result-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.result-title a { font-family: var(--font-d); font-size: 22px; font-weight: 700; }
.result-actions { display: flex; flex-direction: column; gap: 10px; min-width: 170px; }
.result-top { border: 2px solid var(--sun); }
.rating { font-size: 15px; font-weight: 700; }
.star { color: #8A5A00; }

/* Perfil */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.profile-head h1 { font-size: clamp(30px, 4vw, 40px); margin: 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery img { flex: 1 1 200px; height: 170px; object-fit: cover; border-radius: 16px; }
.review { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--ground); border: 1px solid var(--line); }
.contact-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ground); border: 1px dashed var(--muted); }
.contact-mask { font-size: 18px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink2); }
.aside { flex: 1 1 340px; max-width: 420px; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 36px; padding-bottom: 36px; font-size: 15px; color: var(--muted); }
.footer-inner strong { font-family: var(--font-d); font-size: 20px; color: var(--ink); }

.auth-wrap { max-width: 560px; margin: 0 auto; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab { flex: 1; min-height: 46px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 48px 0; }
  .nav { gap: 18px; font-size: 15px; }
  .art { padding: 22px; border-radius: 28px; }
  .result-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .result-actions .btn { flex: 1 1 140px; }
  .card { padding: 20px; }
}

/* ---- v0.3: menos caixas, listas planas, cabeçalho compacto ---- */
.card { background: none; border: 0; border-radius: 0; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.card:last-child, .side.card, .profile-head.card, .searchbox .card { border-bottom: 0; }
.profile-head.card { padding-bottom: 8px; }
.result { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
.result-top { border: 0; border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--sun); padding-left: 20px; }
.review { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
.review:last-child { border-bottom: 0; }
.contact-box { background: none; border: 0; padding: 0; }
.cat { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; flex-direction: row; align-items: center; padding: 18px 4px; flex: 1 1 300px; }
.cat > span:last-child { display: block; }
.cat-icon { flex: none; }
.cat-grid { gap: 0 32px; }
@media (max-width: 720px) {
  .header-inner { flex-wrap: nowrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .nav { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .avatar { display: none; }
  .header-actions .btn { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .logo span { font-size: 20px; }
  .card { padding: 0 0 22px; }
  .result { padding: 20px 0; }
  .result-top { padding-left: 14px; }
}
@media (max-width: 720px) {
  .logo, .logo span, .header-actions .btn, .header-actions .link-btn { white-space: nowrap; }
  .logo svg { width: 28px; height: 28px; }
  .header-actions .btn { padding: 0 12px; }
}
@media (max-width: 720px) { .hero-art { display: none; } }
@media (max-width: 720px) { .has-admin .logo span { display: none; } }
