/* Completa.Ae · CSS escrito à mão, sem build. Mobile first.
   Identidade: amarelo sinalização + preto; verde só para economia/benefício. */

:root {
    --y: #FFD600;
    --y-soft: #FFF3A6;
    --ink: #111111;
    --ink-2: #2b2b2b;
    --muted: #666666;
    --line: #E4E4E4;
    --bg: #F3F3F3;
    --card: #FFFFFF;
    --green: #0A7D43;
    --green-bg: #E3F5EA;
    --warn: #8A5A00;
    --warn-bg: #FFF1CC;
    --old: #8C8C8C;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .05);
    --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); font-stretch: 85%; }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); font-stretch: 90%; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Marca ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; font-weight: 900; font-stretch: 112%; letter-spacing: -.03em; font-size: 1.45rem; line-height: 1; }
.logo .dot { display: inline-block; width: .42em; height: .42em; margin: 0 .06em; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 .09em var(--ink); transform: translateY(.18em); }
.logo .ae { background: var(--ink); color: var(--y); padding: .06em .16em .1em; border-radius: .18em; margin-left: .02em; }

/* linha de rota: VOCÊ ──●── POSTO */
.route { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.route .line { flex: 1; height: 0; border-top: 3px dashed currentColor; opacity: .5; position: relative; }
.route .pin { width: 12px; height: 12px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 3px var(--ink); flex: none; }

/* ---------- Cabeçalho ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 1000; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; }
.site-header .logo .dot { box-shadow: 0 0 0 .09em #fff; }
.site-header .logo .ae { background: var(--y); color: var(--ink); }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a, .site-nav button { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 10px; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.site-nav a:hover, .site-nav button:hover { background: rgba(255, 255, 255, .1); }
.site-nav .hide-m { display: none; }
@media (min-width: 760px) { .site-nav .hide-m { display: inline-block; } }

/* ---------- Botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .08s; }
.btn:active { transform: scale(.98); }
.btn-y { background: var(--y); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], select {
    width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
}
input:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.errors { background: #FDE8E8; border: 2px solid #C62828; color: #7F1D1D; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.flash { background: var(--green-bg); border: 2px solid var(--green); color: #064E2B; padding: 10px 14px; border-radius: 12px; margin: 14px 0; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }

/* chips de combustível */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span, a.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 800; font-size: .95rem; text-decoration: none; }
.chip input:checked + span, a.chip.on { background: var(--ink); color: var(--y); }
.chip input:focus-visible + span { outline: 3px solid var(--y); outline-offset: 2px; }

/* ---------- Home ---------- */
.hero { background: var(--y); padding: 28px 0 34px; border-bottom: 3px solid var(--ink); }
.hero .kicker { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: 10px; }
.hero h1 { margin-bottom: .25em; }
.hero .lead { font-size: 1.15rem; font-weight: 600; margin-bottom: 22px; max-width: 34ch; }
.finder { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 6px 6px 0 var(--ink); max-width: 620px; }
.finder .or { text-align: center; font-weight: 800; font-size: .85rem; color: var(--muted); margin: 10px 0; text-transform: uppercase; letter-spacing: .1em; }
.finder .row { display: flex; gap: 8px; }
.finder .row input { flex: 1; }
.finder details { margin-top: 12px; font-size: .92rem; }
.finder summary { cursor: pointer; font-weight: 700; }
.finder .adjust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.place-box { position: relative; flex: 1; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 2px solid var(--ink); border-radius: 12px; z-index: 50; overflow: hidden; box-shadow: var(--shadow); }
.suggest button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: #fff; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest button:last-child { border-bottom: 0; }
.suggest button.on, .suggest button:hover { background: var(--y-soft); }
.suggest small { color: var(--muted); text-transform: uppercase; font-size: .7rem; font-weight: 800; letter-spacing: .06em; }

.band { padding: 44px 0; }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .muted { color: #bdbdbd; }
.grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h3 { margin-bottom: .35em; }
.factor { font-weight: 900; font-size: 1.05rem; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; }
.stats b { display: block; font-size: 1.5rem; font-stretch: 90%; }
.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links a { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.city-links a:hover { background: var(--y); }

/* ---------- Resultado ---------- */
.search-bar { background: var(--y); border-bottom: 3px solid var(--ink); padding: 14px 0; }
.search-bar .where { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.search-bar .where a { font-size: .85rem; font-weight: 700; margin-left: 6px; }
.assumptions { font-size: .85rem; color: var(--ink-2); margin-top: 10px; }

.best { background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 18px; margin: 20px 0; }
.best .tag { display: inline-block; background: var(--ink); color: var(--y); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; padding: 5px 10px; border-radius: 6px; margin-bottom: 10px; }
.best h2 { margin-bottom: .2em; }
.price-big { font-size: clamp(2.2rem, 9vw, 3rem); font-weight: 900; font-stretch: 85%; line-height: 1; }
.price-big small { font-size: .9rem; font-weight: 700; color: var(--muted); font-stretch: 100%; }
.save { display: inline-block; background: var(--green-bg); color: var(--green); font-weight: 900; padding: 6px 10px; border-radius: 8px; }
.save.neutral { background: var(--bg); color: var(--muted); }
.save.neg { background: #FDECEC; color: #A01818; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .92rem; margin: 10px 0 14px; }
.facts b { font-weight: 800; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.rank { background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--shadow); text-decoration: none; display: block; }
.rank .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; color: var(--muted); }
.rank .n { font-weight: 800; font-size: .95rem; line-height: 1.2; margin: 4px 0; }
.rank .v { font-weight: 900; font-size: 1.25rem; }

.results { display: grid; gap: 10px; }
.result { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: start; border-left: 6px solid var(--y); }
.result.old { border-left-color: var(--line); }
.result.noprice { border-left-color: var(--line); opacity: .92; }
.result .name { font-weight: 800; font-size: 1.02rem; line-height: 1.2; text-decoration: none; }
.result .name:hover { text-decoration: underline; }
.result .meta { font-size: .85rem; color: var(--muted); }
.result .price { text-align: right; font-weight: 900; font-size: 1.45rem; font-stretch: 88%; line-height: 1.1; }
.result .price small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); font-stretch: 100%; }
.result .foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }

