/* ==========================================================================
   Caçamba Ipiranga — guia comparativo
   Design utilitário. Sem framework, sem fonte externa, sem render-blocking.
   ========================================================================== */

:root {
  --ink:        #15181d;
  --ink-soft:   #474e58;
  --ink-faint:  #6b7380;
  --line:       #e0e4ea;
  --line-soft:  #eef1f5;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fa;
  --bg-sunk:    #eef1f5;

  --accent:       #b4480d;
  --accent-ink:   #8f3909;
  --accent-wash:  #fdf3ec;
  --accent-line:  #f0d4c0;

  --verify:       #136c43;
  --verify-wash:  #eaf6f0;
  --verify-line:  #c2e2d2;

  --warn-wash:    #fff8e6;
  --warn-line:    #f0dfb0;
  --expired:      #a32218;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 24, 30, .06), 0 4px 14px rgba(20, 24, 30, .05);
  --wrap: 1080px;
  --prose: 44rem;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #e8ebef;
    --ink-soft:   #a7b0bd;
    --ink-faint:  #7f8896;
    --line:       #2b313a;
    --line-soft:  #22272e;
    --bg:         #101317;
    --bg-alt:     #171b21;
    --bg-sunk:    #1d222a;

    --accent:       #f0924f;
    --accent-ink:   #f8b98a;
    --accent-wash:  #26180f;
    --accent-line:  #4a2d17;

    --verify:       #58c795;
    --verify-wash:  #0f2219;
    --verify-line:  #244c38;

    --warn-wash:    #241e0e;
    --warn-line:    #463a1b;
    --expired:      #f1857a;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  }
}

:root[data-theme="dark"] {
  --ink:        #e8ebef;
  --ink-soft:   #a7b0bd;
  --ink-faint:  #7f8896;
  --line:       #2b313a;
  --line-soft:  #22272e;
  --bg:         #101317;
  --bg-alt:     #171b21;
  --bg-sunk:    #1d222a;

  --accent:       #f0924f;
  --accent-ink:   #f8b98a;
  --accent-wash:  #26180f;
  --accent-line:  #4a2d17;

  --verify:       #58c795;
  --verify-wash:  #0f2219;
  --verify-line:  #244c38;

  --warn-wash:    #241e0e;
  --warn-line:    #463a1b;
  --expired:      #f1857a;

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--prose); }

.skip {
  position: absolute; left: -9999px;
  background: var(--bg); color: var(--ink);
  padding: 10px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.site-head__in {
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 1.5rem; letter-spacing: -.015em;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: none; color: var(--accent); width: 30px; height: 30px; }
.brand small {
  display: block; font-weight: 500; font-size: .8125rem;
  color: var(--ink-faint); letter-spacing: 0; margin-top: 2px;
}
.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .875rem;
  padding: 6px 10px; border-radius: var(--radius-sm); font-weight: 500;
}
.site-nav a:hover { background: var(--bg-sunk); color: var(--ink); }

/* ---------- breadcrumb ---------- */

.crumb { font-size: .8125rem; color: var(--ink-faint); padding: 14px 0 0; }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb li::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumb li:last-child::after { content: ""; }
.crumb a { color: var(--ink-faint); }

/* ---------- hero ---------- */

.hero { padding: 36px 0 28px; }
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.025em;
  margin: 0 0 14px; font-weight: 800; max-width: 22em;
}
.hero__sub { font-size: 1.125rem; color: var(--ink-soft); margin: 0; }

.hero__figure {
  display: block;
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1120 / 509;
  object-fit: cover;
  display: block;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--verify);
  background: var(--verify-wash); border: 1px solid var(--verify-line);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- section scaffolding ---------- */

section { padding: 32px 0; }
section + section { border-top: 1px solid var(--line-soft); }

h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.65rem); line-height: 1.22;
  letter-spacing: -.02em; margin: 0 0 14px; font-weight: 750;
}
h3 { font-size: 1.0625rem; line-height: 1.35; margin: 26px 0 8px; font-weight: 700; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1.125rem; color: var(--ink-soft); }

/* ---------- sponsored card ---------- */

.sponsor {
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.sponsor__tag {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent-ink); border: 1px solid var(--accent-line);
  background: var(--bg); padding: 3px 8px; border-radius: 4px; margin-bottom: 12px;
}
.sponsor__name { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.sponsor__meta { font-size: .875rem; color: var(--ink-soft); margin: 0 0 14px; }
.sponsor__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.sponsor__list li { font-size: .9375rem; display: flex; gap: 8px; align-items: flex-start; }
.sponsor__list li::before { content: "✓"; color: var(--verify); font-weight: 700; flex: none; }
.sponsor__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  font-weight: 650; font-size: .9375rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  min-height: 44px;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-ink); text-decoration: none; }
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-sunk); text-decoration: none; }

/* ---------- vacancy / open slot ---------- */

.vacancy {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 18px; background: var(--bg-alt);
  font-size: .9375rem; color: var(--ink-soft);
}
.vacancy strong { color: var(--ink); }

