/* Estoque, página da moto, vender, links, páginas legais. Usa os tokens de site.css. */

/* ---------- estoque ---------- */
.catalog { max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) 40px; }
.catalog-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 24px; margin-bottom: 40px; }
.catalog-head .eyebrow { grid-column: 1 / -1; }
.catalog-count { margin: 0; font-size: .85rem; color: var(--muted); }
.catalog-count span { color: var(--brand); font-size: 1.4rem; margin-right: 6px; }
/* Filtros. Espaçamento na sequência de Fibonacci (razão ≈ φ): 8 · 13 · 21 · 34 · 55.
   Desktop: uma linha (chips à esquerda, selects à direita). Celular: barra compacta + painel que sobe da base. */
.filters {
  --f1: 8px; --f2: 13px; --f3: 21px; --f4: 34px;
  position: sticky; top: 76px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--f2);
  padding: var(--f2) 0; margin-bottom: var(--f4);
  background: var(--asphalt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: top .45s var(--ease);
}
.nav.is-hidden ~ main .filters { top: 0; }
.filters.is-sheet-open { z-index: 95; } /* o painel mora dentro da barra fixa: sobe junto acima do fundo escurecido */
.filters > * { min-width: 0; }
.chips { display: flex; gap: var(--f1); }
.chip {
  flex: none; height: 40px; padding: 0 var(--f3); border: 1px solid #3a3b35; border-radius: 999px; background: none;
  cursor: pointer; font-size: .88rem; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--mist); }