.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.fresh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fresh.muito_confiavel { background: var(--green-bg); color: var(--green); }
.fresh.confiavel { background: #EAF2FF; color: #1D4ED8; }
.fresh.pode_ter_mudado { background: var(--warn-bg); color: var(--warn); }
.fresh.antigo { background: #EFEFEF; color: #555; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.badge.approx { background: var(--warn-bg); color: var(--warn); }

#map, .map { height: 320px; border-radius: 14px; border: 2px solid var(--ink); margin: 14px 0; z-index: 1; }
.leaflet-container { font-family: var(--font); }
.pin-price { background: var(--y); border: 2px solid var(--ink); border-radius: 8px; font-weight: 900; font-size: 12px; padding: 1px 5px; white-space: nowrap; box-shadow: 0 2px 0 var(--ink); }
.pin-price.best { background: var(--ink); color: var(--y); }
.pin-price.none { background: #fff; color: var(--muted); }
.pin-me { width: 18px; height: 18px; border-radius: 50%; background: #1D4ED8; border: 3px solid #fff; box-shadow: 0 0 0 2px #1D4ED8; }

/* ---------- Página do posto ---------- */
.station-head { background: #fff; border-bottom: 3px solid var(--ink); padding: 22px 0; }
.station-head h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.prices { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.prices th, .prices td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fafafa; }
.prices td.p { font-weight: 900; font-size: 1.3rem; white-space: nowrap; }
.prices tr:last-child td { border-bottom: 0; }
.confirm { background: var(--y-soft); border: 2px solid var(--ink); border-radius: 14px; padding: 16px; margin: 16px 0; }
.confirm .q { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.confirm .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.confirm input[type=number] { max-width: 150px; }
.claim { border: 2px dashed var(--ink); border-radius: 14px; padding: 16px; background: #fff; }

/* ---------- Listas ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li a { display: flex; justify-content: space-between; gap: 10px; background: #fff; padding: 12px 14px; border-radius: 12px; text-decoration: none; box-shadow: var(--shadow); }
.list li a:hover { outline: 2px solid var(--ink); }
.cols { columns: 2; column-gap: 20px; }
@media (min-width: 760px) { .cols { columns: 4; } }
.cols a { display: block; padding: 4px 0; break-inside: avoid; }
.summary-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.summary-table th, .summary-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.summary-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 8px; background: #fff; text-decoration: none; font-weight: 700; }
.pagination .active { background: var(--ink); color: var(--y); }

/* ---------- Calculadora ---------- */
.calc { display: grid; gap: 12px; }
@media (min-width: 760px) { .calc { grid-template-columns: 1fr 1fr; } }
.verdict { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 900; font-stretch: 88%; line-height: 1.1; }
.verdict.g { color: var(--ink); }
.meter { height: 14px; border-radius: 999px; background: var(--bg); overflow: hidden; border: 2px solid var(--ink); }
.meter i { display: block; height: 100%; background: var(--y); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #cfcfcf; padding: 34px 0 40px; margin-top: 50px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.site-footer .logo .dot { box-shadow: 0 0 0 .09em #fff; }
.site-footer .logo .ae { background: var(--y); color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.page-head { padding: 26px 0 10px; }
.section { margin: 26px 0; }
.note { font-size: .85rem; color: var(--muted); border-left: 4px solid var(--y); padding-left: 10px; }

/* ---------- Fase 2/3: motorista, benefício, portal ---------- */
.badge.partner { background: var(--y); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.benefit-box { background: var(--y); border: 3px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 6px 6px 0 var(--ink); }
.benefit-box .tag { display: inline-block; background: var(--ink); color: var(--y); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; padding: 5px 10px; border-radius: 6px; }
.benefit-line { margin: 12px 0 0; font-size: 1.05rem; }
.benefit-line.locked { opacity: .55; }
.code-big { font-size: clamp(2rem, 11vw, 3.2rem); font-weight: 900; letter-spacing: .06em; font-stretch: 90%; border: 3px dashed var(--ink); border-radius: 14px; padding: 10px; margin: 16px 0; background: #fff; }
.qr { display: inline-block; background: #fff; padding: 10px; border-radius: 12px; border: 2px solid var(--ink); }
.qr img, .qr canvas { display: block; }
.bars { display: flex; align-items: flex-end; gap: 10px; min-height: 180px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; text-align: center; }
.bar { width: 100%; max-width: 48px; background: var(--ink); border-radius: 6px 6px 0 0; }
.bar-val { color: var(--muted); font-size: .7rem; }
.row-item { display: flex; justify-content: space-between; gap: 10px; background: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); align-items: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
textarea { font: inherit; }
