/* NósNaObra — site institucional. Mesmas cores do app: creme, terracota (tijolo) e amarelo capacete. */
:root {
  --cream: #f6f3ec;
  --cream-2: #efe9dd;
  --surface: #ffffff;
  --line: #e4ddcf;
  --ink: #22201c;
  --muted: #5f594f;
  --brick: #c2571a;
  --brick-dark: #a24814;
  --brick-soft: #f8e6d9;
  --helmet: #f2c14e;
  --helmet-soft: #fcf1d2;
  --green: #2e7d4f;
  --green-soft: #e3f2e8;
  --red: #b3261e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(34, 32, 28, 0.05), 0 8px 24px rgba(34, 32, 28, 0.07);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brick-dark); }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--helmet); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.2px; }
.brand img { width: 36px; height: 36px; }
.brand span b { color: var(--brick); font-weight: 800; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--brick); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .top .btn { margin-left: 8px; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 700 16px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brick); color: var(--brick-dark); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.store small { display: block; font-weight: 600; font-size: 11px; opacity: 0.8; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.5px; }
.store span { line-height: 1.15; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 72px 0 80px; } }
.eyebrow { display: inline-block; background: var(--helmet-soft); color: #7a5a0e; font-weight: 800; font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -1px; margin: 16px 0 16px; font-weight: 800; }
h1 em { font-style: normal; color: var(--brick); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* telefone desenhado em CSS */
.phone {
  justify-self: center; width: min(320px, 100%);
  background: #1f1d1a; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px rgba(34, 32, 28, 0.25);
}
.screen { background: var(--cream); border-radius: 30px; padding: 18px 14px 22px; display: grid; gap: 10px; }
.screen .obra { background: var(--brick); color: #fff; border-radius: 16px; padding: 14px; }
.screen .obra small { color: #fce3d1; font-size: 12px; }
.screen .obra strong { display: block; font-size: 18px; }
.bar { height: 8px; background: rgba(255, 255, 255, 0.3); border-radius: 8px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 42%; background: #fff; border-radius: 8px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
.mini b { display: block; font-size: 14px; }
.mini .tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.tag.warn { background: var(--helmet-soft); color: #7a5a0e; }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.brick { background: var(--brick-soft); color: var(--brick-dark); }

/* ---------- seções ---------- */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 12px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
section.alt .card { background: var(--cream); box-shadow: none; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.card li { margin: 4px 0; }
.icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; background: var(--brick-soft); }
.icon.y { background: var(--helmet-soft); }
.icon.g { background: var(--green-soft); }
.icon.b { background: #e3edf8; }

.pain { display: flex; gap: 14px; align-items: flex-start; }
.pain .x { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fbe7e5; color: var(--red); display: grid; place-items: center; font-weight: 800; }
.pain p { margin: 0; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brick); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center;
}
.step p { margin: 0; color: var(--muted); }

.roles .card h3 { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--cream-2); color: var(--muted); }

.plans .card { display: flex; flex-direction: column; }
.plans .price { font-size: 30px; font-weight: 800; margin: 6px 0 10px; }
.plans .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plans .highlight { border: 2px solid var(--brick); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 800; color: var(--brick); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

.final { text-align: center; background: var(--brick); color: #fff; border-radius: 28px; padding: 44px 24px; }
.final h2 { color: #fff; }
.final p { color: #fce3d1; margin: 0 auto 24px; max-width: 36em; }
.final .btn-primary { background: #fff; color: var(--brick-dark); }
.final .btn-primary:hover { background: var(--helmet-soft); }
.final .ctas { justify-content: center; }

/* ---------- rodapé ---------- */
footer { padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h4 { margin: 0 0 8px; color: var(--ink); font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 4px 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--brick); }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 13px; }

/* ---------- páginas de texto (privacidade, termos) ---------- */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-top: 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc h3 { margin-top: 20px; }
.doc p, .doc li { color: #3d3a34; }
.doc ul { padding-left: 22px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); white-space: nowrap; }
@media (max-width: 639px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 12px; }
  .doc td { border: 0; padding: 6px 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
}
.toc { columns: 1; }
@media (min-width: 640px) { .toc { columns: 2; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
