/* Quero Comprar Isso — design system (doc 06 / protótipo). Compartilhado pelos 4 apps. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --brand: #FFEA00; --brand-dark: #F9A825; --brand-light: #FFFDE7;
  --dark: #263238; --dark-deep: #1A1D1E; --bg: #fff; --bg-soft: #FFFEF5; --bg-warm: #FFF9C4;
  --text: #263238; --text-secondary: #546E7A; --text-muted: #90A4AE; --border: #E0E0E0;
  --success: #2E7D32; --danger: #C62828; --info: #1565C0;
  --radius: 12px; --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06); --shadow: 0 4px 20px rgba(0,0,0,.08); --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); background: var(--bg-soft); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; }

/* ── TOPBAR ── */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--dark); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; height: 60px; border-bottom: 1px solid rgba(255,255,255,.07); }
.logo { display: flex; align-items: center; gap: 9px; color: var(--brand); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.logo-icon { width: 30px; height: 30px; background: var(--brand); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--dark); font-weight: 800; font-size: .8rem; }
.world-toggle { display: flex; align-items: center; background: rgba(255,255,255,.07); border-radius: 9px; padding: 3px; }
.world-toggle a, .world-toggle button { border: none; background: none; color: rgba(255,255,255,.55); font-family: inherit; font-weight: 600; font-size: .8rem; padding: 7px 15px; border-radius: 7px; cursor: pointer; transition: var(--transition); }
.world-toggle a:hover { color: #fff; }
.world-toggle a.active, .world-toggle button.active { background: var(--brand); color: var(--dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 22px 64px; }
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 1.5rem; font-weight: 800; }
.page-head p { color: var(--text-secondary); font-size: .92rem; margin-top: 3px; }
.section-tag { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: #F57F17; margin-bottom: 8px; }
.muted, .hint { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.hl { color: var(--dark); background: var(--brand); padding: 0 8px; border-radius: 4px; }

/* ── BOTÕES ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 22px; border-radius: 10px; font-size: .9rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: inherit; transition: var(--transition); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--dark); color: var(--brand); } .btn-primary:hover:not(:disabled) { background: var(--dark-deep); }
.btn-yellow { background: var(--brand); color: var(--dark); } .btn-yellow:hover:not(:disabled) { background: var(--brand-dark); }
.btn-white { background: #fff; color: var(--dark); } .btn-white:hover:not(:disabled) { box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); font-weight: 600; } .btn-outline:hover:not(:disabled) { border-color: var(--dark); }
.btn-sm { padding: 8px 14px; font-size: .8rem; }
.btn-block { width: 100%; }
.link-back { display: inline-block; background: none; border: none; color: var(--text-secondary); font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; margin-bottom: 16px; padding: 0; }
.link-back:hover { color: var(--dark); }

/* ── LANDING ── */
.lp section { padding: 74px 0; }
.lp .container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.hero { background: var(--dark); position: relative; overflow: hidden; padding: 64px 0 70px; }
.hero::before { content: ''; position: absolute; top: -300px; right: -200px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(255,234,0,.08) 0%, transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,234,0,.1); color: var(--brand); padding: 6px 16px; border-radius: 100px; font-size: .78rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(255,234,0,.15); }
.hero-badge .dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { font-size: 2.9rem; font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 18px; }
.hero h1 .hl { padding: 2px 10px; border-radius: 6px; display: inline-block; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.62); max-width: 520px; margin-bottom: 14px; line-height: 1.7; }
.hero-emphasis { font-size: .98rem; color: var(--brand); font-weight: 600; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { background: rgba(255,255,255,.04); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08); padding: 26px; }
.hv-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .72rem; color: rgba(255,255,255,.4); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.hv-header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline { display: flex; flex-direction: column; gap: 15px; }
.tl-item { display: flex; gap: 13px; align-items: flex-start; }
.tl-time { min-width: 48px; font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.3); padding-top: 2px; text-align: right; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.2); margin-top: 3px; }
.tl-dot.active { background: var(--brand); border-color: var(--brand); }
.tl-content h4 { font-size: .84rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.tl-content p { font-size: .74rem; color: rgba(255,255,255,.4); }
.tl-tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-top: 4px; }
.tl-tag.y { background: rgba(255,234,0,.15); color: var(--brand); }
.tl-tag.g { background: rgba(46,125,50,.15); color: #66BB6A; }
.region-bar { background: var(--bg-warm); border-bottom: 1px solid #FCE37A; color: #6b5800; font-size: .82rem; font-weight: 600; text-align: center; padding: 9px 16px; }

.sec-soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.sec-head p { font-size: 1.02rem; color: var(--text-secondary); }
.how-grid, .niches-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.how-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: var(--transition); }
.how-card:hover { border-color: var(--brand-dark); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.how-num { width: 34px; height: 34px; border-radius: 10px; background: var(--dark); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: .88rem; font-weight: 800; margin-bottom: 13px; }
.how-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.how-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; }
.niche-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: var(--transition); }
.niche-card.soon { opacity: .72; }
.niche-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 13px; background: var(--bg-warm); }
.niche-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.niche-card > p { font-size: .88rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; }
.niche-example { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); font-style: italic; }
.niche-example strong { color: var(--dark); font-style: normal; }
.soon-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; background: #ECEFF1; color: var(--text-secondary); padding: 3px 8px; border-radius: 5px; }
.live-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; background: rgba(46,125,50,.12); color: var(--success); padding: 3px 8px; border-radius: 5px; }
.final-cta { background: var(--dark); text-align: center; border-radius: var(--radius-lg); }
.final-cta h2 { font-size: 1.7rem; font-weight: 800; color: var(--brand); margin-bottom: 10px; }
.final-cta p { color: rgba(255,255,255,.55); font-size: 1rem; margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }
.lp-footer { background: var(--dark-deep); color: rgba(255,255,255,.4); padding: 30px 0; text-align: center; font-size: .82rem; }
.lp-footer b { color: var(--brand); }