/* ---------- comparison table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }

table.cmp {
  width: 100%; border-collapse: collapse; font-size: .9375rem;
  min-width: 680px;
}
table.cmp caption {
  text-align: left; font-size: .8125rem; color: var(--ink-faint);
  padding-bottom: 10px;
}
table.cmp th, table.cmp td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.cmp thead th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); font-weight: 700; border-bottom: 1px solid var(--line);
  background: var(--bg-alt); white-space: nowrap;
}
table.cmp tbody tr:hover { background: var(--bg-alt); }
table.cmp .co-name { font-weight: 650; }
table.cmp .co-legal { display: block; font-size: .8125rem; color: var(--ink-faint); font-weight: 400; }

.reg {
  font-family: var(--mono); font-size: .8125rem;
  background: var(--verify-wash); color: var(--verify);
  border: 1px solid var(--verify-line);
  padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}
.na { color: var(--ink-faint); font-size: .875rem; }

/* contato: ligar + whatsapp */
.contato {
  display: grid; grid-template-columns: 9.5rem 7.5rem;
  align-items: center; column-gap: 12px; white-space: nowrap;
}
.contato__tel {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  text-align: right;
}
.contato__tel:hover { color: var(--accent); text-decoration: underline; }
.contato__wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 34px; box-sizing: border-box;
  background: #25D366; color: #fff; text-decoration: none;
  font-weight: 700; font-size: .8125rem; letter-spacing: .01em; line-height: 1;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20,24,30,.15);
  transition: background .1s ease, box-shadow .1s ease;
}
.contato__wa:hover { background: #1fb959; box-shadow: 0 2px 6px rgba(20,24,30,.22); }
.contato__wa svg { display: block; width: 16px; height: 16px; flex: none; }
.contato__wa svg circle { fill: none; }
.contato__wa span { line-height: 1; }
@media (max-width: 720px) {
  .contato { grid-template-columns: max-content 7.5rem; column-gap: 10px; }
  .contato__tel { text-align: left; }
}

/* cadastro vencido */
.reg--exp {
  background: var(--warn-wash); border-color: var(--warn-line); color: var(--expired);
}
.exp-note {
  display: block; font-size: .75rem; color: var(--expired);
  font-weight: 600; margin-top: 4px;
}
.exp-strong { color: var(--expired); }
.exp-legend {
  background: var(--warn-wash); border: 1px solid var(--warn-line);
  border-left: 3px solid var(--expired);
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: .9375rem; max-width: var(--prose); margin: 0 0 16px;
}

/* card version of the table, for phones */
.cmp-cards { display: none; }
.co-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; background: var(--bg);
}
.co-card h3 { margin: 0 0 2px; font-size: 1.0625rem; }
.co-card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .875rem; }
.co-card dt { color: var(--ink-faint); }
.co-card dd { margin: 0; }

@media (max-width: 720px) {
  .table-scroll { display: none; }
  .cmp-cards { display: block; }
}

/* ---------- how we check ---------- */

.method { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.method ol { margin: 0; padding-left: 1.3em; }
.method li { margin-bottom: 10px; }
.method li:last-child { margin-bottom: 0; }
.method__src { font-size: .8125rem; color: var(--ink-faint); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- tools (calculator, verifier) ---------- */

.tool {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow); overflow: hidden;
}
.tool__head { padding: 18px 20px 0; }
.tool__head h2 { margin-bottom: 6px; }
.tool__head p { font-size: .9375rem; color: var(--ink-soft); }
.tool__body { padding: 4px 20px 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .875rem; font-weight: 650; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-faint); }
input[type="number"], input[type="text"], input[type="search"], select {
  width: 100%; padding: 11px 12px; font-size: 1rem; font-family: inherit;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  min-height: 44px;
}
input:focus, select:focus { border-color: var(--accent); }

.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.result {
  margin-top: 16px; padding: 16px;
  background: var(--bg-sunk); border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.result__num { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.result__lbl { font-size: .8125rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.result__note { font-size: .875rem; color: var(--ink-soft); margin-top: 10px; }
.result__row { display: flex; gap: 28px; flex-wrap: wrap; }

.hit { border: 1px solid var(--verify-line); background: var(--verify-wash); padding: 14px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.hit__name { font-weight: 700; }
.hit__meta { font-size: .875rem; color: var(--ink-soft); }
.miss { border: 1px solid var(--warn-line); background: var(--warn-wash); padding: 14px; border-radius: var(--radius-sm); font-size: .9375rem; }

.noscript-note {
  background: var(--warn-wash); border: 1px solid var(--warn-line);
  padding: 14px; border-radius: var(--radius-sm); font-size: .9375rem;
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line-soft); padding: 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; padding: 16px 32px 16px 0; font-weight: 650;
  list-style: none; position: relative; min-height: 44px;
  display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; font-weight: 400; color: var(--ink-faint);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent-ink); }
.faq .answer { padding: 0 0 18px; color: var(--ink-soft); max-width: var(--prose); }

/* ---------- link grids ---------- */

.linkgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.linkgrid a {
  display: block; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
  font-weight: 650; font-size: .9375rem; background: var(--bg);
}
.linkgrid a:hover { border-color: var(--accent); background: var(--accent-wash); text-decoration: none; }
.linkgrid span { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-faint); margin-top: 2px; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 32px 0; margin-top: 40px; font-size: .875rem; color: var(--ink-soft);
}
.site-foot h2 { font-size: .9375rem; margin-bottom: 10px; }
.site-foot__cols { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .site-foot__cols { grid-template-columns: 1fr; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot a { color: var(--ink-soft); }
.disclaim {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--ink-faint); max-width: 60em;
}

/* ---------- utility ---------- */

.stack > * + * { margin-top: 18px; }
.mt-0 { margin-top: 0; }
.center-narrow { max-width: var(--prose); }

@media print {
  .site-head, .site-nav, .tool, .sponsor__actions { display: none; }
  body { font-size: 11pt; }
}

.area-note {
  font-size: .9375rem; color: var(--ink-soft);
  background: var(--bg-alt); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 12px 14px; border-radius: var(--radius-sm);
  max-width: var(--prose); margin: 0 0 16px;
}
.area-note strong { color: var(--ink); }
