/* Projeto Cinza — site de download
   Paleta: neblina de Curitiba, asfalto, luz de poste (âmbar) e azul do BOU */
:root {
  --neblina: #d3d8dc;
  --neblina-2: #c3c9ce;
  --asfalto: #1c1f24;
  --asfalto-2: #272b31;
  --poste: #e3a13a;
  --poste-escuro: #b97b1d;
  --bou: #3d4a5c;
  --alerta: #b8322a;
  --texto: #1c1f24;
  --texto-claro: #e9ebec;
  --texto-suave: #5a626b;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --corpo: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--neblina); color: var(--texto); font: 400 17px/1.6 var(--corpo); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 0.95; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 14px; }
h3 { font-size: 30px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section-lede { color: var(--texto-suave); max-width: 60ch; margin-bottom: 32px; }
:focus-visible { outline: 3px solid var(--poste); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--poste); color: var(--asfalto); padding: 8px 14px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- topo ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; color: var(--texto-claro); transition: background 0.25s; }
.top.solid { background: rgba(28, 31, 36, 0.94); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 24px/1 var(--display); }
.brand svg { width: 26px; height: 26px; fill: var(--poste); }
.top nav { display: flex; gap: 26px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: 0.85; }
.top nav a:hover { opacity: 1; color: var(--poste); }
.top nav .nav-cta { opacity: 1; background: var(--poste); color: var(--asfalto); padding: 8px 16px; border-radius: 3px; font-weight: 700; }
.top nav .nav-cta:hover { background: #f0b552; color: var(--asfalto); }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: inherit; font: 700 14px var(--corpo); padding: 7px 12px; border-radius: 3px; cursor: pointer; }

/* ---------- abertura ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--asfalto); color: var(--texto-claro); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,26,0.92) 0%, rgba(20,22,26,0.55) 45%, rgba(20,22,26,0.1) 100%), linear-gradient(0deg, rgba(20,22,26,0.85) 0%, rgba(20,22,26,0) 40%); }
.hero-in { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px 9vh; }
.hero-title { display: flex; flex-direction: column; font-size: clamp(96px, 19vw, 260px); line-height: 0.78; text-transform: uppercase; letter-spacing: -0.01em; margin-left: -0.04em; }
.hero-title span:first-child { font-size: 0.42em; color: var(--poste); letter-spacing: 0.02em; margin-bottom: 0.08em; }
.hero-title span:last-child { color: transparent; -webkit-text-stroke: 2px var(--texto-claro); background: url(../img/petit-pave.svg) 0 0 / 120px auto; -webkit-background-clip: text; background-clip: text; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .hero-title span:last-child { color: var(--texto-claro); } }
.hero-lede { max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); margin: 28px 0 26px; color: #d7dadc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: #a9afb5; }

.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 700 16px/1.2 var(--corpo); padding: 15px 24px; border-radius: 3px; border: 2px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s; }
.btn-main { background: var(--poste); color: var(--asfalto); }
.btn-main:hover { background: #f0b552; }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--texto-claro); }
.btn-ghost:hover { border-color: var(--texto-claro); background: rgba(255,255,255,0.08); }
.btn-line { border-color: var(--texto-claro); color: var(--texto-claro); }
.btn-line:hover { background: rgba(255,255,255,0.1); }

/* faixa de petit-pavê */
.pave { height: 42px; background: url(../img/petit-pave.svg) repeat-x 0 0 / auto 42px; }

/* ---------- vídeos ---------- */
.videos { padding: 96px 0; }
.player { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.player-screen { background: var(--asfalto); border-radius: 4px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(28,31,36,0.6); }
.player-screen video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.playlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.clip { width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; text-align: left; background: transparent; border: 0; border-left: 4px solid transparent; padding: 8px 10px 8px 8px; cursor: pointer; font: inherit; color: var(--texto); border-radius: 0 3px 3px 0; }
.clip img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.clip span { font-size: 14px; line-height: 1.4; color: var(--texto-suave); }
.clip b { display: block; font: 900 22px/1 var(--display); color: var(--texto); margin-bottom: 4px; }
.clip:hover { background: var(--neblina-2); }
.clip.is-on { border-left-color: var(--poste); background: var(--neblina-2); }

/* ---------- história ---------- */
.story { background: var(--asfalto); color: var(--texto-claro); padding: 104px 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.story-text p { color: #c9cdd1; max-width: 56ch; }
.route { list-style: none; counter-reset: rota; margin: 32px 0 0; padding: 0; border-left: 3px solid var(--bou); }
.route li { counter-increment: rota; position: relative; padding: 0 0 18px 34px; }
.route li::before { content: counter(rota); position: absolute; left: -15px; top: 0; width: 27px; height: 27px; border-radius: 50%; background: var(--poste); color: var(--asfalto); font: 900 16px/27px var(--display); text-align: center; }
.route b { display: block; font: 900 24px/1.1 var(--display); }
.route span { color: #a9afb5; font-size: 15px; }
.map { margin: 0; }
.map-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: #e9e4d8; }
.map-inner { position: absolute; left: 0; top: 0; width: 1250px; height: 2080px; transform-origin: 0 0; }
.map-inner img { width: 1250px; height: 2080px; max-width: none; filter: saturate(0.5); }
.map-route { position: absolute; inset: 0; width: 1250px; height: 2080px; }
.map-route polyline { fill: none; stroke: var(--alerta); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.map.drawn .map-route polyline { animation: rota 2.6s ease-out forwards; }
@keyframes rota { to { stroke-dashoffset: 0; } }
.pin { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--asfalto); color: var(--poste); border: 5px solid var(--poste); font: 900 26px/36px var(--display); text-align: center; }
.map figcaption { font-size: 14px; color: #a9afb5; margin-top: 10px; }

/* ---------- como se joga ---------- */
.play { padding: 104px 0 64px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; margin-top: 36px; }
.feat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 18px; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--texto-suave); max-width: 52ch; }

/* ---------- galeria ---------- */
.gallery { padding: 40px 0 104px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.shot img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.shot:hover img { transform: scale(1.03); }
.shot.wide { grid-column: span 2; }
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(15,17,20,0.94); display: flex; align-items: center; justify-content: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 3px; }
.lb-close { position: absolute; top: 18px; right: 22px; background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; font: 700 14px var(--corpo); padding: 8px 14px; border-radius: 3px; cursor: pointer; }

/* ---------- download ---------- */
.download { background: var(--bou); color: var(--texto-claro); padding: 104px 0; position: relative; }
.download::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 42px; background: url(../img/petit-pave.svg) repeat-x 0 0 / auto 42px; }
.download .section-lede { color: #c6ccd3; }
.mobile-note { background: rgba(0,0,0,0.25); border-left: 4px solid var(--poste); padding: 12px 16px; max-width: 64ch; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.card { position: relative; background: var(--asfalto); padding: 30px 26px 22px; border-radius: 4px; border-top: 6px solid var(--asfalto-2); }
.card.is-mine { border-top-color: var(--poste); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.8); }
.card h3 { font-size: 54px; margin-bottom: 6px; }
.card .req { color: #a9afb5; font-size: 15px; }
.badge { position: absolute; top: 14px; right: 16px; background: var(--alerta); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 2px; }
.dl-group { display: grid; gap: 10px; margin: 22px 0 12px; }
.size { font-size: 14px; color: #a9afb5; }
.card details { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 14px; padding-top: 12px; }
.card summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--poste); }
.card ol { padding-left: 20px; font-size: 15px; color: #d0d4d8; margin: 12px 0 0; }
.card li { margin-bottom: 8px; }
.card code { display: block; margin-top: 6px; background: #000; padding: 8px 10px; font-size: 13px; border-radius: 2px; overflow-x: auto; white-space: nowrap; }
.cmd { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; }
.cmd code { flex: 1; margin: 0; }
.copy { background: var(--asfalto-2); color: var(--texto-claro); border: 1px solid rgba(255,255,255,0.25); border-radius: 2px; font: 700 13px var(--corpo); padding: 0 12px; cursor: pointer; }
.reqs { margin-top: 30px; color: #c6ccd3; font-size: 15px; max-width: 70ch; }

/* ---------- controles ---------- */
.controls { padding: 104px 0 72px; }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 28px; }
.keys div { display: flex; align-items: center; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--neblina-2); }
.keys span { margin-left: 12px; color: var(--texto-suave); }
kbd { display: inline-block; min-width: 34px; text-align: center; font: 700 14px/1 var(--corpo); padding: 8px 10px; background: #f1f3f4; border: 1px solid #aab1b8; border-bottom-width: 3px; border-radius: 4px; color: var(--asfalto); }

/* ---------- perguntas ---------- */
.faq { padding: 40px 0 104px; }
.faq .wrap > details { max-width: 780px; border-bottom: 1px solid var(--neblina-2); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--texto-suave); }

.foot { background: var(--asfalto); color: #a9afb5; padding: 40px 0; font-size: 15px; }
.foot-in p { margin: 0 0 4px; }
.foot .small { font-size: 13px; color: #7d848b; }

.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--asfalto); color: var(--texto-claro); border-left: 4px solid var(--poste); padding: 14px 20px; border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 45; transition: transform 0.3s; max-width: calc(100% - 32px); }
.toast.show { visibility: visible; transform: translate(-50%, 0); }

/* ---------- telas menores ---------- */
@media (max-width: 980px) {
  .player { grid-template-columns: 1fr; }
  .playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: 1fr; }
  .map { max-width: 520px; }
  .cards { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .top nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(28,31,36,0.97); padding: 8px 24px 18px; display: none; }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .top nav .nav-cta { margin-top: 12px; text-align: center; border: 0; }
  .hero-in { padding-bottom: 8vh; }
  .hero-shade { background: linear-gradient(0deg, rgba(20,22,26,0.95) 10%, rgba(20,22,26,0.5) 60%, rgba(20,22,26,0.3) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .videos, .play, .story, .download, .controls { padding: 72px 0; }
  .playlist { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; gap: 40px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot.wide { grid-column: span 2; }
  .keys { grid-template-columns: 1fr; }
  .card h3 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map.drawn .map-route polyline { animation: none; stroke-dashoffset: 0; }
  .shot img, .toast { transition: none; }
}