.chip[aria-checked='true'] { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.filter-sheet { display: flex; align-items: center; }
.selects { display: flex; gap: var(--f1); }
.select { display: grid; }
.select-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sheet-head, .sheet-foot, .filter-btn, .sheet-backdrop { display: none; }
.select select, .field select {
  appearance: none; min-height: 42px; padding: 0 38px 0 14px; border: 1px solid #3a3b35; border-radius: var(--radius);
  background: var(--carbon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8d84' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--mist); font: 400 .9rem var(--body); cursor: pointer;
}
.empty { padding: 60px 0; text-align: center; color: #cfcdc4; }
.sold { padding-top: 60px; }
.grid-sold .card { opacity: .8; }

/* ---------- página da moto ---------- */
.bike { padding-top: 96px; }
.crumbs { display: flex; gap: 10px; max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.bike-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 64px); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.gallery-main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--carbon); }
.gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.gallery-slide.is-active { opacity: 1; }
.gallery-slide img, .gallery-slide .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 14px; bottom: 12px; margin: 0; padding: 6px 10px; border-radius: 999px; background: rgb(17 18 16 / .7); font-size: .75rem; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumb { flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: var(--carbon); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-selected='true'], .thumb:hover { opacity: 1; }
.thumb[aria-selected='true'] { border-color: var(--brand); }
.bike-panel { position: sticky; top: 100px; align-self: start; }
.bike-title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 500; line-height: 1; }
.bike-title span { display: block; color: var(--brand); font-size: .5em; margin-top: .25em; font-style: italic; }
.bike-headline { margin: 18px 0 24px; font-size: 1.1rem; color: #cfcdc4; }
.bike-price { display: flex; align-items: baseline; gap: .3em; margin: 22px 0 8px; font: 500 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -.04em; }
.bike-price .mono { font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.bike-note { padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--carbon); font-size: .92rem; }
.bike-ctas { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; }

.dossier-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: var(--max); margin: clamp(64px, 8vw, 120px) auto 0; padding: 0 var(--gutter); }
.dossier-sheet .h3 { margin-bottom: 22px; }
.checks { list-style: none; margin: 0 0 32px; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks .i { color: var(--ink); background: var(--brand); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.prose p { margin: 0 0 1em; color: #cfcdc4; max-width: 62ch; }
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs th, .specs td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 42%; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; padding-top: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--carbon); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.interest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); max-width: var(--max); margin: clamp(80px, 10vw, 140px) auto 0; padding: clamp(40px, 5vw, 72px) var(--gutter); background: var(--carbon); border-radius: 6px; }
.interest-copy p:not(.eyebrow) { color: #cfcdc4; max-width: 44ch; }
.interest .h2 { margin-bottom: 18px; }
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border: 1px solid #3a3b35; border-radius: 8px; background: rgb(26 27 24 / .94); backdrop-filter: blur(10px);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.sticky-cta.is-on { transform: none; }

/* ---------- formulário de lead ---------- */
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .82rem; color: #b8b6ad; }
.field-wide { margin-top: 14px; }
.field input, .field textarea, .field select { width: 100%; }
.field input, .field textarea {
  min-height: 48px; padding: 12px 14px; border: 1px solid #3a3b35; border-radius: var(--radius); background: var(--asphalt);
  color: var(--mist); font: 400 1rem var(--body); transition: border-color .2s;
}
.field select { min-height: 48px; background-color: var(--asphalt); font-size: 1rem; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field small { color: var(--muted); }
.field input[aria-invalid='true'] { border-color: var(--red); }
.lead-legal { margin: 14px 0; font-size: .78rem; color: var(--muted); }
.lead-status { min-height: 1.4em; margin: 12px 0 0; font-size: .92rem; }
.lead-status.is-error { color: #f08a72; }
.lead-done { display: grid; gap: 14px; justify-items: start; padding: 24px; border: 1px solid var(--brand); border-radius: 6px; }
.lead-done h3 { margin: 0; font: 600 1.5rem/1.1 var(--display); letter-spacing: -.02em; }
.lead-done p { margin: 0; color: #cfcdc4; }

/* ---------- vender ---------- */
.sell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) 40px; }
.sell .h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.sell .lede { margin: 28px 0 48px; }
.sell-steps { list-style: none; margin: 0; padding: 0; }
.sell-steps li { display: grid; grid-template-columns: 48px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.sell-steps h2 { margin: 0 0 6px; font: 600 1.25rem/1.15 var(--display); letter-spacing: -.02em; }
.sell-steps p { margin: 0; color: #b8b6ad; }
.sell-steps .step-n { color: var(--brand); padding-top: 4px; }
.sell-form { position: sticky; top: 100px; align-self: start; padding: clamp(24px, 3vw, 40px); background: var(--carbon); border-radius: 6px; }
.sell-form .h3 { margin-bottom: 22px; }

/* ---------- links (bio do Instagram) ---------- */
.p-links { background: radial-gradient(120% 60% at 50% -10%, #2a2b1a 0%, var(--asphalt) 55%); min-height: 100svh; }
.links { max-width: 520px; margin: 0 auto; padding: 48px 16px 32px; }
.links-head { text-align: center; margin-bottom: 28px; }
.links-avatar img { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 18px; display: block; box-shadow: 0 0 0 1px #3a3b35, 0 0 0 6px var(--asphalt), 0 0 0 7px #3a3b35; }
.links-head h1 { margin: 0; font: 600 1.6rem/1.1 var(--display); letter-spacing: -.02em; }
.links-head .mono { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.links-bio { margin: 14px auto 0; max-width: 34ch; color: #cfcdc4; }
.links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lk {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #34352f; border-radius: 8px;
  background: rgb(26 27 24 / .8); text-decoration: none; transition: border-color .2s, transform .25s var(--ease);
}
.lk:hover { border-color: var(--mist); transform: translateY(-2px); }
.lk-text { display: grid; flex: 1; }
.lk-text strong { font-weight: 600; }
.lk-text small { color: var(--muted); font-size: .82rem; }
.lk-arrow { opacity: .5; }
.lk-hi { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.lk-hi .lk-text small { color: #4a4b2a; }
.lk-hi:hover { border-color: var(--brand); }
.links-stock { margin-top: 36px; }
.links-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.mini { flex: none; width: 200px; scroll-snap-align: start; display: grid; gap: 4px; text-decoration: none; }
.mini-media { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--carbon); display: grid; place-items: center; }
.mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-title { margin-top: 6px; font-weight: 600; font-size: .92rem; }
.mini-meta { font-size: .72rem; color: var(--muted); }
.mini-price { font: 600 1.05rem var(--display); letter-spacing: -.02em; }
.links-foot { margin-top: 36px; text-align: center; font-size: .72rem; color: var(--muted); }
.links-foot a { text-decoration: none; }

/* ---------- legal / 404 ---------- */
.legal, .notfound { max-width: 760px; margin: 0 auto; padding: 160px var(--gutter) 80px; }
.legal .h3 { margin: 40px 0 12px; }
.legal .h1 { margin-bottom: 24px; }
.notfound .lede { margin: 24px 0 32px; }

@media (max-width: 1080px) {
  .bike-top, .dossier-sheet, .interest, .sell { grid-template-columns: 1fr; }
  .bike-panel, .sell-form { position: static; }
  .bike { padding-bottom: 80px; }
  .sticky-cta { display: flex; }
}
@media (max-width: 760px) {
  .catalog, .sell { padding-top: 110px; }
  .catalog-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 21px; }
  .catalog-head .eyebrow { margin-bottom: 13px; }
  .filters { top: 72px; margin-bottom: var(--f3); }
  /* chips rolam na horizontal; a borda esmaece para indicar que há mais */
  .chips {
    flex: 1; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--f4)), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - var(--f4)), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .filter-btn {
    display: inline-flex; align-items: center; gap: var(--f1); flex: none; height: 40px; padding: 0 var(--f2);
    border: 1px solid #3a3b35; border-radius: 999px; background: var(--carbon); color: var(--mist); font-size: .88rem; cursor: pointer;
  }
  .filter-btn .i { width: 18px; height: 18px; }
  .filter-count { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--ink); font-size: .72rem; }
  .filter-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; flex-direction: column; align-items: stretch; gap: var(--f3);
    max-height: 85svh; overflow-y: auto; padding: var(--f3) var(--gutter) calc(var(--f3) + env(safe-area-inset-bottom));
    background: var(--carbon); border-top: 1px solid #3a3b35; border-radius: var(--f3) var(--f3) 0 0;
    box-shadow: 0 -21px 55px rgb(0 0 0 / .5);
    transform: translateY(105%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .filter-sheet.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; }
  .sheet-title { margin: 0; font: 600 1.15rem/1.2 var(--display); letter-spacing: -.02em; }
  .sheet-x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
  .selects { display: grid; grid-template-columns: 1fr; gap: var(--f2); }
  .select { gap: var(--f1); }
  .select-label { position: static; width: auto; height: auto; clip: auto; font-size: .78rem; color: var(--muted); }
  .select select { width: 100%; min-height: 48px; font-size: 1rem; }
  .sheet-foot { display: grid; grid-template-columns: 1fr 1.618fr; gap: var(--f2); padding-top: var(--f2); border-top: 1px solid var(--line); }
  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 89; background: rgb(0 0 0 / .62); }
  .sheet-backdrop[hidden] { display: none; }
  .gallery-main { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .lead-grid { grid-template-columns: 1fr; }
  .bike-ctas { grid-template-columns: 1fr; }
  .interest { border-radius: 0; }
}

/* ---------- campos da moto: cidade, acessórios ---------- */
.bike-city { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 14px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: #cfcdc4; }
.bike-city .i { width: 16px; height: 16px; color: var(--brand); }
.bike-city strong { font-weight: 600; color: var(--mist); }
.sheet-sub { margin: 32px 0 14px; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 8px 14px; border: 1px solid #3a3b35; border-radius: 999px; font-size: .9rem; }
.mini-media .ph img { width: 80%; }
.credito-links { margin-top: 10px; text-align: center; font-size: .7rem; }

/* ---------- anunciar (planos) ---------- */
.plans-hero { max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) 55px; }
.plans-hero .h1 { max-width: 16ch; }
.plans-hero .lede { margin-top: 21px; }
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 21px; align-items: stretch;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.plan { position: relative; display: flex; flex-direction: column; gap: 13px; padding: 34px 21px 21px; border: 1px solid var(--line); border-radius: 8px; background: var(--carbon); }
.plan-hi { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 34px 55px -34px rgb(212 216 42 / .35); }
.plan-flag { position: absolute; top: -12px; left: 21px; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: var(--ink); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.plan-name { margin: 0; font: 600 1.4rem/1.1 var(--display); letter-spacing: -.02em; }
.plan-desc { margin: 0; color: #b8b6ad; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; }
.plan-price strong { font: 500 2.6rem/1 var(--display); letter-spacing: -.04em; }
.plan-price .mono { color: var(--muted); font-size: .85rem; }
.plan-meta { margin: 0; font-size: .78rem; color: var(--muted); }
.plan-perks { list-style: none; margin: 8px 0 13px; padding: 13px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; flex: 1; }
.plan-perks li { display: flex; gap: 8px; align-items: flex-start; font-size: .94rem; }
.plan-perks .i { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.plans-steps { max-width: var(--max); margin: 0 auto; padding: 89px var(--gutter) 0; }
.plans-steps .sell-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 21px; }
.plans-steps .sell-steps h3 { margin: 0 0 6px; font: 600 1.15rem/1.2 var(--display); letter-spacing: -.02em; }
.faq { max-width: 860px; margin: 0 auto; padding: 89px var(--gutter) 0; }
.faq .h2 { margin-bottom: 34px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 13px; padding: 21px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-i { transition: transform .3s var(--ease); transform: rotate(90deg); color: var(--muted); }
.faq-item[open] .faq-i { transform: rotate(-90deg); }
.faq-item p { margin: 0 0 21px; color: #cfcdc4; max-width: 62ch; }
.plans-alt { max-width: 860px; margin: 0 auto; padding: 89px var(--gutter) 0; }
.plans-alt p:not(.h3) { color: #b8b6ad; }

/* ---------- FIPE ---------- */
.bike-fipe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin: 0 0 13px; font-size: .88rem; color: var(--muted); }
.fipe-below { padding: 4px 10px; border-radius: 999px; background: rgb(95 174 110 / .14); color: #8fd39c; font-size: .8rem; }

@media (max-width: 1080px) {
  .plans-steps .sell-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .plans-hero { padding-top: 110px; padding-bottom: 34px; }
  .plans-steps .sell-steps { grid-template-columns: 1fr; }
  .plans-steps, .faq, .plans-alt { padding-top: 55px; }
}