/* ── FORMULÁRIOS ── */
.form-grid { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: .83rem; font-weight: 600; margin-bottom: 5px; }
.frow, .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
input, select, textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px; font-size: .88rem; font-family: inherit; color: var(--text); background: var(--bg); transition: var(--transition); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(255,234,0,.2); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 60px; }
.hint { font-size: .74rem; margin-top: 3px; display: block; }
.validation-message { color: var(--danger); font-size: .76rem; margin-top: 3px; display: block; }
.validation-errors { color: var(--danger); font-size: .8rem; margin: 4px 0; padding-left: 18px; }
.fipe-box { background: var(--bg-warm); border: 1px solid #FCE37A; border-radius: 10px; padding: 10px 14px; font-size: .8rem; color: #6b5800; margin-top: 5px; }
.otp-wrap { text-align: center; padding: 14px 6px; }
.otp-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 14px; }
.otp-input { max-width: 240px; margin: 18px auto 6px; text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: .5rem; padding: 12px; }
.demo-code { display: inline-block; margin: 10px auto; background: #ECEFF1; border: 1px dashed #B0BEC5; border-radius: 8px; padding: 7px 14px; font-size: .78rem; color: var(--text-secondary); }
.demo-code b { color: var(--dark); letter-spacing: 2px; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .4px; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.b-mon { background: #ECEFF1; color: #546E7A; } .b-mon .dot { background: #90A4AE; }
.b-cur { background: var(--bg-warm); color: #F57F17; } .b-cur .dot { background: #F9A825; animation: pulse 1.6s infinite; }
.b-of { background: rgba(46,125,50,.12); color: var(--success); } .b-of .dot { background: var(--success); }
.b-wait { background: rgba(21,101,192,.1); color: var(--info); } .b-wait .dot { background: var(--info); }
.b-lost { background: #FFEBEE; color: var(--danger); } .b-lost .dot { background: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── CLIENTE: DESEJOS + OFERTA ── */
.wish { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: var(--transition); }
.wish:hover { border-color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.wish h3 { font-size: .98rem; font-weight: 700; margin-bottom: 3px; }
.wish .meta { font-size: .8rem; color: var(--text-secondary); }
.wish .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 150px; }
.offer-hero { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.car-photo { height: 150px; background: linear-gradient(135deg,#37474F,#263238); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; }
.price-tag { font-size: 2rem; font-weight: 900; color: var(--dark); }
.fipe-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(46,125,50,.12); color: var(--success); font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 8px; margin-top: 6px; }
.fipe-pill.neg { background: #FFEBEE; color: var(--danger); }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec .l { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.spec .v { font-size: .95rem; font-weight: 700; margin-top: 2px; }
.dealer-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.locked { background: var(--bg-soft); border: 1px dashed var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.locked .meta { color: var(--text-muted); font-size: .82rem; margin-bottom: 10px; }

/* ── PAINÉIS INTERNOS ── */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat .n { font-size: 1.7rem; font-weight: 900; color: var(--dark); }
.stat.hl { background: var(--dark); } .stat.hl .n { color: var(--brand); } .stat.hl .l { color: rgba(255,255,255,.6); }
.stat .l { font-size: .76rem; color: var(--text-muted); margin-top: 1px; }
.queue-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; transition: var(--transition); text-decoration: none; color: inherit; }
.queue-item.clickable { cursor: pointer; }
.queue-item:hover { border-color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.queue-item h3 { font-size: .95rem; font-weight: 700; }
.queue-item .meta { font-size: .79rem; color: var(--text-secondary); margin-top: 2px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.panel h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; font-size: .86rem; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.kv:last-child { border: none; } .kv .k { color: var(--text-secondary); } .kv .v { font-weight: 600; }
.cand { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; cursor: pointer; transition: var(--transition); position: relative; }
.cand:hover { border-color: var(--brand-dark); }
.cand.sel { border-color: var(--success); background: rgba(46,125,50,.04); }
.cand.sel::after { content: '✓ selecionada'; position: absolute; top: 10px; right: 12px; font-size: .7rem; font-weight: 700; color: var(--success); }
.cand h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.cand .c-meta { font-size: .78rem; color: var(--text-secondary); }
.cand .c-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
.cand .c-price { font-size: 1.05rem; font-weight: 800; }
.src-tag { font-size: .68rem; font-weight: 700; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 2px 7px; border-radius: 5px; }
.src-tag.partner { color: var(--info); background: rgba(21,101,192,.08); border-color: rgba(21,101,192,.25); }
.empty { text-align: center; padding: 30px 16px; color: var(--text-muted); font-size: .85rem; }
.dispatch { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.chan-pick { display: flex; gap: 10px; margin: 10px 0 14px; }
.chan { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px; text-align: center; cursor: pointer; font-size: .82rem; font-weight: 600; transition: var(--transition); }
.chan.sel { border-color: var(--dark); background: var(--dark); color: var(--brand); }
.chan small { display: block; font-weight: 500; font-size: .68rem; opacity: .7; margin-top: 2px; }
.note { background: var(--bg-warm); border-left: 3px solid var(--brand-dark); border-radius: 6px; padding: 10px 13px; font-size: .78rem; color: #6b5800; margin-top: 12px; }
.actions-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.actions-row .btn { flex: 1; min-width: 170px; }
.subnav { display: flex; gap: 6px; margin-bottom: 22px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px; width: fit-content; }
.subnav a, .subnav button { border: none; background: none; font-family: inherit; font-weight: 600; font-size: .85rem; color: var(--text-secondary); padding: 8px 18px; border-radius: 8px; cursor: pointer; transition: var(--transition); text-decoration: none; }
.subnav a.active, .subnav button.active { background: var(--dark); color: var(--brand); }
.success { text-align: center; padding: 34px 16px; }
.success .ic { width: 54px; height: 54px; border-radius: 50%; background: rgba(46,125,50,.12); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 12px; }

/* ── ALERTAS ── */
.alert { border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; font-size: .9rem; }
.alert-success { background: #E8F5E9; color: var(--success); }
.alert-danger { background: #FFEBEE; color: var(--danger); }
.alert-info { background: #E3F2FD; color: var(--info); }

/* ── OVERLAYS ── */
.modal-overlay { display: flex; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 480px; width: 100%; padding: 30px; box-shadow: var(--shadow-lg); position: relative; max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: 13px; right: 13px; background: var(--bg-soft); border: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; color: var(--text-muted); }
.modal h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.modal .modal-desc { color: var(--text-secondary); font-size: .85rem; margin-bottom: 18px; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 300; background: var(--dark); color: var(--brand); font-weight: 600; padding: 13px 22px; border-radius: 10px; font-size: .85rem; box-shadow: var(--shadow-lg); max-width: 340px; animation: fade .25s ease; }

@media (max-width: 820px) {
  .hero-grid, .offer-hero, .panel-grid, .frow, .grid-2, .how-grid, .niches-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; } .hero-visual { display: none; }
  .stats { grid-template-columns: 1fr 1fr; } .car-photo { height: 120px; }
}
