/* PneuHaus · PWA de demonstração
   Paleta do guia de marca: #000 · #2B2B2B · #D9D9D9 · #AFE703
   Archivo (Google Fonts) substitui as fontes licenciadas da marca. */
:root {
  --ink: #000; --coal: #0a0a0a; --graphite: #2b2b2b; --surface: #151515; --line: #262626;
  --fog: #d9d9d9; --text: #f2f2f2; --muted: #a3a3a3; --lime: #afe703; --lime-h: #c8ff1f; --warn: #f5b84a;
  --r: 10px; --rc: 16px;
  --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--coal); color: var(--fog); }
/* Mantém o item focado/rolado acima da barra de abas fixa. */
html { scroll-padding-bottom: calc(96px + var(--sb)); scroll-padding-top: 16px; }
@media (min-width: 900px) { html { scroll-padding-bottom: 24px; } }
body { font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--lime); color: #000; padding: 8px 12px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.disp { font-family: Archivo, "Arial Narrow", "Roboto Condensed", sans-serif; font-stretch: 62%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.92; }
.wm { font-stretch: 115%; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.warn { color: var(--warn); }
.lime { color: var(--lime); }

.demo-bar { background: var(--lime); color: #000; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: center; padding: calc(4px + var(--st)) 12px 4px; }

/* Layout */
#app { max-width: 1200px; margin: 0 auto; padding: 20px 16px calc(96px + var(--sb)); outline: none; }
.page { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.cols > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cols > .side { flex: 1 1 320px; min-width: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
h1.title { margin: 0; font-size: clamp(44px, 12vw, 72px); color: var(--text); }

/* Top bar (desktop) & tab bar (mobile) */
.topbar { background: #000; border-bottom: 1px solid #1f1f1f; }
.topbar .in { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 6px; color: var(--fog); text-decoration: none; min-height: 44px; }
.logo svg { width: 1.7em; height: 1.7em; }
.topnav { display: none; gap: 4px; flex: 1; }
.topnav a, .tabbar a { text-decoration: none; color: #b5b5b5; font-weight: 700; }
.topnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; }
.topnav a[aria-current="page"], .tabbar a[aria-current="page"] { color: var(--lime); }
.company { margin-left: auto; text-align: right; font-size: 13px; line-height: 1.2; }
.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #1f1f1f; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 4px calc(4px + var(--sb)); }
.tabbar a { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; position: relative; }
.tabbar svg { width: 24px; height: 24px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: #000; font-size: 11px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.tabbar .badge { position: absolute; top: 4px; left: calc(50% + 6px); }
@media (min-width: 900px) {
  .topnav { display: flex; }
  .tabbar { display: none !important; }
  #app { padding-bottom: 64px; }
}

/* Componentes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc); }
.pad { padding: 18px; }
.btn { min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; font-size: 15px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-p { background: var(--lime); color: #000; }
.btn-p:hover { background: var(--lime-h); }
.btn-g { background: transparent; color: var(--fog); border-color: #3d3d3d; }
.btn-g:hover { border-color: var(--fog); }
.btn-k { background: #000; color: var(--lime); }
.btn:disabled { background: var(--graphite); color: #8c8c8c; border-color: transparent; cursor: not-allowed; }
.btn-lg { min-height: 56px; font-size: 16px; }
.w100 { width: 100%; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #3d3d3d; background: transparent; color: var(--fog); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--fog); color: #000; border-color: var(--fog); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.field { width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--r); border: 1px solid #3d3d3d; background: #141414; color: var(--text); font-size: 16px; }
.field:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--lime); }
label.lbl { font-size: 14px; font-weight: 700; display: flex; flex-direction: column; gap: 8px; }
.step { width: 46px; height: 46px; border-radius: var(--r); border: 1px solid #3d3d3d; background: #0d0d0d; color: var(--text); font-size: 22px; font-weight: 800; cursor: pointer; flex: none; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty output { flex: 1; text-align: center; font-weight: 900; font-size: 18px; color: var(--text); min-width: 56px; }
.tag { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; white-space: nowrap; display: inline-block; }
.t-stock { background: var(--lime); color: #000; }
.t-transit { background: var(--fog); color: #000; }
.t-order { border: 1px solid #5a5a5a; color: var(--fog); }
.t-warn { background: var(--warn); color: #000; }
.t-dark { background: var(--graphite); color: var(--fog); }
.notice { border: 1px solid #3d3d3d; background: #0d0d0d; border-radius: var(--r); padding: 12px 14px; font-size: 14px; }
.notice-lime { background: var(--lime); color: #000; border-radius: var(--r); padding: 14px; font-weight: 800; }
.notice-warn { border: 1px solid var(--warn); color: var(--warn); border-radius: var(--r); padding: 12px 14px; font-size: 14px; font-weight: 600; }
.size { font-size: 44px; color: var(--lime); display: block; }
.total { font-size: clamp(40px, 11vw, 64px); overflow-wrap: anywhere; }
.price { font-size: 30px; color: var(--text); }
.line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #222; }
.line:first-child { border-top: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; }
.meter { height: 16px; background: #262626; border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--lime); border-radius: 999px; transition: width .3s; }
.meter.over > span { background: var(--warn); }
.tire { width: 64px; height: 64px; flex: none; }
.sticky-cta { position: sticky; bottom: calc(76px + var(--sb)); z-index: 10; display: flex; justify-content: center; }
.sticky-cta .btn { box-shadow: 0 12px 32px rgba(0,0,0,.7); width: min(100%, 520px); justify-content: space-between; }
@media (min-width: 900px) { .sticky-cta { bottom: 16px; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--lime); margin: 2px 0 0; flex: none; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; padding: 10px 0; }
.dot { width: 16px; height: 16px; border-radius: 999px; flex: none; margin-top: 3px; border: 2px solid #4a4a4a; }
.dot.done { background: var(--lime); border-color: var(--lime); }
.dot.now { background: #000; border: 3px solid var(--lime); }
.hero { background: var(--lime); color: #000; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden; }
.hero svg.bg { position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; opacity: .12; }
.hero h2 { margin: 0; font-size: clamp(52px, 15vw, 88px); position: relative; }
/* Aviso no topo da tela: nunca cobre o botão do carrinho nem a barra de abas. */
.toast { position: fixed; left: 50%; top: calc(12px + var(--st)); transform: translateX(-50%) translateY(-20px); background: var(--text); color: #000; font-weight: 800; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.install { display: flex; gap: 12px; align-items: center; }
.install svg { width: 40px; height: 40px; flex: none; }

/* Login */
.login { display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.login .brand { background: #000; border-radius: 20px; padding: 28px 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; }
.login .brand svg.bg { position: absolute; right: -90px; bottom: -70px; width: 360px; height: 360px; opacity: .08; }
.login h1 { margin: 0; font-size: clamp(44px, 12vw, 96px); color: var(--lime); position: relative; }

/* Impressão: só a proposta pública (RN-24) */
@media print {
  .demo-bar, .topbar, .tabbar, .no-print, .toast { display: none !important; }
  body, html { background: #fff; color: #000; }
  #app { padding: 0; }
  .card { border-color: #ccc; background: #fff; }
  .notice-lime { background: #fff; border: 2px solid #000; }
  .lime, .size { color: #000; }
  * { color: #000 !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
